/* Reset margin and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    /* background: #ffead0 ; */
    /* background: linear-gradient(135deg, #fdf6ec, #f8eee0); 
    background-attachment: fixed;
    background-size: cover; */
    background: linear-gradient(135deg, #fdf6ec, #f8eee0);
    background-image: url('https://www.transparenttextures.com/patterns/paper-fibers.png');
    background-blend-mode: multiply;
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

#main{
    display: flex;
    flex-direction: column;
    /* flex-wrap: wrap; */
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

.title {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    width: 100%;
    font-family: 'Georgia', serif;
}

.slider {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 550px;
    overflow: hidden;
    border: 4px solid #f0e6d2; 
    border-radius: 15px;
    background-color: #fdf6ec;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    width: 100%;
    height: 100%;
    min-width: 100%;
    /* height: 550px; */
    object-fit: cover;
    display: none; /* Hide all slides by default */
}

.slide.active {
    display: block;
}

/* Navigation Buttons */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 12px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 24px;
    transition: background 0.3s;
}

.prev:hover, .next:hover {
    background: rgba(0,0,0,0.8);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}
.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
    font-size: 1rem;
    color: #5a4634;
}

.controls label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
}

#interval-select {
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
}
/* Toggle Switch */
/* Toggle Switch (Horizontal) */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;   /* Width of the toggle */
    height: 30px;  /* Height of the toggle */
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch .toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #444; /* Grey when OFF */
    transition: background-color 0.4s;
    border-radius: 30px; /* Makes background oval */
}

.toggle-switch .toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: transform 0.4s;
    border-radius: 50%; /* Makes the knob round */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* When checked */
.toggle-switch input:checked + .toggle-slider{
    background-color: #4CAF50; /* Green when ON */
}

.toggle-switch input:checked + .toggle-slider:before{
    transform: translateX(30px); /* Move knob to the right */
}

/* Make the slider rounded */
.toggle-slider.round{
    border-radius: 30px;
}


/* Responsive */
@media (max-width: 600px) {
    .slide {
        height: 300px;
    }
}
