body {

  font-family: Arial, sans-serif;
  text-align: center;
  background-color: #34fa2d;
  color: rgb(20, 20, 20);
}

/* titulo */
.tituloMemotest {
  margin-top: 80px;   /* Margen superior */
  margin-bottom: 20px; /* Margen inferior */
  margin-left: auto;  /* Centrado horizontal */
  margin-right: auto;
  display: block;     /* Para que se aplique el centrado con auto */
  width: 450px;
}

/* ajustes de fondo interactivo */
svg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* botones */
button {
  font-weight: 700;         /* Negrita */
  font-size: 1.3rem; 
  background-color: orange;
  border: 2px solid #f5deb3;
  color: #f5deb3;
  border-radius: 22px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  margin: 10px 0;
  width: 150px;
  display: block;
}

/* Efecto al hacer clic */
button:active {
  background-color: #cc7000; /* naranja más oscuro */
  border-color: #f5deb3;
  color: white;
  transform: scale(0.98); /* pequeño hundimiento */
}

/* menus */
#menuInicio, #menuAjustes, #contenedorJuego {
  margin-top: 20px;
}

#menuAjustes {
  background-color: rgba(31, 31, 31, 0.9); /* gris oscuro con transparencia */
  color: white;
  border-radius: 15px; /* esquinas redondeadas */
  border: 2px solid white; /* marco blanco */
  padding: 20px; /* separación interna */
  max-width: 400px; /* ancho máximo de la ventanita */
  margin: 0 auto; /* centrar horizontalmente */
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5); /* sombra suave */
}

/* posicion de botones de Inicio */
.contenedorBotones {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

#configActual {
  text-align: center;
  font-weight: bold;
  margin-top: 20px;
  background-color: rgba(31, 31, 31, 0.85); /* fondo oscuro con transparencia */
  color: white;
  font-weight: bold;
  border-radius: 15px; /* esquinas redondeadas */
  border: 2px solid white; /* marco blanco */
  padding: 15px 25px; /* separación interna */
  display: inline-block; /* ajusta al contenido */
  margin: 20px auto; /* espacio y centrado */
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5); /* sombra */
  text-align: center;
  font-size: 1.2em;

}

.mensaje-oculto {
  display: none !important;
}

/* selector de jugadores */
.jugador-selector {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.jugador-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  font-weight: bold;
  color: white;
  cursor: pointer;
  font-size: 16px;
  transition: transform 0.2s;
  
  display: flex;            /* Para centrar contenido */
  align-items: center;      /* Centrar verticalmente */
  justify-content: center;  /* Centrar horizontalmente */
  padding: 0;               /* Sin relleno extra */
  line-height: 1;           /* Evita altura extra de texto */
}

.jugador-btn.rojo { background-color: #e53935; }
.jugador-btn.azul { background-color: #1e88e5; }
.jugador-btn.verde { background-color: #43a047; }
.jugador-btn.amarillo { background-color: #fdd835; color: black; }

.jugador-btn.seleccionado {
  box-shadow: 0 0 0 4px #fff;
  transform: scale(1.1);
}


/* juego memotest */
.contenedor-juego {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  margin: 30px auto;
  width: fit-content;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 80px);
  grid-template-rows: repeat(6, 80px); /* 6 filas */
  gap: 10px;
}

.tabla-puntajes {
  background: #1f1f1f;
  color: white;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #444;
  font-size: 14px;
  min-width: 100px;
  max-width: 140px;
  height: fit-content;
  text-align: left;
  list-style: none;
}

.tabla-puntajes li {
  margin-bottom: 6px;
}


.card {
  width: 80px;
  height: 80px;
  background-color: #1f1f1f;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 8px;
  user-select: none;
  transition: 0.3s;
  border: 2px solid #333;
}

.card.flipped, .card.matched {
  background-color: #2e7d32;
  color: white;
}

.info {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 20px;
  margin-bottom: 10px;
}

#turnoActual {
  font-size: 22px;
  font-weight: bold;
  margin-top: 10px;
}


#mensajeFinal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  color: white;
  z-index: 1000;
  text-align: center;
  padding: 20px;
  flex-direction: column;
  box-sizing: border-box;
  pointer-events: auto;
  z-index: 1000;
}

#mensajeFinal .cerrar {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 30px;
  cursor: pointer;
  color: #fff;
  font-weight: normal;
  z-index: 1001;
  pointer-events: auto;
}

#mensajeFinal .cerrar:hover {
  color: #f44336;
}

.mensaje-oculto {
  display: none !important;
}


/* boton salir */
.confirmacion {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}

.confirmacion-contenido {
  background-color: #1f1f1f;
  border: 2px solid #555;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 300px;
  color: white;
  font-size: 18px;
}

.confirmacion-contenido .botones {
  margin-top: 20px;
  display: flex;
  justify-content: space-around;
  gap: 15px;
}

.confirmacion-contenido button {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  background-color: #2e7d32;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.confirmacion-contenido button:hover {
  background-color: #43a047;
}


