/*
 * PPT-Oke
 * Copyright (C) 2026 Brian Teeman
 * SPDX-License-Identifier: GPL-3.0-or-later
 */

:root {
    background: #10131a;
    color: #f7f7f4;
    color-scheme: dark;
    font-family: Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    margin: 0;
    min-height: 100vh;
}

main {
    display: flex;
    flex: 1;
    justify-content: center;
    padding: 2rem;
}

.screen {
    text-align: center;
    align-items: center;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    width: min(100%, 900px);
}

.title-screen .actions {
    bottom: 0;
    position: absolute;
}

h1 {
    font-size: clamp(2rem, 6vw, 6rem);
    margin: 0 0 1rem;
    text-transform: uppercase;
}

h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin: 0 auto 2rem;
    max-width: 18ch;
}

p {
    font-size: 1.2rem;
}

.eyebrow {
    color: #8fcbff;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.button-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    margin-top: 2rem;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

button {
    appearance: none;
    background: #202b3b;
    border: 1px solid #8fcbff;
    border-radius: .4rem;
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-size: 1.1rem;
    padding: .85rem 1.3rem;
}

button:hover,
button:focus-visible {
    background: #304564;
    outline: 3px solid #f7c948;
    outline-offset: 3px;
}

button:disabled {
    cursor: not-allowed;
    opacity: .45;
}

button.primary {
    background: #177a55;
    border-color: #79e2ba;
}

button.primary:hover,
button.primary:focus-visible {
    background: #209b6c;
}

footer {
    border-top: 1px solid #394150;
    color: #aeb5c0;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    justify-content: center;
    padding: 1rem;
}

.countdown {
    font-size: clamp(6rem, 24vw, 14rem);
    font-weight: 700;
    line-height: 1;
    margin: 1rem 0;
}

.slideshow-screen {
    background: #000;
    height: 100vh;
    inset: 0;
    position: fixed;
}

#slideImage {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.slide-details {
    bottom: 0;
    left: 0;
    padding: 1rem;
    position: absolute;
    right: 0;
    text-align: center;
    text-shadow: 0 1px 3px #000;
}

.slide-details p {
    margin: .5rem 0 0;
}

.progress-track {
    background: rgb(255 255 255 / .35);
    border-radius: 999px;
    height: .5rem;
    overflow: hidden;
}

.progress-bar {
    background: #f7c948;
    height: 100%;
    transition: width .1s linear;
    width: 0;
}

.end-image {
    display: block;
    margin: 0 auto 2rem;
    max-height: min(65vh, 650px);
    max-width: 100%;
}

.error-message {
    color: #ffb4ab;
    margin: 1.5rem auto;
    max-width: 42rem;
}

@media (max-width: 540px) {
    main {
        padding: 1rem;
    }

    .actions {
        align-items: stretch;
        flex-direction: column;
    }
}
