body {
  font-family: Arial;
  background: #111;
  color: white;
  margin: 0;
  text-align: center;
}

h1 {
  margin-top: 20px;
}

input, select, button {
  padding: 10px;
  margin: 10px;
  border-radius: 8px;
  border: none;
}

button {
  cursor: pointer;
}


#game-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
}


.card {
  background: #1e1e1e;
  padding: 10px;
  border-radius: 10px;
  transition: transform 0.2s;
}

.card:hover {
  transform: scale(1.05);
}

.card img {
  width: 100%;
  border-radius: 8px;
}


.dark-mode {
  background: #ffffff;
  color: #000000;
}

.dark-mode .card {
  background: #f0f0f0;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
}

.hidden {
  display: none;
}

.modal-content {
  background: white;
  color: black;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 500px;
}

#close-modal {
  float: right;
  cursor: pointer;
  font-size: 20px;
}