/* 🌼 Global Page Styling */
body {
  margin: 0;
  background: radial-gradient(circle at top, #fff8b0, #ffe082);
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;  /* removes horizontal scroll */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 🌼 Navbar */
.navbar {
  background: #ffca28;
  padding: 12px;
  width: 100%;
  text-align: center;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.brand {
  text-decoration: none;
  color: #000;
  font-size: 1.3em;
}

/* 🌼 Container */
.container {
  width: 90%;
  max-width: 1000px;
  margin: auto;
  text-align: center;
  flex: 1 0 auto;
}

/* 🌼 Game Cards */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.card {
  background: #fff8d2;
  border: 2px solid #ffd54f;
  border-radius: 12px;
  padding: 20px;
  width: 250px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card h3 {
  color: #ff9800;
}

.card p {
  font-size: 0.95em;
}

/* 🌟 Animated Play Now Button */
.btn-animate {
  display: inline-block;
  background: linear-gradient(90deg, #ffb300, #ffca28, #ffb300);
  color: #000;
  border: none;
  font-weight: bold;
  border-radius: 8px;
  padding: 12px 20px;
  text-decoration: none;
  box-shadow: 0 0 10px rgba(255, 193, 7, 0.6);
  transition: transform 0.2s ease-in-out;
  animation: pulseGlow 2s infinite;
}

.btn-animate:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 193, 7, 0.9);
}

@keyframes pulseGlow {
  0%   { box-shadow: 0 0 8px rgba(255, 193, 7, 0.6); }
  50%  { box-shadow: 0 0 20px rgba(255, 193, 7, 1); }
  100% { box-shadow: 0 0 8px rgba(255, 193, 7, 0.6); }
}

/* 🚫 Disabled Cards */
.disabled {
  opacity: 0.6;
}

/* 🌻 Footer (Fixed Height, No Blank Space) */
.footer {
  background-color: #ffca28;
  width: 100%;
  text-align: center;
  padding: 10px 0;
  font-size: 0.9em;
  color: #000;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

/* 📱 Mobile Responsive */
@media (max-width: 600px) {
  .card-grid {
    flex-direction: column;
    align-items: center;
  }
  .card {
    width: 85%;
  }
  .btn-animate {
    width: 80%;
  }
}
