/*
 * Plain CSS on purpose, an exception to using styled-components: this styles the loading placeholder in index.html's
 * #root, which is on screen while the app's JavaScript is still downloading. styled-components only injects its styles
 * once that JavaScript has loaded and React is running, so it cannot style anything shown before then.
 * It lives in public/ and is linked from index.html's <head> rather than imported, so the browser loads it before the
 * first paint on the dev server too, and the app's bundled stylesheet stays unchanged (AP-1437's one-CSS-asset check).
 * React replaces the placeholder when it starts, and SkeletonLoaderBasic (fullPage) takes over in styled-components.
 */

@keyframes boot-shimmer {
    from {
        background-position: 200% 0;
    }
    to {
        background-position: -200% 0;
    }
}

.boot-placeholder {
    position: fixed;
    inset: 0;
    border-radius: var(--border-radius, 10px);
    background: linear-gradient(
        90deg,
        var(--neutral-grey-200, #ebebeb) 25%,
        var(--neutral-grey-100, #f5f5f5) 50%,
        var(--neutral-grey-200, #ebebeb) 75%
    );
    background-size: 200% 100%;
    animation: boot-shimmer 1.5s linear infinite;
}
