:root{
    --header-and-footer-height: max(5vh, 5rem);
    --header-and-footer-height-mobile: max(5dvh, 5rem);
}

*,
*::before,
*::after{
    box-sizing: border-box;
}

html{
    font-size: 4pt;
}

body{
    margin: 0;
    font-size: 3rem;
    background-color: #000000;
}

/* CSS for the centered popup with a pop animation */
.popup {
    position: fixed;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 5px;
    text-align: center;
    font-family: 'impact', sans-serif; /* Change font to impact */
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0); /* Start with scale(0) for zoom-in effect */
    opacity: 0; /* Start with opacity 0 */
    transition: opacity 0.5s, transform 0.5s; /* Transitions for opacity and transform */
    width: auto; /* Allow the width to adjust automatically */
    max-width: 80%; /* Limit the maximum width to 80% of the viewport */
    height: auto; /* Allow the height to adjust automatically */
    max-height: 80vh; /* Limit the maximum height to 80% of the viewport height */
    font-size: 32px; /* Adjust the font size as needed */
    line-height: 1.5; /* Adjust the line-height as needed */
    margin: 0px; /* Add a 10-pixel margin around the entire popup */
    letter-spacing: 2px; /* Add letter spacing */
    border: 1px solid white; /* Add a border around the popup */
    padding: 10px; /* Add padding to the text inside the popup */
}

/* CSS for the pop animation */
.popup.pop-in {
    transform: translate(-50%, -50%) scale(1); /* Zoom to 100% scale */
    opacity: 1;
    transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Easing function for a pop effect */
}


.container{
    height: 100vh;
    height: 100dvh;
    width: 100vw;
    display: flex;
    flex-flow: column nowrap;
    /* overflow: hidden; */
}

header.main-header,
footer.main-footer{
    padding: 1.5rem;
    height: var(--header-and-footer-height);
    height: var(--header-and-footer-height-mobile);
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    background-color: #000000;
}

header.main-header img.main-header-logo{
    height: 100%;
}

.middle{
    flex: 1;
    display: flex;
    flex-flow: row wrap;
}

.middle .video{
    /* padding: 8rem; */
    flex: 10;
    max-height: calc(100vh - (var(--header-and-footer-height) * 2));
    max-height: calc(100dvh - (var(--header-and-footer-height-mobile) * 2));
    min-width: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.middle .video video{
    height: 100%;
    width: 100%;
}

.middle iframe{
    flex: 1;
    min-width: 400px;
}

#stream-element{
    background-color: #000000;
}

.op-message-container {
    display: none;
}

.op-bigbutton-container {
    display: none;
}

.op-bottom-panel {
    display: none;
}

@media only screen and (max-width: 900px){
    .middle{
        flex-flow: column nowrap;
    }

    .middle .video{
        /* padding: 2rem; */
        flex: unset;
    }
}
