/* minigames.css v1.73 — page-specific styles for minigames.html */

/* ═══ Container + back link ═══ */
.container {
  position: relative;
  padding-top: 20px;
  padding-bottom: 40px;
}
.back-link {
  color: #00cccc;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 20px;
  transition: color 0.3s ease;
}
.back-link:hover {
  color: #00ffff;
  text-shadow: 0 0 5px #00ffff;
}

/* ═══ Krix image, floated on the left ═══ */
.krix-float {
  position: absolute;
  top: -3px;     /* sits under “Return to Main” */
  left: 140px;   /* gap from container’s left edge */
  width: 175px;  /* enlarge Krix */
  image-rendering: pixelated;
  z-index: 5;
}

/* ═══ Torch sconce, mirrored on the right ═══ */
.torch-sconce-right {
  position: absolute;
  top: 250px;    /* same vertical as .krix-float */
  right: 35px;   /* gap from container’s right edge */
  width: 80px;   /* match Krix size */
  image-rendering: pixelated;
  z-index: 5;
}

/* ═══ Torch sconce, mirrored on the left ═══ */
.torch-sconce-left {
  position: absolute;
  top: 250px;    /* same vertical as .krix-float */
  left: 35px;    /* gap from container’s left edge */
  width: 80px;   /* match Krix size */
  image-rendering: pixelated;
  z-index: 5;
}

/* ═══ Banner for Krix’s text ═══ */
.krix-banner {
  position: absolute;
  top: 100px;           /* pulled up from 120px */
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid #00cccc;
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(0,255,255,0.4);
  color: #e0e0e0;
  font-family: 'Cinzel', serif;
  font-size: 1.1em;
  text-align: center;
  line-height: 1.3em;
  white-space: normal;
  z-index: 5;

  min-width: 300px;
  max-width: 600px;
  padding: 12px 24px;
  min-height: 70px;     /* increased from 60px */
}

/* enlarge the “Cryptkeeper Krix says:” heading */
.krix-banner strong {
  display: block;
  font-size: 1.25em;
  margin-bottom: 6px;
}

/* ═══ Two-up flex grid for game cards ═══ */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 180px;   /* clear space beneath Krix & banner */
}

/* ═══ Card styling ═══ */
.card-link {
  text-decoration: none;
  color: inherit;
}
.card {
  background: rgba(15,15,15,0.9);
  border: 2px solid #00cccc;
  border-radius: 10px;
  padding: 15px;
  width: 280px;
  box-shadow: 0 0 15px rgba(0,255,255,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}
.card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0,255,255,0.6);
}

/* force every card image to match height */
.card img {
  height: 160px;
  width: auto;
  margin: 0 auto 10px;
  display: block;
  image-rendering: pixelated;
  border: 1px solid #00cccc;
  border-radius: 5px;
}

.card h3 {
  margin: 0.4em 0 0.2em;
  color: #00cccc;
  font-size: 1.2em;
  text-shadow: 0 0 5px #00cccc;
}
.card p {
  font-size: 0.9em;
  margin: 0.2em 0;
  color: #e0e0e0;
}

/* ═══ Mobile fallback ═══ */
@media (max-width: 600px) {
  .krix-float,
  .torch-sconce-left,
  .torch-sconce-right {
    display: none;
  }

  /* keep the banner visible */
  .krix-banner {
    display: block;
  }

  .card img {
    height: 120px;
    width: auto;
  }

  .card-grid {
    gap: 15px;
  }
}

/* Disclaimer text under cards */
.disclaimer {
  margin-top: 24px;             /* space from the cards */
  font-size: 0.85em;            /* slightly smaller */
  font-style: italic;           /* subtle emphasis */
  color: #a0a0a0;               /* muted gray */
  text-align: center;           /* centered under cards */
  max-width: 800px;             /* don’t grow too wide */
  margin-left: auto;
  margin-right: auto;
}
