/* Basic body styling for demonstration */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #fff;
    color: #333;
}

/* --- Video Container Styling --- */
.video-container {
    position: relative;
    width: 100%;
    height: 60vh; /* Adjust height as needed */
    overflow: hidden;
    background-color: #000;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Video Overlay Styling --- */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    z-index: 1;

    /* --- NEW: Transition for fade effect --- */
    opacity: 1; /* Initial state: fully visible */
    visibility: visible; /* Initial state: visible */
    transition: opacity 1s ease-out, visibility 1s ease-out; /* Smooth transition over 1 second */
}

/* --- NEW: Class for fade-out state --- */
.video-overlay.fade-out {
    opacity: 0;
    visibility: hidden; /* Hide element completely after fading */
    pointer-events: none; /* Disable interactions once faded out */
}

.video-overlay h1 {
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.video-overlay p {
    font-size: 1.2em;
    margin-bottom: 20px;
    max-width: 80%;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.overlay-logo {
    margin-bottom: 20px;
    max-width: 150px;
    height: auto;
}

.overlay-button {
    background-color: #007bff;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

/* --- Content Below Video (for context) --- */
.content-below-video {
    padding: 40px;
    background-color: #fff;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-container {
        height: 40vh;
    }
    .video-overlay h1 {
        font-size: 2em;
    }
    .video-overlay p {
        font-size: 1em;
    }
}