@font-face {
    font-family: Brothers;
    src: url('/fonts/brothreg-071211005EmigreWebOnly.woff');
}

@keyframes flash-white-red {
    0% { color: #fff; }
    50% { color: #f00; }
    100% { color: #fff; }
}

/**
 *  Element defaults
 */

html, body, main {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Fira Sans', sans-serif;
    color: #fff;
    font-size: 15px;
    line-height: 26px;
    overflow-y: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

body, html {
    background-color: #000;
}

h1, h2, .tryater {
    font-family: Brothers, serif;
}

h1, .uc {
    text-transform: uppercase;
}

.lc {
    text-transform: initial;
}

p {
    margin: 0px;
    padding: 0px;
    line-height: 24px;
    font-family: 'Fira Sans', sans-serif;
    font-size: 18px;
}

img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

video {
    display: block;
    position: relative;
    width: 100%;
    height: auto;
    max-height: 100%;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

video::-webkit-media-controls {
    display: none;
}

/**
 *  Main
 */

.bg {
    background-image: url("https://videodelivery.net/8284c6ff49162ecfac3601c058efaf75/thumbnails/thumbnail.jpg?height=1080");
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.bg.bg-black {
    background: #000;
}

.bg.bg-credits {
    background-image: url("https://videodelivery.net/159c6f09e0fe7964edae44d49965bd36/thumbnails/thumbnail.jpg?height=1080");
}

.bg-yellow {
    background-color: #FDD53D;
}

/**
 *  Start screen
 */

#start-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    overflow: auto;
    padding: 50px 15px;
    text-align: center;
    font-size: 30px;
    color: #fff;
}

#start-logo {
    margin: auto;
    margin-bottom: 30px;
    width: auto;
}

#tz-info {
    margin: auto;
    max-width: 250px;
    font-size: 16px;
}

#show {
    display: inline-block;
    min-height: 185px;
    max-height: calc(100% - 350px);
    margin: auto;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

#show .list-group-item {
    background-color: transparent;
    color: #fff;
    font-size: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}


.support-info {
    margin: 20px auto 0;
    max-width: 960px;
}

.support-info p {
    line-height: 32px;
}

/**
 *  Layers
 */

.layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    margin: auto;
    pointer-events: none;
}

.layer.transition {
    transition: opacity 3s;
}

.layer.show {
    opacity: 1;
    pointer-events: all;
}

.bg.bg-intro, .layer#maps-container, .layer#film {
    background-color: #242f3e;
}

.layer#subtitles {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
}

.audio-dimensions {
    width: 0;
    height: 0;
}

.subtitles {
    -webkit-text-stroke: 1px black;
    font-family: Brothers, serif;
    line-height: 48px;
    font-size: 36px;
    color: #FFD413;
}

.landscape-text {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 50px;
    text-align: center;
    color: #444;
}

.layer .video-js {
    width: 100%;
    height: 100%;
    background-color: transparent;
    overflow: hidden;
}

.layer .video-js .vjs-control-bar {
    background-color: rgba(0, 0, 0, 0.5);
}

.layer#intro-film .video-js .vjs-control-bar, .layer#opening .video-js .vjs-control-bar {
    display: none;
}

.layer .video-js .vjs-slider {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.25);
}

.layer .video-js .vjs-slider .vjs-load-progress {
    background-color: rgba(255, 255, 255, 0.25);
}

.layer .video-js .vjs-progress-holder .vjs-play-progress {
    background-color: rgba(255, 255, 255, 0.5);
}

.layer .video-js .vjs-play-progress::before {
    top: -4px;
    font-size: 16px;
}

.layer .vjs-paused .vjs-big-play-button, .layer .vjs-paused.vjs-has-started .vjs-big-play-button {
   display: block;
}

.layer .video-js .vjs-big-play-button, .layer .video-js:hover .vjs-big-play-button {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 40px;
    border: none;
    width: 80px;
    height: 80px;
    background-color: rgba(0, 0, 0, 0.50);
    font-size: 54px;
}

.layer .video-js .vjs-loading-spinner {
    top: 90px;
    left: unset;
    right: 30px;
    width: 30px;
    height: 30px;
}

.vjs-control-text {
    display: none;
}

.vjs-text-track-cue div {
    background-color: transparent !important;
    -webkit-text-stroke: 1px black;
    font-family: Brothers, serif !important;
    color: #FFD413 !important;
    transform: translateY(-48px);
}

.modal .vjs-text-track-cue div {
    line-height: 28px !important;
    font-size: 24px !important;
}

@media(orientation: landscape) {
    .layer video {
        object-fit: cover;
        height: 100%;
        margin: auto;
    }
}

@media(orientation: portrait) {
    .bg.bg-intro {
        background-color: #000;
        background-size: contain;
    }

    .layer video {
        height: 100%;
        margin: auto;
    }
    
    .layer#maps-container, .layer#film {
        background-image: none;
    }
    
    .landscape-text {
        display: block;
    }
}

/**
 *  Corner controls and countdowns
 */

#top-left, #top-right {
    position: absolute;
    top: 0;
    z-index: 10000;
    height: 48px;
    min-width: 48px;
    background-color: rgba(0, 0, 0, 0.25);
    padding: 8px 16px;
    font-size: 18px;
    transition: background 0.2s;
}

#top-left {
    display: none;
    border-bottom-right-radius: 4px;
    left: 0;
}

#top-right {
    border-bottom-left-radius: 4px;
    right: 0;
}

#top-left:hover, #top-right:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

#top-left .bi, #top-right .bi {
    display: inline-block;
    font-size: 24px;
}

#fullscreen {
    border-radius: 4px;
    border: none;
    background: none;
    padding-left: 16px;
    transition: color 0.2s;
}

#fullscreen .bi-arrows-fullscreen {
    display: inline-block;
}

#fullscreen .bi-fullscreen-exit {
    display: none;
}

#fullscreen.active .bi-arrows-fullscreen {
    display: none;
}

#fullscreen.active .bi-fullscreen-exit {
    display: inline-block;
}

#volume {
    -webkit-appearance: none;
    appearance: none;
    margin: 3px;
    width: 40px;
    height: 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.5);
    outline: none;
    opacity: 0.5;
    -webkit-transition: 0.2s;
    transition: width opacity 0.2s;
}

#volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 8px;
    border: none;
    background: #fff;
    cursor: pointer;
}

#volume::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 8px;
    border: none;
    background: #fff;
    cursor: pointer;
}

#top-right:hover #volume {
    width: 120px;
    opacity: 1;
}

#countdown {
    display: inline-block;
    min-width: 60px;
    font-weight: bold;
}

#countdown.until-opening::before {
    content: 'Your show starts in: ';
}

#countdown.until-film.low {
    animation: flash-white-red 1s infinite;
}

#top-left, #top-left .bi, #top-right, #top-right .bi {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s;
}

#top-left:hover, #top-left:hover .bi, #top-right:hover, #top-right:hover .bi {
    color: #fff;
}

#mute, #help, #back, .show-map, .show-film, .show-monologue {
    border-radius: 4px;
    border: none;
    background: none;
    transition: color 0.2s;
}

#mute .bi-volume-mute-fill {
    display: none;
}

#mute .bi-volume-up {
    display: inline-block;
}

#mute.active .bi-volume-mute-fill {
    display: inline-block;
    animation: flash-white-red 1s infinite;
}

#mute.active .bi-volume-up {
    display: none;
}

@media (hover: none) {
    #top-left, #top-right {
        background-color: rgba(0, 0, 0, 0.50);
    }

    #volume, .bi-volume-up {
        display: none;
    }

    #fullscreen, #countdown, #top-right:hover #fullscreen, #top-right:hover #countdown, #help {
        color: rgba(255, 255, 255, 0.5);
    }
}

.systeminfo > p {
    font-size: 14px;
}
.systeminfo {
    border-radius: 15px;
    background: rgba(23, 23, 23, 1)
}

.countdowns {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 1000;
    border-top-right-radius: 4px;
    background-color: rgba(0, 0, 0, 0.25);
    padding: 0 4px;
    line-height: 20px;
    font-size: 12px;
    color: #fff;
}

/**
 *  Modal
 */

.modal .modal-header {
    border-bottom: none;
    background-color: #000;
    padding: 0 20px;
    color: #FFD413;
    text-align: center;
}

.modal .modal-title {
    margin-left: 30px;
    margin-bottom: 0;
    width: 100%;
}

.modal .modal-body {
    background-color: #000;
    position: relative;
}

/**
 *  Map
 */

#map-canvas {
    width: 100%;
    height: 100%;
}

.layer#maps-container {
    overflow: hidden;
    height: 100%;
    margin: 0px;
    padding: 0px;
    opacity: 0;
}

.layer#maps-container.show {
    opacity: 1;
}

#modal-video .modal-body {
    padding: 0;
}

#modal-video .modal-body .loading {
    position: absolute;
    font-size: 24px;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
}

#modal-video .modal-title.with-controls {
    margin-left: 90px;
    margin-right: 60px;
}

.modal-controls {
    position: absolute;
}

.modal-controls #mute {
    font-size: 24px;
    color: #fff;
}

.map-video-dimensions {
    width: 100%;
    height: 100%;
}

main .jq-toast-single {
    background-color: rgba(0, 0, 0, 0.25);
    background-image: url('/assets/pin-clicked.svg');
    font-family: 'Fira Sans';
    transition: all 0.3s;
}

main .jq-toast-single:hover {
    background-color: rgba(0, 0, 0, 0.5);
    background-image: url('/assets/pin.svg');
}

main .jq-has-icon {
    padding-left: 56px;
    background-position: 12px 12px;
}

main .close-jq-toast-single {
    top: 8px;
    right: 8px;
    font-size: 32px;
}

/**
 *  Credits
 */

 #credits {
    background: none;
 }

.credits, .credits-header {
    display: block;
    max-width: 500px;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px 15px;
    text-align: center;
    font-family: Calibri, Candara, Segoe, Segoe UI, Optima, Arial, sans-serif; 
    font-weight: 400;
    color: #fff;
}

.credits {
    max-width: 500px;
    max-height: calc(100% - 200px);
    background-color: rgba(0, 0, 0, 0.6);
    overflow-y: scroll;
    z-index: 1;
    direction: rtl;
}

.credits > * {
    direction: initial;
}

.credits-header {
    max-width: 500px;
    max-height: 300px;
    top: 0;
    left: 0;
    right: 0;
}

.credits p {
    text-align: center;
    font-family: Calibri, Candara, Segoe, Segoe UI, Optima, Arial, sans-serif; 
    font-weight: 400;
    color: #fff;
}

.credits .bold {
    font-weight: 700;
}

.loop {
    position: relative;
    height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

section {
    position: relative;
    text-align: center;
}

.center {
    align-content: center;
    text-align: center;
}

.text-yellow {
    color: #FFD413;
}

.form-select {
    margin: auto!important;
    width: unset!important;
}
