* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


body {
  
  background-color: #2c2c2c;
  background-size: auto; /* Scales image to cover the entire body */
  background-position: top center; /* Centers the image */
  background-repeat: no-repeat; /* Prevents tiling */
  background-attachment: fixed;
  margin: 0; /* Removes default body margin */
  min-height: 200vh; /* Ensures body takes full viewport height */
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important; /* Optional but recommended */
  border: 0 !important;
}

img {
  display: block;
  padding: 10px;
  width: 500px;
  margin: 0 auto;
  max-width: 100%; /* Keeps image responsive */
}

#search {
  display: block;
  margin: 0 auto 30px auto;
  padding: 10px;
  width: 100%;
  max-width: 600px;
  font-size: 16px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
  gap: 20px;
}

.categories button {
  padding: 8px 14px;
  border: none;
  background-color: #ccc;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

.categories button.active,
.categories button:hover {
  background-color: #565656;
  color: white;
}

.game-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 10px 40px 10px;
}

.game-card {
  width: 300px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s;
}

.game-card:hover {
  transform: translateY(-5px);
}

.game-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.game-title {
  font-weight: bold;
  margin: 10px 0 15px 0;
  padding: 0 10px;
  font-size: 18px;
}
