@import url("https://fonts.googleapis.com/css?family=Lily+Script+One&display=swap");

.loader_body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    background-color: #fffdfd;
    overflow: hidden; /* Hide horizontal scrollbar */
}

.loading_text {
    font-size: 2em;
    font-family: "Lily Script One";
    color: #505e77;
    letter-spacing: 7px;
    margin-top: 20px;
    overflow: hidden; /* Hide overflow during animation */
}

.imgContainer img {
    width: 100%;
    position: absolute;
}

.imgContainer img.bottle {
    width: 130%;
    bottom: 18px;
    animation: floating 1.75s ease-in-out infinite alternate;
    top: 12px;
    left: -52px;
    max-width: none;
}

.imgContainer img.waveLoad {
    animation: wave 4.3s linear infinite;
    animation-delay: -0.5s;
    bottom: -20px;
    width: 720px;
    height: 48%;
    max-width: none;
}

.imgContainer img.waveLoad.delay {
    animation-duration: 6.5s;
}

@keyframes wave {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes floating {
    from {
        transform: translateY(-10px);
    }
    to {
        transform: translateY(10px);
    }
}



@keyframes rotateShadow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.imgContainer {
    position: relative;
    max-width: 300px;
    width: 100%;
    overflow: hidden;
    border-radius: 50%;
    aspect-ratio: 1;
    border: 1px solid;
    margin-top: 20px;
    background: linear-gradient(1deg, #0babe5eb 10%, #dfeef3f2 50%);
}

.imgContainer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: inset -2px -10px 20px 10px rgb(0 0 0 / 46%);
    animation: rotateShadow 5s linear infinite;
}



/* Typing animation for "Loading..." text */
@keyframes typeWriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.loading_text::after {
    content: 'Loading...';
    display: inline-block; /* Ensure the content is treated as a block for the width animation */
    overflow: hidden; /* Hide the overflow during animation */
    animation: typeWriter 3s steps(10, end) infinite; /* Adjusted duration to 6 seconds for a smoother effect */
}
