*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #1c1f2f;
    overflow: hidden;
}
.container{
    position: relative;
    transform: translateY(-100px);
}
.container::before{
    content: '';
    position: absolute;
    top: 200px;
    width: 200px;
    height: 200px;
    background: #fff;
    border-radius: 50%;
    animation: animateCircle 4s ease-in-out infinite;
}
@keyframes animateCircle{
    0%{
        transform: translateX(15px);
    }
    50%{
        transform: translateX(-15px);
    }
   100%{
        transform: translateX(15px);
    }
}
.container::after{
    content: '';
    position: absolute;
    top: 400px;
    transform: translateX(-50%);
    left: 50%;
    width: 800px;
    height: 800px;
    background: #fe4e4e;
    border-radius: 50%;
}
.container .loader{
    position: relative;
    width: 200px;
    height: 200px;
    /* background: green; */
    animation: animate 4s ease-in-out infinite;
}
.container .loader::before{
    content: '';
    position: absolute;
    bottom: 0;
    width: 200px;
    height: 100px;
    background: #06c8f8;
    border-bottom-left-radius: 100px;
    border-bottom-right-radius: 100px;
}
@keyframes animate{
    0%{
        transform: rotate(50deg);
    }
    50%{
        transform: rotate(-50deg);
    }
    100%{
        transform: rotate(50deg);
    }
}
.container .loader .ball{
    position: absolute;
    top: 50%;
    left: -20px;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    transform: translateY(-100%);
    animation: animateball 4s ease-in-out infinite;
}
@keyframes animateball{
    0%{
        transform: translateY(-100%),translateX(200px);
    }
    50%{
        transform: translateY(-100%) translateX(200px);
    }
    100%{
        transform: translateY(-100%) translateX(0px);
    }
}