/* Basic styling to reset browser defaults and set up a clean slate */
body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* This prevents scrollbars from appearing */
    font-family: Arial, sans-serif;
    background-color: #000;
    /* Black background for a seamless look */
}

/* Styles for the video wrapper */
.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: opacity 1.5s ease-out;
    /* Defines the fade-out animation */
}

/* Styles for the video element itself */
#background-video {
    width: 100vw;
    /* 100% of the viewport width */
    height: 100dvh;
    /* 100% of the dynamic viewport height */
    object-fit: cover;
    /* This makes the video cover the entire area without distortion */
}

/* Styles for the content (headlines) wrapper */
.content-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    height: 100%;
    color: white;
    text-align: center;
    opacity: 0;
    /* Initially invisible */
    transition: opacity 1.5s ease-in;
    /* Defines the fade-in animation */
}

/* Styles for the headlines */
.headline h1 {
    font-size: 3.5rem;
    margin: 0;
    letter-spacing: 2px;
}

.headline p {
    font-size: 1.2rem;
    font-weight: 200;
}

/* Styles for the HEVC test label */
#hevc-label {
    position: absolute;
    /* Position relative to its container (.video-wrapper) */
    bottom: 20px;
    left: 20px;
    z-index: 5;
    /* Ensure it's on top of the video */

    background-color: rgba(0, 0, 0, 0.6);
    /* Semi-transparent black background */
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;

    /* Hide the label by default */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out;
}