* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    /* scroll-behavior: auto;    */
    /* overflow-x: hidden;  */
    /* overflow-x: clip; */
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: #191919;    
    overflow-y: auto;
    font-family: Inter, sans-serif;
    font-weight: 500;
    color: #fff;
    overscroll-behavior: none;

}

#faq-popup {    
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #252525aa;
    backdrop-filter: blur(30px);    
    border-radius: 20px;
    padding: 20px;
    z-index: 2000;
    height: 80vh;
    width: auto;
    max-width: 80vw;
    box-shadow: 0 0 10px #111;
    display: flex;
    flex-direction: column;   
    overflow: hidden;        
}
#faq-close {
    position: absolute;
    top: 5px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-weight: 300;
    font-size: 50px;
    cursor: pointer;
    font-family: Inter, sans-serif;
    transition: color 0.3s ease;
    width: 30px;
    height: 30px;
    line-height: 40px;
    transform: rotate(-45deg);
}
#faq-close:hover {
    color: #1DDB52;
}       

#faq-content {
    display: flex;
    flex-direction: column;
    align-items: center;         
    font-size: 16px;    
    height: 100%;
    overflow-y: auto;
    padding-right: 10px;
    flex: 1;
  -webkit-overflow-scrolling: touch; 
  overscroll-behavior: contain;      
  touch-action: pan-y;
}


#faq-content::-webkit-scrollbar {
  width: 6px;
}
#faq-content::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 10px;
}
#faq-content::-webkit-scrollbar-track {
  background: transparent;
}
#faq-content h2 {
    margin-bottom: 15px;
    font-size: 24px;    
    font-weight: 700;
}
.faq-item {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    margin-top: 10px;
    margin-bottom: 10px;
    width: 100%;
}
.faq-item label {
    margin-bottom: 5px;
    font-size: 16px;
    color: #1DDB52;
    font-weight: 600;
}
.faq-item p {
    font-size: 16px;
    color: #fff;
    font-weight: 400;
}
#faq-lang-toggle {
    position: absolute;
    top: 10px;
    left: 15px;
    background: none;
    border: none;
}
#faq-lang-toggle button {
    background: none;
    border: none;
    color: #fff;
    padding: 5px 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    font-family: Inter, sans-serif;
}
#faq-lang-toggle button.on {    
    color: #1DDB52;    
}
#faq-lang-toggle button:hover {
    color: #1DDB52;
}

#topnav {
    position: fixed;
    top: -43px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: 50px;
    padding: 5px 20px;
    background: #252525aa;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    backdrop-filter: blur(30px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    /* border: 2px solid #111; */
    font-size: 14px;
    font-weight: 500;
    transition: all 0.5s ease;
    box-shadow: 0 0 5px #111;
}
#topnav .spacer {
    margin: 0 5px;
    color: #555;
}
#topnav .hilowtoggle {
    position: relative;
    display: flex;
    align-items: center;
}
#topnav .hilowtoggle label {
    position: absolute;
    width: 100%;
    height: auto;
    font-size: 8px;
    text-transform: uppercase;
    color: #999;
    top: -6px;
    text-align: center;
}
#topnav button {
    background: none;
    border: none;
    color: #fff;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    font-family: Inter, sans-serif;
}
#topnav button.on {
    text-decoration: underline;
    text-decoration-color: #1DDB52;
    text-decoration-thickness: 1px;
}
#topnav button:hover {
    color: #1DDB52;
}
#topnav.show {    
    top: -2px;
}
#scroll-progress {
    padding: 5px 5px;
    font-size: 14px;
    width: 40px;
    color: #1DDB52;
}

#spline-wrap {
  position: sticky; /* or fixed if you prefer */
  top: 0;
  height: 100vh;
  width: 100vw;
  display: block;
  max-width: 100%;
}

spline-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
}
spline-viewer, iframe {
  display: block;
  max-width: 100%;
}

#loading-info {
    position: fixed;
    top: 50%;
    left: 50%;
    margin-top: -60px;
    transform: translate(-50%, -50%);
    color: #1DDB52;
    font-size: 1vw;
    z-index: 0;    
    text-align: center;
}

#device-note {
    position: fixed;
    bottom: 0;
    left: 50%;
    margin-bottom: 20px;
    transform: translate(-50%, -50%);
    color: #F78C6A;
    font-size: 1vw;
    z-index: 0;    
    text-align: center;
}

#scroll-spacer {
  height: 82000px; 
}

#scroll-position {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;    
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    display: none;
}
#wrap {
    position: relative;
    width: 100vw;        
    height: 82000px;       
}

#slides {
    position: absolute;
    z-index: 10;
    top: 0;
    width: 100vw;
    height: 100vh;   
    
    text-align: left;
    padding: 0;             
    overflow-y: scroll;    
    scroll-snap-type: y proximity;        
}

.slide {
    position: relative;
    z-index: 2;
    font-size: 2vw;
    height: auto;
    width: 100%;        
    border: 1px solid red;
    scroll-snap-align: start; 
    scroll-snap-stop: always;
}

#gesture-layer {
    position: fixed;
    left: 0;
    right: 0;
    top: 50vh;            /* bottom half only */
    height: 50vh;
    z-index: 999;         /* above spline-viewer (z=1), below topnav (z=1000) */
    background: transparent;
    display: none;        /* OFF by default */
    touch-action: none;   /* IMPORTANT for Android */
}
#gesture-layer.on {
    display: block;
}


@media only screen and (max-width: 767px), 
       (hover: none) and (pointer: coarse) { 

    #loading-info {        
        font-size: 14px;        
    }
    #device-note {        
        font-size: 14px;        
    }

    #topnav {
        position: fixed;
        top: -36px;
    }

    #faq-popup {    
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: #252525aa;
        backdrop-filter: blur(30px);    
        border-radius: 20px;
        padding: 10px;
        z-index: 2000;
        height: 90vh;
        width: 98vw;
        max-width: 98vw;
        box-shadow: 0 0 10px #111;
    }

    .faq-item label {
        margin-bottom: 5px;
        font-size: 14px;        
    }
    .faq-item p {
        font-size: 14px;        
    }

    
}