/* Breevah on the web: one canvas that fills the window, like the desktop app. */
:root {
    --bg: #ffffff;
    --fg: #050012;
    color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #050012;
        --fg: #ffffff;
    }
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--bg);
    color: var(--fg);
    overscroll-behavior: none;
    /* An app, not a page: nothing to select, no callouts, no tap flashes. */
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Text fields (Compose's input element) keep typing, selecting and pasting. */
input, textarea, [contenteditable="true"] {
    -webkit-user-select: text;
    user-select: text;
}

canvas {
    display: block;
    outline: none;
}

#boot {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    z-index: 10;
    transition: opacity 0.35s ease;
}
#boot img {
    width: 72px;
    height: auto;
    animation: breathe 2.4s ease-in-out infinite;
    pointer-events: none;
}
#boot.done {
    opacity: 0;
    pointer-events: none;
}
#boot[data-failed]::after {
    content: attr(data-failed);
    position: absolute;
    bottom: 22%;
    left: 16px;
    right: 16px;
    text-align: center;
    font: 15px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
    #boot img { filter: invert(1); }
}
@keyframes breathe {
    0%, 100% { transform: scale(0.94); opacity: 0.75; }
    50% { transform: scale(1.04); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    #boot img { animation: none; }
}

.noscript {
    position: fixed;
    inset: 40% 16px auto 16px;
    text-align: center;
    font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* No printing of the app's screens. */
@media print {
    html, body { display: none !important; }
}
