﻿.avalonia-splash {
    position: absolute;
    height: 100%;
    width: 100%;
    background: #121212;
    font-family: 'Outfit', sans-serif;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
    pointer-events: none;
}

/* Light theme are currently similar to dark theme */
@media (prefers-color-scheme: light) {
    .avalonia-splash {
        background: #121212;
    }

    .avalonia-splash h2 {
        color: #1b2a4e;
    }

    .avalonia-splash a {
        color: #0D6EFD;
    }
}

@media (prefers-color-scheme: dark) {
    .avalonia-splash {
        background: #121212;
    }

    .avalonia-splash h2 {
        color: white;
    }

    .avalonia-splash a {
        color: white;
    }
}

.avalonia-splash h2 {
    font-weight: 400;
    font-size: 2rem;
}

.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;
}

.loading-text {
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading-percentage::before {
    content: var(--wasm-load-percentage-text, "0%");
}

.loading-bar {
    width: 300px;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
}

.loading-progress {
    height: 100%;
    background-color: #007acc;
    width: var(--wasm-load-percentage, 0%);
    transition: width 0.3s ease;
}