﻿.dialog {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.dialog__loader {
    width: auto;
    height: auto;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

    .dialog__loader img {
        width: 45px;
    }

    .dialog__loader span {
        display: inline-block;
        height: 5px;
        width: 5px;
        background: #ffffff;
        border-radius: 50%;
        margin-inline: 2px;
        animation: movingSpan 1.7s linear infinite;
    }

        .dialog__loader span:nth-child(1) {
            animation-delay: 0s;
        }

        .dialog__loader span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .dialog__loader span:nth-child(3) {
            animation-delay: 0.4s;
        }

@keyframes movingSpan {
    0%, 80%, 100% {
        opacity: 0.05;
        transform: scale(1.1);
    }

    40% {
        opacity: 1;
        transform: scale(1.2);
    }
}
