html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    border: 0;
    overflow: hidden;
    font-family: var(--video-text-font, Arial), sans-serif;
    font-size: 18px;
}

.hidden {
    display: none !important;
}

#stage {
    width: 100%;
    height: 100%;
    position: relative;
}

#stage.state-loading::after {
    content: var(--video-loading-screen-text);
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    line-height: 100vh;
    text-align: center;
    color: var(--video-loading-screen-text-color, dodgerblue);
    background: var(--video-loading-screen-bg-color, white);
    font-size: var(--video-loading-screen-text-size, 24px);
    font-family: var(--video-text-font, Arial), sans-serif;
    font-weight: var(--video-text-font-weight, 400);
    font-style: var(--video-text-font-style, normal);
}

#stage.state-error::after {
    content: "Error";
    display: block;
    position: absolute;
    width: 80%;
    height: 80%;
    top: 0;
    left: 0;
    line-height: 80vh;
    text-align: center;
    color: #ff0000;
    background: white;
}


#instruction{
    position: absolute;
    width: 100%;
    height: 5vh;
    text-align: center;
    font-size: 20px;
    color: var(--video-top-info-text-color, #ffffff);
    background: var(--video-top-info-bg-color, rgba(0, 0, 0));
    line-height: 5vh;
    top: 0;
    z-index: 2;
    font-family: var(--video-text-font, Arial), sans-serif;
    font-weight: var(--video-text-font-weight, 400);
    font-style: var(--video-text-font-style, normal);
}

#progress {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 5vh;
    text-align: center;
    font-size: 20px;
    color: var(--video-bottom-info-text-color, #ffffff);
    background: var(--video-bottom-info-bg-color, rgba(0, 0, 0));
    line-height: 5vh;
    z-index: 2;
    font-family: var(--video-text-font, Arial), sans-serif;
    font-weight: var(--video-text-font-weight, 400);
    font-style: var(--video-text-font-style, normal);
}

#canvas-wrapper {
    position: absolute;
    top: 5vh;
    bottom: 5vh;
    left: 50%;
    height: calc(100vh - 10vh);
    width: calc((100vh - 10vh) * 16 / 9);
    transform: translateX(-50%);
    z-index: 0;
}

#mxcanvas {
    width: 100%;
    height: 100%;
    display: block;
}

:root {
    --video-top-info-bg-color: #FFFFFF;
    --video-bottom-info-bg-color: #FFFFFF;
    --video-top-info-text-color: #FFFFFF;
    --video-bottom-info-text-color: #FFFFFF;
    --video-loading-screen-bg-color: #FFFFFF;
    --video-loading-screen-text-color: #FFFFFF;
    --video-loading-screen-text-size: 24px;
    --video-loading-screen-text: "Preparation for scanning ...";
    --video-text-font: 'Arial', sans-serif;
    --video-text-font-weight: 400;
    --video-text-font-style: normal;
}
