/* styles/screen4.css */

#screen4 {
    background-image: url('../images/bg.png');
    background-size: cover;
    background-position: center;
}

.s4-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 320px;
}

.s4-intro-text, .s4-question {
    font-family: 'Varela Round', sans-serif;
    /* MODIFIED: Reduced the minimum font size for better wrapping on small screens */
    font-size: clamp(0.85rem, 3.5vw, 1.1rem);
    color: #FFFCF8;
    line-height: 1.5;
}

.s4-main-headline {
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    color: #E6F19A;
    line-height: 1.4;
}

/* --- Slider Styling --- */
.slider-container {
    width: 100%;
    margin-top: 1rem;
}

.slider-wrapper {
    position: relative;
    margin-top: 1.5rem;
}

/* In styles/screen4.css */

.slider-value {
    position: absolute;
    top: -25px;
    left: 0; /* Let JavaScript control the 'left' property entirely */
    /* transform: translateX(-50%); <-- REMOVE OR COMMENT OUT THIS LINE */
    background: #E6F19A;
    color: #282743;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Rubik', sans-serif;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-family: 'Varela Round', sans-serif;
    font-size: 0.8rem;
    color: #FFFCF8;
    margin-top: 5px;
}

/* --- Custom Slider Track and Thumb --- */
.interactive-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 12px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 99px;
    outline: none;
    padding: 0;
    margin: 0;
}

.interactive-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    background: #FFFCF8;
    border: 2px solid #E6F19A;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -8px; /* Center thumb vertically */
}

.interactive-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    background: #FFFCF8;
    border: 2px solid #E6F19A;
    border-radius: 50%;
    cursor: pointer;
}