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

header {
    background-color: #333;
    color: white;
    padding: 10px;
    text-align: center;
}

#container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%; /* Adjust width as needed */
    height: 80%; /* Adjust height as needed */
    border: 2px solid #fff; /* Rectangle border */
    overflow: hidden; /* Prevent overflow */
    display: flex; /* Use flexbox to stack divs */
    flex-direction: column; /* Stack vertically */
    align-items: center; /* Center items horizontally */
    justify-content: center; /* Center items vertically */
}

#div1, #div2 {
    width: 100%; /* Full width of the container */
    height: 100%; /* Full height of the container */
    position: relative; /* To position the video */
}

#div1 {
    background-color: blue;
    display: block; /* Initially visible */
}

#div1 video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the entire div */
    z-index: 0; /* Send video behind other content */
}

#message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    text-align: center;
    display: none; /* Initially hidden */
}

.highlight {
    font-size: 36px; /* Make "E" bigger */
    font-weight: bold;
}

#div2 {
    background-color: black;
    display: none; /* Initially hidden */
    opacity: 0; /* Start with zero opacity */
    transition: opacity 1s; /* Smooth transition for opacity */
}

#div2.show {
    display: block; /* Show the div */
    opacity: 1; /* Full opacity */
}

.div2Image {
    max-width: 100%; /* Ensure the image doesn't overflow */
    max-height: 100%; /* Ensure the image doesn't overflow */
    display: block;
    margin: auto;
}