body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    width: 100%;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #333;
    font-size: 1.8rem;
}

.image-container {
    margin-bottom: 20px;
    text-align: center;
}

#simulated-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.control-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

label {
    flex: 1;
    text-align: right;
    margin-right: 10px;
    font-size: 1rem;
}

.slider {
    flex: 2;
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: #d3d3d3;
    outline: none;
    opacity: 0.7;
    transition: opacity .2s;
    touch-action: pan-y; /* Improves touch scrolling */
}

.slider:hover {
    opacity: 1;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
}

span {
    flex: 1;
    text-align: left;
    margin-left: 10px;
    font-size: 1rem;
}

.lock-label {
    display: flex;
    align-items: center;
    margin-left: 10px;
    font-size: 0.9rem;
}

.lock-checkbox {
    margin-right: 5px;
    width: 18px;
    height: 18px;
}

#feedback {
    margin-top: 20px;
    text-align: center;
    color: #ff0000;
    font-size: 0.9rem;
}

.explanation {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.explanation h2 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
}

#exposure-explanation {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
}

/* Mobile-friendly adjustments */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 15px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .control-group {
        flex-direction: column;
        align-items: flex-start;
    }

    label {
        text-align: left;
        margin-right: 0;
        margin-bottom: 5px;
        font-size: 0.9rem;
    }

    .slider {
        flex: none;
        width: 100%;
        height: 12px;
    }

    .slider::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
    }

    .slider::-moz-range-thumb {
        width: 24px;
        height: 24px;
    }

    span {
        margin-left: 0;
        margin-top: 5px;
        font-size: 0.9rem;
    }

    .lock-label {
        margin-left: 0;
        margin-top: 5px;
    }

    .lock-checkbox {
        width: 20px;
        height: 20px;
    }

    .explanation h2 {
        font-size: 1rem;
    }

    #exposure-explanation {
        font-size: 0.85rem;
    }
}