* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f4f4f9;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* The parent wrapper that restricts the size of the slideshow */
.slideshow-container {
    max-width: 800px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

/* Hide slides by default */
.slide {
    display: none;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Show the active slide */
.slide.active {
    display: block;
}

/* Navigation buttons (arrows) */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    background-color: rgba(0, 0, 0, 0.3);
    border: none;
    border-radius: 0 4px 4px 0;
    transition: background-color 0.3s ease;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 4px 0 0 4px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Styling for the Play/Pause Button */
.toggle-play {
    cursor: pointer;
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 16px;
    color: white;
    font-size: 14px;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 20px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    user-select: none;
}

.toggle-play:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateX(-50%) scale(1.05);
}

/* Animation: Fading entry for smooth transitions */
.fade {
    animation: fadeEffect 0.8s ease-in-out;
}

@keyframes fadeEffect {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

.btn-glow {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

/* Hover state: Enhances the shadow opacity and footprint */
.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.6);
}