:root {
    --horizontal-length: 1rem;
    --font-size: 1rem;
    --border-color: white;
  }
  
  li::before {
    content: "";
    position: absolute;
    top: calc(var(--font-size) / 2);
    left: 0;
    border-bottom: 1px solid var(--border-color);
    width: var(--horizontal-length);
  }
  
  li {
    position: relative;
    border-left: 1px solid var(--border-color);
    list-style: none;
    padding-left: calc(var(--horizontal-length) + 0.2rem);
    font-size: var(--font-size);
  }
  
  li:last-of-type {
    height: calc(var(--font-size) / 2 * 1.1);
    margin-bottom: calc(var(--font-size) / 2 * 1.1);
  }
  
  body {
    background: #333;
    padding-top: 5em;
    display: flex;
    justify-content: center;
    color: white;
    font-family: monospace;
  }
  
  a {
    color: #ffffff;
  }
  
  .typewriter h1 {
    color: #fff;
    font-family: monospace;
    overflow: hidden; /* Ensures the content is not revealed until the animation */
    border-right: .15em solid orange; /* 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: .15em; /* Adjust as needed */
    animation: 
      typing 3.5s steps(30, end),
      blink-caret .5s step-end infinite;
  }
  
  /* The typing effect */
  @keyframes typing {
    from { width: 0 }
    to { width: 100% }
  }
  
  /* The typewriter cursor effect */
  @keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: orange }
  }