.loading {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeOut 200ms linear forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        visibility: hidden;
    }
}

.loading.show {
    opacity: 1;
    background: rgba(0, 0, 0, 0.6);
    visibility: visible;
    animation: fadeIn 200ms linear forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.spiner {
    width: 144px;
    height: 144px;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-top: 3px solid #f0f0f0;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    z-index: 1000;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}