body {
    margin: 0;
    overflow: hidden;
}
[hidden] {
    display: none !important;
}
.slider-container {
    position: relative;
    user-select: none;
    touch-action: none; /* Prevents vertical mobile page scrolling while dragging sliders */
    overflow: hidden;
}
.slider-text {
    position: relative;
    z-index: 2; /* Keeps the label above the green slider handle */
    pointer-events: none; /* Passes mouse/touch interactions through to the container */
}
.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 1ch;
    background-color: springgreen;
    cursor: grab;
    z-index: 1; /* Moves handle behind text */
}
.page {
    position: fixed;
    margin: 0px;
    padding: 0px;
    top: 0px;
    left: 0px;
    height: 100vh;
    width: 100vw;
    min-height: 100vh;
    min-width: 100vw;
    text-align: center;
    background: linear-gradient(45deg, blue, rgba(0, 0, 0, 0.45));
    border: solid black 5px;
    box-sizing: border-box;
    z-index: 0;
}
.back-button {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: calc(50% + 140px);

    width: 100px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;

    /* Enforce button styling matching .button */
    background: grey;
    border-radius: 10px;
    border: double black 4px !important;
    box-sizing: border-box;
}
.box {
    margin: 0px;
    padding: 0px;
    border-radius: 10px 10px 10px 10px;
    border: double black 1px;
    text-align: center;
}
.button {
    margin: 0px;
    padding: 0px;
    border-radius: 10px 10px 10px 10px;
    border: double black 4px;
}


#page0 {
    position: absolute;
    margin: 0px;
    padding: 0px;
    top: 0px;
    left: 0px;
    height: 100vh;
    width: 100vw;
    min-height: 100vh;
    min-width: 100vw;
    background: linear-gradient(45deg, blue, rgba(0, 0, 0, 0.45));
    text-align: center;
}
#page0textchange1 {
    animation-name: textchange1;
    animation-duration: .1s;
    animation-timing-function: linear;
    animation-delay: 0s;
    animation-iteration-count: 12;
    animation-direction: linear;
}
@keyframes textchange1 {
    0% { font-size: 0px; color: fuchsia; }
    10% { font-size: 10px; color: fuchsia; }
    20% { font-size: 20px; color: fuchsia; }
    30% { font-size: 30px; color: pink; }
    40% { font-size: 40px; color: pink; }
    50% { font-size: 50px; color: orange; }
    60% { font-size: 60px; color: orange; }
    70% { font-size: 70px; color: red; }
    80% { font-size: 80px; color: red; }
    90% { font-size: 90px; color: springgreen; }
    100% { font-size: 100px; color: springgreen; }
}
#page0made {
    position: absolute;
    margin: 0;
    padding: 0;
    top: 8vh;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-family: snap itc;
    font-size: 30px;
    color: springgreen;
}
#page0watt {
    position: absolute;
    margin: 0;
    padding: 0;
    top: 25vh; /* Positions it below "Made By:" and above "Gaming Systems" */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-family: jokerman;
    font-size: clamp(30px, 5vw, 70px);
    color: fuchsia;
    white-space: nowrap;
}
#page0gaming {
    position: absolute;
    margin: 0;
    padding: 0;
    top: 54vh;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-family: snap itc;
    font-size: clamp(16px, 2.2vw, 30px);
    color: springgreen;
    white-space: nowrap;
}
#page0vrw {
    position: absolute;
    margin: 0;
    padding: 0;
    top: 78vh;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-family: snap itc;
    font-size: clamp(12px, 1.6vw, 20px);
    color: fuchsia;
    white-space: nowrap;
}
.page0textchange1 {
    animation-name: textchange1;
    animation-duration: .15s;
    animation-timing-function: linear;
    animation-delay: 0s;
    animation-iteration-count: 15;
    animation-direction: linear;
}




/* page 1 starts here */




#page1 {
    background: linear-gradient(45deg, blue, transparent);
    text-align: center;
}
#page1dimensions {
    position: absolute;
    top: 12vh;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-family: jokerman;
    font-size: clamp(16px, 3.5vw, 42px);
    color: fuchsia;
    white-space: nowrap;
}
#page1of {
    position: absolute;
    top: 44vh;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-family: jokerman;
    font-size: clamp(18px, 3.5vw, 40px);
    color: fuchsia;
}
#page1ascension {
    position: absolute;
    top: 76vh;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-family: jokerman;
    font-size: clamp(24px, 4.5vw, 56px);
    color: fuchsia;
    white-space: nowrap;
}
.page1textchange1 {
    animation-name: textchange2;
    animation-duration: .50s;
    animation-timing-function: linear;
    animation-delay: 0s;
    animation-iteration-count: 2;
    animation-direction: alternate;
}
.page1textchange2 {
    animation-name: spintext;
    animation-duration: 2.5s;
    animation-timing-function: linear;
    animation-delay: 1s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}
.page1textchange3 {
    animation-name: textchange3;
    animation-duration: .50s;
    animation-timing-function: linear;
    animation-delay: 2s;
    animation-iteration-count: 2;
    animation-direction: alternate;
}
/* Thicker Container with Outer Border */
#page1progressbar {
    position: absolute;
    top: 90vh;
    left: 10vw;
    width: 80vw;
    height: clamp(14px, 2vh, 24px);
    background-color: rgba(0, 0, 0, 0.4);
    border: 2px solid red;
    border-radius: 8px;
    overflow: hidden;
    box-sizing: border-box;
}
/* Green Progress Bar Fill - Anchored strictly to the Left */
#page1progressbar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: springgreen;
    border-radius: 4px;
}
/* Centered "Loading..." Text */
#page1progresstext {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: red;
    font-family: sans-serif;
    font-weight: bold;
    font-size: clamp(10px, 1.2vh, 16px);
    pointer-events: none;
    z-index: 2;
}
/* % Completed Text on Left Side */
#page1progresspercent {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: red;
    font-family: sans-serif;
    font-size: clamp(10px, 1.2vh, 16px);
    pointer-events: none;
    z-index: 2;
}
/* % Completed Text on Left Side in Red */
#page1progresspercent {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: red;
    font-family: sans-serif;
    font-weight: bold;
    font-size: clamp(14px, 2vh, 22px);
    pointer-events: none;
    z-index: 2;
}
/* Trigger fill animation when #page1 is visible */
#page1:not([hidden]) #page1progressbar::before {
    animation: fillProgressBar 2.5s linear forwards;
}
@keyframes fillProgressBar {
    0% {
        width: 0%;
        background-color: red;
    }
    100% {
        width: 100%;
        background-color: springgreen;
    }
}
@keyframes textchange1 {
    0% { font-size: 0px; color: fuchsia; }
    10% { font-size: 10px; color: fuchsia; }
    20% { font-size: 20px; color: fuchsia; }
    30% { font-size: 30px; color: pink; }
    40% { font-size: 40px; color: pink; }
    50% { font-size: 50px; color: orange; }
    60% { font-size: 60px; color: orange; }
    70% { font-size: 70px; color: red; }
    80% { font-size: 80px; color: red; }
    90% { font-size: 90px; color: springgreen; }
    100% { font-size: 100px; color: springgreen; }
}
@keyframes textchange2 {
    0% { font-size: 100px; color: fuchsia; opacity: 100%; }
    50% { font-size: 300px; color: fuchsia; opacity: 90%; }
    100% { font-size: 800px; color: fuchsia; opacity: 0%; }
}
@keyframes textchange3 {
    0% {
        font-size: 0px;
        color: fuchsia;
        opacity: 100%;
        transform: translate(-50%, 0) scale(1);
        transform-origin: center center;
    }
    10% {
        font-size: 10px;
        color: fuchsia;
        opacity: 100%;
        transform: translate(-50%, -1vh) scale(1.1);
        transform-origin: center center;
    }
    20% {
        font-size: 20px;
        color: fuchsia;
        opacity: 100%;
        transform: translate(-50%, -2vh) scale(1.2);
        transform-origin: center center;
    }
    30% {
        font-size: 30px;
        color: pink;
        opacity: 100%;
        transform: translate(-50%, -3vh) scale(1.3);
        transform-origin: center center;
    }
    40% {
        font-size: 40px;
        color: pink;
        opacity: 100%;
        transform: translate(-50%, -4vh) scale(1.4);
        transform-origin: center center;
    }
    50% {
        font-size: 50px;
        color: orange;
        opacity: 90%;
        transform: translate(-50%, -5vh) scale(1.6);
        transform-origin: center center;
    }
    60% {
        font-size: 60px;
        color: orange;
        opacity: 80%;
        transform: translate(-50%, -6vh) scale(1.8);
        transform-origin: center center;
    }
    70% {
        font-size: 70px;
        color: red;
        opacity: 70%;
        transform: translate(-50%, -7vh) scale(2.0);
        transform-origin: center center;
    }
    80% {
        font-size: 80px;
        color: red;
        opacity: 60%;
        transform: translate(-50%, -8vh) scale(2.2);
        transform-origin: center center;
    }
    90% {
        font-size: 90px;
        color: springgreen;
        opacity: 40%;
        transform: translate(-50%, -9vh) scale(2.6);
        transform-origin: center center;
    }
    100% {
        font-size: 100px;
        color: springgreen;
        opacity: 0%;
        transform: translate(-50%, -10vh) scale(3.0);
        transform-origin: center center;
    }
}
@keyframes spintext {
    from { transform: rotate(0deg); }
    to { transform: rotate(1800deg); }
}



/* page1 ends here*/








#page2 {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: clamp(12px, 2.2vh, 24px);
    padding: 4vh 5vw 8vh;
    box-sizing: border-box;
    background: linear-gradient(45deg, blue, transparent);
    text-align: center;
}
#page2campaigns,
#page2customgames,
#page2options,
#page2quit {
    position: relative;
    top: auto;
    left: auto;
    width: min(72vw, 280px);
    min-height: clamp(40px, 6vh, 64px);
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: grey;
    color: black;
    box-sizing: border-box;
    font-size: clamp(16px, 2.2vw, 24px);
}
#page2info {
    position: fixed !important;
    left: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    right: auto !important;
    height: clamp(24px, 3.4vh, 36px);
    width: clamp(70px, 12vw, 110px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: grey;
    color: black;
    border-radius: 0px 30px 0px 0px;
    padding: 0 0.6rem;
    box-sizing: border-box;
    font-size: clamp(12px, 1.6vw, 18px);
    z-index: 10;
}





#page3 {
    position: relative;
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

#page3credits {
    text-align: center;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: bold;
    margin-bottom: 2vh;
}

#page3line1 {
    position: relative;
    width: 100%;
    margin-bottom: 3vh;
}

.page3-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    padding: 0 20px;
    margin-bottom: 3vh;
}

.page3-column {
    display: flex;
    flex-direction: column;
    width: 48%;
    box-sizing: border-box;
}

.page3-header {
    font-weight: bold;
    font-size: clamp(0.9rem, 2vw, 1.4rem);
    margin-bottom: 1.5vh;
}

.page3-name-item {
    font-size: clamp(0.8rem, 1.5vw, 1.2rem);
    padding-top: 8px;
}

#page3line2 {
    position: relative;
    width: 100%;
    margin-top: 4vh;
    margin-bottom: 3vh;
}

#page3back {
    position: relative;
    margin: 0 auto 3vh auto;
    display: block;
    left: auto;
    transform: none;
    top: auto;
}



#page4 {
    position: fixed;
    background: linear-gradient(45deg, red, transparent);
    text-align: center;
}
#page5 {
    position: fixed;
    background: linear-gradient(45deg, red, transparent);
    text-align: center;
}
#page6 {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
    background: linear-gradient(45deg, blue, transparent);
    text-align: center;
}
#page6settings {
    position: absolute;
    top: 4vh;                     /* Scales top position dynamically */
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 0;
    font-family: snap itc, sans-serif;
    font-size: clamp(18px, 3vh, 32px); /* Scales font size safely with screen height */
    color: springgreen;
    text-align: center;
    white-space: nowrap;
    z-index: 2;
}
#page6line {
    position: absolute;
    top: 10vh;
    left: 0;
    width: 100vw;
    height: 2px;
    background-color: black;
    z-index: 10; /* Ensure it stays on top */
}
#page6gamesettings {
    position: absolute;
    top: 0.6rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    color: springgreen;
    font-family: jokerman;
    font-size: clamp(20px, 3vw, 30px);
    z-index: 2;
}
#page6container {
    position: relative;
    width: min(72vw, 220px);
    min-height: clamp(180px, 28vh, 260px);
    padding: 0.8rem;
    background: gray;
    text-align: center;
    color: lightblue;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border-radius: 10px;
}
#page6game,
#page6graphics,
#page6sound,
#page6language {
    position: relative;
    left: auto;
    top: auto;
    height: clamp(28px, 4vh, 36px);
    width: min(60vw, 120px);
    background: gray;
    text-align: center;
    color: black;
    font-size: clamp(16px, 1.8vw, 20px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
#page6back {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: calc(50% + 140px);
    width: 100px;
    height: 40px;
    font-size: 18px;
    border-radius: 8px;
    background-color: grey;
    cursor: pointer;
}





#page7 {

    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, blue, transparent);
    text-align: center;
}
#page7box {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(86vw, 360px);
    max-width: calc(100vw - 2rem);
    min-height: clamp(220px, 34vh, 320px);
    padding: 1.5rem 1rem 1.25rem;
    background: gray;
    text-align: center;
    color: black;
    font-size: clamp(16px, 2.2vw, 22px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    z-index: 20;
}
#page7message {
    padding-top: 0;
    line-height: 1.4;
}
#page7okay,
#page7cancel {
    position: relative;
    top: auto;
    left: auto;
    height: clamp(28px, 4vh, 36px);
    width: clamp(70px, 12vw, 90px);
    background: springgreen;
    text-align: center;
    color: black;
    font-size: clamp(16px, 1.8vw, 20px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
#page7cancel { background: red; }

#page8 {
    position: fixed;
    background: linear-gradient(45deg, blue, transparent);
    text-align: center;
}
#page8saveinterval,
#page8autotarget,
#page8mousekeyboard,
#page8autocreatesaves,
#page8autoblocksuggestions,
#page8converyorpathfinding,
#page8hints,
#page8logichints,
#page8doubletaptomine,
#page8holdforcommand,
#page8disablemods {
    position: fixed;
    left: 274px;
    height: 25px;
    width: 300px;
    background: #e94d1e;
    color: black;
    font-size: 20px;
}
#page8saveinterval { top: 50px; }
#page8autotarget { top: 80px; }
#page8mousekeyboard { top: 110px; }
#page8autocreatesaves { top: 140px; }
#page8autoblocksuggestions { top: 170px; }
#page8converyorpathfinding { top: 200px; }
#page8hints { top: 230px; }
#page8logichints { top: 260px; }
#page8doubletaptomine { top: 290px; }
#page8holdforcommand { top: 320px; }
#page8disablemods { top: 350px; }
#page8reset,
#page8back {
    position: fixed;
    height: 25px;
    width: 75px;
    background: gray;
    text-align: center;
    color: black;
    font-size: 20px;
}
#page8reset { top: 400px; left: 360px; width: 210px; }
#page8back { top: 400px; left: 274px; }

#page9 {
    position: fixed;
    background: linear-gradient(45deg, blue, transparent);
    text-align: center;
}
#page9ui,
#page9shake,
#page9bloomintensity,
#page9bloomblur,
#page9maxfps,
#page9chatopacity,
#page9powerlaseropacity,
#page9bridgeopacity,
#page9locklandscape,
#page9displayeffects,
#page9showplanetatmosphere,
#page9displaydestroyedblocks,
#page9displayblockstatus,
#page9displayplayerbubblechat,
#page9showminimap,
#page9smoothcamera,
#page9showplayerposition,
#page9showfpsping,
#page9playerindicators,
#page9enemyindicators,
#page9showweathergraphics,
#page9animatedsurfaces,
#page9animatedshields,
#page9bloom,
#page9pixelate,
#page9linearfiltering,
#page9skipcorelaunchlandinganimation,
#page9hidelogicdisplays {
    position: fixed;
    left: 15px;
    height: 10px;
    width: 300px;
    background: gray;
    text-align: left;
    color: black;
    font-size: 10px;
    border: double black 1px;
}
#page9ui { top: 45px; }
#page9shake { top: 60px; }
#page9bloomintensity { top: 75px; }
#page9bloomblur { top: 90px; }
#page9maxfps { top: 105px; }
#page9chatopacity { top: 120px; }
#page9powerlaseropacity { top: 135px; }
#page9bridgeopacity { top: 150px; }
#page9locklandscape { top: 165px; }
#page9displayeffects { top: 180px; }
#page9showplanetatmosphere { top: 195px; }
#page9displaydestroyedblocks { top: 210px; }
#page9displayblockstatus { top: 225px; }
#page9displayplayerbubblechat { top: 240px; }
#page9showminimap { top: 255px; }
#page9smoothcamera { top: 270px; }
#page9showplayerposition { top: 285px; }
#page9showfpsping { top: 300px; }
#page9playerindicators { top: 315px; }
#page9enemyindicators { top: 330px; }
#page9showweathergraphics { top: 345px; }
#page9animatedsurfaces { top: 360px; }
#page9animatedshields { top: 375px; }
#page9bloom { top: 390px; }
#page9pixelate { top: 405px; }
#page9linearfiltering { top: 420px; }
#page9skipcorelaunchlandinganimation { top: 435px; }
#page9hidelogicdisplays { top: 450px; }
#page9resettodefaults,
#page9back {
    position: fixed;
    height: 25px;
    width: 75px;
    background: gray;
    text-align: center;
    color: black;
    font-size: 20px;
    border-radius: 10px 10px 10px 10px;
    border: double black 4px;
}
#page9resettodefaults { top: 465px; left: 15px; width: 220px; }
#page9back { top: 465px; left: 240px; }
#page10 {
    background: linear-gradient(45deg, blue, transparent);
    text-align: center;
}
#page10musicsound,
#page10fxsound,
#page10ambientsound,
#page10resetdefaults {
    position: fixed;
    left: 274px;
    height: 25px;
    width: 300px;
    background: gray;
    color: black;
    font-size: 20px;
    border-radius: 20px 20px 20px 20px;
}
#page10musicsound { top: 75px; }
#page10fxsound { top: 125px; }
#page10ambientsound { top: 175px; }
#page10resetdefaults { top: 225px; }
#page10back {
    position: fixed;
    top: 400px;
    left: 400px;
    height: 25px;
    width: 75px;
    background: gray;
    text-align: center;
    color: black;
    font-size: 20px;
    border-radius: 10px 10px 10px 10px;
    border: double black 4px;
}
#page11 {
    position: fixed;
    background: linear-gradient(45deg, blue, transparent);
    text-align: center;
}
#page11english {
    position: fixed;
    top: 100px;
    left: 370px;
    height: 25px;
    width: 75px;
    background: gray;
    text-align: center;
    color: black;
    font-size: 20px;
    border: double black 4px;
}
#page11back {
    position: fixed;
    top: 400px;
    left: 400px;
    height: 25px;
    width: 75px;
    background: gray;
    text-align: center;
    color: black;
    font-size: 20px;
    border-radius: 10px 10px 10px 10px;
    border: double black 4px;
}
#page99 {
    position: fixed;
    background: linear-gradient(45deg, orange, transparent);
    text-align: center;
}
