/* Global layout */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, Helvetica, sans-serif;
}

/* Background video */
#bgVideo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* WRAPPER for overlay and carousel (keeps them centered vertically stacked) */
.content-wrapper {
    position: relative;
    width: 100%;
    margin-top: 60px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Subscription box */
.overlay {
    position: relative;
    text-align: center;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.55);
    padding: 30px 40px;
    border-radius: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    width: 320px;
    backdrop-filter: blur(5px);
}

.overlay h1 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 32px;
}

.overlay p {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 16px;
}

/* Subscription form */
#subscribeForm {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

#subscribeForm input[type="email"] {
    padding: 10px;
    width: 280px;
    max-width: 100%;
    border: none;
    border-radius: 5px;
    font-size: 16px;
}

#subscribeForm button {
    padding: 10px 24px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#subscribeForm button:hover {
    background-color: #0056b3;
}

#message {
    margin: 0;
    font-size: 14px;
    min-height: 20px;
}

/* BnB LOGO with glow */
.bnb-logo {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin: 20px auto 0;
    display: block;
    animation: bnbGlow 2.5s infinite ease-in-out;
}

@keyframes bnbGlow {
    0% {
        filter:
            drop-shadow(0 0 6px #14E6FF)
            drop-shadow(0 0 10px #FF7A1A)
            drop-shadow(0 0 14px #C738FF);
    }
    50% {
        filter:
            drop-shadow(0 0 14px #14E6FF)
            drop-shadow(0 0 24px #FF7A1A)
            drop-shadow(0 0 34px #C738FF);
    }
    100% {
        filter:
            drop-shadow(0 0 6px #14E6FF)
            drop-shadow(0 0 10px #FF7A1A)
            drop-shadow(0 0 14px #C738FF);
    }
}

/* CAROUSEL SECTION */
.carousel {
    margin-top: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
}

.carousel-track {
    display: flex;
    gap: 20px;
}

.carousel-item {
    position: relative;
    flex: 0 0 auto;
    width: 260px;
    height: 260px;
    border-radius: 12px;
    overflow: hidden;
    scroll-snap-align: start;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 8px 0;
    background: rgba(0,0,0,0.4);
    color: white;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    backdrop-filter: blur(3px);
    text-shadow: 0 0 8px black;
}

/* Responsive layout */
@media (max-width: 600px) {
    .overlay {
        width: 90%;
        padding: 20px;
    }

    #subscribeForm input[type="email"] {
        width: 100%;
    }

    .overlay h1 {
        font-size: 28px;
    }

    .overlay p {
        font-size: 14px;
    }

    #subscribeForm button {
        width: 100%;
    }
}