.container {
    position: fixed;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #09161d;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: -5;
}

.circles {
    position: relative;
    min-width: 750px;
    height: 750px;
    margin: -150px;
    transform-origin: right;
    animation: colorChanger 5s linear infinite;
}

.circles:nth-child(even) {
    transform-origin: left;
}

.circles span {
    position: absolute;
    top: calc(80px * var(--i));
    left: calc(80px * var(--i));
    bottom: calc(80px * var(--i));
    right: calc(80px * var(--i));
}

.circles span::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -8px;
    width: 15px;
    height: 15px;
    background-color: #f00;
    border-radius: 50%;
}

.circles span:nth-child(3n + 1):before {
    background-color: rgba(134, 255, 0, 1);
    box-shadow: 0 0 20px rgba(134, 255, 0, 1), 0 0 40px rgba(134, 255, 0, 1), 0 0 60px rgba(134, 255, 0, 1), 0 0 80px rgba(134, 255, 0, 1), 0 0 0 8px rgba(134, 255, 0, .1);
}

.circles span:nth-child(3n+2):before {
    background-color: rgba(255, 214, 0, 1);
    box-shadow: 0 0 20px rgba(255, 214, 0, 1), 0 0 40px rgba(255, 214, 0, 1), 0 0 60px rgba(255, 214, 0, 1), 0 0 80px rgba(255, 214, 0, 1), 0 0 0 8px rgba(255, 214, 0, .1);
}

.circles span:nth-child(3n+3):before {
    background-color: rgba(0, 226, 255, 1);
    box-shadow: 0 0 20px rgba(0, 226, 255, 1), 0 0 40px rgba(0, 226, 255, 1), 0 0 60px rgba(0, 226, 255, 1), 0 0 80px rgba(0, 226, 255, 1), 0 0 0 8px rgba(0, 226, 255, .1);
}

.circles span:nth-child(3n+4):before {
    background-color: rgba(57, 207, 237, 1);
    box-shadow: 0 0 20px rgba(57, 207, 237, 1), 0 0 40px rgba(57, 207, 237, 1), 0 0 60px rgba(57, 207, 237, 1), 0 0 80px rgba(57, 207, 237, 1), 0 0 0 8px rgba(57, 207, 237, .1);
}

.circles span:nth-child(3n+5):before {
    background-color: rgba(10, 140, 7, 1);
    box-shadow: 0 0 20px rgba(10, 140, 7, 1), 0 0 40px rgba(10, 140, 7, 1), 0 0 60px rgba(10, 140, 7, 1), 0 0 80px rgba(10, 140, 7, 1), 0 0 0 8px rgba(10, 140, 7, .1);
}

.circles span:nth-child(3n+1) {
    animation: animate 10s alternate infinite;
}

.circles span:nth-child(3n+2) {
    animation: animate-reverse 3s alternate infinite;
}

.circles span:nth-child(3n+3) {
    animation: animate 8s alternate infinite;
}

.circles span:nth-child(3n+4) {
    animation: animate-reverse 5s alternate infinite;
}

.circles span:nth-child(3n+5) {
    animation: animate 6s alternate infinite;
}

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

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

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