html, body {
 padding: 0;
 margin: 0;
 height: 100dvh;
 width: 100%;
 overflow-x: hidden;
 font-size: 16px;
 max-width: 100%;
 overflow: hidden;
 user-select: none;
 font-family: 'Manjari', system-ui, sans-serif;
}

#page {
  will-change: transform;
  transform: translate3d(0, 0, 0);
}


/* PAGE 1 */
#page1 {
    
}

.chevron-down {
    width: 32px;
    padding: 2em;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    transition: padding 0.3s ease, margin 0.3s ease;
}

.chevron-down:hover {
    padding-top: 3em;
    margin-bottom: -1em;
}

#privacybadger {
    position: absolute;
    left: 0;
    bottom: 0;
    margin: 10px;
    opacity: 0.5;
    height: 60px;
    transition: opacity 1s ease;
}

#privacybadger:hover {
    opacity: 0.9;
}

.page {
    position: fixed;
    width: 100%;
    margin: 0 auto;
    height: 100dvh;
    display: flex;
    justify-content: center;
    place-items: center;
    text-align: center;
}

.content {
    display: block;
    padding: 0 20px 20px 20px;
}

.content-container {
}


.logo {
    height: 10em;
    pointer-events: none;
    display: block;
    margin: 0 auto;
}

.mobile-logo {
    height: 15em;
    pointer-events: none;
    display: none;
    margin: 0 auto;
}

body {
    background: #57656D;
    font-family: "Manjari", sans-serif;
}

.desc {
    margin-top: 2em;
    font-size: 32px;
    color: #C3D2D9;
    text-shadow: 0px 2px 10px rgba(255,255,255,0.25);
    width: 100%;
    min-width: 200px;
}

/* PAGE 2 */

#page2 {
    max-width: 900px;
    overflow-y: auto;
}

.txt {
    font-size: 26px;
    margin: 0;
    margin-top: 0.5em;
    padding: 0;
    color: #C3D2D9;
    text-shadow: 0px 2px 10px rgba(255,255,255,0.25);
    text-align:justify;
}

.txt-header {
    font-size: 28px;
    color: #C3D2D9;
    margin-top: 1.3em;
    margin-bottom: -0.2em; /* counter-act .txt's top margin */
    text-shadow: 0px 2px 10px rgba(255,255,255,0.5);
    font-weight: 900;
    text-align: left;
}

.chevron-up {
    width: 32px;
    padding: 2em;
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(-6em);
    transition: padding 0.3s ease, margin 0.3s ease;
}

.chevron-up:hover {
    padding-bottom: 3em;
    margin-top: -1em;
}


/* PAGES */

.page {
    position: fixed;
    inset: 0;
    transform: translateY(100%);
    transition: transform 0.8s ease-in-out;
}

.page.active {
    transform: translateY(0);
}

.page.exit-up {
    transform: translateY(-100%);
}

.page.exit-down {
    transform: translateY(100%);
}

@media (max-width: 1080px) {
    #privacybadger.hidable {
        opacity: 0;
        pointer-events: none;
    }
}



@media (max-width: 710px) {
}

@media (max-width: 650px) {
    .logo {
        display: none;
    }
    .mobile-logo {
        display: block;
    }
    .desc {
        font-size: 26px;
    }
    .txt {
        font-size: 21px;
    }
    #privacybadger {
        height: 40px;
    }

    #page2 {
        display: block;
    }
    #page2 .content {
        padding-top: 4em;
    }
    .chevron-up {
        transform: translateX(-50%) translateY(-0em);
    }
}

@media (max-width: 600px) {
    .desc {
        font-size: 24px;
    }
    .txt {
        font-size: 20px;
    }
}

@media (max-width: 500px) {
    .desc {
        font-size: 22px;
    }
    .txt {
        font-size: 19px;
    }
    #privacybadger {
        height: 35px;
    }
}

@media (max-width: 450px) {
    .desc {
        font-size: 20px;
    }
    .txt {
        font-size: 18px;
	text-align: left;
	line-height: 26px;
    }
    #privacybadger {
        height: 32px;
    }
}

/* ---------------------------------------------------------- */

.l_na {
    opacity: 0.25;
    pointer-events: none;
}

body:after, body:before {
 content: '';
 display: block;
 position: fixed;
 z-index: -1;
 top: 0;
 width: 100vw;
 height: 100vh;
 width: 100vmax;
 height: 100vmax;
 background: rgba(0, 0, 0, 0.05);
 animation: l_background 240s linear infinite;
}

body:after { left: 15vw; }
body:before {
 right: 15vw;
 animation-delay: -60s;
 animation-direction: reverse;
}

#l_root {
 max-width: 100%;
 overflow-x: hidden;
}

#l_fixed {
 position: fixed;
 width: 100%;
 height: 100%;
 z-index: 2;
 background-color: var(--l-color-7);
 transition: 4s;
 filter: grayscale(100%);
 animation: none;
}

#l_fixed_bg0 {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 overflow: hidden;
}

#l_fixed_bg1, #l_fixed_bg2, #l_fixed_bg3 {
 position: absolute;
 animation: l_fixed_bg 120s ease-in-out infinite alternate;
 background-image: linear-gradient(-60deg, var(--l-color-6) 50%, var(--l-color-8) 50%);
 top: 0;
 bottom: 0;
 left: -50%;
 right: -50%;
 opacity: 0.5;
 height: 100%;
}

#l_fixed_bg2 {
 animation-direction: alternate-reverse !important;
 animation-duration: 80s !important;
}

#l_fixed_bg3 {
 animation-duration: 100s !important;
}

#l_fixed_highlight {
 position: absolute;
 top: 0;
 bottom: 0;
 left: -50%;
 right: -50%;
 opacity: 0;
 height: 100%;
 background: radial-gradient(ellipse at bottom, var(--l-color-1) 0%, transparent 45%);
}

@keyframes l_body {
 0% { background: #222; }
 50% { background: #333; }
 100% { background: #222; }
}

@keyframes l_background {
 0% { transform: rotate(10deg); }
 100% { transform: rotate(360deg); }
}

@keyframes l_fixed {
 from { height: 100%; }
 to { height: 121px; }
}

@keyframes l_fixed_bg {
 0% { transform: translateX(-25%); }
 100% { transform: translateX(25%); }
}

@keyframes l_fixed_bg_coins {
 0%{ opacity: 1; transform: translateY(0) rotate(0deg); }
 100%{ opacity: 0; transform: translateY(-1000px) rotate(720deg); }
}

.l_scrolled #l_fixed { top: -28px; max-height: 100px; }
.l_not_scrolled #l_fixed { top: 0; max-height: none; }

.l_animations_complete #l_fixed {
 transition: 0.5s;
 filter: grayscale(0%);
}







/* Mobile overflow containment - keeps background intact but clips overflow */
@media (max-width: 768px) {
    html, body {
        width: 100%;
        overflow-x: hidden;
        position: relative;
        touch-action: pan-y; /* Prevent horizontal touch scrolling */
    }
    
    /* Ensure background containers act as strict masks */
    #l_na {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100vh;
        overflow: hidden;
        z-index: -1;
    }
    
    #l_root {
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
    
    /* iOS Safari specific: lock body to prevent overflow issues 
       (pages handle their own scrolling via #page2 overflow-y: auto) */
    @supports (-webkit-touch-callout: none) {
        body {
            position: fixed;
            height: 100%;
            width: 100%;
        }
    }
}
