body,
html {
    width: 100vw;
    height: 100vh;
    margin: 0;
    border: 0;
    overflow: hidden;
    display: block;
    font-family: sans-serif
}

body {
    background-color: #132b42
}

#canvas-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    z-index: -9999
}

#start-container {
    min-width: 350px;
    border-radius: 16px;
    color: #eee;
    top: 45%;
    left: 50%;
    padding: 40px 40px 30px;
    transform: translate(-50%, -50%);
    text-align: center;
    position: absolute;
    box-shadow: 0 0 8px 8px rgba(0, 0, 0, .2);
    /* backdrop-filter: blur(4px); */
    background-color: rgba(255, 255, 255, .05);
    z-index: 1
}

@media screen and (max-width:850px) {
    #start-container {
        padding: 30px;
        width: 55%
    }
}

@media screen and (max-width:650px) {
    #start-container {
        padding: 30px 20px;
        width: 85%
    }
}

#start-container form {
    display: inline-block
}

#start-container input {
    margin: 6px;
    padding: 4px;
    background: #cfd8dc;
    border: 0
}

#start-container button {
    background-color: #157d9c;
    color: #fff;
    border: 0;
    box-shadow: 0 0 4px 4px rgba(0, 0, 0, .2);
    border-radius: 4px;
    text-align: center;
    padding: 8px 24px;
    font-size: 16px;
}

#start-container a {
    color: #fff
}

#start-container #privacy a {
    color: #aaa
}

#start-container #stream-error {
    color: #f00;
    margin: 16px 0 0
}

.loading span {
    display: inline-block;
    vertical-align: middle;
    width: .6em;
    height: .6em;
    margin: .19em;
    background: #fff;
    border-radius: .6em;
    animation: loading 1s infinite alternate
}

.loading span:nth-of-type(2) {
    background: #fff;
    animation-delay: .2s
}

.loading span:nth-of-type(3) {
    background: #fff;
    animation-delay: .4s
}

.loading span:nth-of-type(4) {
    background: #fff;
    animation-delay: .6s
}

.loading span:nth-of-type(5) {
    background: #fff;
    animation-delay: .8s
}

.loading span:nth-of-type(6) {
    background: #fff;
    animation-delay: 1s
}

.loading span:nth-of-type(7) {
    background: #fff;
    animation-delay: 1.2s
}

@keyframes loading {
    0% {
        opacity: 0
    }

    100% {
        opacity: 1
    }
}

#streaming-header {
    padding: 8px;
    width: 100%;
    position: absolute;
    color: #eee;
    /* backdrop-filter: blur(8px); */
    background-color: rgba(19, 43, 66, .8);
    box-shadow: 0 0 8px 8px rgba(0, 0, 0, .2);
    z-index: 1
}

#streaming-header table {
    width: 100%;
    table-layout: fixed
}

#streaming-header img {
    width: 48px
}

#streaming-header button {
    background-color: #157d9c;
    color: #fff;
    border: 0;
    box-shadow: 0 0 4px 4px rgba(0, 0, 0, .2);
    border-radius: 4px;
    text-align: center;
    padding: 8px 16px;
    font-size: 16px;
    margin-right: 16px
}

.visible {
    visibility: visible;
    opacity: 1;
    transition: opacity .1s
}

.hidden {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 1s, opacity 1s
}

#stream-wait-container {
    border-radius: 16px;
    color: #eee;
    top: 40%;
    left: 50%;
    padding: 40px;
    transform: translate(-50%, -50%);
    text-align: center;
    position: absolute;
    box-shadow: 0 0 8px 8px rgba(0, 0, 0, .2);
    /* backdrop-filter: blur(4px); */
    background-color: rgba(255, 255, 255, .05);
    z-index: 1
}

@media screen and (max-width:850px) {
    #stream-wait-container {
        padding: 30px;
        width: 55%
    }
}

@media screen and (max-width:650px) {
    #stream-wait-container {
        padding: 30px 20px;
        width: 85%
    }
}

#stream-wait-container button {
    background-color: #157d9c;
    color: #fff;
    border: 0;
    box-shadow: 0 0 4px 4px rgba(0, 0, 0, .2);
    border-radius: 4px;
    text-align: center;
    padding: 8px 16px;
    font-size: 16px
}

#video-container {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    max-height: 100vh;
    max-width: 100%
}

#video-container video {
    width: 100%;
    height: 100%
}