@import url("https://fonts.googleapis.com/css?family=Source+Code+Pro:300&display=swap");
html, body {
  font-family: 'Source Code Pro', monospace;
  background: #000;
}

.container {
  height: 100vh;
  width: 100vw;
}

.loader {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background-color: rgba(34, 47, 62, 0.2);
  box-shadow: 0 0 24px 4px rgba(142, 68, 173, 0.2);
  border-radius: 50%;
  text-align: center;
  overflow: hidden;
}
.loader:before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  border-radius: 50%;
  background-image: radial-gradient(circle, transparent 68%, #8e44ad 70%);
  box-shadow: inset 0 0 0 0 rgba(142, 68, 173, 0);
  -webkit-animation: Glow 5s infinite ease-in-out;
          animation: Glow 5s infinite ease-in-out;
}
.loader:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%) rotate(0);
          transform: translate(-50%, -50%) rotate(0);
  -webkit-transform-origin: 50% 50%;
          transform-origin: 50% 50%;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  z-index: 999;
  border: solid 2px #f39c12;
  border-radius: 50%;
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-right-color: transparent;
  -webkit-animation: Spin 1.5s infinite linear;
          animation: Spin 1.5s infinite linear;
}

.loader-text {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  color: #8e44ad;
  letter-spacing: 12px;
  text-shadow: 0 0 24px rgba(142, 68, 173, 0.8);
  -webkit-animation: Pulse 5s infinite linear;
          animation: Pulse 5s infinite linear;
}
.loader-text:before {
  content: attr(data-flicker-0);
  position: absolute;
  left: 0;
  color: #8e44ad;
  opacity: 0;
  text-shadow: 0 0 16px rgba(142, 68, 173, 0);
  -webkit-animation: Flicker 3s infinite linear;
          animation: Flicker 3s infinite linear;
}
.loader-text:after {
  content: attr(data-flicker-1);
  position: absolute;
  right: 0;
  color: #8e44ad;
  opacity: 0;
  text-shadow: 0 0 16px rgba(142, 68, 173, 0);
  -webkit-animation: Flicker 3s infinite linear;
          animation: Flicker 3s infinite linear;
  -webkit-animation-delay: .5s;
          animation-delay: .5s;
}

@-webkit-keyframes Glow {
  50% {
    box-shadow: inset 0 0 24px 4px rgba(142, 68, 173, 0.8);
  }
}

@keyframes Glow {
  50% {
    box-shadow: inset 0 0 24px 4px rgba(142, 68, 173, 0.8);
  }
}
@-webkit-keyframes Spin {
  50% {
    opacity: 0.2;
  }
  100% {
    -webkit-transform: translate(-50%, -50%) rotate(360deg);
            transform: translate(-50%, -50%) rotate(360deg);
  }
}
@keyframes Spin {
  50% {
    opacity: 0.2;
  }
  100% {
    -webkit-transform: translate(-50%, -50%) rotate(360deg);
            transform: translate(-50%, -50%) rotate(360deg);
  }
}
@-webkit-keyframes Pulse {
  50% {
    color: rgba(142, 68, 173, 0.5);
    text-shadow: 0 0 24px rgba(142, 68, 173, 0.4);
  }
}
@keyframes Pulse {
  50% {
    color: rgba(142, 68, 173, 0.5);
    text-shadow: 0 0 24px rgba(142, 68, 173, 0.4);
  }
}
@-webkit-keyframes Flicker {
  0% {
    opacity: 0.1;
    color: #8e44ad;
    text-shadow: 0 0 16px #8e44ad;
  }
  2% {
    opacity: 1;
    color: #fff;
    text-shadow: 0 0 24px #8e44ad;
  }
  6% {
    opacity: 0.1;
    color: #8e44ad;
    text-shadow: 0 0 8px #8e44ad;
  }
  12% {
    opacity: 0.8;
    color: #fff;
    text-shadow: 0 0 8px #8e44ad;
  }
  14% {
    opacity: 0.2;
    color: #8e44ad;
    text-shadow: 0 0 8px #8e44ad;
  }
  30% {
    opacity: 1;
    color: #fff;
    text-shadow: 0 0 16px #8e44ad;
  }
  36% {
    opacity: 0.2;
    color: #8e44ad;
    text-shadow: 0 0 24px #8e44ad;
  }
  60% {
    opacity: 0.6;
    text-shadow: 0 0 16px #8e44ad;
  }
  64% {
    opacity: 0.8;
    text-shadow: 0 0 18px #8e44ad;
  }
  68% {
    opacity: 1;
    text-shadow: 0 0 24px #8e44ad;
  }
  82% {
    opacity: 0.2;
    text-shadow: 0 0 16px #8e44ad;
  }
  84% {
    opacity: 0.1;
    text-shadow: 0 0 8px #8e44ad;
  }
  86% {
    opacity: 0.6;
    text-shadow: 0 0 12px #8e44ad;
  }
}
@keyframes Flicker {
  0% {
    opacity: 0.1;
    color: #8e44ad;
    text-shadow: 0 0 16px #8e44ad;
  }
  2% {
    opacity: 1;
    color: #fff;
    text-shadow: 0 0 24px #8e44ad;
  }
  6% {
    opacity: 0.1;
    color: #8e44ad;
    text-shadow: 0 0 8px #8e44ad;
  }
  12% {
    opacity: 0.8;
    color: #fff;
    text-shadow: 0 0 8px #8e44ad;
  }
  14% {
    opacity: 0.2;
    color: #8e44ad;
    text-shadow: 0 0 8px #8e44ad;
  }
  30% {
    opacity: 1;
    color: #fff;
    text-shadow: 0 0 16px #8e44ad;
  }
  36% {
    opacity: 0.2;
    color: #8e44ad;
    text-shadow: 0 0 24px #8e44ad;
  }
  60% {
    opacity: 0.6;
    text-shadow: 0 0 16px #8e44ad;
  }
  64% {
    opacity: 0.8;
    text-shadow: 0 0 18px #8e44ad;
  }
  68% {
    opacity: 1;
    text-shadow: 0 0 24px #8e44ad;
  }
  82% {
    opacity: 0.2;
    text-shadow: 0 0 16px #8e44ad;
  }
  84% {
    opacity: 0.1;
    text-shadow: 0 0 8px #8e44ad;
  }
  86% {
    opacity: 0.6;
    text-shadow: 0 0 12px #8e44ad;
  }
}
