.app-loading {
  font-family: system-ui, sans-serif;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  top: 10em;
}
.app-loading p {
  display: block;
  font-size: 1.17em;
  margin-inline-start: 0;
  margin-inline-end: 0;
  font-weight: normal;
}

/* JDD Software mark: the three letters fade in one after the other, then the
   wordmark fills with a wave. */
.jdd {
  display: grid;
  column-gap: 10px;
  width: 50%;
  max-width: 280px;
  grid-template-columns: repeat(3, 1fr);
  color: #fff;
  font-family: sans-serif;
  line-height: 1;
  font-weight: 900;
}
.jdd > div {
  display: flex;
  aspect-ratio: 1 / 1;
  justify-content: center;
  align-items: center;
  font-size: min(15vw, 62px);
}
.jdd > div.software {
  aspect-ratio: auto;
  grid-column: span 3;
  font-size: min(7vw, 29px);
  letter-spacing: min(1vw, 4px);
  text-align: center;
  color: darkgray;
  opacity: 0;
  animation: jdd-in 250ms ease-in 500ms 1 normal forwards;
}
.jdd > div.software > div {
  position: relative;
}
.jdd > div.software > div span {
  color: #fff;
  position: absolute;
  transform: translate(-50%, 0);
}
.jdd > div.software > div span:nth-child(1) {
  color: #777;
  -webkit-text-stroke: 2px #666;
}
.jdd > div.software > div span:nth-child(2) {
  color: #999;
  animation: jdd-wave 2s ease-in-out infinite;
}

.jdd .red {
  background-color: #e80000;
  opacity: 0;
  animation: jdd-in 250ms ease-in 0s 1 normal forwards;
}
.jdd .yellow {
  background-color: #efef00;
  opacity: 0;
  animation: jdd-in 250ms ease-in 125ms 1 normal forwards;
}
.jdd .blue {
  background-color: #0000ec;
  opacity: 0;
  animation: jdd-in 250ms ease-in 250ms 1 normal forwards;
}

@keyframes jdd-in {
  100% {
    opacity: 1;
  }
}

@keyframes jdd-wave {
  0%,
  100% {
    clip-path: polygon(0% 45%, 16% 44%, 33% 50%, 54% 60%, 70% 61%, 84% 59%, 100% 52%, 100% 100%, 0% 100%);
  }
  50% {
    clip-path: polygon(0% 60%, 15% 65%, 34% 66%, 51% 62%, 67% 50%, 84% 45%, 100% 46%, 100% 100%, 0% 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .jdd .red,
  .jdd .yellow,
  .jdd .blue,
  .jdd > div.software {
    animation-delay: 0s;
    animation-duration: 1ms;
  }
  .jdd > div.software > div span:nth-child(2) {
    animation: none;
  }
}
