/* Grundlegendes Seitenlayout */
body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  background: #f4f4f4;
  text-align: center;
  color: #333;
}

/* Überschrift */
h1 {
  margin: 20px;
}

/* Beschreibungstext */
p {
  margin: 10px;
}

/* Statuszeile */
#status {
  margin: 10px auto 0;
  font-size: 16px;
  font-weight: 600;
}

/* Container für das Spielfeld */
#game {
  margin: 20px auto;
  display: grid;
  /* Spaltenzahl wird per JS gesetzt (CSS-Variable --cols) */
  grid-template-columns: repeat(var(--cols, 8), 80px);
  grid-gap: 10px;
  justify-content: center;
}

/* Einzelne Karte */
.card {
  width: 80px;
  height: 80px;
  background-color: #ccc;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  font-weight: bold;
}

/* Wenn die Karte umgedreht ist */
.card.flipped {
  background-color: #ffa;
}

.found {
  background-color: #0f0 !important;
}

/* Button für nächstes Level / Neustart */
#actionBtn {
  margin: 10px auto 0;
  padding: 10px 16px;
  font-size: 16px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

/* Meldung bei Spielende */
#message {
  margin: 20px auto;
  font-size: 22px;
  color: green;
}
