/*Estilos generales.*/

@import url('https://fonts.googleapis.com/css2?family=Indie+Flower&family=Metal+Mania&family=Oswald&family=Pixelify+Sans&family=Playpen+Sans:wght@600&display=swap');

* {
    font-family: "Pixelify Sans";
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
    background-image: url("../img/arcade.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    padding: 0px 20px 0px 20px;
    overflow: hidden;
}

#contenedor {
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    height: 100vh;
}

/*Estilos del menú*/

nav {
    width: 100%;
    position: absolute;
    top: -5px;
    left:0;
    background-color: rgba(0, 0, 0, 1);
    border-radius: 5px;
    padding: 15px 0px 10px 0px;
    box-shadow: 0px 0px 5px 4px rgba(33, 228, 215, 0.8);
}

nav button {
    width: 120px;
}

/*Estilos del bloque de jugadores*/

.jugadores {
    width: 100%;
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-bottom: 20px;
}

.jugador {
    width: 300px;
    padding: 20px;
    border-radius: 8px;
    background: rgba(173, 216, 230, 0.8);
    border: 2px solid rgb(69, 137, 160);
    box-shadow: 0px 0px 5px 4px rgb(33, 228, 215);
    position: relative;
}

.jugador h2 {
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.jugador p {
    margin-bottom: 5px;
}

.jugador img {
    margin-top: 10px;
    margin-left: calc(50% - 47px);
}

/*Estilos de los bloques con las letras a pulsar.*/

.areas, .contadores {
    width: 100%;
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.area1, .area2 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: lightblue;
    border: 2px solid rgb(69, 137, 160);
    border-radius: 8px;
    font-size: 5em;
    padding-top: 0px;
}

/*Estilos de los contadores de pulsaciones.*/

#contador1, #contador2 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 50px;
    border: 2px solid gray;
    border-radius: 8px;
    font-size: 2em;
    background-color: white;
    box-shadow: 3px 3px 3px rgb(226, 226, 226) inset;
}

/*Estilos del bloque de botones.*/

.botones {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

/*Estilos del bloque de añadido de jugadores*/

.addJugador {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
    position: absolute;
    bottom: -400px;
    left: calc(50% - 109px);
    transition: all 0.6s;
    animation-duration: 0.3s;
    animation-timing-function: linear;
}

@keyframes animacionError {
    0%{
        transform: rotate(25deg);
    }
    25%{
        transform: rotate(-25deg);
    }
    50%{
        transform: rotate(25deg);
    }
    75%{
        transform: rotate(-25deg);
    }
    100%{
        transform: rotate(0deg);
    }
}

.addJugador *{
    margin-top: 10px;
    margin-bottom: 10px;
}

#bloqueImagenes {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
}

#bloqueImagenes img {
    width: 40px;
    transition: all 0.4s;
}

#bloqueImagenes img:hover {
    cursor: pointer;
    filter: drop-shadow(0px 0px 5px rgba(33, 228, 215, 0.8));
}

.seleccionada {
    filter: drop-shadow(0px 0px 5px rgba(33, 228, 215, 0.8));
}

#imagenElegidaUno, #imagenElegidaDos {
    width: 100px;
    position: absolute;
    top: 450px;
    right: calc(50% - 50px);
    filter: drop-shadow(0px 0px 5px rgba(8, 117, 110, 0.8));
    opacity: 0;
    transition: all 0.4s;
    animation-name: animacionAvatares;
    animation-duration: 1s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes animacionAvatares {
    0%{
        transform: scale(1,1);
    }
    50%{
        transform: scale(1.4,1.4);
    }
    100%{
        transform: scale(1,1);
    }
}

/*Estilos del bloque de resumen de la partida y botones.*/

.resumen {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    background-color: black;
}

button {
    margin: 5px;
}

.resumen p {
    position: absolute;
    bottom: -100px;
    left: calc(50% - 117px);
    padding: 20px;
    color: white;
    border-radius: 5px;
    box-shadow: 0px 0px 5px 4px rgba(33, 228, 215, 0.8);
    transition: all 0.6s;
}

/*Estilos del bloque de elección de la dificultad.*/

#dificultad {
    width: 300px;
    position: absolute;
    bottom: -400px;
    left: calc(50% - 150px);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 5px;
    border-radius: 8px;
    padding: 0px 20px 20px 20px;
    transition: all 0.6s;
}

#dificultad button {
    width: 150px;
    margin: 0px 0px 10px 0px;
}

#dificultad p {
    text-align: center;
    color: white;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 3px;
    background-color: black;
    box-shadow: 0px 0px 5px 4px rgba(33, 228, 215, 0.8);
}

#numeros {
    width: 100%;
    position: absolute;
    top: calc(20%);
    font-size: 10rem;
    text-align: center;
    color: rgb(12, 165, 155);
    z-index: 10;
}

@media screen and (max-width:1600px) and (min-width:1250px){
    #numeros {
        top: calc(25%);
    }
}

@media screen and (max-width:1249px){
    #numeros {
        top: calc(75%);
    }
}

/*Estilos del formulario de datos.*/

input {
    font-size: 0.8rem;
    color: rgb(6, 94, 88);
    height: 30px;
    border: 2px solid rgb(153, 153, 153);
    border-radius: 3px;
    padding: 0px 0px 0px 8px;
    box-shadow: 3px 3px 3px rgb(226, 226, 226) inset;
    outline: none;
    transition: all 0.4s;
}

input:focus {
    border: 2px solid rgb(10, 150, 140);
}

.addJugador label {
    display: inline-block;
    color: rgb(16, 201, 188);
    letter-spacing: 1px;
    margin: 0px 0px -6px 0px;
}

button {
    padding: 5px 8px;
    cursor: pointer;
    background-color: rgb(33, 228, 215);
    border: 2px solid rgb(6, 94, 88);
    border-radius: 3px;
    transition: all 0.4s;
}

button:hover {
    background-color: rgb(135, 236, 230);
    box-shadow: 0px 0px 5px 4px rgb(33, 228, 215);
}

/*Estilos del bloque de instrucciones*/

#textoinstrucciones, #textopuntuaciones {
    width: 100%;
    height: 92vh;
    position: absolute;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    padding: 30px;
    border: 2px solid rgb(6, 94, 88);
    border-radius: 5px;
    background-color: rgb(33, 228, 215);
    opacity: 0;
    transition: all 0.6s;
    overflow: auto;
}

@media screen and (max-width: 570px){
    #textoinstrucciones {
        height: 88vh;
        padding-top: 200px;
    }
}

#textoinstrucciones p {
    max-width: 800px;
    line-height: 25px;
}

#textoinstrucciones button, #textopuntuaciones button {
    position: absolute;
    top: 5px;
    right: 5px;
}

/*Estilos de la tabla de resultados*/

#textopuntuaciones {
    font-size: 1.6rem;
}

#bloqueResultados {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

table {
    width: 80%;
    text-align: center;
    border-spacing: 10px;
}

td {
    padding: 10px;
    font-size: 1.8rem;
}

table img {
    width: 50px;
    filter: drop-shadow(0px 0px 5px rgb(12, 148, 137));
}

/*Formato para la información de resolución*/

.mobiles {
    background-color: black;
    height: 100vh;
}

.mobiles h1 {
    margin: 10px 0px 0px 0px;
}

.informacion {
    width: 97.5%;
    height: 99vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    font-size: 1.2rem;
    line-height: 25px;
    opacity: 0;
    transition: all 0.4s;
    position: absolute;
    top: 5px;
    left: 5px;
}

.informacion button {
    font-size: 1.2rem;
    padding: 10px;
}

/*Estilos para los avatares de la versión móvil*/

.avatar-reto {
    width: 50px;
    position: absolute;
    transition: all 0.3s;
    animation-name: animacionMovil;
    animation-duration: 1.5s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes animacionMovil {
    0%{
        transform: scale(1, 1);
    }
    25%{
        transform: scale(1.4, 1.4);
    }
    50%{
        transform: scale(0.8, 0.8);
    }
    75%{
        transform: scale(0.6, 0.6);
    }
    100%{
        transform: scale(1, 1);
    }
}

/*Mensaje de giro en pantalla*/

#mensajeGiro {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
    font-size: 1.6rem;
    color: white;
    background-color: black;
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.4s;
}

#mensajeGiro img {
    width: 150px;
    animation-name: giroIcono;
    animation-duration: 3s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes giroIcono {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-25deg);
    }
    50%{
        transform: rotate(-50deg);
    }
    75%{
        transform: rotate(-25deg);
    }
    100%{
        transform: rotate(0deg);
    }
}




