body {
  background-color: #000;
  color: #aaa;
  font-family: 'Courier New', Courier, monospace;
  padding: 20px;
  margin: 0;
  /* Allow the page to grow beyond the viewport height and enable page-level scrolling */
  min-height: 100vh;
  overflow-y: auto; /* vertical scrolling at the page level */
  overflow-x: hidden; /* prevent horizontal scrolling */
  -webkit-overflow-scrolling: touch; /* smooth momentum scrolling on iOS */
}

.terminal {
  width: 100%;
  max-width: 800px;
  margin: 40px auto;
}

.text-line {
  min-height: 1.2em;
  line-height: 1.5;
  margin: 10px 0;
  white-space: pre-wrap;
}

.prompt {
  color: #0f0;
  margin-right: 5px;
}

.cursor {
  display: inline-block;
  width: 10px;
  height: 16px;
  background-color: #aaa;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 1px;
  margin-bottom: 5px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.terminal-link {
  color: #40cfff; /* A bright, distinct color */
  text-decoration: underline;
}

.terminal-link:hover {
  color: #60dfff; /* A slightly different color on hover */
}

/* Accessible focus styles for keyboard users */
.terminal-link:focus,
.terminal-link:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(64,207,255,0.18);
  border-radius: 3px;
}