:root {
    --ring-r1-size-width: 220px;
    --ring-r1-size-height: 220px;
    --ring-r2-size-width: 200px;
    --ring-r2-size-height: 200px;
    --ring-r3-size-width: 180px;
    --ring-r3-size-height: 180px;
}

.loader {
    inset: 0;
    width: 100%;
    height: 100dvh;
    display: flex;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(1px);
    z-index: 999999;
}

/* ======================
   Rings
====================== */

.ring {
    border: 4px solid transparent;
}

.r1 {
    width: var(--ring-r1-size-width);
    height: var(--ring-r1-size-height);
    border-top-color: var(--primary-60);
    animation: rotate1 1.2s linear infinite;
}

.r2 {
    width: var(--ring-r2-size-height);
    height: var(--ring-r2-size-height);
    border-right-color: var(--primary-50);
    animation: rotate2 1.1s linear infinite reverse;
}

.r3 {
    width: var(--ring-r3-size-height);
    height: var(--ring-r3-size-height);
    border-bottom-color: var(--primary-40);
    animation: rotate3 1s linear infinite;
}

/* ======================
   Content
====================== */

.content img {
    width: 80px;
    height: 80px;
    animation: upDown 2s ease-in-out infinite;
}

/* ======================
   Text Slider
====================== */

.slide {
    animation: slide 4s infinite ease-in-out;
}

.box,
.slide span {
    height: 40px;
}

/* ======================
   Animations
====================== */

@keyframes upDown {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes slide {
    0%,
    40% {
        transform: translateY(0);
    }

    50%,
    90% {
        transform: translateY(-40px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes rotate1 {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes rotate2 {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

@keyframes rotate3 {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ======================
   Responsive
====================== */

@media (max-width: 576px) {
    .r1 {
        --ring-r1-size-width: 160px;
        --ring-r1-size-height: 160px;
    }

    .r2 {
        --ring-r2-size-width: 140px;
        --ring-r2-size-height: 140px;
    }

    .r3 {
        --ring-r2-size-width: 120px;
        --ring-r2-size-height: 120px;
    }

    .content img {
        width: 65px;
        height: 65px;
    }
}
