html {
    box-sizing: border-box;
}

header, section, footer {
    margin: 0;
    padding: 10px;
    color: #ffffff;
}

header {
    background: #5d6e9e;
    flex: 0 1 100%;
    font-weight: bold;
}

#toggle_previews {
    font-size: 10px;
    cursor: pointer;
    float: right;
}

#toggle_diag {
    font-size: 10px;
    cursor: pointer;
    float: right;
}

section {
    background: black;
}

footer {
    background: #616161;
    color: silver;
    font-size: xx-small;
    flex: 0 1 100%;
}

footer>span {
    margin-right: 5px;
}

#app_ver {
    font-weight: bold;
}

@media screen and (min-width: 640px) {
    .main-container {
        display: flex;
        flex-flow: row wrap;
    }
}

.text {
    flex: 0 1 100%;
    padding: 10px;
}

.graphics {
    flex: 0 1 100%;
    padding: 10px;
}

.graphics-container {
    position: relative;
    height: 220px;
    margin-top: 10px;
}

.graphics-flex {
    display: flex;
    flex: 0 1 100%;
}

.graphics-display-left {
    flex: 1;
    text-align: center;
    font-size: 32px;
}

.graphics-display-right {
    display: flex;
    flex: 1;
    justify-content: center;
}

.graphics-buttons {
    float: left;
    margin-right: 10px;
}

.graphics-buttons>button {
    margin-right: 10px;
}

#image_button {
    height: 48px;
    width: 48px;
    border: none;
    outline: none;
    background-color: white;
    cursor: pointer;
    border-radius: 15px;
    box-shadow: 7px 7px #999999;
}

#image_button:hover {
    background-color: #eeeeee;
    cursor: pointer;
}

#image_button:active {
    background-color: #eeeeee;
    cursor: pointer;
    box-shadow: 3px 3px #999999;
    transform: translateY(4px) translateX(4px);
}

#toggle_video_button {
    height: 48px;
    width: 48px;
    border: none;
    outline: none;
    background-color: white;
    cursor: pointer;
    border-radius: 15px;
    box-shadow: 7px 7px #999999;
}

#toggle_video_button:hover {
    background-color: #eeeeee;
    cursor: pointer;
}

#toggle_video_button:active {
    background-color: #eeeeee;
    cursor: pointer;
    box-shadow: 3px 3px #999999;
    transform: translateY(4px) translateX(4px);
}

#toggle_video_inference_button {
    height: 48px;
    width: 48px;
    border: none;
    outline: none;
    background-color: white;
    cursor: pointer;
    border-radius: 15px;
    box-shadow: 7px 7px #999999;
}

#toggle_video_inference_button:hover {
    background-color: #eeeeee;
    cursor: pointer;
}

#toggle_video_inference_button:active {
    background-color: #eeeeee;
    cursor: pointer;
    box-shadow: 3px 3px #999999;
    transform: translateY(4px) translateX(4px);
}

#previews {
    margin-top: 10px;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    margin: 5px;
    background-color: #000000;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 1.0em;
}

#image_canvas_container {
    display: inline-block;
}

#image_canvas {
    /* margin-top: 14px; */
    border: solid #0000ff 1px;
}

#video_container {
    display: inline-block;
}

#video {
    border: solid #ffff00 1px;
}

.hide {
    display: none;
}

.button {
    font-family: Verdana;
    background-color: #cccccc;
    border: solid 1px #888888;
    margin: 5px 0;
    padding: 10px;
    font-size: 0.5em;
    cursor: pointer;
}

.some-big-text {
    font-size: 16px;
    color: #c0c0c0;
}

.hide {
    display: none;
}

.screen-container {
    position: relative;
    height: 30vh;
    width: 70vw;
}

div[class*="-display-container"] {
    height: 100%;
    /* display: flex; */
}

.display-left {
    height: 100%;
    width: 50%;
    float: left;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.display-right {
    height: 100%;
    width: 50%;
    float: right;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.display-left>p {
    font-size: 1.7em;
    font-weight: bold;
    color: #ffff00;
}

.display-right>img {
    max-height: 100%;
    max-width: 100%;
}

.person-base {
    position: absolute;
}

.belt {
    position: absolute;
    z-index: 1;
}

@keyframes glowing {
    0% {
        color: #ffff00;
    }
    50% {
        color: #000000;
    }
    100% {
        color: #ffff00;
    }
}

.message {
    animation: glowing 1500ms infinite;
}

@keyframes fade {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.fade {
    animation: fade 1500ms infinite;
}