/* Lean-paint fullscreen display: flat colours, no gradients, shadows, or filters. */
* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
    background: #101820;
    color: #f7f1e3;
    font-family: Georgia, "Times New Roman", serif;
    transition: background-color 700ms ease;
}

.quote-shell {
    position: relative;
    display: block;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    background: #101820;
    transition: background-color 700ms ease;
}

.quote-frame {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    width: auto;
    height: auto;
    padding: 8vh 7vw;
}

.quote-content {
    position: absolute;
    top: 0;
    right: 7vw;
    left: 7vw;
    display: block;
    width: auto;
    height: auto;
    max-height: none;
    overflow: visible;
    text-align: center;
    opacity: 1;
    transition: opacity 650ms ease;
}

.quote-content.is-entering {
    opacity: 0;
}

.quote-content.is-exiting {
    opacity: 0;
}

.quote-text {
    display: block;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    color: #f7f1e3;
    font-size: 72px;
    font-weight: bold;
    line-height: 1.15;
    letter-spacing: 0;
    word-wrap: break-word;
}

.quote-word {
    display: inline-block;
    margin: 0 -0.03em;
    padding: 0 0.07em;
    border-bottom: 0.12em solid transparent;
    border-radius: 0.08em;
    background: transparent;
    color: #f7f1e3;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.quote-word.is-read {
    color: #e5ddcb;
}

.quote-word.is-active {
    border-bottom-color: #f7f1e3;
    background: #f2c94c;
    color: #101820;
}

.quote-author {
    display: block;
    width: 100%;
    max-width: 1200px;
    margin: 38px auto 0;
    color: #f2c94c;
    font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
    font-size: 30px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: uppercase;
    word-wrap: break-word;
}

.quote-status {
    position: absolute;
    right: 3vh;
    bottom: 2vh;
    left: 3vh;
    margin: 0;
    color: #f7f1e3;
    font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.25;
    opacity: 0.78;
    text-align: center;
}

.qr-panel {
    position: absolute;
    right: 1.5vh;
    bottom: 1.5vh;
    z-index: 3;
    width: 134px;
    height: 154px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #000000;
    overflow: visible;
    text-align: center;
    pointer-events: auto;
}

.qr-code-slot {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 134px;
    height: 134px;
}

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

.qr-code-slot .rcRoomQrCodeLink {
    position: absolute;
    right: 0;
    bottom: 0;
    display: block;
    width: 150px;
    margin: 0;
    border: solid 8px #ffffff;
    border-radius: 8px;
    background-color: #ffffff;
    color: #000000;
    text-decoration: none;
    transform-origin: bottom right;
    transform: scale(0.5);
}

.qr-panel .rcTechLabel {
    margin: 0 0 8px 0;
    padding: 4px;
    overflow: hidden;
    background-color: #000000;
    color: #ffffff;
    font-family: monospace;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.2em;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qr-panel .rcRoomId {
    margin: 8px 0 0 0;
    padding: 4px;
    overflow: hidden;
    background-color: #000000;
    color: #ffffff;
    font-family: monospace;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.25em;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qr-panel .rcRoomQrCode,
.qr-panel img,
.qr-panel canvas {
    width: 150px;
    height: 150px;
}

.qr-panel img,
.qr-panel canvas {
    display: block;
    margin: 0 auto;
}

@media (orientation: portrait) {
    .quote-frame {
        padding: 7vh 6vw;
    }

    .quote-content {
        right: 6vw;
        left: 6vw;
    }

    .quote-author {
        margin-top: 28px;
    }

    .quote-status {
        right: 2vh;
        bottom: 1.5vh;
        left: 2vh;
        font-size: 16px;
    }

    .qr-panel {
        right: 44px;
        bottom: 1.1vh;
        width: 134px;
        height: 154px;
    }
}
