* {
    box-sizing: border-box;
}

[hidden] {
    display: none;
}

html,
body {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
    background-color: #000;
    background-image: repeating-linear-gradient(45deg, #090909 25%, transparent 25%, transparent 75%, #090909 75%, #090909), repeating-linear-gradient(45deg, #090909 25%, #000 25%, #000 75%, #090909 75%, #090909);
    background-position: 0 0, 10px 10px;
    background-size: 20px 20px;
    color: #f3f1ea;
    font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

button {
    font: inherit;
}

#stage,
#slideLayer,
#swipeLayer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    -ms-touch-action: none;
    touch-action: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#stage {
    background-color: #000;
    background-image: repeating-linear-gradient(45deg, #090909 25%, transparent 25%, transparent 75%, #090909 75%, #090909), repeating-linear-gradient(45deg, #090909 25%, #000 25%, #000 75%, #090909 75%, #090909);
    background-position: 0 0, 10px 10px;
    background-size: 20px 20px;
}

#slideLayer {
    background-color: #000;
    background-image: repeating-linear-gradient(45deg, #090909 25%, transparent 25%, transparent 75%, #090909 75%, #090909), repeating-linear-gradient(45deg, #090909 25%, #000 25%, #000 75%, #090909 75%, #090909);
    background-position: 0 0, 10px 10px;
    background-size: 20px 20px;
    cursor: pointer;
    z-index: 1;
    outline: none;
}

#swipeLayer {
    pointer-events: none;
    z-index: 4;
}

body.scale-border #slideLayer {
    background-color: #000;
    background-image: repeating-linear-gradient(45deg, #090909 25%, transparent 25%, transparent 75%, #090909 75%, #090909), repeating-linear-gradient(45deg, #090909 25%, #000 25%, #000 75%, #090909 75%, #090909);
    background-position: 0 0, 10px 10px;
    background-size: 20px 20px;
}

.slideImage {
    position: absolute;
    top: -3%;
    left: -3%;
    width: 106%;
    height: 106%;
    object-fit: cover;
    max-width: none;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 2000ms ease;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body.transition-none .slideImage {
    transition: none;
}

body.transition-fade .motion-a,
body.transition-fade .motion-b,
body.transition-fade .motion-c,
body.transition-fade .motion-d,
body.transition-none .motion-a,
body.transition-none .motion-b,
body.transition-none .motion-c,
body.transition-none .motion-d {
    animation: none;
}

body.scale-fill .slideImage {
    top: -3%;
    left: -3%;
    width: 106%;
    height: 106%;
    object-fit: cover;
    padding: 0;
    border: 0;
}

body.scale-border .slideImage {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background-color: transparent;
    object-fit: contain;
}

body.scale-stretch .slideImage {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    object-fit: fill;
}

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

.swipeGhost {
    position: absolute;
    display: none;
    max-width: none;
    opacity: 0;
    animation: none;
    transition: none;
}

.motion-a {
    animation: kenBurnsA linear forwards;
}

.motion-b {
    animation: kenBurnsB linear forwards;
}

.motion-c {
    animation: kenBurnsC linear forwards;
}

.motion-d {
    animation: kenBurnsD linear forwards;
}

@keyframes kenBurnsA {
    from {
        transform: scale(1.02) translate(-1.5%, -1.5%);
    }

    to {
        transform: scale(1.13) translate(2%, 1.5%);
    }
}

@keyframes kenBurnsB {
    from {
        transform: scale(1.12) translate(2%, -1%);
    }

    to {
        transform: scale(1.03) translate(-2%, 1.5%);
    }
}

@keyframes kenBurnsC {
    from {
        transform: scale(1.04) translate(0, 2%);
    }

    to {
        transform: scale(1.15) translate(-2%, -1.5%);
    }
}

@keyframes kenBurnsD {
    from {
        transform: scale(1.12) translate(-2%, 0);
    }

    to {
        transform: scale(1.04) translate(2%, -1%);
    }
}

#statusPanel {
    position: absolute;
    left: 50%;
    bottom: 2.4vh;
    z-index: 5;
    width: 72vh;
    max-width: 82vw;
    padding: 1.15vh 1.35vh;
    border: 0;
    border-radius: 0.45vh;
    background: #181d21;
    transform: translateX(-50%);
}

body.has-images #statusPanel {
    background: rgba(12, 14, 17, 0.82);
}

#panelHeader {
    position: relative;
    min-height: 2.25vh;
    padding-right: 15vh;
}

#eyebrow {
    margin: 0;
    color: #9ad9ff;
    font-size: 1.2vh;
    font-weight: 700;
    letter-spacing: 0.14vh;
    line-height: 2.25vh;
    text-transform: uppercase;
}

#slideTitle {
    margin: 0.45vh 0 0;
    overflow: hidden;
    color: #fff;
    font-size: 2.65vh;
    line-height: 1.08;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#slideMeta {
    margin: 0.45vh 0 0;
    overflow: hidden;
    color: #aebdca;
    font-size: 1.2vh;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#slideSummary {
    margin: 0.35vh 0 0;
    overflow: hidden;
    color: #f7c948;
    font-size: 1.2vh;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#statusLine,
#progressText {
    margin: 0.55vh 0 0;
    color: #d6e0e7;
    font-size: 1.2vh;
    line-height: 1.25;
}

#progressWrap {
    width: 100%;
    height: 8px;
    margin-top: 0.75vh;
    overflow: hidden;
    border-radius: 3px;
    background: #28323a;
}

#progressBar {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: transparent;
    white-space: nowrap;
}

.progressSegment {
    display: inline-block;
    width: 5%;
    height: 8px;
    margin: 0;
    padding: 0;
    background: #3a454e;
    vertical-align: top;
}

.progressSegment.active {
    background: #f7c948;
}

body.mode-playing #progressWrap,
body.mode-playing #progressText,
body.mode-playing #statusLine,
body.mode-idle #progressWrap,
body.mode-idle #progressText {
    display: none;
}

#scanPanelWrap {
    position: absolute;
    top: 3vh;
    right: 3vh;
    z-index: 6;
    text-align: center;
}

#scanPanel {}

.offlineQrPanel {
    display: block;
    width: 108px;
    height: 146px;
    box-sizing: border-box;
    margin: 0 auto;
    border: solid 4px #fff;
    border-radius: 4px;
    background: #fff;
    color: #111;
    text-align: center;
}

.offlineQrLabel {
    display: table-cell;
    width: 100px;
    height: 138px;
    padding: 0 6px;
    background: #000;
    color: #fff;
    font-family: monospace;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    vertical-align: middle;
    text-transform: uppercase;
}

#fullscreenButton {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    width: 13.5vh;
    height: 2.25vh;
    margin: 0;
    border: 0;
    border-radius: 0.3vh;
    background: #26313a;
    color: #f3f1ea;
    font-size: 1.1vh;
    font-weight: 700;
    line-height: 2.25vh;
    padding: 0;
}

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

.rcRoomQrCodeLink {
    display: block;
    width: 150px;
    border: solid 8px #fff;
    border-radius: 8px;
    color: #fff;
    background-color: #fff;
    text-align: center;
    transition: opacity 1s ease;
    text-decoration: none;
    transform-origin: top right;
    transform: scale(0.6);
}

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

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

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

body.hide-qr #scanPanelWrap {
    display: none;
}

body.hide-info #statusPanel {
    display: none;
}

body.lean-paint #statusPanel,
body.lean-paint #fullscreenButton,
body.lean-paint .rcRoomQrCodeLink {
    box-shadow: none;
}

body.lean-paint .slideImage {
    transition: opacity 800ms linear;
}

@media (orientation: portrait) {
    #statusPanel {
        left: 2vh;
        right: 2vh;
        bottom: 2vh;
        width: auto;
        max-width: none;
        padding: 1vh 1.15vh;
        border-radius: 0.4vh;
        transform: none;
    }

    #panelHeader {
        min-height: 22px;
        padding-right: 98px;
    }

    #eyebrow {
        font-size: 10px;
        line-height: 22px;
    }

    #slideTitle {
        font-size: 2.4vh;
    }

    #slideMeta,
    #slideSummary {
        font-size: 1.12vh;
    }

    #statusLine,
    #progressText {
        font-size: 1.12vh;
    }

    #scanPanelWrap {
        top: 1.5vh;
        right: 1.5vh;
    }

    #fullscreenButton {
        width: 90px;
        height: 22px;
        margin: 0;
        font-size: 10px;
        line-height: 22px;
        padding: 0;
    }
}
