/*
 * Fallback message placed directly after #root. It becomes visible when the app has not rendered any
 * content after 10 seconds: the bundle did not run (for example in a browser the check did not
 * catch), the network is very slow, config.json stalled or failed, or the React tree crashed and
 * unmounted. As soon as the app renders content, the message is hidden again.
 * "Content" means an element nested inside an element in #root, because WizardApp always renders an
 * empty container div first. Every browser that passes unsupported-browser-check.js supports :has().
 * The message only appears when JavaScript runs: unsupported-browser-check.js adds the "js" class to
 * <html>. Without JavaScript the <noscript> text is shown instead.
 * Kept in a separate file because the CSP does not allow inline styles.
 */
.unsupported-fallback {
    visibility: hidden;
    opacity: 0;
    margin: 2rem 1rem;
    font-family: sans-serif;
}

.js .unsupported-fallback {
    animation: unsupported-fallback-show 0.3s ease-in 10s forwards;
}

#root:has(* *) ~ .unsupported-fallback {
    display: none;
}

@keyframes unsupported-fallback-show {
    from {
        visibility: visible;
        opacity: 0;
    }
    to {
        visibility: visible;
        opacity: 1;
    }
}
