﻿.preloader-wrapper{
    position:fixed;
    top:0;
    bottom:0;
    right:0;
    left:0;
    z-index:10000;       
}
.preloader-backdrop{
    position:absolute;
    top:0;
    left:0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.4);
}
.preloader {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    position: absolute;
    top:calc(50vh - 1.5rem);
    left:calc(50vw - 1.5rem);
    animation: rotate 1s linear infinite
}

    .preloader::before {
        content: "";
        box-sizing: border-box;
        position: absolute;
        inset: 0px;
        border-radius: 50%;
        border: 5px solid #8fddff;
        animation: prixClipFix 2s linear infinite;
    }

@keyframes rotate {
    100% {
        transform: rotate(360deg)
    }
}

@keyframes prixClipFix {
    0% {
        clip-path: polygon(50% 50%,0 0,0 0,0 0,0 0,0 0)
    }

    25% {
        clip-path: polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0)
    }

    50% {
        clip-path: polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%)
    }

    75% {
        clip-path: polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 100%)
    }

    100% {
        clip-path: polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 0)
    }
}
