

body {
 background-color: #20B2AA;
 color:#4B0082 ;
 border: 1em inset #4B0082;
 padding:1em;
 border-radius: 3em ;
   font-family: "Italianno", cursive
   font-size: 1em;
}

a { 
    color:#2B1541;
}

img {
 border: 2em groove #4B0082;
 border-radius: 2em;
}

h1 {
      font-family: "Sirivennela", sans-serif;
     

}

 

.container {
  display: flex;
  align-items:flex-start;
  justify-content: center;
  flex-wrap: wrap;
}

.box {
  /* PLAY WITH THE FLEX-BASIS TO SET THE SIZE OF THE BOXES - DON'T GO OVER 45% */
  flex-basis: 46%;

  border-radius: 5px;
}

/* SETTING THE IMAGE WIDTH HERE INSTEAD OF IN HTML. REMOVE WIDTH="XXX%" FROM THE HTML IMAGE TAGS */
.box img {
  max-width: 89%;
  display: block;
  margin: auto;
  
  
  
  
  
  
  
  
  /* SIDE TO SIDE */
/* Create the animation... */
@keyframes side {
   from {
      margin-left: 0%;
   }
   to {
      margin-left: 70%;
      /* 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;
}
