Help please Create Movement Using CSS Animation

Tell us what’s happening:
Where am I going wrong here?

Your code so far


<style>
div {
  height: 40px;
  width: 70%;
  background: black;
  margin: 50px auto;
  border-radius: 5px;
  position: relative;
  horizontal: left;
}

#rect {
  animation-name: rainbow;
  animation-duration: 4s;
}

@keyframes rainbow {
  0% {
    background-color: blue;
    top: 0px;
    left: 0px;

  }
  50% {
    background-color: green;
    top: 25px;
    left: 25px;

  }
  100% {
    background-color: yellow;
    top: -25px;
    left: -25px;

  }
}
</style>

<div id="rect"></div>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36.

Challenge: Create Movement Using CSS Animation

Link to the challenge:
https://www.freecodecamp.org/learn/responsive-web-design/applied-visual-design/create-movement-using-css-animation

Dont change the top property, leave it as it is. Just add the left property with the provided pixels .

I didnt, I only added the horizontal element and the left at the bottom of each