@import url('https://fonts.googleapis.com/css?family=Fira+Sans');

@font-face {
    font-family: Brothers;
    src: url('/assets/brother.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;
}

h1, h2, .tryater {
    font-family: Brothers, serif;
}

h1, .uc {
    text-transform: uppercase;
}

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;
}

audio track {
    position: absolute;
    bottom: 50px;
    left: 50%;
    z-index: 1000;
    transform: translateX(-50%);
}

/**
 *  Main
 */

.bg {
    background-image: url("/assets/background.jpg");
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.bg.bg-intro {
    background-image: url("/assets/intro/poster.jpg");
}

.bg.bg-black {
    background: #000;
}

/**
 *  Start screen
 */

#start-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
    padding: 50px 15px;
    text-align: center;
    font-size: 30px;
    color: #fff;
}

#start-logo {
    margin: auto;
    margin-bottom: 30px;
    width: auto;
}

#code {
    margin-top: 15px;
    width: 200px;
    height: 48px;
    border-radius: 4px;
    border: 0px;
    background-color: #fff;
}

#code,
#code::placeholder {
    text-align: center;
    font-size: 24px;
    color: #000;
}

#start {
    display: block;
    margin: auto;
    margin-top: 30px;
    width: 200px;
    border-radius: 6px;
    border: none;
    background-color: #FFD413;
    padding: 4px 16px 8px;
    font-size: 24px;
    color: #000;
}

/**
 *  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;
}

#opening, #film {
    pointer-events: none;
}

#maps-container, #film {
    background-image: url('/assets/film/poster.jpg');
}

#subtitles {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.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;
}

.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;
}

#video-map {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
}

#video-map .vjs-loading-spinner {
    top: 35%;
}

@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;
    }
    
    #maps-container, #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.50);
}

#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;  /* Override default CSS styles */
    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;
}

[lang="fy"] #countdown.until-opening::before {
    content: 'Dyn foarstelling begjint oer: ';
}

[lang="nl"] #countdown.until-opening::before {
    content: 'Jouw voorstelling begint over: ';
}

[lang="en"] #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 {
    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%;
}

#maps-container {
    overflow: hidden;
    height: 100%;
    margin: 0px;
    padding: 0px;
    opacity: 0;
}

#maps-container.show {
    opacity: 1;
}

#modal-video .modal-body {
    padding: 0;
}

#modal-video .modal-body .loading {
    position: absolute;
    font-size: 20px;
    top: 50%;
    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/map/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/map/pin.svg');
}

main .jq-has-icon {
    padding-left: 56px;
    padding-right: 28px;
    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;
}


/**
 *  Guestbook
 */

.guestbook-container {
    max-height: 100vh;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 15px;
    overflow: auto;
}


.guestbook-comment {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 15px;
}

#guestbook-form {
    border-radius: 8px;
    padding: 15px;
}

#guestbook-form .form-check-input:checked {
    background-color: #FFD413;
    border-color: #FFD413;
}

#guestbook-form .form-control:focus {
    border-color: #ffdf50;
    box-shadow: 0 0 0 0.25rem rgb(255 223 80 / 25%)
}

#guestbook-form .form-check-input:focus {
    border-color: #fff0af;
    box-shadow: 0 0 0 0.25rem rgb(255 240 175 / 25%)
}

@media (min-width: 960px) {
    .guestbook-comment, #guestbook-form {
        padding: 15px 200px;
    }
}

.text-red {
    color: #f00;
}
