* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: #05070c;
    color: #ffffff;
    font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
}

.clock-shell {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #05070c;
}

#clockCanvas,
.dom-layer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#clockCanvas {
    display: block;
}

.dom-layer {
    pointer-events: none;
}

.legacy-clock-frame {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}

.plain-clock {
    position: absolute;
    right: 5vw;
    left: 5vw;
    text-align: center;
    line-height: 1;
    white-space: nowrap;
}

.plain-clock.align-center {
    top: 50%;
    transform: translateY(-50%);
}

.plain-clock.align-top {
    top: 11vh;
}

.plain-clock.align-bottom {
    bottom: 11vh;
}

.plain-time {
    display: block;
}

.plain-date {
    display: block;
    margin-top: 0.6em;
    opacity: 0.76;
    line-height: 1.2;
}

.world-clock {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    line-height: 1;
    text-align: center;
}

.world-cell {
    position: absolute;
    width: 50%;
    height: 50%;
    overflow: hidden;
}

.world-cell-1 {
    top: 0;
    left: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.world-cell-2 {
    top: 0;
    right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.world-cell-3 {
    bottom: 0;
    left: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.world-cell-4 {
    right: 0;
    bottom: 0;
}

.world-cell-inner {
    position: absolute;
    top: 50%;
    right: 5%;
    left: 5%;
    transform: translateY(-50%);
}

.world-label {
    overflow: hidden;
    margin-bottom: 2.2vh;
    font-size: 3vh;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.1;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.world-time {
    display: block;
    letter-spacing: 0;
    white-space: nowrap;
}

.world-date {
    overflow: hidden;
    margin-top: 2.2vh;
    line-height: 1.2;
    opacity: 0.82;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.countdown-clock {
    position: absolute;
    top: 50%;
    right: 5vw;
    left: 5vw;
    color: #f8fbff;
    line-height: 1;
    text-align: center;
    transform: translateY(-50%);
    white-space: nowrap;
}

.countdown-label {
    margin-bottom: 2.2vh;
    font-size: 3.2vh;
    line-height: 1.1;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.78;
}

.countdown-time {
    display: block;
}

.countdown-progress {
    display: block;
    width: 56vw;
    max-width: 760px;
    height: 1.4vh;
    min-height: 8px;
    margin: 4vh auto 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.16);
}

.countdown-progress-fill {
    width: 100%;
    height: 100%;
    background: #bde7ff;
}

.countdown-clock.is-finished .countdown-progress {
    background: rgba(255, 48, 79, 0.18);
}

.stopwatch-clock {
    position: absolute;
    top: 50%;
    right: 5vw;
    left: 5vw;
    color: #f8fbff;
    line-height: 1;
    text-align: center;
    transform: translateY(-50%);
    white-space: nowrap;
}

.stopwatch-label {
    margin-bottom: 2.2vh;
    font-size: 3.2vh;
    line-height: 1.1;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.78;
}

.stopwatch-time {
    display: block;
}

.stopwatch-lap {
    margin-top: 3vh;
    font-size: 3.2vh;
    line-height: 1.1;
    opacity: 0.82;
}

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

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

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

.qr-code-slot .rcRoomQrCodeLink {
    position: absolute;
    left: 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 left;
    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;
}

.fullscreenButton {
    position: absolute;
    left: 0;
    bottom: 0;
    display: block;
    width: 83px;
    min-height: 30px;
    margin: 0;
    padding: 0 5px;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    background: #f4f4f4;
    color: #101010;
    cursor: pointer;
    font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
    font-size: 11px;
    text-align: center;
}

.fullscreenButton:active {
    background: #d7d7d7;
}

@media (orientation: portrait) {
    .world-label {
        margin-bottom: 1.4vh;
        font-size: 2.1vh;
        letter-spacing: 1px;
    }

    .world-date {
        margin-top: 1.5vh;
    }

    .qr-panel {
        left: 1.1vh;
        bottom: 1.1vh;
        width: 134px;
        height: 186px;
    }

    .qr-code-slot .rcRoomQrCodeLink {
        transform: scale(0.8);
    }

    .fullscreenButton {
        width: 134px;
        min-height: 38px;
        font-size: 14px;
    }
}
