@import url("https://fonts.googleapis.com/css2?family=Luckiest+Guy&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: "Luckiest Guy", sans-serif;
}

h2 {
  font-size: 4rem;
}

h1.hidden {
  display: none;
}

main {
  min-height: 100vh;
  text-align: center;
  background-image: url("/multimedia/img/nuevoDiseno/background.jpg");
  background-size: cover;
}

section.panel.hidden {
  display: none;
}

section.juego button#pista,
section.juego button#salir,
main button#sonido {
  border: none;
  height: 2rem;
  width: 2rem;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: absolute;
  margin-left: 2px;
}
/* CSS Panel Principal */

img.ahorcadoTitulo {
  margin-top: 1rem;
  margin-bottom: 1rem;
  width: 80%;
}

img.logoAhorcado {
  width: 40%;
}
section.jugar {
  height: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  gap: 2rem;
}

form {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  height: 7rem;
  width: 22rem;
  background-image: url("/multimedia/img/nuevoDiseno/botonInicio/onClick.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  background-color: transparent;
  color: white;
}

form input {
  height: 2rem;
  width: 17rem;
  padding: 0.5rem;
  margin-right: 0.3rem;
  border: none;
  background-color: transparent;
  background-image: url("/multimedia/img/nuevoDiseno/loginFondoTexto.png");
  background-size: 100%;
  background-repeat: no-repeat;
  color: white;
}

form input::placeholder {
  color: rgb(161, 161, 161);
  font-size: 0.9rem;
  font-weight: bold;
  font-size: 0.6rem;
}

form button {
  border: none;
  height: 1.7rem;
  padding: 0.2rem;
  background-color: transparent;
  background-image: url("/multimedia/img/nuevoDiseno/tecla.png");
  background-size: cover;
  background-position: center;
}

button.jugar {
  height: 4rem;
  width: 20rem;
  border: none;
  background-image: url("/multimedia/img/nuevoDiseno/botonInicio/idle.png");
  background-size: contain;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
}

/* CSS Panel Juego */

section.juego img {
  width: 55%;
}

section.juego {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

section.teclado {
  text-align: center;
  padding: 1rem;
  min-height: 20%;
  min-width: 100vw;
}

section.juego section.teclado button {
  background-image: url("/multimedia/img/nuevoDiseno/letraBoton-8.png");
  background-color: transparent;
  background-size: cover;
  color: white;
  font-weight: bold;
  border: none;
  width: 9%;
  padding: 3% 0;
  border-radius: 10px;
  margin: 0.2rem;
  box-shadow: 4px 4px 3px black;
}

section.juego button#salir {
  background-image: url("/multimedia/img/nuevoDiseno/botonSalir.png");
  top: 5px;
  right: 5px;
}

section.juego button#pista {
  background-image: url("/multimedia/img/nuevoDiseno/botonPista.png");
  top: 5px;
  left: 5px;
}

main button#sonido {
  background-image: url("/multimedia/img/nuevoDiseno/botonVolumen-8.png");
  top: 50px;
  left: 5px;
}

section.juego p#parrafoPista {
  color: rgb(234, 218, 250);
  padding: 0 6%;
  font-family: "Lucida Sans", "Lucida Sans Regular", Verdana, sans-serif;
  font-weight: bold;
  text-shadow: 2px 2px 1px black;
}

section.puntuaciones {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}

section.puntuaciones ul {
  list-style: none;
  font-size: 1.5rem;
}

li.score,
li.intentos {
  text-align: center;
  font-weight: bold;
  color: white;
}

section.puntuaciones ul li {
  padding-top: 1rem;
  color: white;
}

p#parrafoPista {
  margin-bottom: 1rem;
}

p.palabra {
  padding: 1rem 0rem;
  color: white;
}

/* CSS Puntuaciones */

section.puntuacionesTabla {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  color: white;
}

h3 {
  margin-left: -1rem;
  margin-bottom: 1.5rem;
}

section.puntuacionesTabla aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-image: url("/multimedia/img/nuevoDiseno/puntuacionesBack.png");
  background-size: contain;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  min-height: 300px;
  width: 70%;
  padding: 2rem 0 1rem 1rem;
}

button.botonPuntuaciones {
  background-image: url("/multimedia/img/nuevoDiseno/botonInicio/idle.png");
  background-size: contain;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  height: 4rem;
  width: 20rem;
  font-weight: bold;
  color: white;
  font-size: 1.3rem;
}

section.puntuacionesTabla ol {
  text-align: start;
  overflow: scroll;
  height: 100%;
  width: auto;
  overflow-x: hidden;
  padding: 0 2rem;
  max-height: 13rem;
}

section.puntuacionesTabla ol::-webkit-scrollbar {
  width: 7px;
}

section.puntuacionesTabla ol::-webkit-scrollbar-track {
  background: #f1f1f1;
}
/* Handle */
section.puntuacionesTabla ol::-webkit-scrollbar-thumb {
  background: #d6d0d0;
}

section.puntuacionesTabla ol::-webkit-scrollbar-thumb:hover {
  background: rgb(160, 139, 139);
}

/**/
/* Empieza aquí el media query */
/**/
@media (min-width: 825px) {
  body {
    font-size: 1rem;
  }

  h2 {
    font-size: 2rem;
  }

  /* CSS Panel Principal */

  section.jugar {
    max-height: 100vh;
    max-width: 100vw;
    gap: 0rem;
  }
  img.ahorcadoTitulo {
    width: 35%;
  }

  img.logoAhorcado {
    width: 15%;
  }

  form {
    width: 50%;
    background-size: 60%;
  }

  form input {
    width: 40%;
    padding: 0.8rem 1rem 1rem 1rem;
    margin-right: 1rem;
    background-size: 100%;
  }

  form button {
    height: 40%;
    padding: -1rem;
    background-size: 100%;
    background-repeat: no-repeat;
  }

  button.jugar {
    background-size: 50%;
    font-size: 1.8rem;
    background-size: contain;
  }

  p.parrafoSaludo {
    font-size: 1.3rem;
  }

  /* CSS Panel Juego */
  section.juego {
    max-height: 100vh;
    gap: 0rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
  }

  section.juego img {
    align-self: flex-end;
    justify-self: center;
    height: auto;
    width: 100%;
    grid-column: 1 / 1;
    grid-row: 1 / span 2;
  }

  section.pcInferior {
    height: 100%;
    display: flex;
    flex-direction: column;
    grid-column: 2 / 2;
    grid-row: 2 / 3;
    justify-content: space-between;
    align-items: center;
  }

  section.teclado {
    min-width: 100%;
    max-height: 70%;
    padding: 0.5rem;
  }

  section.juego section.teclado button {
    font-size: 80%;
  }

  section.puntuaciones {
    display: flex;
    grid-column: 2/2;
    grid-row: 1/1;
    margin-bottom: -5rem;
  }

  section.puntuaciones ul {
    display: flex;
    font-size: 2.5rem;
    flex-direction: column;
    align-items: center;
    margin-bottom: 5rem;
  }

  li.score,
  li.intentos {
    width: 50%;
    grid-area: "puntuaciones";
  }

  section.juego button#salir {
    height: 2rem;
    width: 2rem;
  }

  p.palabra {
    font-size: 1.3rem;
    padding-top: 0rem;
    grid-area: "parrafo";
    margin-top: 22%;
  }

  /* CSS Puntuaciones */

  section.puntuacionesTabla {
    min-height: 100vh;
  }

  section.puntuacionesTabla h2 {
    font-size: 2.5rem;
  }

  section.puntuacionesTabla aside {
    background-size: contain;
    background-position: top;
    height: 60vh;
    max-width: 60%;
    font-size: 0.9rem;
  }

  button.botonPuntuaciones {
    background-size: contain;
    height: 4rem;
    font-size: 1.3rem;
  }

  section.puntuacionesTabla ol {
    font-size: 1.3rem;
    padding: 0 7rem;
    max-height: 25rem;
  }

  section.puntuacionesTabla ol::-webkit-scrollbar {
    width: 15px;
  }
}

/**/
/*MEDIA QUERY PC */
/**/
@media (min-width: 1200px) {
  body {
    font-size: 1.5rem;
  }

  /* CSS Panel Principal */

  section.jugar {
    max-height: 100vh;
    max-width: 100vw;
    gap: 0rem;
  }

  img.ahorcadoTitulo {
    width: 40%;
  }

  img.logoAhorcado {
    width: 20%;
  }

  form {
    height: 8rem;
    width: 23rem;
    background-size: contain;
  }

  p.parrafoSaludo {
    font-size: 1.3rem;
  }

  form input {
    height: 2rem;
    width: 15rem;
    padding: 0.6rem;
    margin-left: 1rem;
  }

  form button {
    height: 2rem;
    padding: 0.4rem;
    margin-right: 1rem;
    background-size: contain;
  }

  button.jugar {
    height: 6rem;
    background-size: contain;
  }

  /* CSS Panel Juego */
  section.juego {
    min-width: 100vw;
  }

  section.teclado {
    padding: 1rem;
  }

  section.juego section.teclado button {
    width: 7%;
    padding: 2.5% 0;
    margin: 0.3rem;
    font-size: 1.2rem;
  }

  section.puntuaciones {
    margin-bottom: 5rem;
  }

  section.puntuaciones ul {
    font-size: 2.5rem;
  }

  section.juego button#salir {
    height: 2rem;
    width: 2rem;
  }

  section.juego p#parrafoPista {
    margin-bottom: 0%;
  }
  p.palabra {
    font-size: 2rem;
    margin-top: 5%;
  }

  /* CSS Puntuaciones */

  section.puntuacionesTabla h2 {
    font-size: 5rem;
  }

  section.puntuacionesTabla aside {
    font-size: 1.7rem;
    gap: 1rem;
  }

  button.botonPuntuaciones {
    height: 6rem;
    width: 18rem;
    font-size: 2rem;
  }

  section.puntuacionesTabla ol {
    font-size: 2rem;
    padding: 0 8rem;
    max-height: 30rem;
  }

  section.puntuacionesTabla ol::-webkit-scrollbar {
    width: 20px;
  }
}
