body {
        background-color:#FF9970;
        color: #000361;
        font-family: "Playpen Sans", cursive;
        padding: 2em;
        background-image: linear-gradient(to top,#FF9970,#FFC87A);
        
}

a{
    color:#4D1600;
} 

.small {
    font-size: .5em;
}

a:hover {
    background-color:#4D1600;
        color:#FF9970;
}

img {border: .5em groove black;
    border-radius: 1.5em;   
        
    }
      
      .center {
          font-size: 2.5em ;
        text-align:center;
        
      }
        
     h1 { 
        font-size: 2.5em ;
        text-align:center;
    
    text-shadow: 3px 3px 1px black;
    
      font-family: "Unbounded",     sans-serif;
     }
     
     .container {
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  flex-wrap: wrap;
}

.box {
  /* PLAY WITH THE FLEX-BASIS TO SET THE SIZE OF THE BOXES - DON'T GO OVER 45% */
  flex-basis: 25%;
  margin: .5em;
  border: 1px solid black;
  border-radius: 10px;
  padding: 1em;
}

/* SETTING THE IMAGE WIDTH HERE INSTEAD OF IN HTML. REMOVE WIDTH="XXX%" FROM THE HTML IMAGE TAGS */
.box img {
  max-width: 95%;
  display: block;
  margin: auto;
}

/* SIDE TO SIDE */
/* Create the animation... */
@keyframes side {
   from {
      margin-left: 0%;
   }
   to {
      margin-left: 60%;
      /* 70% works because the image width is set to 30% - update your percent according to your element's width */
   }
}

/* ...and then apply it: */
.sidetoside {
   animation-duration: 3s;
   animation-name: side;
   animation-iteration-count: infinite;
   animation-direction: alternate;
   animation-timing-function: linear;
   display: inline-block;
}