html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ── Background Carousel ─────────────────────────────────────── */
#bg-carousel {
    position: fixed;
    inset: 0;
    z-index: -2;
}

#bg-carousel .carousel-inner,
#bg-carousel .carousel-item {
    height: 100%;
}

#bg-carousel .carousel-item {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ── Overlay (makes background less distracting) ─────────────── */
.overlay {
    position: fixed;
    /* changed to fixed so it covers whole viewport */
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    /* ← MAIN OPACITY CONTROL */
    /* 
 Quick guide to rgba values:
 rgba(0, 0, 0, 0.3)  → very light / subtle
 rgba(0, 0, 0, 0.5)  → medium (good balance)
 rgba(0, 0, 0, 0.65) → quite dark, very readable text
 rgba(0, 0, 0, 0.8)  → almost black background

 You can also use other colors, examples:
 rgba(30, 40, 80, 0.6)   → dark blue tint
 rgba(100, 20, 20, 0.5)  → dark red/wine tint
*/
    z-index: -1;
    pointer-events: none;
    /* lets clicks pass through to content */
}

/* ── Main Content Layer ──────────────────────────────────────── */
.content-on-top {
    position: relative;
    z-index: 10;
    color: white;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.7);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}