/* The website's host page styles: the same as the desktop's (Indexed.Desktop/wwwroot/app.css), without its
   status-bar spacer. MudBlazor provides the theme; this only styles the host page, the loading screen and Blazor's error bar. */

html, body {
    margin: 0;
    font-family: 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
    /* Follow the theme; the dark fallbacks only apply before MudBlazor sets its variables, so the window doesn't flash white. */
    background: var(--mud-palette-background, #0B0B0C);
    color: var(--mud-palette-text-primary, #F2EFE8);
}

/* Loading screen. Pure black in both themes on purpose: it shows before the theme exists, and the app always
   starts dark. Sits above every MudBlazor layer (they top out at 1600) but below the error bar (2000). */
#idx-splash {
    position: fixed;
    inset: 0;
    z-index: 1900;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    background: #000000;
    transition: opacity 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

#idx-splash.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.idx-splash-emblem {
    width: 128px;
    height: 128px;
}

.idx-splash-label {
    color: #F2EFE8;
    font-size: 1rem;
    letter-spacing: 0.04em;
    /* The longer "server may be waking up" line wraps on a phone: centred, clear of the screen edges. */
    max-width: 32ch;
    padding-inline: 1rem;
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    #idx-splash {
        transition: none;
    }
}

#blazor-error-ui {
    color-scheme: dark only;
    background: #1E1C19;
    color: #F2EFE8;
    border-top: 1px solid #E07A70;
    bottom: 0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 2000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

