body {
background-color: 	#ECECE8;
color:#000000;
border: 0em;
 
}
h1 {
    font-family: "Condiment", cursive;
 font-size:1.3em;
}
a {
   color:#6B00B8; 
}

img {
    border: 1em ridge  #1E2460;
    border-radius: 0em;
}.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: 42%;
  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: 65%;
  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: 0.001s;
   animation-name: side;
   animation-iteration-count: infinite;
   animation-direction: alternate;
   animation-timing-function: linear;
}
