﻿.startup-loader {
    position: absolute;
    top: 5rem;
    left: 50%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 7px;
    width: 7.33333em;
    height: 7.33333em;
    transform: translate(-50%, -50%);
}

.loader--small {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    transform: translate(-50%, -50%);
    gap: 7px;
    width: 2rem;
    height: 2rem;
}

.loader-block {
    opacity: 0;

    background: #07689f;
    -webkit-animation: show 0.88s step-end infinite alternate, pulse 0.88s linear infinite alternate;
    animation: show 0.88s step-end infinite alternate, pulse 0.88s linear infinite alternate;
    box-shadow: 0 0.5rem 2rem 0 rgba(0,0,0,0.2);
}

    .loader-block:nth-child(1) {
        -webkit-animation-delay: 0.065s;
        animation-delay: 0.065s;
    }

    .loader-block:nth-child(2) {
        -webkit-animation-delay: 0.13s;
        animation-delay: 0.13s;
    }

    .loader-block:nth-child(3) {
        -webkit-animation-delay: 0.195s;
        animation-delay: 0.195s;
    }

    .loader-block:nth-child(4) {
        -webkit-animation-delay: 0.325s;
        animation-delay: 0.325s;
    }

    .loader-block:nth-child(5) {
        -webkit-animation-delay: 0.13s;
        animation-delay: 0.13s;
    }

    .loader-block:nth-child(6) {
        -webkit-animation-delay: 0.455s;
        animation-delay: 0.455s;
    }

    .loader-block:nth-child(7) {
        -webkit-animation-delay: 0.39s;
        animation-delay: 0.39s;
    }

    .loader-block:nth-child(8) {
        -webkit-animation-delay: 0.26s;
        animation-delay: 0.26s;
    }

    .loader-block:nth-child(9) {
    }

@-webkit-keyframes pulse {
    from, 40% {
        background: #fdfdfd;
    }

    to {
        background: #07689f;
    }
}

@-webkit-keyframes show {
    from, 40% {
        opacity: 0;
    }

    41%, to {
        opacity: 1;
    }
}

@keyframes pulse {
    from, 40% {
        background: #fdfdfd;
    }

    to {
        background: #07689f;
    }
}

@keyframes show {
    from, 40% {
        opacity: 0;
    }

    41%, to {
        opacity: 1;
    }
}

.loader-status {
    margin: 10rem auto;
}

.linear-progress {
    background: silver;
    width: 50vw;
    margin: 1rem auto;
    height: 1rem;
    border-radius: 10rem;
    overflow: hidden;
    position: relative;
}

    .linear-progress:after {
        content: '';
        position: absolute;
        inset: 0;
        background: #07689f;
        scale: var(--blazor-load-percentage, 0%) 100%;
        transform-origin: left top;
        transition: scale ease-out 0.5s;
    }

.loading-progress-text {
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

#btnReload {
    margin: 1rem auto;
}