/* Usa (#) para ID y (.) para clase */

@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Turret+Road:wght@700&display=swap');

body {
    font-family: 'Ruso One', sans-serif;
    background-image: radial-gradient(circle at 50% -20.71%, #ff7f85 0, #ff748c 8.33%, #ff6994 16.67%, #ff5d9c 25%, #ff52a4 33.33%, #ff47ad 41.67%, #f23cb5 50%, #e234be 58.33%, #cf32c8 66.67%, #b935d2 75%, #9f3bdb 83.33%, #7e42e5 91.67%, #514aed 100%);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed; 
}


.contenedor-principal {
    display: flex;
    justify-content: center;
}


#contenedorTarjetas {
    width: 800px;
    margin-left: auto;
    margin-right: auto;
    height: auto;
}

#titulo {
    width: 350px; 
    height: auto; 
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5)); 
    border-bottom: 2px solid white;
    padding-bottom: 10px; 
}

#titulo-mapa {
    width: 350px; 
    height: auto; 
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));    
    padding-bottom: 10px; 
}


#seleccionar-mascota {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.subtitulo {
    color: white;
    font-size: 20px;
    background-color: rgb(0, 0, 0);
    padding: 10px;
    border-radius: 30px;
    border: 2px solid white;
}

.tarjetas,
.tarjetas-ataques {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.tarjeta-de-mokepon {
    width: calc(33.33% - 20px);
    height: 100px;
    background-color: #4a90e2;
    padding: 20px;
    box-sizing: border-box;
    border: 3px solid white;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.7);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.tarjeta-de-mokepon:hover {
    transform: translateY(-5px);
    box-shadow: 0px 30px 60px rgba(0, 0, 0, 0.9);
}

input:checked + label {
    background-color: #7a00ff;
}

.tarjeta-de-mokepon img {
    width: 100px; 
    height: auto; 
}

.tarjeta-de-mokepon h3 {
    font-size: 18px;    
    margin-top: 10px;
    text-align: center; 
    font-weight: bold; 
}

#boton-mascota {
    border-radius: 20px;
    background: black;
    border: 1px solid white;
    color: white;
    margin-top: 30px;
    font-family: 'Fredoka One', cursive;
    width: 300px;
    height: 50px;
}

input {
    display: none;
}

input:checked + label {
    background-color: #7a00ff;
}

.tarjeta-de-mokepon:hover {
    cursor: pointer;
}

#seleccionar-ataque {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#btnArriba, #btnAbajo, #btnIzquierda, #btnDerecha {
    user-select: none;
}

.boton-de-ataque {
    background-color: aqua;
    padding: 15px 50px; 
    border-radius: 30px; 
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3); 
    border: 3px solid darkgreen;
    color: black;
    font-family: 'Fredoka One', cursive;
    font-size: 18px; 
    cursor: pointer;
}

#mensajes {
    width: 90%;
    max-width: 600px;
    background: #eeeeee;
    padding: 20px;
    margin-top: 20px;
    border-radius: 1000px;
    display: flex;
    align-items: center;
    flex-direction: column;
}

#ataque-del-jugador,
#ataque-del-enemigo {
    display: flex;
    flex-direction: column;
    align-items: center;

}

#boton-reiniciar {
    border: groove;
    color: #11468f;
    font-family: 'Fredoka One', cursive;
    margin-top: 10px;
    border-radius: 10px;
    box-shadow: 2px 5px 1px black;
}

#boton-reiniciar:hover,
#seleccionar-ataque:hover {
    cursor: pointer;
}

#vidas-jugador,
#vidas-enemigo {
    font-size: 50px;
    margin-bottom: 0;
}

#mascota-jugador, #mascota-enemigo, #resultado {
    font-size: 23px;
}

.ataques-jugador,
.ataques-enemigo {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: aqua;
    border-radius: 25px;    
    margin: 10px;
    width: 100px;
    color: black;
}

.ataques {
    display: flex;
}

#vMapa {
    flex-direction: column;
    align-items: center;
    display: inline-flex;
}

#vMapa button {
    border-radius: 20px;
    background: black;
    border: 1px solid white;
    color: white;
    margin-top: 30px;
    font-family: 'Poppins', sans-serif;
    width: 100px;
    height: 50px;
    margin: 10px 0;
}

.titulo {
    max-width: 550px;
    height: auto; 
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5)); 
    border-bottom: 2px solid white;
    padding-bottom: 10px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    color: white;
    font-style: bold;
}

#mapa {
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); 
}

@media (max-width: 600px) {
    .contenedor-principal {
        flex-direction: column;
        align-items: center;
    }

    #contenedorTarjetas {
        width: auto;
    }

    .tarjeta-de-mokepon {
        width: 200px; 
        max-width: none;
    }

    .tarjeta-de-mokepon img {
        width: 60px;
        height: auto;
    }

    #boton-mascota {
        width: 300px;
        height: 50px;
    }

    #titulo {
        height: auto;
    }

    .subtitulo {
        width: auto;
        height: auto;
    }

    #mensajes {
        width: 300px;
        border-radius: 100px;
    }
}   

@media (max-width: 400px) {
    #vMapa div{
        align-items: center;
        display: flex;
        flex-direction: column;
    }

}