body {
    margin: 0;
    padding: 0;
}

/* if body do not have a child with class lucy-splash-screen-hidden, make body overflow hidden */
body:not(.lucy-splash-screen-hidden) {
    overflow: hidden;
}

body.lucy-splash-screen-hidden .lucy-flashScreen {
    display: none;
}

.lucy-flashScreen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    height: 100svh;
    font-family: 'Satoshi', sans-serif;
}

.lucy-flashScreen img {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    animation: fadeInScale .6s cubic-bezier(0.39, 0.575, 0.565, 1) both;
}


.lucy-flashScreen .loader {
    display: block;
    --height-of-loader: 4px;
    --loader-color: #2D374E;
    width: 130px;
    height: var(--height-of-loader);
    border-radius: 30px;
    background-color: rgba(0, 0, 0, 0.2);
    position: relative;
    animation: fadeIn .1s cubic-bezier(0.39, 0.575, 0.565, 1) both;
    animation-delay: .6s;
}

.lucy-flashScreen .loader::before {
    content: "";
    position: absolute;
    background: var(--loader-color);
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    border-radius: 30px;
    animation: moving 1s ease-in-out infinite;
    animation-delay: .6s;
}

@keyframes moving {
    50% {
        width: 100%;
    }

    100% {
        width: 0;
        right: 0;
        left: unset;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fadeInScale {
    0% {
        opacity: .3;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}