/* Make sure the page/body fill the viewport, black background */
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: black;
}

/* Container for the two videos */
.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: black;
    overflow: hidden;
    /* so nothing goes out of bounds */
}

/* Common styles for both videos:
        - Fill the entire container
        - Keep aspect ratio via object-fit: contain
        - Centered with black letterbox/pillarbox area if aspect ratio doesn't match. 
    */
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: black;
    /* fallback for letterboxing */
}

/* Hide #videoB initially */
#videoB {
    display: none;
    }