.container {
  display: flex;
  flex-wrap: wrap;
  gap: 55px;
  justify-content: center;
}
.rectangle {
    fill: blue;
    stroke: black;
    stroke-width: 5px;
    animation: smenaColoraFillandStroke 2s infinite normal;    
}

.circle {
    fill:red;
    stroke: black;
    stroke-width: 5px;
    animation: circleAnimation 3s infinite alternate;    
}

.square {
    fill: green;
    stroke: black;
    stroke-width: 5px;
    animation: goldStyle 2s infinite ;    
}
.ellipse {
    fill: #0f0f0f;
    stroke: #C9A227;
    stroke-width: 5px;
    animation: ellipseAnimation 3s infinite alternate ease-in-out;   
    transform-origin: center; 
}


@keyframes smenaColoraFillandStroke {
    0% {
        fill: red;
        stroke: black;
    }
    25% {
        fill: green;
        stroke: rgb(238, 209, 39)
    }
    50% {
        fill: blue;
        stroke: gold;
    }
    75% {
        fill: yellow;
        stroke: rgb(179, 143, 13);
    }
    100% {
        fill: red;
        stroke: burlywood;
    }
}

@keyframes goldStyle {
    0% {
        fill: gold;
        stroke: #1a1a1a;
    }
    25% {
        fill: rgb(238, 209, 39);
        stroke: #0f0f0f;
    }
    50% {
        fill: rgb(179, 143, 13);
        stroke: #FFD700;
    }
    75% {
        fill: burlywood;
        stroke: #C9A227;
    }
    100% {
        fill: gold;
        stroke: #B8860B;
    }
}

@keyframes ellipseAnimation {
    0% {
        fill: #d31010;
        stroke: #B8860B;
        transform: scale(1);
    }
  
    50% {
        fill: #1bc39b;
        stroke: #FFD700;
        transform: scale(1.5);
    }
   
    100% {
        fill: #cad80a;
        stroke: #C9A227;
        transform: scale(2);
    }
}

@keyframes circleAnimation {
    0% {
        fill: red;
        stroke: rgb(101, 20, 20);
    }
    25% {
        fill: green;
        stroke: rgb(25, 86, 25)
    }
    50% {
        fill: blue;
        stroke: rgb(17, 17, 123);
    }
    75% {
        fill: pink;
        stroke: rgb(104, 22, 35)
    }
    100% {
        fill: yellow;
        stroke: rgb(57, 57, 24);
    }
}