﻿:root {
    --sat: env(safe-area-inset-top);
    --sar: env(safe-area-inset-right);
    --sab: env(safe-area-inset-bottom);
    --sal: env(safe-area-inset-left);
}

/* HTML styles for the Oktavis loading splash screen */

.center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.oktavis-logo {
    height: 160px;
    width: 160px;
    object-fit: contain;
    animation: logo-pulse 1.8s ease-in-out infinite;
}

.loading-text {
    margin-top: 24px;
    color: #FFFFFF;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.loading-bar {
    margin-top: 18px;
    width: 180px;
    height: 3px;
    border-radius: 3px;
    background: rgba(140, 160, 176, 0.25);
    overflow: hidden;
}

.loading-bar span {
    display: block;
    height: 100%;
    width: 40%;
    border-radius: 3px;
    background: #3190E0;
    animation: loading-slide 1.2s ease-in-out infinite;
}

@keyframes logo-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.72; transform: scale(0.97); }
}

@keyframes loading-slide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

#avalonia-splash {
    position: relative;
    height: 100%;
    width: 100%;
    color: #FFFFFF;
    background: #0A1520;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    justify-content: center;
    align-items: center;
}

.splash-close {
    animation: fadeout 0.25s linear forwards;
}

@keyframes fadeout {
    0% {
        opacity: 100%;
    }

    100% {
        opacity: 0;
        visibility: collapse;
    }
}
