* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fonts */
@font-face {
    font-family: 'Reg';
    src: url('./fonts/i_bold.woff') format('woff');
}

@font-face {
    font-family: 'Small';
    src: url('./fonts/i_light.woff') format('woff');
}

/* Base */
html, body {
    min-height: 100vh;
    height: auto;
    background: #111130;
    font-family: Small, sans-serif;
    font-size: 18px;
    color: #F9F4DE;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.game-page {
    background: #111130;
}

.wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-top: 140px;
    padding-bottom: 50px;
}

main {
    flex: 1;
    height: 100%;
}

/* Header */
header {
    font-family: Reg, sans-serif;
    background: url('../images/headerbg.png') center center / cover no-repeat;
    color: rgba(0, 0, 0, 0.1);
    padding: 2rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

header img {
    width: 30%;
    height: auto;
    max-height: 15vh;
    margin-top: -4vh;
    object-fit: contain;
}

header .nav-button {
    font: Reg;
    color: #04052E;
    text-decoration: none;
    font-size: 1.5rem;
    margin-top: -1rem;
    display: inline-block;
}


header .nav-button:hover {
    color: #5e0139;
}

/* Game Page Content */
#about .container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    width: 70%;
    margin: 2rem auto;
    align-items: center;
    color: #EAEAEA;
}

.right-side {
    font-family: Small, sans-serif;
    font-size: 1rem;
    color: #EAEAEA;
    line-height: 1.5;
    background: #1e337c;
    margin: 1rem 0;
    padding: 5rem;
    box-shadow: 5px 5px 5px #2b2136;
    border-radius: 15px;
    width: 100%;
}

.right-side.game-page {
    background: #060711;
    box-shadow: 5px 5px 5px #0e0c2c;
    padding: 10vw;
    border-radius: 15px;
    width: 100%;
}

.video-wrapper iframe {
    max-height: 350px;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-width: 100%;
    border: none;
    display: block;
    margin: 0 auto;
}

/* Screenshot Grid */
.screenshot-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.screenshot-grid img {
    width: 90%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

/* Footer */
footer {
    background: #030514;
    color: #989fc6;
    text-align: center;
    font-size: 0.75rem;
    padding: 0.5rem 0;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.social-box {
    display: flex;
    flex-direction: column; /* stack links vertically */
    align-items: center;    /* center the whole column horizontally */
    gap: 1rem;
    margin-top: 2rem;
}

.social-box a {
    display: flex;
    align-items: center;    /* keep icon and text aligned vertically */
    gap: 0.5rem;             /* space between icon and text */
    color: #EAEAEA;
    text-decoration: none;
    font-family: Reg, sans-serif;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.social-box a:hover {
    color: #ad96b5;
}

.social-box img {
    width: 28px;
    height: auto;
    flex-shrink: 0;
}




/* Responsive */
@media (max-width: 768px) {
    header .container {
        flex-direction: row;

        align-items: center;
        text-align: center;
    }

    header img {
        width: 75%;
        margin-top: -0.5rem;
    }
    
    header {
        padding: 1rem 0;
        max-height: 120px;
        overflow: hidden;
    }


    header .nav-button {
        font-size: 1.2rem;
        padding: 0.5rem 1.2rem;
    }
    .video-wrapper iframe {
        max-height: 250px; /* or adjust as needed */
        width: 100%;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }


    #about .container {
        flex-direction: column;
        width: 90%;
        height: auto;
    }

    .right-side,
    .right-side.game-page {
        width: 100%;
        padding: 5vw;
        max-width: 90%;
        margin: 0 auto;
    }

    .screenshot-grid img {
        max-width: 100%;
    }

    h2 {
        font-size: 1.5rem;
    }

    p {
        font-size: 0.8rem;
    }

    #about .container:has(.right-side):not(:has(.left-column)) {
        justify-content: center;
    }

    #about .container:has(.right-side):not(:has(.left-column)) .right-side {
        max-width: 90%;
        margin: 0 auto;
    }
    footer {
        background: #030514;
        color: #989fc6;
        text-align: center;
        font-size: 0.75rem;
        padding: 0.5rem 0;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
    }
}
