/* Reset & base layout */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background: #111;
  color: #eee;
  font-family: 'Courier New', monospace;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a {
  color: #0ff;
  text-decoration: none;
}
a:hover {
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.8);
}

/* Header */
header {
  text-align: center;
  padding: 2rem 1rem;
}
.headline {
  font-family: 'Verdana', sans-serif;
  font-size: 2.5rem;
  color: #f0f;
}
.subhead {
  font-style: italic;
  color: #ff0;
}

/* Main Sections */
main {
  flex: 1;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}
section + section {
  margin-top: 2rem;
}

.intro {
  border-left: 4px solid #0f0;
  padding-left: 1rem;
}
.intro h2 {
  color: #0f0;
  font-family: 'Verdana', sans-serif;
}

.projects .cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.card {
  background: #222;
  border: 2px solid #00f;
  padding: 1rem;
  border-radius: 8px;
}
.card h3 {
  color: #00f;
}

.blog .posts {
  list-style: none;
}
.blog .posts li + li {
  margin-top: 0.5rem;
}
.blog .posts a {
  color: #f00;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background: #000;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background: #000;
}

.footer-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem; /* space between text and image */
}

.footer-line img {
  vertical-align: middle;
}

/* 404 Page */
.notfound {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}
.notfound h1 {
  font-size: 5rem;
  color: #f00;
}

/* Responsive adjustments */
@media (min-width: 600px) {
  .projects .cards {
    grid-template-columns: 1fr 1fr;
  }
}







/* Blog Index */
.blog-index {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}

.blog-index .posts {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.blog-index .posts li {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #eee;
}

.blog-index .posts time {
  color: #0f0;
  font-family: monospace;
}








/* Blog Post Page Styles */
.blog-post article {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}

.post-title {
  color: #ff0000;
  font-family: 'Verdana', sans-serif;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.post-meta {
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.post-body p {
  margin-bottom: 1rem;
}

pre {
  background: #222;
  padding: 1rem;
  overflow-x: auto;
  border-left: 4px solid #0f0;
  margin: 1rem 0;
  font-size: 0.9rem;
}

blockquote {
  border-left: 4px solid #f0f;
  margin: 1rem 0;
  padding-left: 1rem;
  color: #f0f;
  font-style: italic;
}

.post-nav {
  margin-top: 2rem;
}








/* Chatbox (Cbox embed) */
.chatbox {
  margin-top: 2rem;
  padding: 1rem;
  background: #141414;
  border: 2px solid #0ff;              /* matches your neon link accent */
  border-radius: 10px;
  box-shadow: 0 0 18px rgba(0,255,255,0.1);
}

.chatbox h2 {
  font-family: 'Verdana', sans-serif;  /* consistent with your headings */
  color: #0ff;
  margin-bottom: 0.25rem;
}

.chat-hint {
  color: #aaa;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.chat-frame {
  /* keeps the iframe responsive and tidy */
  overflow: hidden;
  border-radius: 8px;
  background: #111;                    /* subtle frame bg */
  border: 1px solid #222;
}

/* Let CSS control height responsively on small screens */
.chat-frame iframe {
  display: block;
  width: 100%;
  height: min(60vh, 520px);
  background: transparent;
}

/* Optional: gentle glow on hover/focus for fun */
.chatbox:focus-within,
.chatbox:hover {
  box-shadow: 0 0 22px rgba(0,255,255,0.18);
}

/* Reduce motion users: no glow animation spikes */
@media (prefers-reduced-motion: reduce) {
  .chatbox,
  .chatbox:hover,
  .chatbox:focus-within {
    transition: none;
  }
}





/* 88×31 Button Garden */
.button-gallery {
  margin-top: 2rem;
  padding: 1rem;
  background: #141414;
  border: 2px solid #f0f;                 /* magenta accent to match your headline */
  border-radius: 10px;
  box-shadow: 0 0 18px rgba(255,0,255,0.12);
}

.button-gallery h2 {
  font-family: 'Verdana', sans-serif;     /* consistent with headings */
  color: #f0f;
  margin-bottom: 0.25rem;
}

.buttons-hint {
  color: #aaa;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, 88px);
  gap: 0.5rem 0.75rem;                     /* row-gap, column-gap */
  justify-content: center;                 /* center the grid */
  max-width: calc(6 * 88px + 5 * 0.75rem); /* 6 buttons + 5 gaps between them */
  margin-left: auto;
  margin-right: auto;
}


.buttons img {
  width: 88px;
  height: 31px;
  background: #000;                        /* tidy behind transparent pixels */
  border: 1px solid #222;
  border-radius: 4px;
  box-shadow: 0 0 0 2px #000 inset;        /* subtle frame */
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.buttons img:hover {
  transform: translateY(-2px) scale(1.05);
  border-color: #0ff;
  box-shadow: 0 0 10px rgba(0,255,255,0.3), 0 0 0 2px #000 inset;
}

/* On very small screens, let them wrap nicely */
@media (max-width: 400px) {
  .buttons {
    gap: 0.4rem 0.5rem;
  }
}









/* Terminal-style associates list */
.associates-tty {
  margin-top: 2rem;
  padding: 1rem;
  background: #141414;
  border: 2px solid #0f0;
  border-radius: 10px;
  box-shadow: 0 0 18px rgba(0,255,0,0.12);
}
.associates-tty h2 {
  font-family: Verdana, sans-serif;
  color: #0f0;
  margin-bottom: 0.25rem;
}
.assoc-hint { color:#aaa; font-size:.95rem; margin-bottom:.75rem; }

.assoc-list { list-style: none; padding: 0; margin: 0; }
.assoc-item + .assoc-item { margin-top: .75rem; }

.line {
  font-family: "Courier New", monospace;
  color: #ddd;
  background: #1a1a1a;
  border: 1px solid #222;
  border-radius: 8px;
  padding: .5rem .75rem;
  margin: 0;
}
.line + .line { margin-top: .35rem; } /* second line (badge) snugs up */

.prompt { color: #0f0; margin-right: .5rem; }
.tty-link { color: #0ff; font-weight: bold; text-decoration: none; }
.tty-link:hover { text-shadow: 0 0 8px rgba(0,255,255,.6); }
.tty-hash { color: #aaa; }

.indent { padding-left: 2rem; } /* simple indent for the badge line */

.badge {
  display: inline-block;
  width: 88px; height: 31px;
  background: #000;
  border: 1px solid #333;
  border-radius: 4px;
  vertical-align: middle;
}
.line a:hover .badge {
  border-color: #0ff;
  box-shadow: 0 0 10px rgba(0,255,255,.3);
}









/* --- Gallery Index --- */
.gallery-index {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.album-card {
  background: #141414;
  border: 2px solid #00f; /* blue to match project cards */
  border-radius: 10px;
  overflow: hidden;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}
.album-card:hover {
  transform: translateY(-2px);
  border-color: #0ff;
  box-shadow: 0 0 16px rgba(0,255,255,0.15);
}

.album-link { color: inherit; text-decoration: none; display: block; }

/* No aspect-ratio: just let the image be responsive */
.album-thumb { background: #000; }
.album-thumb img {
  display: block;
  width: 100%;
  height: auto; /* keeps the 16:9 of your screenshots */
}

.album-title {
  font-family: 'Verdana', sans-serif;
  color: #0ff;
  padding: 0.6rem 0.8rem 0 0.8rem;
}
.album-meta {
  color: #aaa;
  padding: 0 0.8rem 0.8rem 0.8rem;
  font-size: 0.95rem;
}

/* --- Gallery Page (Minecraft) --- */
.gallery-page {
  max-width: 1000px;  /* a bit wider to showcase 16:9 shots */
  margin: 0 auto;
  padding: 1rem;
}

.shots-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.shot {
  background: #141414;
  border: 2px solid #0ff;     /* cyan accent like links/chat */
  border-radius: 10px;
  overflow: hidden;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}
.shot:hover {
  transform: translateY(-2px);
  border-color: #f0f;
  box-shadow: 0 0 16px rgba(255,0,255,0.15);
}
.shot img {
  display: block;
  width: 100%;
  height: auto;  /* responsive; your source files are already 16:9 */
}
.shot figcaption {
  padding: 0.5rem 0.75rem;
  color: #aaa;
  font-size: 0.95rem;
  background: #111;
  border-top: 1px solid #222;
}

/* If you want a crisper, slightly “pixel” look without 'pixelated': (optional)
   Not all engines honor these, but they won't break anything.
.shot img, .album-thumb img {
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  -ms-interpolation-mode: nearest-neighbor;
}
*/

/* --- Lightbox (flexbox, older-safe) --- */
.lightbox[hidden] { display: none !important; }
.lightbox {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;    /* instead of inset */
  background: rgba(0,0,0,0.85);
  display: none;                           /* toggled with .open */
  z-index: 9999;
  padding: 1rem;

  /* center contents with flex (wide support) */
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }

.lb-image {
  max-width: 95vw;
  max-height: 85vh;
  border: 2px solid #0ff;
  border-radius: 12px;
  box-shadow: 0 0 24px rgba(0,255,255,0.2);
  background: #000;
}

/* Controls positioned absolutely; no justify-items/place-items */
.lb-btn {
  position: absolute;
  background: #141414;
  color: #0ff;
  border: 2px solid #0ff;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 44px;
  text-align: center;
  font-size: 18px;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}
.lb-btn:hover { transform: scale(1.06); border-color: #f0f; color: #f0f; }

.lb-close { top: 12px; right: 12px; width: 38px; height: 38px; line-height: 38px; }
.lb-prev  { top: 50%; left: 16px;  margin-top: -22px; } /* vertically center via negative margin */
.lb-next  { top: 50%; right: 16px; margin-top: -22px; }

.lb-caption {
  position: absolute;
  bottom: 12px; left: 0; right: 0;
  color: #eee;
  font-size: 0.95rem;
  text-align: center;
  padding: 0 .5rem;
}

/* Mobile tweaks */
@media (max-width: 560px) {
  .lb-image { max-width: 94vw; max-height: 70vh; }
  .lb-prev, .lb-next { width: 38px; height: 38px; line-height: 38px; margin-top: -19px; }
}








/* send_signal (contact) */
.contact-cta {
  margin-top: 2rem;
  padding: 1rem;
  background: #141414;
  border: 2px solid #ff0;               /* yellow accent = fresh, visible */
  border-radius: 10px;
  box-shadow: 0 0 18px rgba(255,255,0,0.12);
}
.contact-cta h2 {
  font-family: Verdana, sans-serif;
  color: #ff0;
  margin-bottom: 0.25rem;
}
.contact-hint { color:#aaa; font-size:.95rem; margin-bottom:.75rem; }

.contact-term .line {
  font-family: "Courier New", monospace;
  color: #ddd;
  background: #1a1a1a;
  border: 1px solid #222;
  border-radius: 8px;
  padding: .5rem .75rem;
  margin: 0;
}
.contact-term .line + .line { margin-top: .35rem; }
.prompt { color:#0f0; margin-right:.5rem; }
.indent { padding-left: 2rem; }

.contact-cta button {
  background: linear-gradient(135deg,#00f,#0ff);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: .45rem .7rem;
  font-weight: bold;
  cursor: pointer;
  margin-right: .5rem;
}
.contact-cta button:hover { filter: brightness(1.12); }

.noscript-note { color:#aaa; margin-top:.5rem; }

.contact-buttons { display:flex; justify-content:center; gap:0.5rem; margin-top:0.75rem; }











.minecraft-cta {
  margin-top: 2rem;
  padding: 1rem;
  background: #141414 url('/img/grass-bg.png') repeat;
  border: 2px solid #0f0;
  border-radius: 10px;
  box-shadow: 0 0 18px rgba(0,255,0,0.1);
  text-align: center;
}

.mc-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mc-banner {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.mc-text h2 {
  color: #0f0;
  font-family: 'Verdana', sans-serif;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.mc-text p {
  color: #aaa;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.mc-btn {
  background: linear-gradient(135deg,#0f0,#0ff);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: .45rem 1rem;
  font-weight: bold;
  text-decoration: none;
}
.mc-btn:hover {
  filter: brightness(1.1);
}










.manifesto {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}

.tty-block {
  background: #1a1a1a;
  border: 2px solid #0f0;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 0 18px rgba(0,255,0,0.08);
  font-family: 'Courier New', monospace;
  color: #eee;
}

.tty-block .output p {
  margin: 1rem 0;
  line-height: 1.6;
}

.tty-block .output p,
.tty-block .output blockquote {
  opacity: 1;
  transform: none;
  transition: none;
}

.tty-block blockquote {
  border-left: 4px solid #f0f;
  color: #f0f;
  padding-left: 1rem;
  font-style: italic;
  margin: 1.5rem 0;
}

.caret {
  display: inline-block;
  width: 1ch;
  color: #0f0;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.quote {
  border-left: 4px solid #f0f;
  color: #f0f;
  padding-left: 1rem;
  font-style: italic;
  margin: 1.5rem 0;
}
