body {
   margin: 0;
   padding: 0;
background-image: url(fire.gif);
	background-repeat: no-repeat;
	background-size: cover;
   }
   
#container {
	width: 500px;
	height: 500px;
	padding-top: 80px;
	margin: 0 auto;
}   

.dot {
	width: 500px;
	height: 30px;
	margin: 30px auto;
	border-radius: 100px;
    }
	.dot:nth-child(1) {
 background-color: #FFFAFA;
  animation: left 1s infinite ease-in-out;
 }
 
 .dot:nth-child(2) {
 background-color: #FFFAFA;
  animation: left 1.1s infinite ease-in-out;
 }
 
	.dot:nth-child(3) {
 background-color: #FFFAFA;
  animation: left 1.2s infinite ease-in-out;
 }
 
.dot:nth-child(4) {
 background-color: #FFFAFA;
  animation: left 1.3s infinite ease-in-out;
 }
 
.dot:nth-child(5) {
 background-color: #FFFAFA;
  animation: left 1.4s infinite ease-in-out;
 }
 
.dot:nth-child(6) {
 background-color: #FFFAFA;
  animation: left 1.5s infinite ease-in-out;
}

 	.dot:nth-child(7) {
 background-color: #FFFAFA;
  animation: left 1.6s infinite ease-in-out;
 }
 
 .dot:nth-child(8) {
 background-color: #FFFAFA;
  animation: left 1.7s infinite ease-in-out;
 }
 
	.dot:nth-child(9) {
 background-color: #FFFAFA;
  animation: left 1.8s infinite ease-in-out;
 }
 
.dot:nth-child(10) {
 background-color: #FFFAFA;
  animation: left 1.9s infinite ease-in-out;
 }
 
.dot:nth-child(11) {
 background-color: #FFFAFA;
  animation: left 1.10s infinite ease-in-out;
 }
 
.dot:nth-child(12) {
 background-color: #FFFAFA;
  animation: left 1.11s infinite ease-in-out;
}
 
 @keyframes  right {
   0% { transform: translate(25px); background-color: #cc6600;}
   10% { transform: translate(-25px); background-color: #FFFAFA;}
   20% { transform: translate(25px); background-color: #66ccff;}
   30% { transform: translate(25px); background-color: #800000;} 
   40% { transform: translate(-25px); background-color: #ffffff;}
   }
 
  @keyframes  left {
   0% { transform: translate(-25px); background-color: #cc6600;}
   25% { transform: translate(25px); background-color: #FFFAFA;}
   50% { transform: translate(-25px); background-color: #66ccff;}
     75% { transform: translate(25px); background-color: #800000;} 
	   100% { transform: translate(-25px); background-color: #ffffff;}
  }
 
 
 
 
 
 
 
 
 