﻿/* HTML styles for the splash screen */
.avalonia-splash {
    position: absolute;
    height: 100%;
    width: 100%;
    background: white;
    font-family: 'Outfit', sans-serif;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

.avalonia-splash h2 {
    font-weight: 400;
    font-size: 1.5rem;
}

.avalonia-splash a {
    text-decoration: none;
    font-size: 2.5rem;
    display: block;   
}

.avalonia-splash.splash-close {
    transition: opacity 200ms, display 200ms;
    display: none;
    opacity: 0;
}

.banner {
    position: absolute;
    width: 100%;
    height: 2em;
    background: #000;
    z-index: 1000;
    font-family: 'Outfit', sans-serif;
    justify-content: center;
    align-items: center;
    display: flex;
    color: #fff;
}

.loader {
    width: 48px;
    height: 48px;
    border: 3px solid #555555;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

.loader::after {
    content: '';
    box-sizing: border-box;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid;
    border-color: #FF3D00 transparent;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Splash "dots" indicator variant (BusyIndicatorKind="dots" on the brand
   index). Mirrors the WASM Avalonia BusyContentControl dots variant —
   three hollow rings travel left → right while scaling + fading on a
   1.6s loop, phase-shifted by 0 / 0.55s / 1.1s so 1–3 are visible at
   any moment. The splash JS swaps `span.loader` for `span.loader-dots`
   when this variant is selected; brands without the override never hit
   these styles. Color is driven by --busy-color (set inline by splash
   JS from brand.BusyIndicatorColor). */
.loader-dots {
    width: 90px;
    height: 30px;
    display: inline-block;
    position: relative;
}
.loader-dots i {
    position: absolute;
    top: 8px;
    left: -7px;
    width: 14px;
    height: 14px;
    box-sizing: border-box;
    border: 1.5px solid var(--busy-color, #FF3D00);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.2);
    animation: loader-travel 1.6s linear infinite;
}
.loader-dots i:nth-child(2) { animation-delay: 0.55s; }
.loader-dots i:nth-child(3) { animation-delay: 1.1s; }

@keyframes loader-travel {
    0%   { left: -7px; transform: scale(0.2);  opacity: 0; }
    20%  { left: 10px; transform: scale(0.55); opacity: 1; }
    50%  { left: 35px; transform: scale(1.0);  opacity: 1; }
    80%  { left: 65px; transform: scale(0.45); opacity: 0.6; }
    100% { left: 83px; transform: scale(0.2);  opacity: 0; }
}

