/* General reset for consistent styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f9;
    color: #333;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* Align content at the top */
    height: auto;
    min-height: 100vh;
    margin: 0;
}

/* Heading styles */
h1 {
    font-size: 2rem;
    color: #4A90E2;
    margin-bottom: 15px;
}

/* File input styles */
input[type="file"] {
    padding: 10px;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 20px;
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

input[type="file"]:hover {
    border-color: #4A90E2;
}

input[type="file"]:focus {
    outline: none;
    border-color: #4A90E2;
}

/* Label and slider styles */
.slider-container {
    width: 80%;
    max-width: 400px;
    margin-bottom: 20px;
    text-align: center;
}

label {
    font-size: 1.1rem;
    color: #666;
    display: block;
    margin-bottom: 5px;
}

.slider {
    width: 100%;
    height: 10px;
    background-color: #ddd;
    border-radius: 5px;
    appearance: none;
    margin-bottom: 10px;
}

.slider::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #4A90E2;
    cursor: pointer;
    appearance: none;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #4A90E2;
    cursor: pointer;
}

/* Displaying modified image */
.color-display {
    margin-top: 20px;
    width: 300px;
    height: 300px;
    border-radius: 8px;
    background-color: #ccc;
    display: inline-block;
    transition: background-color 0.3s ease;
}

/* Container for the sliders and image */
.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.container h2 {
    font-size: 1.5rem;
    margin-top: 20px;
    color: #333;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .container {
        width: 90%;
    }

    h1 {
        font-size: 1.5rem;
    }

    .slider-container {
        width: 100%;
    }
}