@font-face {
    font-family: "NewBlackTypeface";
    src: url("./fonts/NewBlackTypeface-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "NewBlackTypeface";
    src: url("./fonts/NewBlackTypeface-Light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

.loader-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 180px;
    font-family: "NewBlackTypeface", sans-serif;
    font-size: 1.2em;
    font-weight: 600;
    color: white;
    border-radius: 50%;
    background-color: transparent;
    user-select: none;
}

.loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background-color: transparent;
    animation: loader-rotate 2s linear infinite;
    z-index: 0;
}

@keyframes loader-rotate {
    0% {
        transform: rotate(90deg);
        box-shadow:
            0 10px 20px 0 #fff inset,
            0 20px 30px 0 #ff5fa2 inset,
            0 60px 60px 0 #ec1e81 inset;
    }

    50% {
        transform: rotate(270deg);
        box-shadow:
            0 10px 20px 0 #fff inset,
            0 20px 10px 0 #d60a47 inset,
            0 40px 60px 0 #801e54 inset;
    }

    100% {
        transform: rotate(450deg);
        box-shadow:
            0 10px 20px 0 #fff inset,
            0 20px 30px 0 #ff5fa2 inset,
            0 60px 60px 0 #ec1e81 inset;
    }
}

.loader-letter {
    display: inline-block;
    opacity: 0.4;
    transform: translateY(0);
    animation: loader-letter-anim 2s infinite;
    z-index: 1;
    border-radius: 50ch;
    border: none;
}

.loader-letter:nth-child(1) {
    animation-delay: 0s;
}

.loader-letter:nth-child(2) {
    animation-delay: 0.1s;
}

.loader-letter:nth-child(3) {
    animation-delay: 0.2s;
}

.loader-letter:nth-child(4) {
    animation-delay: 0.3s;
}

.loader-letter:nth-child(5) {
    animation-delay: 0.4s;
}

.loader-letter:nth-child(6) {
    animation-delay: 0.5s;
}

.loader-letter:nth-child(7) {
    animation-delay: 0.6s;
}

.loader-letter:nth-child(8) {
    animation-delay: 0.7s;
}

.loader-letter:nth-child(9) {
    animation-delay: 0.8s;
}

.loader-letter:nth-child(10) {
    animation-delay: 0.9s;
}

@keyframes loader-letter-anim {

    0%,
    100% {
        opacity: 0.4;
        transform: translateY(0);
    }

    20% {
        opacity: 1;
        transform: scale(1.15);
    }

    40% {
        opacity: 0.7;
        transform: translateY(0);
    }
}

.loader-caption {
    margin-top: 2.5rem;
    text-align: center;
    font-family: "NewBlackTypeface", sans-serif;
    font-weight: 300;
    user-select: none;
}

.loader-caption-title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 300;
    letter-spacing: 0.06em;
    color: #ffffff;
}

.loader-caption-sub {
    margin: 0;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: #ec1e81;
    opacity: 0.85;
}

@media (max-width: 480px) {
    .loader-wrapper {
        width: 220px;
        height: 220px;
        font-size: 1.4em;
    }

    .loader-caption-title {
        font-size: 17px;
    }

    .loader-caption-sub {
        font-size: 14px;
    }
}
