.container {
    display: grid;
    place-content: center;
    height: 100%;
}

.loader {
    position: relative;
    margin: auto;
    width: 5rem;
    border-radius: 100vmin;
    overflow: hidden;
    padding: 1.25rem;

    &::before {
        content: "";
        display: block;
        padding-top: 100%;
    }
}

.circular {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    margin: auto;
    transform-origin: center center;
    animation: 2s linear 0s infinite rotate;
}

.path {
    stroke: yellow;
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    animation: 1.5s ease-in-out 0s infinite dash;
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -35px;
        stroke: yellow;
    }
    100% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -124px;
    }
}

@keyframes rotate {
    to {
        transform: rotate(1turn);
    }
}
