body {
    background-color: 	#78D3B5;
    color: #610061;
    border: 1em dotted #618dc7;
    padding :1em;
      font-family: "Tinos", serif;
font-size: 1.4em;
}


a {
    color: #0000FF ;
}

img {
    border: 3em ridge WHITE;
    border-radius: 2em;
}

h1{
      font-family: "Bad Script", cursive;

}



.container {
  display: flex;
  align-items: center;
  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: 40%;
  margin: .5em;
 
  border-radius: 10px;
  padding: 1em;
  text-align: center;
}

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

/* SIDE TO SIDE */
/* Create the animation... */
@keyframes side {
   from {
      margin-left: 0%;
   }
   to {
      margin-left: 10%;
      /* 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;
}




