
:root {
    color-scheme: dark;
    font-family: Arial, Helvetica, sans-serif;
    background: #000;
}

* {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #000 !important;
}

#screen {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

/* Slides */

.scene {
    position: absolute;
    inset: 0;
    display: flex;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 600ms ease-in-out;
}

#slideshow {
    align-items: center;
    justify-content: center;
    background: #000;
    opacity: 1;
}

#slide-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0;
    transition: opacity 600ms ease-in-out;
    user-select: none;
    -webkit-user-drag: none;
}

#slide-image.visible,
#clock-screen.visible {
    opacity: 1;
}

/* Clock */

.clock-screen {
    align-items: center;
    justify-content: center;
    background: #080b12;
    color: #fff;
    text-align: center;
}

.clock-content {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 12px 30px;
}

.date {
    color: #d6dce8;
    font-size: clamp(18px, 4.2vw, 65px);
    font-weight: 400;
    letter-spacing: 0.035em;
}

.time {
    color: #fff;
    font-size: clamp(48px, 11vw, 180px);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* Loading screen */

#loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    color: white;
    opacity: 1;
    transition: opacity 600ms ease-in-out;
}

#loading-screen.finished {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    width: 80%;
    max-width: 600px;
    text-align: center;
}

.loading-content h1 {
    font-size: clamp(28px, 4vw, 48px);
    margin-bottom: 35px;
}

#loading-status {
    font-size: 20px;
    margin-bottom: 20px;
}

.progress-container {
    width: 100%;
    height: 12px;
    background: #292929;
    border-radius: 20px;
    overflow: hidden;
}

#progress-bar {
    width: 0%;
    height: 100%;
    background: white;
    border-radius: 20px;
    transition: width 150ms ease;
}

#loading-count {
    margin-top: 15px;
    font-size: 16px;
    color: #aaa;
}

/* Empty slideshow */

#empty-message {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    color: white;
    font-size: clamp(18px, 3vw, 38px);
    text-align: center;
}

#empty-message[hidden] {
    display: none;
}

#empty-message code {
    margin-top: 12px;
    color: #aaa;
    font-size: 0.65em;
}

/* Hide cursor everywhere */
* {
    cursor: none !important;
}