/* style.css */
body {
    font-size: 1.0em;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #000;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

header {
    background-image: url('../media/images/header_banner.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* ←←← CHANGE THIS ONE NUMBER TO CONTROL TOTAL HEADER HEIGHT ←←← */
    height: 110px;           /* try 140px, 160px, 200px, 240px — whatever looks best */
    
    display: flex;
    flex-direction: column;      /* logo on top, nav below */
    align-items: center;         /* everything centered horizontally */
    justify-content: center;     /* logo vertically centered in the space */
    padding: 0;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: visible; 
}

header .banner img {
    max-height: 50px;        /* ←←← THIS is the only number you need to change */
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
}

header .banner img {
    margin-top: 8px;
    margin-bottom: 8px;
}


nav a {
    color: white;
    text-decoration: none;           /* removes underline completely */
    padding: 0px 8px;
    /*border-radius: 4px; */
    transition: all 0.25s ease;
    position: relative;
    font-weight: bold; 
    font-size: 1.2em;
}

/* Hover + Active state — same beautiful cyan glow */
nav a:hover,
nav a.active {
    color: #B0FFFF !important;        /* very light cyan */
    background-color: rgba(176, 255, 255, 0.1);
    /* box-shadow: 0 0 12px rgba(176, 255, 255, 0.5); */
    text-decoration: none !important;
}


main {
    width: 100%;
    margin: 0;
    padding-top: 10px !important;
    padding-bottom: 10px; 
    /* padding: 1em 0 3em 0; */
    background-image: url('../media/images/stars2.webp');
    background-size: 100% auto; /* Full width, natural height */
    background-position: center top;
    background-repeat: repeat-y; /* Tile vertically */
    background-color: #000;
    min-height: 100vh;
    text-align: center;
}

/* Shop page styles */
.shop-banner {
    background-image: url('../media/images/stars2.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    padding: 1em 0;
    width: 100%;
    box-sizing: border-box;
}

.shop-banner h1 {
    margin: 0;
    font-size: 1.2em;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.gear-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 2em auto;
}

.gear-image {
    width: 100%;
    height: 200px; /* Fixed height for square images */
    object-fit: cover; /* Ensure square cropping */
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.gear-placeholder {
    width: 100%;
    height: 250px;
    background-color: #333;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    font-size: 1em;
    text-align: center;
}

.shop-button-container {
    text-align: center;
    margin: 2em 0;
}

.shop-button {
    background-color: #333;
    color: white;
    padding: 0.8em 1.5em;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1.2em;
    display: inline-block;
    transition: background-color 0.2s;
}

.shop-button:hover {
    background-color: #555;
}

@media (max-width: 600px) {
    .shop-banner h1 {
        font-size: 1.0em;
    }

    .gear-grid {
        grid-template-columns: 1fr; /* Stack images on mobile */
        gap: 15px;
        margin: 1em auto;
    }

    .gear-image, .gear-placeholder {
        height: 200px; /* Smaller square images on mobile */
    }

    .shop-button {
        font-size: 1em;
        padding: 0.6em 1.2em;
    }
}

.copy-btn {
    background-color: #555;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.3em;
    margin-left: 0.5em;
    cursor: pointer;
    font-size: 0.9em;
    vertical-align: middle;
    width: 1.5em;
    height: 1.5em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    background-color: #777;
}

.copy-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}

.copy-btn {
    background-color: #555;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.3em;
    margin-left: 0.5em;
    cursor: pointer;
    font-size: 0.9em;
    vertical-align: middle;
    width: 1.5em;
    height: 1.5em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative; /* Button is the positioning context */
}

.copy-popup {
    position: absolute;
    top: -20px; /* Half a line above, using pixels for precision */
    left: 20px; /* Just right of the button */
    background-color: #333;
    color: white;
    padding: 0.3em 0.6em;
    border-radius: 4px;
    font-family: "Avantgarde", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.8em;
    opacity: 0.9;
    z-index: 10;
    white-space: nowrap; /* Prevent text wrapping */
}
.content-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1em;
}

.game-def {
    color: white !important; /* Ensure text is white on all devices */
}
#contact-content {
    color: white !important; /* Ensure contact page text is white */
    padding: .01em;
    margin: .01em;
}

/* Top code block on about page - centered */
.code-block-top {
    background: rgba(20,30,50,0.45);
    color: #D4D4D4;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1em;
    line-height: 1.5;
    width: 450px;
    margin: .01em auto;
    padding: .1em;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    text-align: center;
    box-sizing: border-box;
    border: 2px solid rgba(176, 255, 255, 0.3) !important;
    box-shadow: 0 0 20px rgba(176, 255, 255, 0.3) !important;
}

.code-block {
    background: rgba(20,30,50,0.45);
    color: #D4D4D4;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1em;
    line-height: 1.5;
    width: 450px;
    margin: .11em auto;
    padding: .7em;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    text-align: left;
    box-sizing: border-box;
    border: 2px solid rgba(176, 255, 255, 0.3) !important;
    box-shadow: 0 0 20px rgba(176, 255, 255, 0.3) !important;
}
.code-block-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 700px;
    margin: .01em auto;
    gap: 0;
}

@media (max-width: 600px) {
    .shop-banner h1 {
        font-size: 1.0em;
    }

    .gear-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 1em auto;
    }

    .gear-image, .gear-placeholder {
        height: 200px;
    }

    .shop-button {
        font-size: 1em;
        padding: 0.6em 1.2em;
    }

    .code-block {
        font-size: 0.7em;
        margin: 0.5em auto;
        border: 2px solid rgba(176, 255, 255, 0.5) !important;
        box-shadow: 0 0 20px rgba(176, 255, 255, 0.3) !important;
    }
}

.profile-pic {
    width: 200px;
    height: 200px;
    object-fit: cover; /* Ensure square cropping */
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    margin-left: 1.2em; /* Small margin to separate from code block */
    margin-top: .1em; /* Lower images to align with code block content */
}

@media (max-width: 450px) {
    .code-block-container {
        flex-direction: column; /* Stack image below code block on mobile */
        align-items: center;
        width: 100%; /* Full width on mobile */
    }

    .code-block {
        width: 100%; /* Full width on mobile, up to max-width */
        max-width: 450px; /* Maintain max width */
    }
    .code-block-top {
        width: 100%; /* Full width on mobile, up to max-width */
        max-width: 450px; /* Maintain max width */
        align-items: center;
    }

    .profile-pic {
        margin-left: 0; /* Remove left margin */
        margin-top: 1em; /* Consistent spacing below code block */
    }
}

/* Code-block-top - fix text wrapping on mobile */
@media (max-width: 768px) {
    .code-block-top pre {
        margin: 0;
        white-space: pre-wrap;          /* allow wrapping on long lines */
        padding: 0.1em;                 /* extra padding inside for fit */
        font-size: .8em;                 /* slightly smaller text on mobile */
    }
}
.code-block pre {
    margin: 0;
    white-space: pre-wrap; /* Wrap long lines */
}

/* VS Code-inspired syntax highlighting */
.code-block .keyword {
    color: #C792EA; /* Purple for keywords (e.g., def, if) */
}

.code-block .string {
    color: #F1FA8C; /* Yellow for strings */
}

.code-block .comment {
    color: #6A9955; /* Green for comments */
}
.code-block-top .comment {
    color: #6A9955; /* Green for comments */
}

.code-block .function {
    color: #61D6D6; /* Cyan for function names */
}

.code-block .number {
    color: #B5CEA8; /* Light green for numbers */
}

.code-block .operator {
    color: #D4D4D4; /* White for operators (+, =) */
}

nav {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.nav-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex: 0; /* Center links in available space */
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content vertically */
    max-width: 800px;
    margin: 0 auto;
}

.social-icons {
    display: flex;
    gap: 25px;
    justify-content: center; /* Center logos horizontally */
    margin-top: 0.5em;
}

.social-icon {
    width: 30px;
    height: auto;
    object-fit: contain;
    transition: transform 0.2s;
    background: transparent;
    filter: none;
    -webkit-filter: none;
    image-rendering: -webkit-optimize-contrast;
    forced-color-adjust: none;
}

.social-icon:hover {
    transform: scale(1.1);
}

footer p {
    margin: 0; /* Remove default margin for alignment */
    padding-top: 0.5em; /* Add space above text */
}

.social-icon:hover {
    transform: scale(1.1);
}

.x-icon {
    background-image: url('../media/images/x_logo.webp');
    margin-right: auto; /* Push X logo to left */
}

.instagram-icon {
    background-image: url('../media/images/instagram_logo.webp');
    margin-left: auto; /* Push Instagram logo to right */
}

.game-card {
    background: white;
    padding: 1em;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin: 1em 0;
}

form {
    background: white;
    padding: 1em;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

label, input, textarea {
    display: block;
    margin: 0.5em 0;
    width: 100%;
}

input, textarea {
    padding: 0.5em;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    background-color: #333;
    color: white;
    padding: 0.5em 1em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #555;
}

footer {
    text-align: center;
    padding: 0.05em;
    background-color: #090909;
    color: white;
    position: fixed;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    font-size: 0.8em;
}
/* Updated styles for header and dropdown */
.header-container {
    display: flex;
    justify-content: center;
    margin: 1em 0;
    text-align: center; /* Ensure inline elements center */
}


.header-text {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 1em;
    display: inline-flex;
    align-items: center;
}


.game-selector-wrapper {
    background-image: url('../media/images/rinkiCircle350x320.webp');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    width: 140px;
    height: 128px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: .1em auto;
}

.game-selector {
    display: inline-block;
}

.game-option-image {
    width: 100px;
    height: 38px;
    object-fit: contain;
    cursor: pointer;
}

.game-selector select {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 100px;
    height: 38px;
    appearance: none; /* Remove default dropdown arrow */
    padding: 0;
    text-align: center;
}

.video-container {
    max-width: 360px !important;     /* ~50% of original size */
    margin: 3em auto !important;    /* nice vertical spacing + center */
    padding: 0 20px;
}

.video-wrapper {
    position: relative;
    padding-bottom:99.25%;         /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    border: 3px solid rgba(176, 255, 255, 0.7) !important;
    box-shadow: 0 0 30px rgba(176, 255, 255, 0.4);
    background: #000;
}

.video-wrapper video {
    position: absolute;
    top: 0; left: 0;
    width: 100% !important;
    height: 100% !important;
    border-radius: 13px;             /* slightly less than container so border shows */
}
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button::before {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-left: 40px solid white;
    border-top: 24px solid transparent;
    border-bottom: 24px solid transparent;
    margin-left: 10px;
}

.play-button:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

#game-video {
    width: 360px; /* 9:16 aspect ratio, adjust as needed */
    height: 640px;
    border-radius: 1px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    max-width: 100%;
}


.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 600px; /* Narrower grid */
    margin: 1em auto; /* Center grid */}

.screenshot {
    width: 100%;
    height: auto;
    border-radius: 9px;
    border: 2px solid rgba(0, 255, 255, .5);   /* ←←← THIS ADDS THE BORDER */
    box-shadow: 0 0 15px rgba(176, 255, 255, 0.25);    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}


.platforms {
    margin: 2em 0;
    text-align: center;
}

.platform-images {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.platform-icon {
    height: 44px !important;   /* perfect size for all icons */
    width: auto !important;
    margin: 0 20px;            /* nice spacing between them */
}

/* Responsive design */
@media (max-width: 600px) {
    body {
        font-size: 1.2em; /* 20%+ on mobile */
    }
    /* #game-video {
        width: 280px;
        height: 498px;
    } */

    .screenshot-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on smaller screens */
    }

    .header-container {
        flex-direction: column;
        align-items: center;
    }

    .header-text {
        flex-direction: column;
        align-items: center;
    }

    .game-selector {
        margin-left: 0;
        margin-top: 0.5em;
    }
   
}

/* THIS IS THE FINAL FIX — WORKS 100% ON YOUR CODE */
.dropdown-menu a {
    display: block !important;
    padding: 2px 2px !important;          /* big clickable area */
    margin: 2px 0 !important;              /* THIS IS THE VERTICAL GAP BETWEEN ITEMS */
    color: white !important;
    text-decoration: none !important;
    font-size: 1.1em !important;
}

.dropdown-menu a:hover {
    background: #B0FFFF !important;
    color: black !important;
    border-radius: 10px !important;
}

.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-toggle {
    color: white;
    text-decoration: none;
    padding: 0.1em 0;
    cursor: pointer;
}
/* .dropdown-toggle::after { content: none; } */

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 30, 0.98);
    min-width: 60px;
    width: fit-content;
    padding: 8px 4px;
    /* margin-bottom: 21px; */
    margin-top: 8px;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 9999;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(176, 255, 255, 0.25);
    text-align: center;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 0px;
}

/* .dropdown-item {
    display: block !important;
    color: white !important;
    padding: 38px 20px !important;
    text-decoration: none !important;
    font-size: 1.1em !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: all 0.2s !important;
}

.dropdown-item:hover {
    background: #B0FFFF !important;
    color: black !important;
    border-radius: 8px !important;
    margin: 0 8px !important;
    width: calc(100% - 16px) !important;
} */

/* Highlight when on Games page */
/* .dropdown:hover .dropdown-toggle,
.dropdown-toggle.active {
    color: #B0FFFF;
} */


/* ——— REUSABLE CONTENT BLOCK SYSTEM ——— */
.content-block {
    background: rgba(30, 30, 50, 0.25);
    border: 2px solid rgba(176, 255, 255, 0.3);
    border-radius: 16px;
    padding: 1.8em;
    margin: 2em auto;
    max-width: 900px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 2em;
    flex-wrap: wrap;
    color: white;
    text-align: left;
}

.content-block img.left-img {
    width: 280px;
    height: auto;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.content-block .text-content {
    flex: 1;
    min-width: 300px;
}

.content-block h3 {
    margin: 0 0 0.4em 0;
    font-size: 1.7em;
    color: #B0FFFF;
    text-align: left;
}

.content-block .pronunciation {
    font-size: 1.1em;
    color: #ccc;
    margin: 0.2em 0 1em 0;
    font-style: italic;
    text-align: left;
}

.content-block p {
    margin: 0.9em 0;
    line-height: 1.6;
    font-size: 1.05em;
}

.content-block p.informal {
    color: #B0FFFF;
    font-style: italic;
}

.content-block p.usage {
    margin-top: 1.5em;
    padding: 1em;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border-left: 4px solid #B0FFFF;
    font-family: 'Courier New', monospace;
    font-size: 1.1em;
}

/* Mobile: stack image on top */
@media (max-width: 680px) {
    .content-block {
        flex-direction: column;
        text-align: center;
        padding: 1.5em;
    }
    .content-block img.left-img {
        width: 220px;
    }
    .content-block h3 {
        text-align: center;
    }
}

.game-banner {
    text-align: center;
    margin: 2em 0 0em 0;
}
/* .game-banner img {
    height: 70px;
    width: auto;
    border-radius: 12px;
    box-shadow: 0 0px 0px rgba(176,255,255,0.3);
} */
.game-banner img {
    height: auto;                      /* ← allow natural height */
    width: auto;
    max-height: 80px;                  /* cap at your original max size */
    max-width: 100%;                   /* fit screen on mobile */
    border-radius: 12px;
    display: block;
    margin: 0 auto;                    /* perfect centering */
}
/* Center wide game banner on mobile only */
@media (max-width: 768px) {
    .game-banner {
        text-align: center;
    }

    .game-banner img {
        max-width: 100%;           /* prevents overflow on small screens */
        width: auto;               /* maintains aspect ratio */
        height: auto;              /* keeps your original height */
        display: inline-block;
    }
}

.guide-item {
    background: rgba(10,20,30,0.6);
    border: 0px solid rgba(176,255,255,0.3);
    border-radius: 16px;
    padding: .5em;
    margin: -.01em auto;
    max-width: 600px;
    display: flex;
    /* align-items: left !important; */
    align-items: center;
    gap: 1em;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    min-height: 50px;
    display: flex;
}

.guide-img {
    width: 100px;
    height: auto;
    border: 2px solid rgba(176,255,255,0.3);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.6);
    flex-shrink: 0;
}

.guide-text p {
    text-align: left !important;
    margin: 0;
    font-size: 1.0em;
    line-height: 1.6;
    color: #eee;
    align-items: left !important;
}

@media (max-width: 768px) {
    .guide-item {
        flex-direction: row;          /* ← side-by-side on mobile */
        align-items: center;          /* vertically center text next to image */
        padding: 1em;
        gap: 1em;                     /* space between image and text */
        text-align: left;             /* left-align text */
    }

    .guide-img {
        width: 80px;                  /* slightly smaller image on mobile */
        flex-shrink: 0;
    }

    .guide-text p {
        font-size: 0.95em;            /* slightly smaller text for fit */
        margin: 0;
    }
}

#game-content {
    margin-top: -40px !important;
}

.contact-block {
    background: rgba(20,30,50,0.45);
    border: 2px solid rgba(176,255,255,0.55);
    border-radius: 12px;
    padding: .01em;
    max-width: 600px;
    margin: .5em auto;
    text-align: center;
    font-size: 1.1em;
    color: #eee;
    box-shadow: 0 0 30px rgba(176,255,255,0.3);
    backdrop-filter: blur(12px);
}

.contact-block2 {
    background: rgba(2,3,5,0.45);
    border: 1px solid rgba(176,255,255,0.55);
    /* border-radius: 12px; */
    padding: .01em 1.5em;
    max-width: 420px;
    margin: .9em auto;
    text-align: left;
    font-size: 1.01em;
    color: #eee;
    /* box-shadow: 0 0 30px rgba(176,255,255,0.3); */
    backdrop-filter: blur(12px);
}

.email {
    color: #B0FFFF;
    font-weight: bold;
}

.copy-btn {
    background: rgba(176,255,255,0.2);
    color: white;
    border: 1px solid #B0FFFF;
    border-radius: 1px;
    padding: 1px 2px;
    margin-left: 10px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s;
}

.copy-btn:hover {
    background: #B0FFFF;
    color: black;
}

img {
    color-scheme: dark !important;
}

/* Home page scrolling banner */
.home-banner-section {
    width: 100%;
    overflow: hidden;
    background-size: cover;
    padding: 1px 0;
    position: relative;
}

.banner-track {
    display: flex;
    gap: 0px;                  /* Space between squares */
    /* animation: scroll-left 40s linear infinite; */
    animation: scroll-left 30s linear infinite;
    width: max-content;
}

.banner-item {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
}

.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;       /* Keeps aspect ratio, no distortion */
    background-image: url('../media/images/bannerSqBG.webp');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    /* border-radius: 12px;
    box-shadow: 0 0 20px rgba(176, 255, 255, 0.4); */
}

/* .banner-track:hover {
    animation-play-state: paused;
} */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 0px));  /* NEW: half the total width minus half gap */
    }
}

/* Responsive: smaller on mobile */
@media (max-width: 600px) {
    .banner-item {
        width: 150px;
        height: 150px;
    }
    /* .banner-track {
        gap: 20px;
    }
    .home-banner-section {
        padding: 20px 0;
    } */
}

/* Welcome text box on home page */
.welcome-text-box {
    max-width: 800px;
    margin: 3em auto 2em;
    padding: 1.8em 2em;
    background: rgba(20, 30, 50, 0.45);
    border: 2px solid rgba(176, 255, 255, 0.4);
    border-radius: 16px;
    box-shadow: 0 0 30px rgba(176, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 1.1em;
    line-height: 1.6;
    text-align: center;
}

@media (max-width: 600px) {
    .welcome-text-box {
        margin: 2em 1em;
        padding: 1.5em;
        font-size: 1.05em;
    }
}

/* News update block - image above text block */
.content-block3 {
    max-width: 700px;
    margin: .5em auto;
    text-align: left;                /* centers the image */
    justify-content: left;
}

.content-block3 img {
    width: 90%;
    max-width: 330px;                  /* keeps it at ~600px wide */
    max-height: 150px;
    object-fit: cover;
    border-radius: 1px;
    display: block;
    margin: 0 auto -.58em auto;
    justify-content: left;
}

.content-block3 .text {
    background: rgba(20,30,50,0.25);
    border: 2px solid rgba(176,255,255,0.55);
    border-radius: 12px;
    padding: 1.4em 2.4em;
    box-shadow: 0 0 30px rgba(176,255,255,0.3);
    backdrop-filter: blur(12px);
    color: #eee;
    font-size: 1.01em;
    text-align: left;

    /* ←←← ADD THESE TWO LINES */
    -webkit-mask-image: linear-gradient(to right, 
        transparent 0%,      /* start fading immediately on left */
        black 7%,           /* fully opaque starting at 15% from left */
        black 93%,           /* stay opaque until 85% from left */
        transparent 100%);   /* fade out completely on right */
    mask-image: linear-gradient(to right, 
        transparent 0%, 
        black 7%, 
        black 93%, 
        transparent 100%);
}
.content-block3 .text strong {
    display: block;
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 0.8em;
    color: white;
}

@media (max-width: 600px) {
    .content-block3 {
        margin: 2em 1em;
    }
    .content-block3 img {
        /* height: 160px; */
        border-radius: 12px;
    }
    .content-block3 .text {
        padding: 1.2em 1.4em;
    }
}

/* Floating animated stars - confined to header only */
.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;               /* above logo and nav */
    overflow: hidden;          /* THIS clips stars inside header */
}

.star {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Scroll-triggered directional slide-in */
.animate-on-first-load {
    opacity: 0;
    transform: translateX(-30px);  /* default fallback */
    transition: opacity .8s ease-out, transform .8s ease-out;
}

/* Direction classes */
.animate-on-first-load.from-left { transform: translateX(-40px); }
.animate-on-first-load.from-right { transform: translateX(40px); }
.animate-on-first-load.from-top { transform: translateY(-20px); }
.animate-on-first-load.from-bottom { transform: translateY(25px); }

/* Visible state */
.animate-on-first-load.visible {
    opacity: 1;
    transform: translateX(0) translateY(0) !important;
}

/* Game info section - 3 boxes under banner */
.game-info-section {
    display: flex;
    justify-content: center;
    align-items: stretch;
    max-width: 1080px;
    margin: .01em auto;
    padding: .1em;
    gap: 0;
    position: relative;
}

.game-info-box {
    flex: 1;
    padding: 1.1em;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* background: rgba(30, 30, 50, 0.25); */
    backdrop-filter: blur(8px);
}

.game-info-box.left {
    flex: 1;                          /* takes available space equally */
    text-align: left;
    border-radius: 16px 0 0 16px;
}

.game-info-box.middle {
    color: rgb(200, 255, 255);
    flex: 2;                          /* twice as wide as the others */
    text-align: center;
}

.game-info-box.right {
    flex: 1;                          /* same as left */
    border-radius: 0 16px 16px 0;
    position: relative;
}

.game-info-box p {
    margin: 0.6em 0;
    line-height: .3;
    font-size: 1.05em;
}

.game-info-box strong {
    color: #B0FFFF;
}

/* Glowing cyan vertical separators */
.game-info-section::before,
.game-info-section::after {
    content: '';
    position: absolute;
    top: 10%;
    bottom: 10%;
    width: 3px;
    background: #DDFFFF;
    /* box-shadow: 0 0 20px rgba(176, 255, 255, 0.8); */
    z-index: 10;
}
.game-info-section::before {
    left: 25%;
}
.game-info-section::after {
    left: 75%;
}

/* Press kit - full image clickable with centered "Press Kit" text overlay */
.presskit-container {
    position: relative;
    margin: 0 auto;
    display: inline-block; /* Keeps it centered nicely */
}

.presskit-full-link {
    display: block;
    position: relative;
    text-decoration: none;
    overflow: hidden;
    border-radius: 12px;
}

.presskit-img {
    width: 60%;
    max-width: 300px;
    border-radius: 12px;
    transition: all 0.4s ease;
    display: block;
    margin: 0 auto;
}

/* "Press Kit" text overlay - centered on the image */
.presskit-overlay-text {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #B0FFFF;
    font-size: 1.1em;
    font-weight: bold;
    text-shadow: 
        0 0 10px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(176, 255, 255, 0.8);
    pointer-events: none; /* Allows clicks to pass through to the link */
    opacity: 0.9;
    white-space: nowrap;
}

/* Hover effect: brighten image + stronger glow */
.presskit-full-link:hover .presskit-img {
    filter: brightness(1.3) saturate(1.5);
    transform: scale(1.05);
}

/* Optional: make text pulse/glow more on hover */
.presskit-full-link:hover .presskit-overlay-text {
    text-shadow: 
        0 0 15px rgba(0, 0, 0, 0.9),
        0 0 30px rgba(176, 255, 255, 1);
    opacity: 1;
}

/* Mobile: stack boxes vertically */
@media (max-width: 768px) {
    .game-info-section {
        flex-direction: column;
    }
    .game-info-box {
        border-radius: 16px !important;
        margin-bottom: 1em;
    }
    .game-info-section::before,
    .game-info-section::after {
        display: none;
    }
}

/* Knight Rider KITT-style scanner using gradient.webp - back and forth sweep */
.kitt-separator-container {
    max-width: 1200px;
    margin: 3em auto 2em;
    padding: 0 1em;
}

.kitt-separator {
    position: relative;
    height: 3px;
    background: rgba(176, 255, 255, 0.2);  /* Faint base line */
    border-radius: 5px;
    overflow: hidden;
}

.kitt-scanner-image {
    position: absolute;
    top: 0;
    left: -100%;                           /* Start off-screen left */
    width: 100%;                           /* 3x container: black + gradient + black */
    height: 100%;
    background-image: url('/static/media/images/gradient.webp');
    background-size: 100%;          /* Your gradient takes middle 1/3, black on sides */
    background-repeat: repeat-x;           /* Repeats the pattern seamlessly */
    background-position: 0 center;
    animation: kitt-scan-back-forth 5s linear infinite;
    color-scheme: dark !important;
    /* color: cyan !important; */
    filter: drop-shadow(0 0 20px white) 
            drop-shadow(0 0 40px #B0FFFF) 
            drop-shadow(0 0 60px white);
}

@keyframes kitt-scan-back-forth {
    0%   { left: -80%; }                  /* Off left - black */
    50%  { left: 80%; }                   /* Off right - black */
    100% { left: -80%; }                  /* Back to start */
}

/* Hover glow pulse for main content boxes */
.hover-glow {
    transition: filter 0.6s ease, transform 0.3s ease;
}

.hover-glow:hover {
    filter: brightness(1.3) saturate(1.3);
    /* transform: scale(1.02); */
    z-index: 10;
}

/* Side neon background images - perfectly timed with KITT scanner */
body {
    position: relative;
}

/* Base styles */
body::before,
body::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 300px;
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
    filter: drop-shadow(0 0 30px rgba(176, 255, 255, 0.7));
    animation: side-pulse 5s linear infinite;
}

/* Fixed distance from edges */
body::before {
    left: 80px;
}

body::after {
    right: 80px;
}

/* Page-specific images */
body.home::before       { background-image: url('../media/images/sideBG1.webp');background-position: center 420px; }
body.home::after        { background-image: url('../media/images/sideBG2.webp');background-position: center 420px; }

body.games::before      { background-image: url('../media/images/sideBG3.webp');background-position: center 450px; }
body.games::after       { background-image: url('../media/images/sideBG4.webp');background-position: center 450px; }

body.contact::before    { background-image: url('../media/images/sideBG5.webp'); background-position: center 300px;}
body.contact::after     { background-image: url('../media/images/sideBG6.webp'); background-position: center 300px;}

/* LEFT side: brightest when scanner is fully left (0% and 100%) */
body::before {
    animation-timing-function: ease-in-out;
    animation-name: side-pulse-left;
}

@keyframes side-pulse-left {
    0%   { opacity: var(--side-alpha-high, 0.95); }
    25%  { opacity: var(--side-alpha-low, 0.15); }
    75%  { opacity: var(--side-alpha-low, 0.15); }
    100% { opacity: var(--side-alpha-high, 0.95); }
}

/* RIGHT side: brightest when scanner is fully right (50%) */
body::after {
    animation-timing-function: ease-in-out;
    animation-name: side-pulse-right;
}

@keyframes side-pulse-right {
    0%   { opacity: var(--side-alpha-low, 0.35); }
    25%  { opacity: var(--side-alpha-low, 0.35); }
    50%  { opacity: var(--side-alpha-high, 0.95); }
    75%  { opacity: var(--side-alpha-low, 0.35); }
    100% { opacity: var(--side-alpha-low, 0.35); }
}

/* Control values */
:root {
    --side-alpha-high: 0.45;
    --side-alpha-low:  0.15;
}

/* Hide on small screens */
@media (max-width: 1200px) {
    body::before,
    body::after {
        display: none;
    }
}

.bottom-link {
    color: #88CCCC;
    text-decoration: none;
    margin: 0 18px;
    font-weight: normal;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.bottom-link:hover {
    color: #FFFFFF;
    text-shadow: 0 0 15px rgba(176, 255, 255, 0.8);
}