html, body {
  margin: 0;
  padding: 0;
  background-color: #000;
  color: #00ff88;
  font-family: Menlo, Consolas, 'Courier New', monospace;
  font-size: 1rem;
  line-height: 1.5;
  height: 100vh;
  overflow: hidden;

  /* Prevent mobile zooming/font scaling */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation;
}

#terminal {
  box-sizing: border-box;
  padding: 2rem;
  height: 100%;
  width: 100%;
  overflow-y: auto;
  white-space: pre-wrap;
  scroll-behavior: smooth;
  word-break: break-word;

  /* Prevent Android from zoom-scaling */
  font-size: 1rem;
  line-height: 1.4;
  max-width: 100%;
}

#terminal a {
  color: inherit !important;
  font-weight: inherit !important;
  text-decoration: none !important;
  background: none !important;
  opacity: 1 !important;
  outline: none !important;
  cursor: text;
  transition: all 0.2s ease-in-out;
}

#terminal a:hover {
  color: #00ffee !important;
  text-decoration: underline !important;
  text-shadow: 0 0 3px #00ffee;
  cursor: pointer;
}


.command {
  color: #00ffaa;
}

.output {
  color: #55ff88;
}

.cursor {
  display: inline-block;
  width: 1ch;
  background-color: #00ff88;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

#download {
  display: none;
  text-align: center;
  margin-top: 3rem;
}

#download a {
  color: #00ffee;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid #00ffee55;
  border-radius: 4px;
  background-color: transparent;
  transition: background 0.3s ease;
}

#download a:hover {
  background-color: #00ffee;
  color: #000;
}

#skip-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
}

#skip-button {
  color: #00ffee;
  font-size: 0.9rem;
  text-decoration: underline;
  background: transparent;
  border: none;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

#skip-button:hover {
  opacity: 1;
}


@media (max-width: 768px) {
  html, body {
    font-size: 0.8rem;
    line-height: 1.4;
    padding: 0.5rem;
  }

  #terminal {
    padding: 1rem;
  }

  #download a {
    font-size: 0.9rem;
    padding: 0.2rem 0.5rem;
  }

  #skip-button {
    font-size: 0.8rem;
  }
}
