.a-loading {
  margin: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #315e79;
  background-image: linear-gradient(62deg, #315e79 0%, #9ed2cf 100%);
  overflow: hidden;
}

.loading h2 {
  color: white;
  margin: 0;
  font-size: 2rem;
  font-family: 'Courgette', cursive;
  letter-spacing: 0.1em;
}

.loading span {
  display: inline-block;
  vertical-align: middle;
  width: 0.6em;
  height: 0.6em;
  margin: 0.19em;
  background: #007db6;
  border-radius: 0.6em;
  animation: loading 1s infinite alternate;
}

/*
 * Dots Colors
 * Smarter targeting vs nth-of-type?
 */
.loading span:nth-of-type(2) {
  background: #008fb2;
  animation-delay: 0.2s;
}

.loading span:nth-of-type(3) {
  background: #009b9e;
  animation-delay: 0.4s;
}

.loading span:nth-of-type(4) {
  background: #00a77d;
  animation-delay: 0.6s;
}

.loading span:nth-of-type(5) {
  background: #00b247;
  animation-delay: 0.8s;
}

.loading span:nth-of-type(6) {
  background: #5ab027;
  animation-delay: 1s;
}

.loading span:nth-of-type(7) {
  background: #a0b61e;
  animation-delay: 1.2s;
}

/*
 * Animation keyframes
 * Use transition opacity instead of keyframes?
 */
@keyframes loading {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
