/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */

/* Reset basic styles */
body {
  margin: 0;
  padding: 0;
  font-family: 'Courier New', Courier, monospace;
  background-color: #0f111a;
  color: #e0e0e0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header */
header h1 {
  font-size: 2.5rem;
  color: #6a74f7;
  margin: 40px 0 20px;
}

/* Search Box */
.search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 40px;
}

.search-box input {
  padding: 10px;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  width: 250px;
  background-color: #1f2233;
  color: white;
}

.search-box button {
  padding: 10px 16px;
  font-size: 1rem;
  background-color: #6a74f7;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  color: white;
}

/* Grid Layout */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  width: 90%;
  max-width: 1000px;
  margin-bottom: 60px;
}

/* Game Card Styles */
.game-card {
  background-color: #1f2937;
  border-radius: 0.75rem;
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-height: 200px;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

/* Title & Description */
.game-title {
  font-size: 1.3rem;
  color: #cbd5e1;
  margin-bottom: 0.5rem;
}

.game-description {
  font-size: 0.95rem;
  color: #94a3b8;
  margin-bottom: 1.2rem;
}

/* Play Button */
.play-button {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: #6366f1;
  color: white;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.play-button:hover {
  background-color: #4f46e5;
  transform: scale(1.05);
}

/* Footer */
footer {
  text-align: center;
  font-size: 0.9rem;
  color: #888;
  padding: 20px 0;
  border-top: 1px solid #222;
  width: 100%;
}
