
* {
  box-sizing: border-box;
}

body {
  background: #000;
  color: #00ff66;
  text-shadow: 0 0 3px #00ff66;
  font-family: 'Courier New', Courier, monospace;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-size: 16px;
}

p {
 width: 1400px;
 line-height: 20px;
 text-align: left;

}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
}

.intro-block {
  width: 100%;
  max-width: 1000px;
  margin-bottom: 2rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  padding: 1rem;
}

.gallery figure {
  background-color: black;
  padding: 0.5rem;
  border: 1px solid #00ff66;
  box-shadow: 0 0 10px #00ff66;
  text-align: center;
  color: #00ff66;
  font-family: 'Courier New', Courier, monospace;
}

.gallery img {
  max-width: 100%;
  height: auto;
  border: 2px solid #00ff66;
  box-shadow: 0 0 10px #00ff66;
  margin-bottom: 0.5rem;
}

pre {
  white-space: pre-wrap;
  max-width: 100%;
  word-wrap: break-word;
  font-size: clamp(12px, 4vw, 18px);
  line-height: 1.4;
}

#glare {
  position: none;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -2;
  background: radial-gradient(ellipse at center, #011 0%, #000 80%);
}

#interlaced {
  position: fixed;
  background: repeating-linear-gradient(
    transparent 0px 1px,
    rgba(0, 255, 0, 0.05) 2px 3px
  );
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  pointer-events: none;
  animation: lines 0.1s linear infinite;
}

@keyframes lines {
  0% { background-position: 0 0; }
  100% { background-position: 0 2px; }
}

@keyframes blink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.blink {
  animation: blink 1s step-start infinite;
}

@media (max-width: 480px) {
  pre {
    font-size: 14px;
  }
}

/* === Allow images to show and be styled === */
img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1rem auto;
  border: 2px solid #00ff66;
  box-shadow: 0 0 10px #00ff66;
}

/* Ensure main content is above visual effects */
main {
  position: relative;
  z-index: 200;
}

/* Lower z-index for glare and interlaced */
#glare,
#interlaced {
  z-index: 50 !important;
}

/* General terminal-style appearance */
body {
  background-color: black;
  color: #00ff66;
  font-family: 'Courier New', Courier, monospace;
  text-align: center;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 1rem;
  margin-top: 1rem;
}

.gallery figure {
  background-color: black;
  padding: 0.5rem;
  border: 1px solid #00ff66;
  box-shadow: 0 0 10px #00ff66;
  text-align: center;
  color: #00ff66;
  font-family: 'Courier New', Courier, monospace;
}

.gallery img {
  max-width: 100%;
  height: auto;
  border: 2px solid #00ff66;
  box-shadow: 0 0 10px #00ff66;
  margin-bottom: 0.5rem;
}

.gallery figcaption {
  font-size: 0.9rem;
  padding-top: 0.3rem;
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 255, 0, 0.1);
  backdrop-filter: blur(5px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border: 2px solid #00ff66;
  box-shadow: 0 0 20px #00ff66;
  background-color: black;
}

a {
    text-decoration: none; 
    color: #00ff66; 
}

/* mouse over link */
a:hover {
  color: black;
}