/* =========================================================
   Fun Games - Hub landing page stylesheet
   Bright, cheerful, kid-friendly. Pure CSS, no dependencies.
   Shares the visual language of the games (gradient body,
   rounded corners, soft shadows, friendly font).
   ========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body { min-height: 100%; }

body {
  background: linear-gradient(180deg, #aee9ff 0%, #ffe1f0 55%, #fff4d6 100%);
  font-family: "Trebuchet MS", "Comic Sans MS", Verdana, sans-serif;
  color: #2b3a4a;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 4vh 4vw;
  -webkit-tap-highlight-color: transparent;
}

.hub {
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3vh;
}

/* ===== Header ===== */
.hub-header { text-align: center; }

.hub-header h1 {
  font-size: clamp(2rem, 7vw, 3.4rem);
  color: #ff7a59;
  text-shadow: 2px 2px 0 #fff;
}

.hub-subtitle {
  margin-top: 0.6rem;
  font-size: clamp(1rem, 3vw, 1.4rem);
  font-weight: bold;
  color: #3a7d44;
}

/* ===== Card grid (reflows on small screens) ===== */
.card-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 1.6rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  color: #2b3a4a;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 80, 120, 0.18);
  border: 4px solid #fff;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.game-card:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: 0 14px 26px rgba(0, 80, 120, 0.28);
}

.game-card:active {
  transform: translateY(-2px);
}

.game-card .emoji {
  font-size: clamp(2.6rem, 9vw, 4rem);
  line-height: 1;
}

.game-card .name {
  font-size: clamp(1.1rem, 3.4vw, 1.5rem);
  font-weight: bold;
  color: #ff6a44;
}

.game-card .tag {
  font-size: clamp(0.82rem, 2.4vw, 1rem);
  color: #5a6b7a;
}

/* Cheerful pastel backgrounds per card */
.game-card.c1 { background: #fff0d6; }
.game-card.c2 { background: #ffe0e0; }
.game-card.c3 { background: #e3f6d8; }
.game-card.c4 { background: #e3ecff; }
.game-card.c5 { background: #ffe9d0; }
.game-card.c6 { background: #f1e3ff; }
.game-card.c7 { background: #d8f6ff; }
.game-card.c8 { background: #fef3d0; }
.game-card.c9 { background: #e6e0ff; }
.game-card.c10 { background: #d9f7ec; }
.game-card.c11 { background: #ffe6d0; }

/* ===== Footer ===== */
.hub-footer {
  font-size: clamp(0.85rem, 2.4vw, 1.05rem);
  font-weight: bold;
  color: #6b4f2a;
  padding-bottom: 1rem;
}
