html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100vh;
}

.slide {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.active {
    display: block;
}

/* changed: target the #slide-container used by index.html / slideshow.js */
#slide-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    transition: opacity 0.8s ease-in-out;
}

/* caption inside the slide container */
#slide-caption {
    position: absolute;
    bottom: 24px;
    left: 24px;
    color: white;
    font-size: 24px;
    background: rgba(21, 66, 115, 0.5);
    padding: 12px;
    border-radius: 6px;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.6s ease-in-out;
}

#slide-caption.fade-out {
    opacity: 0;
}

/* controls */
.controls {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    gap: 8px;
    z-index: 3;
}

/* round translucent buttons with dark border for visibility */
.controls button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.3);
    color: rgba(0, 0, 0, 0.7);
    font-size: 24px;
    line-height: 56px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.controls button:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.5);
    transform: scale(1.1);
}

.controls button:active {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.7);
    transform: scale(0.95);
}
