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

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: black;
}

.loader {
    position: relative;
    width: 150px;
    height: 150px;
}

.loader span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(calc(36deg * var(--i)));
}

.loader p {
    font-size: 25px;
    color:white;
    font-weight: bold;
    text-align: center;
    position: relative;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
}

.loader span::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #00efff;
    box-sizing: border-box;
    box-shadow: 0 0 8px #00efff,
                -10px -10px 0 #00efff,
                -10px -10px 8px #00efff,
                10px 10px 0 #00efff,
                10px 10px 8px #00efff,
                10px -10px 0 #00efff,
                10px -10px 8px #00efff,
                -10px 10px 0 #00efff,
                -10px 10px 8px #00efff;
    animation: animate 5s linear infinite;
    animation-delay: calc(-0.25s * var(--i));
    transform-origin: 6px;
    transition: 2s;
}

.loader:hover span::before {
    box-shadow: 0 0 8px #00efff,
                -0px -80px 0 #00efff,
                -80px -80px 8px #00efff,
                80px 80px 0 #00efff,
                80px 80px 8px #00efff,
                80px -80px 0 #00efff,
                80px -80px 8px #00efff,
                -80px 80px 0 #00efff,
                -80px 80px 8px #00efff;
    transform-origin: 128px;
}

@keyframes animate {
    0% {
        transform: rotate(0deg);
        filter: hue-rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
        filter: hue-rotate(360deg);
    }
}
