* {
    margin: 0;
    padding: 0;
}

body {
    background-color: rgb(0, 0, 0);
    padding: 0 70px;
}

.mexanizm {
    width: 300px;
    height: 300px;
    background-color: white;
    margin: 150px 25px;
    position: relative;
    border-radius: 50%;
    float: left;
    animation: mexanizm 4s linear infinite;
}

.mexanizm:nth-child(2),
.mexanizm:nth-child(4) {
    animation: mexanizmtars 4s linear infinite;
    animation-delay: .200s;
}



@keyframes mexanizm {
    to {
        transform: rotate(360deg);
    }
}

@keyframes mexanizmtars {
    to {
        transform: rotate(-360deg);
    }
}

.mexanizm::before {
    width: 190px;
    height: 190px;
    position: absolute;
    margin: 150px auto;
    background-color: black;
    content: "";
    top: -31%;
    left: 55px;
    border-radius: 50%;
    z-index: 400;
}

.mexanizm::after {
    width: 55px;
    height: 377px;
    background-color: white;
    position: absolute;
    margin: 150px auto;
    content: "";
    left: 124px;
    top: -61%;
    transform: rotate(45deg);
    border-radius: 7px;
}

.mexanizm div {
    width: 55px;
    height: 377px;
    background-color: white;
    position: absolute;
    margin: 150px auto;
    content: "";
    left: 124px;
    top: -62%;
    border-radius: 7px;
}

.mexanizm div::before {
    width: 55px;
    height: 377px;
    background-color: white;
    position: absolute;
    margin: 150px auto;
    content: "";
    left: 4px;
    top: -41%;
    transform: rotate(-45deg);
    border-radius: 7px;

}

.mexanizm div::after {
    width: 55px;
    height: 377px;
    background-color: white;
    position: absolute;
    margin: 150px auto;
    content: "";
    left: -3px;
    top: -41%;
    transform: rotate(-90deg);
    border-radius: 7px;
}

@media(max-width:552px){
    .mexanizm{
        margin: 20px 25px;
    }
}