/* Dragon 32 Emulator — page styles
   Layers on top of shared base.css + layout.css */

/* Override body for the CRT feel */
body {
  background: #000;
  min-height: 100vh;
  font-family: 'Fira Code', monospace;
}

/* Tint the sm header to match the green CRT */
.site-header {
  background: #050a05;
  border-bottom-color: #1a331a;
}
.site-logo-app {
  color: #33ff33 !important;
  text-shadow: 0 0 12px rgba(0, 255, 0, 0.4) !important;
}
.site-logo-home:hover { color: #33ff33 !important; }

/* Nav buttons styled to match the CRT aesthetic */
.nav-btn {
  background: none;
  border: 1px solid #1a331a;
  color: #33ff33;
  font-family: 'Fira Code', monospace;
  font-size: 0.8rem;
  padding: 0.3em 0.8em;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.2s, border-color 0.2s;
}
.nav-btn:hover {
  background: #0a1a0a;
  border-color: #33ff33;
}
.nav-btn-danger {
  color: #ff4444;
  border-color: #331a1a;
}
.nav-btn-danger:hover {
  background: #1a0a0a;
  border-color: #ff4444;
}

/* Centre the CRT in the main area */
.dragon-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5em 2em;
  max-width: none;
}

#crt {
  position: relative;
  width: 512px;
  height: 384px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 40px rgba(0, 255, 0, 0.15),
    0 0 80px rgba(0, 255, 0, 0.05);
}

#screen {
  display: block;
  width: 512px;
  height: 384px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

#scanlines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.15) 2px,
    rgba(0, 0, 0, 0.15) 4px
  );
}
