/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */

body {
  background-color: #A3FFD2;
  color: #490600;
  font-family: Verdana;
}

.typetext, .typetext *, .typetext *::before, .typetext *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.typetext {
  font-family: 'Courier New', Courier, monospace;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}
.typetext__stage {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.typetext__text {
  font-size: 1;
  font-weight: 700;
  color: #490600;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  border-right: 3px solid #490600;
  animation: typetext-type 1.1s steps(13) 0.8s forwards, typetext-blink 0.75s steps(2) 0.8s infinite;
}

@keyframes typetext-type {
  from {
    width: 0;
  }
  to {
    width: 13ch;
  }
}

@keyframes typetext-blink {
  0% {
    border-color: transparent;
  }
  100% {
    border-color: #490600;
  }
}

@media (prefers-reduced-motion: reduce) {
  .typetext__text {
    width: 13ch;
    animation: none;
    border-right-color: #490600;
  }
}
