/* Apply a global font and set a background color */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f9fc;
    color: #333;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Intro Section Styling */
.intro-section {
    text-align: center;
    background-color: #4c5c68;
    padding: 40px 20px;
    color: #fff;
}

.intro-section h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.intro-section p {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Button Section Styling */
.button-section {
    text-align: center;
    margin: 20px 0;
}

/* Slider Section Styling */
.slider-section {
    text-align: center;
    padding: 40px 20px;
    background-color: #eef2f7;
}

.slider-container {
    margin: 20px auto;
    width: 50%;
}

.slider {
    width: 100%;
    margin-top: 20px;
    -webkit-appearance: none;
    appearance: none;
    height: 10px;
    background: #4c5c68;
    outline: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease; /* Smooth transition */
}

.slider:hover {
    background: #3b4a5a; /* Darker background on hover */
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: #ff6f61;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Smooth transition for thumb */
}

.slider::-webkit-slider-thumb:hover {
    background-color: #e65c50; /* Change color on hover */
}

.caption {
    margin-top: 10px;
    font-size: 1.2rem;
    color: #333;
}

/* Image Styling */
img {
    margin-top: 20px;
    width: 100%; /* Responsive width */
    max-width: 400px; /* Maintain maximum width */
    height: auto;
    border: 3px solid #ddd;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease-in-out; /* Smooth transition for image changes */
}

/* Button Styling */
button {
    background-color: #ff6f61;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    margin: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease; /* Smooth transition */
}

button:hover {
    background-color: #e65c50;
    transform: scale(1.05); /* Slightly enlarge button on hover */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Add shadow on hover */
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Additional Information Section Styling */
.info-section { 
    text-align: center;
    padding: 40px 20px;
    background-color: #fff;
}

.info-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #4c5c68;
}

.info-section p {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    color: #555;
}

/* Responsive Design */
@media (max-width: 768px) {
    .slider-container {
        width: 90%; /* Make the slider more responsive on smaller screens */
    }
    
    img {
        max-width: 100%; /* Ensure images are responsive */
    }
    
    .intro-section h1 {
        font-size: 2rem; /* Adjust title size for smaller screens */
    }

    .info-section h2 {
        font-size: 1.5rem; /* Adjust heading size for smaller screens */
    }
}
