*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgb(32, 31, 31);
}

.container{
    position: relative;
    -webkit-box-reflect: below 2px linear-gradient(transparent,#0001);
}

.container .ring{
    position: relative;
    width: 300px;
    height: 300px;
    border: 20px solid indigo;
    border-radius: 50%;
    animation: animate 3s linear infinite;
}

@keyframes animate{
    0%{
        transform: rotate(0deg);
        box-shadow: 0 0 2px 2px indigo, inset 0 0 2px 2px indigo;
    }

    25%{
        transform: rotate(90deg);
        box-shadow: 0 0 6px 6px rgb(80, 3, 136), inset 0 0 6px 6px rgb(80, 3, 136);
    }

    50%{
        transform: rotate(180deg);
        box-shadow: 0 0 8px 8px rgb(94, 3, 160), inset 0 0 8px 8px rgb(94, 3, 160);
    }

    75%{
        transform: rotate(270deg);
        box-shadow: 0 0 6px 6px rgb(80, 3, 136), inset 0 0 6px 6px rgb(80, 3, 136);
    }

    100%{
        transform: rotate(360deg);
        box-shadow: 0 0 2px 2px indigo, inset 0 0 2px 2px indigo;
    }
}

.container .ring .ball{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.container .ring .ball::before{
    content: '';
    position: absolute;
    bottom: 50%;
    right: 0;
    width: 30px;
    height: 30px;
    background: whitesmoke;
    border-radius: 50%;
    transform: translateY(50%);
}