.typewriter {
    margin-left: auto;
    margin-right: 0;
    width: fit-content;
}

.typewriter h1 {
    margin-left: auto;
    margin-right: 5px;
    overflow: hidden; /* Ensures the content is not revealed until the animation */
    border-right: .15em solid #d54ab6; /* The typwriter cursor */
    white-space: nowrap; /* Keeps the content on a single line */
    animation: 
      typing 3.5s steps(31, end),
      blink-caret .75s step-end infinite;
  }
  
  /* The typing effect */
  @keyframes typing {
    from { width: 0 }
    to { width: 18em }
  }
  
  /* The typewriter cursor effect */
  @keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #d54ab6; }
  }