
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to right, #4facfe, #00f2fe);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.game-container {
  background-color: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  text-align: center;
  width: 350px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 70px);
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}

.card {
  width: 70px;
  height: 70px;
  background-color: #222;
  color: transparent;
  font-size: 2em;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.card.revealed, .card.matched {
  color: #fff;
  background-color: #00bcd4;
}

.status {
  font-weight: bold;
  margin: 10px 0;
}

.stats {
  margin: 10px 0;
}

button {
  padding: 10px 20px;
  background-color: #00bcd4;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}


button.reiniciar-btn:hover {
  background-color: #0097a7;
}

/* Resumen animado */
.resumen {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.resumen-contenido {
  background: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  animation: zoomIn 0.5s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}




/* 🎮 Estilos modo oscuro */
body.dark-mode {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #f0f0f0;
}

body.dark-mode .game-container {
  background-color: #1e1e1e;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

body.dark-mode .card {
  background-color: #333;
  border: 2px solid #555;
}

body.dark-mode .card.revealed {
  background-color: #444;
  color: #fff;
}

body.dark-mode .card.matched {
  background-color: #00695c;
}

body.dark-mode .stats,
body.dark-mode .status {
  color: #ffffff;
}

body.dark-mode button {
  background-color: #00897b;
  color: white;
}

body.dark-mode button:hover {
  background-color: #005f56;
}
body.dark-mode .resumen-contenido {
  background-color: #2a2a2a;
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}
