* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: #121212;
    color: #e0e0e0;
}

.text-style {
    color: rgb(255, 255, 255);
    font-size: clamp(0.3rem, calc(0.3vw + 0.8rem), 2rem);
    text-shadow: 0.1rem 0.1rem 0.5rem #000;
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3 {
    margin-bottom: 1rem;
    font-weight: 700;
    color: rgb(255, 255, 255);
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #b0b0b0;
}

/* ===== navigation ===== */
#navigation {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    white-space: nowrap;
}

.logo img {
    width: 40px;
    height: 32px;
    vertical-align: middle;
    display: inline-block;
}

.nav-links {
    display: flex;
    gap: 2rem;
    transition: all 0.3s ease;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #f0a500;
}

.nav-item {
    position: relative;
}

.nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    align-items: center;
}

.nav-item>a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
}

.nav-item>a:hover {
    color: #f0a500;
}

.nav-item:hover .submenu {
    display: block;
}

/* ===== hamburger ===== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
}

/* hamburger animation */
.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== overlay ===== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 9;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== landing ===== */
#landing {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

#landing-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#landing-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 5;
}

#landing-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

#landing-text p {
    font-size: 1.5rem;
    color: #e0d86d;
}

/* ====== game cards for game selection page ========== */
.games-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 80px auto 20px auto;
}

.game-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background-color: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    border: 2px solid transparent;
}

.game-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.game-card h3 {
    margin: 10px 0;
    padding: 0 10px 15px;
    font-size: 1.2rem;
    line-height: 1.3;
}

.game-card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.7);
    border: 2px solid #ff9800;
    cursor: pointer;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #121212;
}

/* ===== game page styling ===== */
.btn-primary {
    display: inline-block;
    background-color: rgb(211, 211, 211);
    color: #121212;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background-color: rgb(244, 244, 244);
}

/* muted / desaturated image overlay */
.muted-image {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.muted-image img {
    display: block;
    width: 100%;
    filter: brightness(0.8) contrast(0.9) saturate(0.85);
}

.muted-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(18, 18, 18, 0.25);
    mix-blend-mode: multiply;
    pointer-events: none;
}

/* ===== hero ===== */
.hero {
    background: url('hero-bg.jpg') center/cover no-repeat;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* ===== game title image ====== */
.hero-content .game-title {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1rem;
}

.hero-content .btn-primary {
    margin-top: 5vh;
}

/* ===== cards Section ===== */
.cards {
    padding: 4rem 2rem;
    background-color: #1e1e1e;
    text-align: center;
}

.cards h2 {
    font-size: 2.5rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background-color: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.card img {
    width: 100%;
    height: auto;
}

.card h3 {
    padding: 1rem 1rem 0 1rem;
    color: #ffffff;
    font-size: 2rem;
}

.card p {
    padding: 0 1rem 1rem 1rem;
    color: #b0b0b0;
    font-size: 1.5rem;
}

/* ===== highlight Section ===== */
.highlight {
    padding: 4rem 2rem;
    background-color: #181818;
    text-align: center;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #181818;
    border-radius: 8px;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: brightness(0.9) contrast(0.95);
}

.highlight-video {
    width: 100%;

    height: auto;
    display: block;
    margin: 0 auto 2rem;
    border-radius: 8px;
}


/* ===== features / stats ===== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
    background-color: #1e1e1e;
    text-align: center;
}

.features .feature h3 {
    font-size: 2.5rem;
    color: #66ae23;
    margin-bottom: 0.5rem;
}

.features .feature p {
    color: #b0b0b0;
    font-size: 1.5rem;
}

/* ===== cta ===== */
.cta {
    text-align: center;
    padding: 3rem 2rem 1rem 2rem;
    /* top, right, bottom, left */
    background-color: #111;
    color: #fff;
}

.cta h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.cta p {
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.platforms {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.platform-icon {
    max-height: 60px;
    width: auto;
    display: block;
}

/* disclaimer */
.disclaimer-text {
    text-align: center;
    padding: 0.5rem 2rem 1rem 2rem;
    /* top, right, bottom, left */
    color: #fff;
    font-size: 0.9rem;
    background-color: #111;
}

/* ===== hover =========== */
.muted-image:hover img {
    filter: brightness(1) contrast(1) saturate(1);
}

.muted-image:hover::after {
    background: rgba(18, 18, 18, 0);
}

/* ====== disclaimer text ======= */
.disclaimer-text {
    text-align: center;
    font-size: 0.85rem;
    color: #aaa;
    padding: 20px;
    margin-top: 30px;
    border-top: 1px solid #333;
}

/* ===== about page ======= */
.about-module {
    max-width: 1200px;
    margin: 100px auto 40px;
    padding: 20px;
    background-color: #121212;
    color: #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* header */
.about-module .header {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 10px;
}

.about-module .header img.imageFit {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(65%);
}

.about-module .header-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* slideshow */
.about-module .slideshow-container {
    position: relative;
    margin: 30px auto;
    max-width: 100%;
    overflow: hidden;
    border-radius: 10px;
}

.about-module .slideshowSlides img {
    width: 100%;
    border-radius: 10px;
}

.about-module .numbertext {
    color: #fff;
    font-size: 14px;
    padding: 8px 12px;
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
}

.about-module .fade {
    animation: fadeEffect 1.5s;
}

@keyframes fadeEffect {
    from {
        opacity: 0.4;
    }

    to {
        opacity: 1;
    }
}

/* about text */
.about-module .about-description {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #ff6b6b;
    border-radius: 8px;
}

.about-module .about-description h5 {
    font-weight: normal;
    font-size: 1.1rem;
    margin: 10px 0;
}

.about-module .about-description p {
    font-style: italic;
    font-size: 1rem;
    text-align: center;
}

.about-module .about-description em {
    display: block;
    text-align: right;
    color: #ff6b6b;
    margin-top: 10px;
}

@keyframes fadeEffect {
    from {
        opacity: 0.4;
    }

    to {
        opacity: 1;
    }
}

.about-module .about-description {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #ff6b6b;
    border-radius: 8px;
}

.about-module .about-description h5 {
    font-weight: normal;
    font-size: 1.1rem;
    margin: 10px 0;
}

.about-module .about-description p {
    font-style: italic;
    font-size: 1rem;
    text-align: center;
}

.about-module .about-description em {
    display: block;
    text-align: right;
    color: #ff6b6b;
    margin-top: 10px;
}


/* ===== responsive ===== */
@media (max-width: 880px) {
    #landing {
        position: relative;
        width: 100%;
        height: auto;
        overflow: hidden;
        background: #000;
        margin-top: 80px;
    }

    /* hide video on mobile */
    #landing-video {
        display: none;
    }

    /* show static image */
    #landing::before {
        content: "";
        display: block;
        width: 100%;
        aspect-ratio: 16 / 9;
        background: url("../images/index/landingPageVideoThumbnail.jpg") center/contain no-repeat;
        background-color: #000;
    }

    #landing-text {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        width: 90%;
        color: white;
        text-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
        z-index: 2;
        animation: fadeSlideUp 1.2s ease-out forwards;
    }

    #landing-text h1 {
        font-size: clamp(1.5rem, 4vw, 2.2rem);
        margin-bottom: 0.5rem;
    }

    #landing-text p {
        font-size: clamp(0.9rem, 3vw, 1.2rem);
    }

    /* ===== landing text animation ===== */
    @keyframes fadeSlideUp {
        0% {
            opacity: 0;
            transform: translate(-50%, -40%);
        }

        100% {
            opacity: 1;
            transform: translate(-50%, -50%);
        }
    }

    /* ===== navigation ===== */
    .hamburger {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        padding: 0;
        transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
        z-index: 15;
    }

    .nav-links.active {
        max-height: 600px;
        opacity: 1;
        padding: 1rem 0;
    }

    /* mobile submenu hidden initially */
    .submenu {
        position: static;
        display: block;
        width: 100%;
        text-align: center;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        padding: 0;
    }

    .submenu-active {
        max-height: 500px;
        opacity: 1;
    }

    /* indent submenu items */
    .submenu li a {
        padding-left: 2rem;
        width: 100%;
    }

    /* disable desktop hover on mobile */
    .nav-item:hover .submenu {
        display: none;
    }

    /* disable hover opening */
    .nav-item:hover .submenu {
        display: block;
    }

    /* ===== game page styling ===== */
    .hero-content h1 {
        font-size: 2rem;
    }

    /* ===== features ===== */
    .features {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        justify-content: center;
        gap: 1.5rem;
        padding: 2rem;
    }

    /* ====== game menu ======= */
    .games-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 10px;
        gap: 15px;
    }

    .game-card {
        width: 90%;
        max-width: 300px;
    }

    .game-card h3 {
        font-size: 1.1rem;
        padding: 0 10px 12px;
    }

    /* ==== about page ==== */
    .about-module .header {
        height: 200px;
    }

    .about-module .header-title {
        font-size: 1.5rem;
    }

    .about-module .about-description {
        font-size: 0.95rem;
        padding: 15px;
    }
}