* {
    box-sizing: border-box;
}

[hidden] {
    display: none;
}

html,
body {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
    background: #000;
}

#pixelStage {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.slide {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    image-rendering: optimizeSpeed;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    transition: opacity 700ms linear;
}

.slide.is-visible {
    opacity: 1;
}

.emptyGallery {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: 64vh;
    max-width: 78vw;
    margin: -13vh 0 0 -32vh;
    padding: 4vh 5vh;
    border: 0.5vh solid #5966a2;
    background: #10152d;
    color: #fff;
    font-family: Consolas, "Courier New", monospace;
    text-align: center;
}

.emptyGalleryEyebrow {
    margin: 0 0 1.2vh;
    color: #5df2c2;
    font-size: 1.6vh;
    font-weight: bold;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.emptyGallery h1 {
    margin: 0;
    color: #ff78b7;
    font-size: 7vh;
    line-height: 1;
    text-transform: uppercase;
}

.emptyGalleryMessage {
    margin: 2vh 0 0;
    color: #d9ddf5;
    font-size: 2vh;
    font-weight: bold;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.displayControls {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: -webkit-flex;
    display: flex;
}

.displayControl {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-family: Consolas, "Courier New", monospace;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -ms-touch-action: manipulation;
    touch-action: manipulation;
}

.previousControl,
.nextControl {
    -webkit-flex: 0 0 30%;
    flex: 0 0 30%;
}

.toggleControl {
    -webkit-flex: 1 1 40%;
    flex: 1 1 40%;
}

.cueCard {
    display: block;
    width: 13vh;
    min-width: 92px;
    max-width: 142px;
    height: 13vh;
    min-height: 92px;
    max-height: 142px;
    padding-top: 2.3vh;
    border: 4px solid rgba(255, 255, 255, 0.82);
    background: rgba(5, 5, 16, 0.72);
    opacity: 0;
    text-align: center;
    -webkit-transform: scale(0.86);
    transform: scale(0.86);
    -webkit-transition: opacity 160ms linear, -webkit-transform 160ms ease-out;
    transition: opacity 160ms linear, transform 160ms ease-out;
}

.previousControl .cueCard {
    border-color: rgba(255, 106, 173, 0.9);
}

.toggleControl .cueCard {
    border-color: rgba(93, 242, 194, 0.9);
}

.nextControl .cueCard {
    border-color: rgba(255, 209, 102, 0.9);
}

.displayControls.is-visible .cueCard {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
}

.displayControl:focus {
    outline: 0;
}

.cueSymbol,
.cueLabel {
    display: block;
}

.cueSymbol {
    height: 5.2vh;
    min-height: 38px;
    max-height: 56px;
    font-size: 4.5vh;
    font-weight: bold;
    line-height: 1;
}

.cueLabel {
    margin-top: 0.8vh;
    font-size: 1.35vh;
    font-weight: bold;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
}

#viewerMessage {
    position: absolute;
    left: 2vh;
    bottom: 2vh;
    z-index: 3;
    max-width: 70vw;
    margin: 0;
    padding: 1vh 1.4vh;
    background: #5b1623;
    color: #fff;
    font: bold 1.6vh/1.3 Arial, sans-serif;
}

#qrPanel {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 4;
    width: 84px;
    height: 117px;
}

.rcRoomQrCodeLink,
.rcRoomQrCodeLink * {
    box-sizing: content-box;
}

.rcRoomQrCodeLink {
    position: absolute;
    right: 0;
    bottom: 0;
    display: block;
    width: 150px;
    border: solid 8px #fff;
    border-radius: 8px;
    background-color: #fff;
    color: #fff;
    text-align: center;
    text-decoration: none;
    transform: scale(0.5);
    transform-origin: bottom right;
}

.rcTechLabel {
    margin: 0 0 8px 0;
    padding: 4px;
    border-radius: 8px 8px 0 0;
    background-color: #000;
    color: #fff;
    font-family: monospace;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.2em;
}

.rcRoomQrCode {
    width: 150px;
    height: 150px;
}

.rcRoomId {
    margin: 8px 0 0 0;
    padding: 4px;
    border-radius: 0 0 8px 8px;
    background-color: #000;
    color: #fff;
    font-family: monospace;
    font-size: 16px;
    letter-spacing: 0.25em;
}

body.lean-paint .slide {
    transition: opacity 250ms linear;
}

body.lean-paint .cueCard {
    transition: none;
}

@media (orientation: portrait) {
    .slide {
        object-fit: contain;
    }

    .cueCard {
        width: 10vh;
        min-width: 72px;
        height: 10vh;
        min-height: 72px;
        padding-top: 1.7vh;
    }

    .cueSymbol {
        min-height: 30px;
        font-size: 3.2vh;
    }

    .emptyGallery {
        width: 40vh;
        max-width: 84vw;
        margin: -10vh 0 0 -20vh;
        padding: 3vh 2vh;
    }

    .emptyGallery h1 {
        font-size: 5vh;
    }
}
