﻿#app {
    --appid-position: fixed;
    --appid-top: 0px;
    --appid-bottom: 0px;
    --appid-left: 0px;
    --appid-right: 0px;
    --appid-background-color: var(--background-color);
}
#app {
    position: var(--appid-position);
    top: var(--appid-top);
    bottom: var(--appid-bottom);
    left: var(--appid-left);
    right: var(--appid-right);
    background-color: var(--appid-background-color);
}

.loading-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    display: flex;
    align-items: center;
}

.loading-animation {
    display: flex;
    justify-content: center;
    margin: 20px;
    position: relative;
}

    .loading-animation .loading-label {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        font-weight: bolder;
        font-size: 15px;
    }

    .loading-animation .loading-item {
        position: relative;
        width: 100px;
        height: 100px;
        margin: 10px;
    }

        .loading-animation .loading-item span {
            height: 100%;
            width: 100%;
            position: absolute;
            animation: loading 4s linear infinite;
        }

            .loading-animation .loading-item span::before {
                content: '';
                position: absolute;
                height: 10px;
                width: 10px;
                background-color: var(--theme-color);
                border-radius: 50%;
                bottom: 0px;
                left: calc(50%-5px);
            }

            .loading-animation .loading-item span:nth-child(2) {
                animation-delay: 0.1s;
            }

            .loading-animation .loading-item span:nth-child(3) {
                animation-delay: 0.2s;
            }

            .loading-animation .loading-item span:nth-child(4) {
                animation-delay: 0.3s;
            }

            .loading-animation .loading-item span:nth-child(5) {
                animation-delay: 0.4s;
            }

            .loading-animation .loading-item span:nth-child(6) {
                animation-delay: 0.5s;
            }

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

@keyframes loading {
    74% {
        transform: rotate(600deg);
    }

    79% {
        transform: rotate(720deg);
        opacity: 1;
    }

    80% {
        transform: rotate(720deg);
        opacity: 0;
    }

    100% {
        transform: rotate(750deg);
        opacity: 0;
    }
}
