/* --- Base Styles --- */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #0d0202;
    background-image: url('../Images/222.webp');
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    color: #ffffff;
}

/* --- Header & Navigation --- */
header {
    background: linear-gradient(to right, #000000, #550101);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease;
}

.logo img {
    height: 70px;
    width: auto;
    transition: transform 0.2s;
    display: block;
}

.logo img:hover {
    transform: scale(1.05);
}

/* --- Content Styling --- */
.credits-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 20px;
}

h2 {
    font-family: 'Public Pixel', sans-serif;
    text-align: center;
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 30px;
    text-shadow: 0 0 15px rgba(207, 4, 4, 0.4);
    animation: fadeIn 1s ease forwards;
}

.thanks {
    text-align: center;
    font-family: 'Merchant Copy', sans-serif;
    font-size: 30px;
    line-height: 1.3;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    color: #e0e0e0;
    animation: fadeIn 1s ease forwards;
    background: rgba(42, 42, 42, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Credits Grid --- */
.credits-list {
    margin-bottom: 4rem;
}

.credits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    justify-content: center;
}

.credit-card {
    background: rgba(28, 28, 28, 0.7);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.credit-card:hover {
    transform: translateY(-5px);
}

.credit-card.anim-card:hover {
    border-color: rgb(141, 4, 204);
    box-shadow: 0 0 15px rgba(141, 4, 204, 0.4);
}

.credit-card.tester-card:hover {
    border-color: rgb(2, 100, 19);
    box-shadow: 0 0 15px rgba(2, 100, 19, 0.4);
}

.credit-card.supp-card:hover {
    border-color: rgb(2, 113, 117);
    box-shadow: 0 0 15px rgba(2, 113, 117, 0.4);
}

.credit-card h3 {
    margin: 0 0 10px 0;
    font-family: 'Merchant Copy', sans-serif;
    font-size: 38px;
    color: #ffffff;
}

.role {
    font-family: 'Merchant Copy', sans-serif;
    font-size: 28px;
    display: block;
}

.supp {
    color: rgb(2, 113, 117);
}

.anim {
    color: rgb(141, 4, 204);
}

.tester {
    color: rgb(2, 100, 19);
}

/* --- Fonts & Animations --- */
@font-face {
    font-family: 'EmojiFont';
    src: url('../Fonts/EmojiFont.woff') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.emoji-letter {
    font-family: 'EmojiFont', sans-serif;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Footer --- */
footer {
    color: #6b7280;
    font-size: 12px;
    font-family: 'Public Pixel', sans-serif;
    text-align: center;
    padding: 30px;
    background: #111;
    border-top: 1px solid #222;
}


/* ==========================================================================
   MOBILE & COMPACT VIEWPORT OPTIMIZATIONS (Under 700px Wide OR Under 608px Tall)
   ========================================================================== */
@media (max-width: 700px), (max-height: 608px) {
    header {
        padding: 12px 15px;
    }

    .logo img {
        height: 50px;
    }

    .menu-icon {
        width: 18px;
        height: 18px;
    }

    .credits-container {
        padding: 2rem 15px;
    }

    h2 {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .thanks {
        font-size: 22px;
        padding: 1.2rem;
        margin-bottom: 2rem;
        text-align: left; /* Better readability on small interfaces */
    }

    .credits-grid {
        grid-template-columns: 1fr; /* Force single column on tiny screens */
        gap: 12px;
    }

    .credit-card {
        padding: 15px;
    }

    .credit-card h3 {
        font-size: 28px;
        margin-bottom: 5px;
    }

    .role {
        font-size: 22px;
    }

    footer {
        padding: 20px;
        font-size: 10px;
    }
}