/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    color: white;
    /* Flex column layout to distribute elements relatively */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Background Handling */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #2a2a2a;
    /* Fallback dark color */
    background-image: url('assets/background_image.png');
    background-size: cover;
    /* Back to cover for better scaling */
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.5s ease;
}

.background-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Vignette effect */
    background: radial-gradient(circle, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
}

/* Header / Logo */
.logo-container {
    position: relative;
    /* Changed from absolute to flow relatively */
    margin-top: 5vh;
    /* Relative top spacing */
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
    flex: 0 1 auto;
}

.game-logo {
    max-width: 500px;
    width: 60vw;
    /* Responsive width based on viewport */
    height: auto;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

/* Main Content */
.content-container {
    display: flex;
    flex-direction: column;
    /* Stack children vertically */
    justify-content: center;
    align-items: center;
    flex: 1 0 auto;
    /* Grow to fill space */
    width: 100%;
    padding: 20px;
}

.creator-text {
    margin-top: 20px;
    font-size: 1.4rem;
    color: #c7d5e0;
    font-style: bold;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    opacity: 0.9;
}

.separator-line {
    width: 200px;
    height: 1px;
    background: rgba(199, 213, 224, 0.3);
    margin: 10px 0;
    border: none;
}

.co-producer-text {
    font-size: 1.1rem;
    color: #c7d5e0;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    opacity: 0.8;
}

.creator-text a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.creator-text a:hover {
    color: #ffd700;
}

/* Steam Widget Responsive */
.content-container iframe {
    max-width: 90vw;
    /* Ensure it doesn't overflow on mobile */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.company-logo {
    display: flex;
    gap: 15px;
    align-items: center;
}

.company-logo img {
    display: block;
    width: 60px;
    /* Fixed size for perfect circle */
    height: 60px;
    object-fit: cover;
    /* Ensure image covers the circle without distortion */
    border-radius: 50%;
    /* Mask with circle */
    background-color: rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.company-logo .outlier-logo {
    width: 60px;
    height: 60px;
}

.company-logo a:hover img {
    transform: scale(1.1);
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links svg {
    width: 32px;
    /* Set a good clickable size */
    height: 32px;
}

.social-links a:hover {
    color: #ffd700;
    transform: scale(1.1);
    /* Slight pop effect */
}

/* Steam Widget Styles */
.steam-widget-desktop {
    display: block;
}

.steam-widget-mobile {
    display: none;
}

.steam-mobile-button {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #171a21 0%, #1b2838 100%);
    color: #c7d5e0;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(102, 192, 244, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.steam-mobile-button:hover {
    background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
    color: #ffffff;
    border-color: #66c0f4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 192, 244, 0.3);
}

.steam-mobile-button svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
    }

    .social-links {
        justify-content: flex-end;
        /* Align to right */
        width: auto;
        /* Let it wrap or fit content */
    }

    .background-container {
        background-color: rgba(10, 10, 11, 0.935);
        /* Ensure it blends with black */
        background-image: url('assets/background_image.png');
        background-size: 200%;
        /* Zoomed in for mobile focus */
        background-repeat: no-repeat;
        background-position: center 20%;
        /* Moved down a bit */
    }

    .game-logo {
        width: 80vw;
        /* Larger width on mobile */
    }

    /* Mobile Steam Widget Toggle */
    .steam-widget-desktop {
        display: none;
    }

    .steam-widget-mobile {
        display: block;
        width: 90vw;
        display: flex;
        justify-content: center;
    }

    .content-container iframe {
        display: none;
        /* Just in case */
    }
}

/* Footer Nav Link */
.footer-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.footer-nav-link {
    color: #c7d5e0;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    font-size: 1.1rem;
}

.footer-nav-link:hover,
.footer-nav-link.active {
    color: #ffd700;
}

/* Credits Page Styles */
.credits-container {
    flex-direction: column;
}

.credits-box {
    background: rgba(20, 20, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    padding: 40px;
    width: 90%;
    max-width: 800px;
    text-align: center;
    backdrop-filter: blur(5px);
    margin-top: 40px;
    margin-bottom: 40px;
}

.credits-box h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.credits-columns {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.credit-column {
    flex: 1;
}

.credit-column h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #c7d5e0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.credit-column ul {
    list-style-type: none;
    padding: 0;
}

.credit-column li {
    margin-bottom: 15px;
}

.credit-column a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 1.4;
    display: inline-block;
}

.credit-column a:hover {
    color: #ffd700;
    text-decoration: underline;
}

.thank-you-text {
    font-size: 1.2rem;
    color: #c7d5e0;
    margin-bottom: 25px;
    font-style: italic;
}

.back-button {
    display: inline-block;
    padding: 10px 25px;
    background: transparent;
    border: 2px solid #ffd700;
    color: #ffd700;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: #ffd700;
    color: #171a21;
}

@media (max-width: 768px) {
    .credits-columns {
        flex-direction: column;
        gap: 30px;
    }

    .footer-center {
        margin: 15px 0;
        order: 3;
        /* Move to bottom of footer on mobile to avoid squishing */
        width: 100%;
    }

    .footer {
        flex-wrap: wrap;
    }
}