
.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    background: linear-gradient(45deg, #5D6AE8, #F38478);
    z-index: -1;
    animation-name: loader-op;
    animation-duration: 3s;
    opacity: 0;
}

.loader {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dot {
    background: white;
    margin: 5px;
    animation-name: loader;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

.dot:nth-child(1) {
    animation-delay: 0.2s;
}
.dot:nth-child(2) {
    animation-delay: 0.4s;
}
.dot:nth-child(3) {
    animation-delay: 0.6s;
}
.dot:nth-child(4) {
    animation-delay: 0.8s;
}
.dot:nth-child(5) {
    animation-delay: 1s;
}

@keyframes loader {
    from {
        width: var(--min-size);
        height: var(--min-size);
        border-radius: calc(var(--min-size) / 2);
    }
    to {
        width: var(--max-size);
        height: var(--max-size);
        border-radius: calc(var(--max-size) / 2);
    }
}

@keyframes loader-op {
    from {
        opacity: 1;
        z-index: 999;
    }
    90%{
        opacity: 1;
        z-index: 999;
        transition: var(--transition--main);
    }
    to {
        opacity: 0;
    }
}