.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
}

.loading > img {
  width: 70%;
}

/*Edited from https://codepen.io/AnoNewb/pen/JwypRN */
.spinner {
  margin: 100px auto 0;
  width: 100%;
  height: 100%;
  text-align: center;
}

.spinner > div {
  width: 1.6em;
  height: 1.6em;
  background-color: #006bc4;
  margin-left: 3%;
  margin-right: 3%;

  border-radius: 100%;
  display: inline-block;
  -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
  animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}

.spinner .bounce1 {
  -webkit-animation-delay: -0.32s;
  animation-delay: -0.32s;
}

.spinner .bounce2 {
  -webkit-animation-delay: -0.16s;
  animation-delay: -0.16s;
}

@-webkit-keyframes sk-bouncedelay {
  0%,
  80%,
  100% {
    -webkit-transform: scale(0);
  }
  40% {
    -webkit-transform: scale(1);
  }
}

@keyframes sk-bouncedelay {
  0%,
  80%,
  100% {
    -webkit-transform: scale(0);
    transform: scale(0);
  }
  40% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

@media only screen and (max-width: 1100px) {
  .loading > img {
    width: 100%;
  }

  .spinner > div {
    width: 1em;
    height: 1em;
    margin-left: 2%;
    margin-right: 2%;
  }
}
