body {
  margin: 0;
  padding: 0;
  font-family: "Garamond", "Georgia", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  background-color: #0a0a1f;
  color: #f0e6d2;
  background-image: url("https://i.gifer.com/QHdZ.gif"); /* describe: Medieval starfield tapestry backdrop */
  background-size: cover;
  background-attachment: fixed;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: "Georgia", serif;
  text-shadow: 1px 1px 2px #000;
  margin-bottom: 0.5em;
}

a {
  color: #a8e6ff;
  text-decoration: none;
}

a:hover {
  color: #ffd700;
}

/* ===== Navigation Bar ===== */

.topnav {
  background-color: rgba(10, 10, 30, 0.85);
  overflow: hidden;
  text-align: center;
  padding: 0.5em 0;
  white-space: nowrap;
}

.topnav a {
  display: inline-block;
  color: #f0e6d2;
  padding: 0.75em 2em;
  font-size: 1.1em;
  transition: background-color 0.3s, color 0.3s;
}

.topnav a:hover {
  background-color: #444;
  color: #ffd700;
}

/* ===== Header ===== */

header {
  text-align: center;
  padding: 3em 1em 1em;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0));
}

header h1 {
  font-size: 3em;
  color: #ffd700;
  letter-spacing: 2px;
}

.quote {
  font-family: "Lucida Handwriting", cursive;
  font-style: italic;
  color: #ccc;
  margin-top: 0.5em;
}

/* ===== Introduction Section ===== */

.intro {
  padding: 2em;
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 6px solid #ffd700;
  margin: 2em auto;
  max-width: 800px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* ===== Constellations Section ===== */

.constellations {
  padding: 2em;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
  justify-content: center;
}

.card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1em;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
  max-width: 300px;
  transition: transform 0.2s ease-in-out;
}

.card:hover {
  transform: scale(1.03);
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  max-height: 200px;
  object-fit: cover;
}

/* ===== Space Facts Section ===== */

.facts {
  padding: 2em;
  background-image: url("galaxy-chaos.jpg"); /* describe: Wild galaxy spiral with glowing nebula */
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  color: #fefefe;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);
}

.columns {
  display: flex;
  gap: 2em;
  flex-wrap: wrap;
  justify-content: center;
}

.column {
  flex: 1 1 250px;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 1em;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

/* ===== Gallery Section ===== */

.gallery {
  padding: 2em;
}

.image-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: center;
}

.image-row img {
  width: 200px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* ===== YouTube Videos Section ===== */

.videos {
  padding: 2em;
  background-color: #111;
  color: #fff;
}

.video-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: center;
}

.video-card {
  max-width: 360px;
  flex: 1 1 300px;
}

.video-card iframe {
  width: 100%;
  height: 200px;
  border: none;
  border-radius: 4px;
}

/* ===== Quotes Section ===== */

.quotes {
  background-color: rgba(255, 255, 255, 0.03);
  padding: 2em;
  font-style: italic;
  text-align: center;
}

.quotes blockquote {
  margin: 1em auto;
  max-width: 600px;
  font-family: "Lucida Handwriting", cursive;
  color: #ccc;
}

/* ===== Footer ===== */

footer {
  background-color: #0a0a1f;
  text-align: center;
  padding: 1.5em;
  color: #666;
  font-size: 0.9em;
}

/* ===== Background Stars Animation (optional extra) ===== */

.background-stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("tiny-starfield.png"); /* describe: Transparent star speckle overlay */
  z-index: -1;
  animation: twinkle 10s infinite alternate;
  opacity: 0.2;
}

@keyframes twinkle {
  0% { opacity: 0.1; }
  100% { opacity: 0.3; }
}