.hidden {
  display: none;
}

.fade-out {
  animation: fadeOut 0.5s forwards;
}

@keyframes fadeOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.8); }
}

.more-section {
  text-align: center;
  padding: 40px 20px;
  background-color: #f9f9f9;
}

.more-section input[type="search"] {
  padding: 10px;
  width: 60%;
  max-width: 400px;
  font-size: 16px;
  margin: 20px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
}

/* Center images and text */
.game-gallery {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 30px;
}

.game-item {
  text-align: center;
}

.game-item img {
  display: block;
  margin: 0 auto;
  width: 300px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.game-item p {
  margin-top: 10px;
  font-size: 18px;
  color: #000;
  font-weight: bold;
}

.search-results {
  position: absolute;
  background: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  max-height: 300px;
  overflow-y: auto;
  width: 60%;
  max-width: 400px;
  margin: 0 auto;
  left: 0;
  right: 0;
  z-index: 999;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.search-result-item:hover {
  background-color: #f0f0f0;
}

.search-result-item img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
}
#add-game-btn {
  padding: 10px 20px;
  font-size: 18px;
  margin: 20px auto;
  display: block;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.popup {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.popup-content {
  background-color: white;
  margin: 10% auto;
  padding: 20px;
  width: 90%;
  max-width: 400px;
  border-radius: 10px;
  text-align: center;
}

.popup-content input {
  width: 80%;
  padding: 10px;
  margin: 10px 0;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

#submit-game {
  padding: 10px 20px;
  font-size: 16px;
  background-color: green;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.close-btn {
  float: right;
  font-size: 24px;
  cursor: pointer;
}

