
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  background: #2b2b2b;
}



/* Botones de navegación para cambiar entre juegos */

.game-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.game-btn {
  background-color: #ddd;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
  font-family: 'Bitcount Prop Single', Arial, sans-serif;
}

.game-btn:hover {
  background-color: #ccc;
}

.game-btn.active {
  background-color: #39ff14;
  color: #000;
  box-shadow: 0 0 8px #39ff14;
}

/* aquí acaba Botones de navegación para cambiar entre juegos */

/*tres en raya*/
.game-section {
  background: rgb(161, 0, 236);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  width: 320px;
  max-width: 90vw;
  margin: 70px auto 0 auto;
}

.titulo-especial {
  color: white;
  text-align: center;
  font-family: Bitcount Prop Single;
}

.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0;
}

.board div {
  background: #e0e0e0;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  cursor: pointer;
  border-radius: 8px;
  user-select: none;
  transition: background-color 0.3s ease;
}

.board div:hover {
  background-color: #d1d1d1;
}

.game-info p {
  margin: 5px 0;
  font-weight: bold;
  color: rgb(22, 253, 26);
  font-size: 1rem;
}

#restart-btn {
  background-color: #2622ff;
  color: white;
  border: none;
  padding: 10px;
  width: 100%;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 20px;
}

#restart-btn:hover {
  background-color: #0056b3;
}

/*piedra papel tijera*/
#piedra-papel-tijera .choices {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;
}

#piedra-papel-tijera .choices button {
  font-size: 3rem;
  background: #444444;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 15px 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#piedra-papel-tijera .choices button:hover {
  background-color: #5a5a5a;
}

#restart-ppt-btn {
  background-color: #2622ff;
  color: white;
  border: none;
  padding: 10px;
  width: 100%;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 20px;
}

#restart-ppt-btn:hover {
  background-color: #0056b3;
}

/* Memoria */
.memoria-board {
  display: grid;
  grid-template-columns: repeat(2, 100px);
  gap: 15px;
  justify-content: center;
  margin: 20px auto;
}

.dificultad-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem auto;
  text-align: center;
}

.color-btn {
  width: 100px;
  height: 100px;
  margin: 5px;
  background-color: #333; /* Gris oscuro como color base */
  border: none;
  border-radius: 10px;
  transition: background-color 0.3s;
}

.color-btn:active {
  transform: scale(0.95);
}


/* Colores visibles solo cuando se activa la clase color-real */
.color-btn.verde.color-real { background-color: #4CAF50; }
.color-btn.rojo.color-real { background-color: #F44336; }
.color-btn.amarillo.color-real { background-color: #FFEB3B; }
.color-btn.azul.color-real { background-color: #2196F3; }
.color-btn.morado.color-real { background-color: #9C27B0; }
.color-btn.rosa.color-real { background-color: #E91E63; }
.color-btn.naranja.color-real { background-color: #FF9800; }
.color-btn.celeste.color-real { background-color: #00BCD4; }

.color-btn.active {
  opacity: 1;
  box-shadow: 0 0 20px white;
  filter: none;
}

.color-btn.oculto {
  background-color: #2c2c2c !important;
}


#nivel-info {
  text-align: center;
  font-weight: bold;
  color: white;
  font-size: 1.2rem;
}


#morado { background-color: #9C27B0; }
#rosa { background-color: #E91E63; }
#naranja { background-color: #FF9800; }
#celeste { background-color: #00BCD4; }

.dificultad-label {
  color: white;
  font-weight: bold;
  text-align: center;
  display: block;
  margin: -10px auto -5px;
}

.dificultad-controles {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 20px;
}s

#start-memoria {
  background-color: #FF9800;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 20px; 
  transition: background-color 0.3s ease;
}

#start-memoria:hover {
  background-color: #e67e22;
}

#volver-btn {
  display: none !important;
}

.back-arrow {
  display: none !important;
}


@media (max-width: 600px) {
  /* Menu vertical con botones uno debajo del otro */
  .game-nav {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 250px;
    margin-bottom: 20px;
  }


      #volver-btn {
    position: fixed;
    top: 10px;
    left: 10px;
    background: #39ff14;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 0 8px #39ff14;
    display: block !important;
    }

  .game-btn {
    width: 80vw;
    max-width: 300px;
    font-size: 1.2rem;
  }

    .game-btn.active {
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    color: inherit !important;
    background-color: #39ff14; /* verde fosforescente */
    color: #000; /* texto negro para contraste */
  }


  .game-section {
    display: none !important;
    margin-top: 60px; 
    width: 90vw;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }


  .game-section.active {
    display: block !important;
  }


  .game-nav.hidden {
    display: none !important;
  }

  .back-arrow {
    display: block;
    text-align: center;
    font-size: 1.5rem;
    color: #39ff14;
    cursor: pointer;
    user-select: none;
    margin-bottom: 10px;
  }

  .back-arrow[hidden] {
    display: none !important;
  }
}
