/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */

body {
  background-color: black;
  color: white;
  font-family: Verdana;
}





/* Hide the checkbox */
#square-toggle { display: none; }

/* Style the square */
.square {
  display: inline-block;      /* makes it appear properly */
  width: 50px;
  height: 50px;
  background: red;             /* visible color */
  cursor: pointer;
  margin: 20px;               /* spacing from other content */
  position: relative;          /* needed for transform */
  animation: move 0.6s steps(1) infinite;
  animation-play-state: paused; /* start paused */
}



/* Start animation when checkbox is checked */
#square-toggle:checked + .square {
  animation-play-state: running;
}

/* Keyframes for square motion */
@keyframes move {
  25%  { transform: translate(50px,0); background:lime }
  50%  { transform: translate(50px,50px); background:yellow }
  75%  { transform: translate(0,50px); background:blue  }
  100% { transform: translate(0,0) }
}






.square20 {
  display: inline-block;
  width: 50px;
  height: 50px;
  background: red;
  cursor: pointer;
  margin: 20px;
  animation: move 0.6s steps(1) infinite;
}

@keyframes move {
  0%   { transform: translate(0,0); background:red; }
  25%  { transform: translate(50px,0); background:lime; }
  50%  { transform: translate(50px,50px); background:yellow; }
  75%  { transform: translate(0,50px); background:blue; }
  100% { transform: translate(0,0); background:red; }
}













