body {
    background-color: #A31800;
    color: #F5F5F5;
      font-family: "Zain", sans-serif;
    border: 7em double gold;
  padding:2em ;
margin: 0.1em;
}

a{
    color: #EDEDED;
}

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

a:hover {
    background-color:#FFEB7A ;
    color: #3D5115;
    border-radius:10px ;
}

h1 {
      font-family: "Rubik Glitch", system-ui;
font-weight: normal;
text-align: center;
background-image: linear-gradient(to right, #DE7878,#E08506,#E9EC18,#2BE811,#3DA1FF,#AD8AFF,#ED61FF);
color: #000000;
}

img {
    border: 2em ridge gold;
    border-radius: 5em;
    text-shadow:5px 7px 2px black;
    
    
}

.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: 42%;
  margin: .5em;
  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: 70%;
  display: block;
  margin: auto;
}

/* SIDE TO SIDE */
/* Create the animation... */
@keyframes side {
   from {
      margin-left: -50%;
   }
   to {
      margin-left: 50%;
      /* 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;1500ms;
   animation-timing-function: linear
   display: inline-block;
}

