html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* The page colours Compose paints (NurseryColors' warm page and night page), so the hand-over from
   this boot page to the first frame is not a flash. PageColoursOutsideComposeTest keeps them equal. */
body {
    background: #F8F1EB;
    color: #22416A;
}

@media (prefers-color-scheme: dark) {
    body {
        background: #12161C;
        color: #A9C7F0;
    }
}

#admin {
    width: 100%;
    height: 100%;
}

/* Over the admin's canvas until the admin has composed its first frame (markAdminStarted). */
.boot {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: inherit;
}

/* An author `display` beats the browser's own [hidden] rule, so it is restated. */
.boot[hidden],
[data-admin-started] .boot {
    display: none;
}

/* What boot.js (one language) and the noscript block (both, stacked) show when the app cannot start. */
.boot-card {
    flex-direction: column;
    gap: 24px;
    padding: 16px;
    box-sizing: border-box;
    text-align: center;
    font-family: system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.boot-card p {
    max-width: 32em;
    margin: 0 0 12px;
}

.boot-card button {
    min-height: 44px;
    padding: 10px 24px;
    border: 1px solid currentColor;
    border-radius: 22px;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.boot-card button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.boot .track {
    stroke: currentColor;
    opacity: 0.2;
}

.boot .arc {
    stroke: currentColor;
    transform-origin: 25px 25px;
    animation: boot-spin 1s linear infinite;
}

@keyframes boot-spin {
    to {
        transform: rotate(360deg);
    }
}

/* A reader who asked for less movement gets a still mark, not a spinner. */
@media (prefers-reduced-motion: reduce) {
    .boot .arc {
        animation: none;
    }
}
