body {
    background: #000;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}
.hidden {
    display: none !important;
}

.error {
    background: #FCC;
    color: red;
    padding: .2em 1em;
}

#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99;
    opacity: .6;
    background-color: #111;
    color: #888;
    display: none;
    font-size: 12em;
}
#loading > div {
    display: flex;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9;
    display: none;
}


#login {
    font-size: 1.3em;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #222;
    padding: 1em;
    margin: 0;
    box-sizing: border-box;
}
#login input {
    font-size: 1em;
    background-color: #CCC;
}
#login > div {
    padding: 1em;
    display: flex;
    align-items: center;
    flex-direction: column;
}
#login > div > * {
    padding: 5px 10px;
}


#medias {
    width: 100%;
    height: 100%;
}
.media {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: none;
    align-items: center;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    position: relative;
}
.media.current {
    display: flex;
}
.media .iframe_cache, .media video, .media iframe, .media embed {
    width: 100%;
    height: 100%;
    margin: auto;
    border: 0;
}
.media[data-type="pdf"] embed {
    margin-right:-20px;
    /* margin-top:-56px; */
}

.media .iframe_cache {
    position: absolute;
    z-index: 2;
    width: calc(100% - 20px);
}

.media .legend {
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    text-align: center;
    background: rgba(0,0,0,.8);
    color: #888;
    padding: 5px;
    animation: hideAnimation 0s ease-in 5s;
    animation-fill-mode: forwards;
    opacity: .4;
}

@keyframes hideAnimation {
    to {
        visibility: hidden;
        width: 0;
        height: 0;
    }
}