@font-face {
    font-family: 'Quicksand';
    src: url('../fonts/Quicksand-Regular.ttf');
    font-weight: 400;
    font-style: normal;
    font-display: swap
}

* {
    box-sizing: border-box
}

*, body, html {
    padding: 0;
    margin: 0
}

body, html {
    overflow-x: hidden;
    font-family: 'Quicksand', sans-serif;
}

#preloader {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 50px;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100vh;
    width: 100vw;
    background-color: rgb(3, 2, 67) !important;
    color: #fff!important;
    padding: 25px;
    z-index: 99999;
    opacity: 1;
    transition: opacity 1s ease-in-out;

    img {
        width: 90px;
    }

    #loader {
        position: relative;
        width: 150px;
        height: 5px;
        overflow: hidden;
        border-radius: 20px;
        background-color: #f1f2f1;

        #swing {
            position: absolute;
            width: 30px;
            height: 5px;
            border-radius: 20px;
            background-color: #4805c7;
            -webkit-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
            -webkit-animation: moveLeftRight 1.5s ease-in-out infinite;
            animation: moveLeftRight 1.5s ease-in-out infinite;
        }
    }
}

.fade {
    opacity: 0;
    visibility: hidden;
}

@keyframes moveLeftRight {
    0% {
        background-color: #4805c7;
        -webkit-transform: translateX(120px);
        transform: translateX(120px);
    }

    50% {
        background-color: #126FF0;
        -webkit-transform: translateX(0px);
        transform: translateX(0px);
    }

    100% {
        background-color: #f50398;
        -webkit-transform: translateX(120px);
        transform: translateX(120px);
    }
}