/* ===================== BACKGROUND LAYERING FIX ===================== */
.mv-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

#mv-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ===================== PAGE LAYOUT ===================== */
body {
    margin: 0;
    padding-top: 170px;
    font-family: 'Lucida Sans', Geneva, sans-serif;
    color: white;
    background-color: #0f0f12;
    position: relative;
    z-index: 1;
}

/* Remove underlines from all links across the site */
a, a:link, a:visited, a:hover, a:active {
    text-decoration: none !important;
}

/* Make Back buttons more prominent and larger site-wide */
.back-btn {
    display: inline-block !important;
    background: #1e90ff !important;
    color: #fff !important;
    padding: 12px 22px !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 1.05em !important;
    box-shadow: 0 8px 30px rgba(30,144,255,0.18) !important;
    transition: transform .12s, box-shadow .12s !important;
}
.back-btn:hover { transform: translateY(-2px) !important; box-shadow: 0 12px 40px rgba(30,144,255,0.22) !important; }

.topBar {
    z-index: 1000;
}

/* ===================== HERO ===================== */
.main-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    gap: 18px;
    min-height: calc(60vh - 85px);
}

.main-content h1,
.main-content p {
    margin: 0;
}

.main-content h1 {
    font-size: 64px;
    line-height: 1.02;
    font-weight: 700;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.main-content p {
    font-size: 20px;
    color: rgba(255,255,255,0.9);
    max-width: 900px;
}

/* Buttons */
.button-container {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
    z-index: 11;
}

.mainGames,
.aboutUs {
    font-size: 18px;
    font-weight: 700;
    color: white;
    border-radius: 8px;
    padding: 10px 18px;
    border: none;
    cursor: pointer;
    transition: transform .12s;
}

.mainGames { background: rgb(107, 0, 247); }
.aboutUs   { background: rgb(46, 45, 45); }

/* Guides button styling (hero) */
.guidesBtn {
    font-size: 18px;
    font-weight: 700;
    color: white;
    border-radius: 8px;
    padding: 10px 18px;
    border: none;
    cursor: pointer;
    transition: transform .12s;
    background: rgb(22, 135, 255);
    /* Make Guides sit on its own row and centered on desktop */
    flex-basis: 100%;
    max-width: 240px;
    margin: 0 auto;
}

    .guidesLink {
        flex-basis: 100%;
        max-width: 240px;
        margin: 0 auto;
        display: flex;
        justify-content: center;
    }

    /* Desktop ordering: place Guides (the anchor) below both buttons (centered) */
    .mainGames { order: 1; }
    .aboutUs   { order: 2; }
    .guidesLink { order: 3; }

.mainGames:hover,
.aboutUs:hover {
    transform: translateY(-3px);
}

.gap {
    height: 220px;
}

/* ===================== GAMES SECTION ===================== */
.games-section {
    position: relative;
    z-index: 10;
    padding: 80px 20px;
    background-color: rgba(10,10,12,0.0);
    text-align: center;
}

.section-title {
    font-size: 44px;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.section-subtitle {
    margin: 0 0 34px 0;
    color: rgba(255,255,255,0.78);
    font-size: 16px;
}

.games-container {
    display: flex;
    gap: 34px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.game-card {
    width: 360px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.25));
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 26px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.04);
    transition: transform .16s, box-shadow .16s;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 14px 40px rgba(0,0,0,0.65);
}

.game-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: rgb(35,35,45);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.game-body {
    padding: 14px 18px 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.game-card-link {
    color: white;
    text-decoration: none;
}

.game-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    line-height: 1.45;
}

/* ===================== ABOUT SECTION — MATCH 'OUR GAMES' ===================== */
.aboutus-section {
    position: relative;          /* ensures it's above background */
    z-index: 10;                 /* same stacking as other visible sections */
    padding: 80px 20px;
    text-align: center;
    display: block;
}

.aboutus-section h4 {
    font-size: 44px;             /* same as section-title */
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.aboutus-section p.aboutus {
    font-size: 16px;             /* same as section-subtitle */
    color: rgba(255,255,255,0.78);
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
}


/* ===================== INFO BOXES ===================== */
.info-boxes {
    display: flex;
    justify-content: center;
    gap: 34px;                 /* space between boxes */
    flex-wrap: wrap;           /* stack on smaller screens */
    padding: 40px 20px;
    z-index: 10;
    position: relative;
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
}



.info-box {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.25));
    border-radius: 14px;
    padding: 24px;
    flex: 1 1 360px;           /* responsive width, min 360px */
    max-width: 500px;
    box-shadow: 0 6px 26px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.04);
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: white;
    transition: transform .16s ease, box-shadow .16s ease;
}

.info-box:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 14px 40px rgba(0,0,0,0.65);
}

.info-box h5 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: white;
}

.info-box p {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255,255,255,0.85);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
    .info-boxes {
        gap: 20px;
    }

    .info-box {
        flex: 1 1 100%;
        max-width: 100%;
    }
}


/* ===================== FOOTER ===================== */
footer {
    width: 100%;
    background: linear-gradient(to top, #09060fc9, #000000);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    z-index: 10;
}

.footer-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.footer-column h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.footer-column p {
    color: #d0d0d0;
    line-height: 1.6;
}

footer .copyright {
    font-size: 14px;
    color: #aaaaaa;
    margin-top: 10px;
}

.dmca-badge img {
    margin-top: 12px;
    max-width: 100px;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
    .main-content h1 { font-size: 48px; }
    .main-content p  { font-size: 18px; }
    .game-card { width: 320px; }
    .game-image { height: 180px; }
}

@media (max-width: 768px) {
    body { padding-top: 120px; }
    .main-content { padding: 40px 16px; }
    .main-content h1 { font-size: 34px; }
    .main-content p  { font-size: 16px; }

    .button-container {
        flex-direction: column;
        gap: 12px;
    }

    /* Mobile ordering: place Guides below About Us (stack order)
       HTML order is Our Games, About Us, Guides; ensure that order on mobile */
    .mainGames { order: 1; }
    .aboutUs   { order: 2; }
    .guidesBtn { order: 3; }

    .games-container { gap: 20px; }

    .game-image { height: 150px; }

    .section-title { font-size: 32px; }
    .section-subtitle { font-size: 14px; }

    h4 { font-size: 28px; }
    .aboutus { font-size: 15px; }
}

@media (max-width: 600px) {
    .footer-wrapper {
        gap: 20px;
    }

    .dmca-badge img {
        max-width: 80px;
    }
}


.game-image {
    width: 100%;
    height: 250px; /* adjust size */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.game-card {
    width: 300px; /* adjust size */
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.25));
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 26px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.04);
    transition: transform .16s, box-shadow .16s;
    display: flex;
    flex-direction: column;
}