* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    background: #111111;
    color: #f4f4f4;
    font-family: Arial, Helvetica, sans-serif;
}

#viewerShell {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #111111;
}

#pdfViewport {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    overflow: auto;
    background: #2b2b2b;
}

#pdfFrame {
    display: block;
    width: 100%;
    height: 50000px;
    border: 0;
    background: #2b2b2b;
}

body.has-pdf #pdfViewport {
    display: block;
}

#emptyState {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    background: #171717;
}

body.has-pdf #emptyState {
    display: none;
}

#emptyPanel {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 320px;
    max-width: 86vw;
    min-height: 330px;
    margin: -165px 0 0 -160px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: #242424;
    text-align: center;
}

#emptyPanel h1 {
    margin: 0 0 10px;
    font-size: 36px;
    line-height: 1;
}

#emptyMessage {
    min-height: 38px;
    margin: 0 0 16px;
    color: #d5d5d5;
    font-size: 16px;
    line-height: 1.25;
}

#qrCodeSlot {
    width: 166px;
    min-height: 166px;
    margin: 0 auto 14px;
}

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

.rcRoomQrCodeLink {
    display: block;
    width: 150px;
    margin: 0 auto;
    border: solid 8px #ffffff;
    border-radius: 8px;
    background-color: #ffffff;
    color: #000000;
    box-shadow: 0 0 32px #000000;
    text-align: center;
    text-decoration: none;
    transition: opacity 1s ease;
}

.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;
    border-radius: 8px 8px 0 0;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rcRoomQrCode,
.rcRoomQrCodeLink img,
.rcRoomQrCodeLink canvas {
    width: 150px;
    height: 150px;
}

.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;
    border-radius: 0 0 8px 8px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#fullscreenButton {
    min-width: 124px;
    min-height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 6px;
    background: #f1f1f1;
    color: #111111;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

#pointerLayer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 8;
    overflow: hidden;
    pointer-events: none;
}

#pointerMark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 92px;
    height: 122px;
    margin: -16px 0 0 -14px;
    opacity: 0;
    transform: translate(0, 0);
}

body.pointer-visible #pointerMark {
    opacity: 1;
}

#pointerSvg {
    display: block;
    width: 92px;
    height: 122px;
}

#pointerOutline {
    fill: #000000;
}

#pointerFill {
    fill: #ffffff;
}

#screenQrPanel {
    position: absolute;
    top: 1.5vh;
    left: 1.5vh;
    z-index: 12;
    display: none;
    width: 108px;
    height: 142px;
    overflow: visible;
    pointer-events: auto;
}

body.has-pdf.qr-visible #screenQrPanel {
    display: block;
}

#screenQrCodeSlot {
    position: absolute;
    top: 0;
    left: 0;
    width: 108px;
    height: 142px;
}

#screenQrPanel .rcRoomQrCodeLink {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    transform: scale(0.65);
    transform-origin: top left;
}

body.lean-paint #emptyState,
body.lean-paint #emptyPanel {
    box-shadow: none;
    filter: none;
}

@media (orientation: portrait) {
    #screenQrPanel {
        top: 1vh;
        left: 1vh;
    }

    #pointerMark {
        width: 76px;
        height: 102px;
        margin: -12px 0 0 -10px;
    }

    #pointerSvg {
        width: 76px;
        height: 102px;
    }
}
