﻿#loader {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    background: var(--tx-light);
    z-index: 9999;
}

.loader {
    --height-of-loader: 4px;
    width: max(40%, 250px);
    height: var(--height-of-loader);
    border-radius: 30px;
    position: relative;
}

    .loader::before {
        content: "";
        position: absolute;
        background: var(--cor-primaria);
        top: 0;
        left: 0;
        width: 0%;
        height: 100%;
        border-radius: 30px;
        animation: moving 1s ease-in-out infinite;
        ;
    }

@keyframes moving {
    50% {
        width: 100%;
    }

    100% {
        width: 0;
        right: 0;
        left: unset;
    }
}
