/* Background video styling for all pages */
.background-video,
.home-background-video,
.profile-background-video,
.frequency-fountain-background-video,
.champion-background-video,
.protectors-background-video,
.premium-videos-background-video,
.how-to-join-background-video,
.mission-background-video,
.how-to-mint-background-video,
.events-background-video,
.live-events-background-video,
.login-background-video {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: -10 !important;
    object-fit: cover !important;
}

/* Background overlay (40% opacity default, 50% for specific pages) */
html body::before {
    content: '' !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100vw !important;
    min-height: 100vh !important;
    height: -webkit-fill-available !important;
    background: rgba(0, 0, 0, 0.4) !important;
    z-index: -5 !important;
    pointer-events: none !important;
    display: block !important;
}

/* 50% opacity for specific pages */
html body #home-page::before,
html body #profile-page::before,
html body #frequency-fountain-page::before,
html body #champion-page::before,
html body #protectors-page::before,
html body #premium-videos-page::before,
html body #how-to-join-page::before,
html body #mission-page::before,
html body #how-to-mint-page::before,
html body #events-page::before,
html body #live-events-page::before,
html body #login-page::before,
html body.home::before,
html body.page-id-home::before,
html body.page-id-profile::before,
html body.page-id-frequency-fountain::before,
html body.page-id-champion::before,
html body.page-id-protectors::before,
html body.page-id-premium-videos::before,
html body.page-id-how-to-join::before,
html body.page-id-mission::before,
html body.page-id-how-to-mint::before,
html body.page-id-events::before,
html body.page-id-live-events::before,
html body.page-id-login::before,
html body.page-template-mission::before,
html body.page-template-how-to-mint::before,
html body.page-template-frequency-fountain::before {
    background: rgba(0, 0, 0, 0.5) !important;
}

/* Shared page styles */
.page-content,
.mission-page { /* Include .mission-page for The Mission page */
    position: relative !important;
    z-index: 10 !important;
    text-align: center !important;
    padding: 0 20px 80px !important;
    margin: 0 auto !important;
    min-height: 100vh !important;
    width: 100% !important;
    max-width: none !important;
    overflow: visible !important;
    transform: none !important;
    box-sizing: border-box !important;
}

/* Mission page */
.mission-h1 { font-size: 4.32em; text-shadow: 0 0 0.5px black; margin-bottom: 0; }
.mission-h2 { font-size: 2.5em; color: white !important; margin-top: -16px; }
.mission-h3 { font-size: 1.5em; font-weight: bold; }
.mission-h4 { font-family: 'Montserrat', sans-serif !important; color: white !important; font-size: 1.2em; line-height: 1.5; font-weight: normal; }
.mission-h5 { font-family: 'Montserrat', sans-serif !important; color: white !important; font-size: 1em; font-weight: bold; }

.mission-page { padding: 0 20px 80px; margin: 0 auto; min-height: 100vh; }
.mission-hero { margin-bottom: 60px; }
.mission-carousel .carousel-placeholder { background: #333; padding: 50px; margin: 20px 0; color: #d6ba66; }
.mission-intro { display: flex; justify-content: space-between; align-items: center; margin: 60px 0; }
.mission-intro .intro-text, .mission-intro .intro-image { width: 50%; }
.mission-intro .intro-image { height: auto; max-width: 100%; }

.mission-nft, .mission-artistry, .mission-perks-intro, .mission-gaming, .mission-champions, .mission-tokenised, .mission-guardians { margin: 60px 0; }
.mission-perks-grid { display: flex; justify-content: space-between; margin: 60px 0; gap: 20px; }
.perks-column { flex: 1; min-width: 0; box-sizing: border-box; }
.perk-item { margin-bottom: 20px; display: flex; flex-direction: column; align-items: center; width: 100%; }
.perk-item .perk-media { background: #333; width: 100%; height: 200px; margin-bottom: 10px; color: #d6ba66; display: flex; align-items: center; justify-content: center; object-fit: cover; }
.perk-link { text-decoration: underline !important; color: #d6ba66 !important; font-family: 'Lora', serif !important; font-weight: bold !important; }
.perk-link:hover { color: #e0c77a !important; }

.mission-gaming-grid { display: flex; justify-content: space-between; margin: 60px 0; }
.game-item { width: 32%; }
.game-item .game-image { background: #333; height: 150px; margin-bottom: 10px; color: #d6ba66; display: flex; align-items: center; justify-content: center; }

.mission-guardians .mission-h4 { margin-bottom: 20px; }
.mission-guardians .guardians-question { font-size: 1.8em; margin: 20px 0; color: #d6ba66 !important; font-weight: normal !important; }
.mission-spacer { height: 40px; }

.whitepaper-button { text-align: center; margin: 60px 0; }
.whitepaper-btn { display: inline-block; background-color: black !important; color: #d6ba66 !important; border: 2px solid #d6ba66 !important; padding: 15px 40px; text-decoration: none !important; border-radius: 75px !important; font-family: 'Lora', serif !important; font-size: 1.8em; font-weight: normal; }
.whitepaper-btn:hover { background-color: #1a1a1a !important; color: #e0c77a !important; border-color: #e0c77a !important; }

/* Minting page */
.minting { text-align: center; padding: 20px; max-width: 1200px; margin: 0 auto 40px; }
.minting h2, .minting p, .minting .wide-image, .minting a.btn { margin: 20px auto; display: block; }
.minting .wide-image { width: 100%; max-width: 800px; background: #333; height: 200px; color: #d6ba66; display: flex; align-items: center; justify-content: center; }
.minting-hero { margin: 100px auto 80px; max-width: 1200px; }
.minting-step { margin-bottom: 80px; }
.minting-cta { text-align: center; margin-bottom: 60px; }

.step-content { display: flex; justify-content: center; align-items: center; gap: 10px; max-width: 1200px; margin: 0 auto; }
.step-text, .step-image { flex: 0 0 50%; padding: 20px; text-align: center; box-sizing: border-box; }
.step-images { display: flex; justify-content: center; gap: 20px; max-width: 1200px; margin: 0 auto; }

.step-2 .step-images { flex-wrap: nowrap; }
.step-2 .step-images img { flex: 0 0 calc(50% - 10px); max-width: 600px; }

.large-image-placeholder { max-width: 600px; max-height: 350px; width: 100%; height: auto; display: block; margin: 10px auto; }
.medium-image-placeholder { max-width: 500px; max-height: 350px; width: 100%; height: auto; display: block; margin: 10px auto; }
.tall-image-placeholder { max-width: 350px; max-height: 500px; width: 100%; height: auto; display: block; margin: 10px auto; }
.small-wide-image-placeholder { max-width: 500px; max-height: 250px; width: 100%; height: auto; display: block; margin: 10px auto; }

.step-1 .step-image, .step-3 .step-image, .step-4 .step-image, .step-6 .step-image { display: flex; justify-content: center; align-items: center; padding: 10px; }
.step-1 .step-content { flex-direction: row; }
.step-2 .step-text { width: 100%; }
.step-2 .step-images { margin-top: 20px; }
.step-3 .step-content, .step-6 .step-content { flex-direction: row-reverse; }
.step-4 .step-content { flex-direction: row; }
.step-4 .step-content img.tall-image-placeholder { max-height: 700px; }
.step-5 .step-content { flex-direction: column; }
.step-images img { flex: 1; max-width: 600px; margin: 10px 0; }

.minting-final-images .final-images-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: nowrap;
}
.final-left { flex: 0 0 50%; display: flex; justify-content: center; align-items: center; }
.final-left img.tall-image-placeholder { max-height: 700px; }
.final-right { flex: 0 0 50%; display: flex; flex-direction: column; gap: 20px; justify-content: center; align-items: center; }
.final-right img { max-width: 500px; }

/* Champion page */
div.champion-title { font-size: 2.2em; font-weight: 500 !important; text-align: center; line-height: 1.2; margin: 40px 0; }
.champions { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; margin: 40px 0; }
.champions ul { list-style: none; padding: 0; margin: 0; flex: 1; min-width: 300px; }
.champions li { font-weight: bold !important; font-size: 1em; margin-bottom: 10px; }

#champion-page .rhythm-game {
    position: relative;
    z-index: 15;
    margin: 20px auto;
    max-width: 600px;
    width: 100%;
}
#champion-page .rhythm-game-iframe {
    width: 100%;
    height: 600px;
    border: none;
    display: block !important;
    position: relative;
    z-index: 15;
}

/* How to Join page */
#how-to-join-page h10 {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 48px;
    font-weight: 500;
    color: #d6ba66 !important;
    -webkit-text-stroke: 0.5px black;
    text-shadow: none;
    margin-bottom: 20px;
    line-height: 1.2;
}
#how-to-join-page h11 {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 32px;
    font-weight: 500;
    color: #d6ba66 !important;
    margin: 40px 0 20px;
}
#how-to-join-page h12 {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 24px;
    font-weight: 600;
    color: white !important;
    margin-bottom: 40px;
    line-height: 1.5;
}

/* Frequency Fountain page */
H21 { font-size: 4.32em; color: white !important; font-weight: bold !important; margin: 20px 0; }
H22 { font-size: 3.5em; font-weight: 500 !important; margin: 20px 0; }
H23 { font-size: 2em; font-weight: 500 !important; margin: 30px 0 10px; }
H23 a { color: #d6ba66 !important; text-decoration: underline !important; }
H23 a:hover { color: #e0c77a !important; }
H24 { font-family: 'Montserrat', sans-serif !important; font-size: 1.44em; color: white !important; font-weight: bold !important; line-height: 1.6; margin: 15px 0; }
H25 { font-family: 'Montserrat', sans-serif !important; font-size: 1.44em; color: white !important; font-weight: normal !important; line-height: 1.6; margin: 15px 0; }
HL { font-family: 'Montserrat', sans-serif !important; font-size: 1.2em; color: #d6ba66 !important; text-decoration: underline !important; display: block; margin: 10px 0; }
HL:hover { color: #e0c77a !important; }

.live-xft-chart {
    position: relative;
    z-index: 15;
    margin: 40px auto;
    max-width: 1200px;
    width: 100%;
}
.live-xft-chart .btn.chart-btn { margin-top: 20px !important; }

/* How to Mint page */
h16 { font-size: 48px; margin-bottom: 20px; text-align: center; }
h17 { font-size: 32px; font-weight: 500; margin-bottom: 15px; text-align: center; }
h18 { font-size: 16px; color: white; font-weight: bold; font-family: 'Montserrat', sans-serif; margin-bottom: 10px; line-height: 1.5; }
h19 { font-size: 16px; font-weight: bold; font-family: 'Montserrat', sans-serif; margin-bottom: 10px; }

#how-to-mint-page h16 { font-size: 62.4px; }
#how-to-mint-page h17 { font-size: 41.6px; }
#how-to-mint-page h18 { font-size: 20.8px; }
#how-to-mint-page h19 { font-size: 20.8px; }
#how-to-mint-page p { font-size: 20.8px; }

#how-to-mint-xmart h16 { font-size: 69px; }
#how-to-mint-xmart h17 { font-size: 46px; }
#how-to-mint-xmart h18 { font-size: 23px; }
#how-to-mint-xmart h19 { font-size: 18.4px; }
#how-to-mint-xmart .minting-hero .btn { font-size: 1.8em !important; padding: 15px 30px !important; border-radius: 75px !important; }

/* Events and Live Events pages */
#events-page, #live-events-page {
    padding: 0 20px 80px;
    margin: 0 auto;
    min-height: 100vh;
    width: 100% !important;
    max-width: none !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

/* Login page */
#login-page {
    padding: 0 20px 80px;
    margin: 0 auto;
    min-height: 100vh;
    width: 100% !important;
    max-width: none !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}