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(80% + 4px);

    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 4px !important;
    text-align: center;
}
.button {
    margin: 0px;
    padding: 0px;
    border-radius: 10px 10px 10px 10px;
    border: double black 4px !important;
}

/* Universal Slider Component Styles */
.slider-container {
    position: relative;
    width: 100%;
    height: 32px;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 4px;
    margin: 12px 0;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
}

.slider-handle {
    position: absolute;
    width: 24px;
    height: 100%;
    background: #007acc;
    border-radius: 3px;
    top: 0;
    left: 0;
    cursor: ew-resize;
    transition: background 0.2s ease;
}

.slider-handle:hover {
    background: #0098ff;
}

.slider-text {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    font-family: monospace;
    font-size: 12px;
    color: #fff;
    pointer-events: none;
}

/* Boolean Toggle Component Styles */
.toggle-btn {
    padding: 10px 16px;
    font-family: monospace;
    font-size: 12px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    background: red;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.toggle-btn.active {
    background: springgreen;
    color: #000;
}
