#loader-dialog {
    width: 200px;
    height: 200px;
    background-color: transparent;
    border: none;
}

#loader,
.mini-loader {
    width: 100px;
    height: 40px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#loader div,
.mini-loader div {
    width: 20px;
    height: 20px;
    background: skyblue;
    border: 2px solid white;
    border-radius: 50%;
    position: absolute;
}

* > :has(.mini-loader-wrapper) {
    position: relative;
}

.mini-loader-wrapper {
    background-color: rgba(0, 0, 0, 0.25);
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 9999;
}

#loader1 {
    animation: animateLoader 2s linear infinite;
}

#loader2 {
    animation: animateLoader 2s linear infinite -.4s;
}

#loader3 {
    animation: animateLoader 2s linear infinite -.8s;
}

#loader4 {
    animation: animateLoader 2s linear infinite -1.2s;
}

#loader5 {
    animation: animateLoader 2s linear infinite -1.6s;
}

@keyframes animateLoader {
    0% {
        left: 100px;
        top: 0;
    }
    80% {
        left: 0;
        top: 0;
    }
    85% {
        left: 0;
        top: -20px;
        width: 20px;
        height: 20px;
    }
    90% {
        width: 40px;
        height: 15px;
    }
    95% {
        left: 100px;
        top: -20px;
        width: 20px;
        height: 20px;
    }
    100% {
        left: 100px;
        top: 0;
    }
}