/* Standalone black terminal easter-egg page (not part of the main site chrome). */

:root {
  --term-bg: #000;
  --term-text: #d6f3ff;
  --term-accent: #4fd7ff;
}

html, body {
  margin: 0;
  height: 100%;
}

body.terminal-page {
  background: var(--term-bg);
  color: var(--term-text);
  font-family: 'Consolas', 'Courier New', monospace;
  cursor: text;
}

.terminal-screen {
  height: 100vh;
  width: 100vw;
  padding: 32px;
  overflow-y: auto;
  box-sizing: border-box;
  font-size: 1.05rem;
  line-height: 1.6;
}

.terminal-output-line {
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal-link {
  color: var(--term-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.terminal-dir {
  cursor: pointer;
}

.terminal-exec {
  cursor: pointer;
}

.terminal-media {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 16px;
}

.terminal-image {
  max-width: 260px;
  max-height: 220px;
  border: 1px solid rgba(79, 215, 255, 0.35);
  border-radius: 6px;
}

.terminal-media-caption {
  flex-basis: 100%;
  color: var(--term-text);
  opacity: 0.85;
  margin: 4px 0 0;
}


.terminal-link:hover,
.terminal-link:focus-visible {
  color: #fff;
}

.terminal-line {
  display: flex;
  flex-wrap: wrap;
}

.terminal-prompt {
  color: var(--term-accent);
  font-weight: 600;
  white-space: pre;
}

.terminal-typed {
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal-cursor {
  display: inline-block;
  animation: term-blink 1s step-end infinite;
}

@keyframes term-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.terminal-hidden-input {
  position: fixed;
  top: -200px;
  left: -200px;
  width: 1px;
  height: 1px;
  opacity: 0;
  border: none;
  background: transparent;
  pointer-events: none;
}

/* ---------- nano-style guestbook editor ---------- */

.nano-editor {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: none;
  flex-direction: column;
  background: var(--term-bg);
  color: var(--term-text);
  font-family: 'Consolas', 'Courier New', monospace;
}

.nano-editor:not([hidden]) {
  display: flex;
}

.nano-titlebar {
  display: flex;
  justify-content: center;
  gap: 10px;
  background: var(--term-accent);
  color: #001522;
  font-weight: 700;
  padding: 6px 16px;
}

.nano-textarea {
  flex: 1;
  resize: none;
  border: none;
  outline: none;
  background: var(--term-bg);
  color: var(--term-text);
  font-family: inherit;
  font-size: 1.05rem;
  line-height: 1.6;
  padding: 16px 20px;
}

.nano-savebar,
.nano-status {
  padding: 6px 20px;
  border-top: 1px solid rgba(79, 215, 255, 0.25);
}

.nano-shortcuts {
  display: flex;
  gap: 24px;
  background: var(--term-accent);
  color: #001522;
  padding: 6px 16px;
  font-size: 0.95rem;
}

.nano-key {
  font-weight: 700;
  margin-right: 4px;
}
