body {
  font-family: sans-serif;
  padding: 20px;
}

.container {
  border: 2px solid blue;
  padding: 10px;
}

.banner {
  height: 50px;
  background-color: magenta;
  color: black;
  text-align: center;
  line-height: 50px;
  font-size: 20px;
  animation: bannerAnim 4s infinite;
}

.boxes {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  align-content: center;
}

.box {
  width: 100px;
  height: 100px;
  text-align: center;
  line-height: 100px;
  font-size: 24px;
  color: yellow;
  margin-right: 60px;
}

.box1{
      position: relative;
  width: 100px;
  height: 100px;
  border: 3px solid red;
}

.box1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.text1 {
  position:absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: yellow;
  font-size: 24px;
}

.box2 {
  background-color: cyan;
  border: 3px dashed blue;
  border-top-right-radius: 20px;
  border-bottom-left-radius: 20px;
}

.box3 {
  background-color: cyan;
  border: 3px dotted deeppink;
  border-top-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.box4 {
  background-color: darkcyan;
  color: yellow;
  transform-origin: center;
  animation: rotateBox 3s linear infinite;
}

@keyframes bannerAnim {
  0%, 100% {
    background-color: magenta;
    font-size: 20px;
  }
  50% {
    background-color: yellow;
    font-size: 40px;
  }
}

@keyframes rotateBox {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
