/* Haunted BBS — Browser Terminal Styles */

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  background: #0a0a0a;
  color: #00ff41;
  font-family: 'Courier New', Courier, 'Lucida Console', monospace;
  font-size: 15px;
  line-height: 1.4;
}

/* Terminal container */
#terminal {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: calc(80ch + 24px);  /* 80 columns plus padding */
  margin: 0 auto;
  padding: 8px;
}

/* Output area */
#output {
  flex: 1;
  overflow-y: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 4px 0;
  scroll-behavior: smooth;
}

#output br {
  display: block;
  content: '';
}

/* Input row */
#input-row {
  display: flex;
  align-items: center;
  border-top: 1px solid #003300;
  padding-top: 4px;
  margin-top: 4px;
}

#prompt-label {
  color: #00cc33;
  margin-right: 4px;
  user-select: none;
  flex-shrink: 0;
}

#input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #00ff41;
  font-family: inherit;
  font-size: inherit;
  caret-color: #00ff41;
}

/* Status bar */
#status {
  font-size: 12px;
  color: #005500;
  padding: 2px 0;
  text-align: right;
  user-select: none;
}

/* Blink animation (for ANSI blink attribute) */
@keyframes blink {
  50% { opacity: 0; }
}

/* Scrollbar styling */
#output::-webkit-scrollbar {
  width: 6px;
}
#output::-webkit-scrollbar-track {
  background: #0a0a0a;
}
#output::-webkit-scrollbar-thumb {
  background: #003300;
  border-radius: 3px;
}
#output::-webkit-scrollbar-thumb:hover {
  background: #005500;
}

/* Connection states */
.disconnected {
  color: #880000;
}
.connected {
  color: #005500;
}

#demo-banner{font-size:12px;color:#8a8;border-bottom:1px solid #030;padding:4px 0 6px;margin-bottom:4px}
#demo-banner a{color:#6f6}
