.main {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

html,
body {
  width: 100%;
  height: 100%;
  transition: all 0.2s ease;
  animation: changeColor 10s infinite;
  overflow: hidden;
}

.main marquee {
  width: 400px;
  height: 100px;
}

.main img {
  transition: all 0.2s ease;
  animation: rotateImage 2s infinite;
  height: 400px;
}

span {
  width: 500px;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

@keyframes rotateImage {
  0% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(180deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

@keyframes changeColor {
  0% {
    background-color: #ff0000;
  }

  10% {
    background-color: #00ff00;
  }

  20% {
    background-color: #0000ff;
  }

  30% {
    background-color: #ffff00;
  }

  40% {
    background-color: #ff00ff;
  }

  50% {
    background-color: #00ffff;
  }

  60% {
    background-color: #ff8000;
  }

  70% {
    background-color: #8000ff;
  }

  80% {
    background-color: #00ff80;
  }

  90% {
    background-color: #ff0080;
  }

  100% {
    background-color: #808080;
  }
}
