body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f8f8;
}

.board {
  display: none;
  grid-template-columns: repeat(4, 100px);
  grid-gap: 10px;
}

.card {
  width: 100px;
  height: 100px;
  background-color: #61dafb;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  cursor: pointer;
  border: 2px solid #61dafb;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.card.flipped {
  background-color: #fff;
  color: #61dafb;
}

.card.matched {
  background-color: #8aff8a;
  cursor: not-allowed;
}

.screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#timer {
  margin-top: 20px;
  margin-bottom: 20px; /* Ajout d'un espace entre le jeu et le timer */
  font-size: 18px;
}

#game-container {
  display: none;
  text-align: center;
}

button {
  padding: 10px 20px;
  margin-top: 10px;
  font-size: 16px;
  background-color: #61dafb;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #4fa3cc;
}

#game-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px; /* Ajout d'un espace entre le titre et le jeu */
}
