/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f0f4ff, #e9f0fc);
  color: #333;
  line-height: 1.6;
}

/* Header with Gradient */
header {
  text-align: center;
  padding: 2.5rem 1rem;
  background: linear-gradient(90deg, #6a11cb, #2575fc);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

header h1 {
  font-size: 2.8rem;
  margin-bottom: 0.3rem;
}

header p {
  font-size: 1.2rem;
  font-weight: 300;
}

/* Gallery Grid */
main.game-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
}

/* Game Cards with Gradient Shadow Effect */
.game-card {
  background: linear-gradient(145deg, #ffffff, #f1f5ff);
  padding: 1.2rem;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid transparent;
  background-clip: padding-box, border-box;
  background-origin: border-box;
  background-image: linear-gradient(145deg, #ffffff, #f1f5ff), linear-gradient(135deg, #4f46e5, #9333ea);
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(37, 117, 252, 0.3);
}

.game-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.game-card h2 {
  font-size: 1.4rem;
  color: #3730a3;
  margin-bottom: 0.3rem;
}

.game-card p {
  color: #e9f0fc;
  font-weight: bolder;
}
.game-card a {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(to right, #4f46e5, #9333ea);
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: background 0.3s, transform 0.2s;
}

.game-card a:hover {
  background: linear-gradient(to right, #6d28d9, #7c3aed);
  transform: scale(1.05);
}

.game-card iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 12px;
  margin-top: 1rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* Game Iframe Styling */
.game-frame-section {
  margin: 0 auto;
  max-width: 1200px;
  padding: 2rem 1rem;
}

iframe[name="gameFrame"] {
  width: 100%;
  height: 700px;
  border: none;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}