@import url('https://fonts.googleapis.com/css?family=Varela&display=swap');

.splash {
  background: #F9FAFB;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
}

.splash .loading-text {
  position: relative;
  font-size: 3.75rem;
  margin: 0;
  white-space: nowrap;
  font-weight: normal;
  color: #f6921e;
  font-family: "Varela", sans-serif;
}

.splash .loading-text::before {
  position: absolute;
  content: '';
  z-index: 1;
  top: 40px;
  left: 115px;
  width: 8px;
  height: 8px;
  background: #f6921e;
  border-radius: 50%;
  animation: dotMove 1800ms cubic-bezier(0.25,0.25,0.75,0.75) infinite;
}

.splash .loading-text .letter {
  display: inline-block;
  position: relative;
  letter-spacing: 8px;
}

.splash .loading-text .letter:nth-child(1) {
  transform-origin: 100% 70%;
  transform: scale(1, 1.275);
  color: #02468b;
}

.splash .loading-text .letter:nth-child(2) {
  color: #02468b;
}

.splash .loading-text .letter:nth-child(1)::before {
  position: absolute;
  content: '';
  top: 10px;
  left: 24px;
  width: 14px;
  height: 36px;
  background: #fff;
  transform-origin: 100% 0;
  animation: lineStretch 1800ms cubic-bezier(0.25,0.25,0.75,0.75) infinite;
}

.splash .loading-text .letter:nth-child(5) {
  transform-origin: 100% 70%;
  animation: letterStretch 1800ms cubic-bezier(0.25,0.23,0.73,0.75) infinite;
}

.splash .loading-text .letter:nth-child(5)::before {
  position: absolute;
  content: '';
  top: 15px;
  left: 2px;
  width: 9px;
  height: 15px;
  background: #F9FAFB;
}

.splash-container {
  position: relative;
  transform: scale(0.725);
}

.loading-paragraph {
  text-align: center;
  font-size: 14px;
  color: #888888;
}

.dual-ring {
  display: inline-block;
  width: 36px;
  height: 36px;
}

.dual-ring:after {
  content: " ";
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 6px solid;
  border-color: #f6921e #02468b #f6921e #f6921e;
  animation: dual-ring 1.2s linear infinite;
}

@keyframes dual-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}


@keyframes dotMove {
  0%, 100% {
    background-color: #f6921e;
    transform: rotate(180deg) translate(-152px, -10px) rotate(-180deg);
  }
  50% {
    background-color: #02468b;
    transform: rotate(0deg) translate(-86px, 10px) rotate(0deg);
  }
}

@keyframes letterStretch {
  0%, 100% {
    transform: scale(1, 0.35);
    transform-origin: 100% 75%;
  }
  8%, 28% {
    transform: scale(1, 2.125);
    transform-origin: 100% 67%;
  }
  37% {
    transform: scale(1, 0.875);
    transform-origin: 100% 75%;
  }
  46% {
    transform: scale(1, 1.03);
    transform-origin: 100% 75%;
  }
  50%, 97% {
    transform: scale(1);
    transform-origin: 100% 75%;
  }
}

@keyframes lineStretch {
  0%, 45%, 70%, 100% {
    transform: scaleY(0.125);
  }
  49% {
    transform: scaleY(0.75);
  }
  50% {
    transform: scaleY(0.875);
  }
  53% {
    transform: scaleY(0.5);
  }
  60% {
    transform: scaleY(0);
  }
  68% {
    transform: scaleY(0.18);
  }
}
