/* body and .text are NOT required for the blinking cursor. */
body { 
  background: black;
  font-family: dosfont;
  padding-top: 10em;
  display: flex;
  width: min-content;
  justify-content: center;
    margin:auto;
}
@font-face {  
  font-family: 'dosfont';
  src: url('/trunk/css/dosfont.ttf') format('truetype');
}
.text { 
  color: lawngreen;
  display:inline;
  overflow: hidden; /* Ensures the content is not revealed until the animation */
  border-right: .45em solid lawngreen; /* 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 1s steps(17, end),
    blink-caret .75s step-end infinite,
    flicker 5s 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: lawngreen; }
}

@keyframes flicker { 
  0% {opacity:1;} 
  50% {opacity:1;} 
  51% {opacity:0.1;}
  53% {opacity:1;}
  68% {opacity:1;} 
  70% {opacity:0.7;}
  72% {opacity:0.2;}
  76% {opacity:0.1;}
  78% {opacity:1;}
  80% {opacity:0.3;}
  84% {opacity:1;} 
  90% {opacity:0.1;}
  100% {opacity:1;}
}