/* --- Base --- */
body {
  background-color: #0a0a0a;
  color: #c9f8f7;
  font-family: "Courier New", monospace;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* --- Layout Container (responsive) --- */
main {
  width: 95%;
  max-width: 1800px;   /* expands gracefully up to 1800px on large screens */
  margin: 0 auto;
  padding: 2em;
  box-sizing: border-box;
}

/* --- Header --- */
header {
  text-align: center;
  padding: 1.5em 0;
  border-bottom: 1px solid #1f1f1f;
  max-width: 1000px;
  margin: 0 auto;
}

header h1 {
  color: #6fffd3;
  text-shadow: 0 0 8px #00fff2;
  margin-bottom: 0.5em;
}

/* --- Navigation --- */
nav a {
  margin: 0 12px;
  color: #6fffd3;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

nav a:hover {
  color: #9ffff0;
  text-shadow: 0 0 6px #6fffd3;
}

/* --- Hero / About Sections --- */
.hero, .about {
  text-align: center;
  padding: 4em 2em;
  max-width: 700px;
  margin: 0 auto;
}

/* --- Buttons --- */
.hero .button {
  display: inline-block;
  margin-top: 1em;
  padding: 0.75em 1.5em;
  color: #000;
  background-color: #6fffd3;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s ease;
}

.hero .button:hover {
  background-color: #9ffff0;
}

/* --- Headings --- */
h1, h2, h3 {
  color: #6fffd3;
  text-shadow: 0 0 10px #00fff2;
  margin-top: 2em;
  margin-bottom: 0.5em;
}

h2 a, h3 a {
  color: #6fffd3;
  text-shadow: 0 0 10px #00fff2;
  text-decoration: none;
}

h2 a:hover, h3 a:hover {
  color: #9ffff0;
  text-shadow: 0 0 15px #00fff2;
}

/* --- Paragraphs and Lists --- */
p, li {
  color: #d0fdfc;
  font-size: 15px;
}

ul {
  padding-left: 2em;
}

/* --- Links --- */
a {
  color: #6fffd3;
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

a:hover, a:focus {
  color: #9ffff0;
  text-shadow: 0 0 6px #6fffd3;
}

a:visited {
  color: #6fffd3; /* same as normal links, no purple */
}

/* --- Footer --- */
footer {
  text-align: center;
  border-top: 1px solid #1f1f1f;
  padding: 1.5em 0;
  color: #5f7776;
  font-size: 14px;
}

/* --- Video Styling --- */
video {
  display: block;
  max-width: 80%;              /* scales video to 80% of the content width */
  height: auto;                /* keeps proper aspect ratio */
  margin: 3em auto;            /* centers and adds breathing room */
  border: 2px solid #00fff2;   /* subtle CRT-style border */
  border-radius: 8px;
  box-shadow: 0 0 20px #00fff2; /* glowing edge for CRT feel */
  background-color: #000;      /* in case of letterboxing */
}

/* --- Image Styling --- */
img {
  display: block;
  max-width: 90%;
  height: auto;
  margin: 2em auto;
  border-radius: 8px;
  box-shadow: 0 0 12px #00fff2;
  background-color: #000;
}

section {
  margin-bottom: 3em;   /* adds vertical space between sections */
}

/* --- Slideshow --- */
.slideshow {
  position: relative;
  max-width: 90%;
  margin: 3em auto;
  border-radius: 14px;
  border: 3px solid #00fff2;
  box-shadow: 0 0 30px #00fff2, 0 0 60px rgba(0, 255, 242, 0.4);
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* keep the glow tight, but not cut images */
  padding: 0;
}

/* Each slide now sizes itself by the image inside */
/* --- Slideshow --- */
.slideshow {
  position: relative;
  max-width: 90%;
  margin: 3em auto;
  border-radius: 14px;
  border: 3px solid #00fff2;
  box-shadow: 0 0 30px #00fff2, 0 0 60px rgba(0, 255, 242, 0.4);
  background-color: #000;
  overflow: hidden;
  padding: 0;
}

/* Each slide fills the container but adapts to its image */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  animation: fade 16s infinite;
}

/* Make sure the container gets height from the first image */
.slideshow img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 255, 242, 0.3) inset;
}

/* When slides are active, they fade in */
.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 4s; }
.slide:nth-child(3) { animation-delay: 8s; }
.slide:nth-child(4) { animation-delay: 12s; }

@keyframes fade {
  0% { opacity: 0; }
  5% { opacity: 1; }
  25% { opacity: 1; }
  30% { opacity: 0; }
  100% { opacity: 0; }
}

/* Pause on hover */
.slideshow:hover .slide {
  animation-play-state: paused;
}

/* Ensure slideshow height matches image height */
.slideshow::after {
  content: "";
  display: block;
  padding-bottom: 56.25%; /* acts like a 16:9 spacer */
}

/* --- Dev Log List --- */
.log-list {
  max-width: 800px;
  margin: 4em auto;
  padding: 0 2em;
}

.log-list article {
  background: rgba(0, 255, 242, 0.05);
  border: 1px solid rgba(0, 255, 242, 0.2);
  border-radius: 10px;
  padding: 2em;
  margin-bottom: 3em;
  box-shadow: 0 0 20px rgba(0, 255, 242, 0.15);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.log-list article:hover {
  box-shadow: 0 0 25px rgba(0, 255, 242, 0.4);
  transform: translateY(-4px);
}

.log-list h2 a {
  color: #6fffd3;
  text-shadow: 0 0 10px #00fff2;
  text-decoration: none;
}

.log-list h2 a:hover {
  color: #9ffff0;
  text-shadow: 0 0 15px #00fff2;
}

/* The small tag “preview only” */
.preview-label {
  display: inline-block;
  font-size: 12px;
  color: #00fff2;
  background: rgba(0, 255, 242, 0.1);
  border: 1px solid rgba(0, 255, 242, 0.3);
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.preview-note {
  text-align: center;
  color: #6fffd3;
  font-size: 13px;
  opacity: 0.75;
  margin-top: 0.5em;
}

/* --- Retro Counter --- */
.retro-counter {
  font-family: "Courier New", monospace;
  font-size: 1.1em;
  color: #00fff2;
  background: rgba(0, 255, 242, 0.05);
  border: 1px solid rgba(0, 255, 242, 0.3);
  border-radius: 4px;
  padding: 4px 10px;
  display: inline-block;
  box-shadow: 0 0 12px #00fff2;
  margin-top: 0.5em;
}

/* --- RetroEngine Age Counter --- */
.site-age {
  font-family: "Courier New", monospace;
  font-size: 1.5rem;
  color: #6fffd3; /* same neon mint as headings/links */
  text-shadow: 0 0 6px #00fff2; /* subtle CRT glow */
  opacity: 0.95;
  margin-top: -1.5em;  /* pulls it visually closer to the header */
  margin-bottom: 1.5em;
}