.fade-in1 {
  opacity: 0;

  animation: fadeIn 2s ease-in-out forwards;
  animation-delay: 0.2s;
}

.fade-in2 {
  opacity: 0;

  animation: fadeIn 3s ease-in-out forwards;
  animation-delay: 1s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.typewriter h1 {
  overflow: hidden; /* Ensures the content is not revealed until the animation */
  border-right: 0 solid #59e078; /* The typwriter cursor */
  white-space: nowrap; /* Keeps the content on a single line */
  margin: 0 auto; /* Gives that scrolling effect as the typing happens */
  letter-spacing: 0em; /* Adjust as needed */
  animation:
    typing 1s steps(40, end),
    blink-caret 0.75s step-end infinite;
  animation-delay: 2.2s;
  width: 0;
  animation-fill-mode: forwards;
}

/* The typing effect */
@keyframes typing {
  from {
    width: 0;
    border-right: 0.1em solid #59e078;
  }
  to {
    width: 100%;
    border-right: 0.1em solid #59e078;
  }
}

/* The typewriter cursor effect */
@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: #59e078;
  }
}
