@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300&display=swap');

body{
    background-image:url('media/fondo.jpg');
    background-size:cover;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/*! HEADER */

header{
    height: 7vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contenedor-logo{
    width: 10%;
    height: 80%;
}

.logo{
    height: 100%;
    margin-top: 10px;
    transition: all 500ms;
}

.logo:hover{
    transform: rotateY(180deg);
}

/*! BODY */

/*? INICIO */

.inicio{
    height: 80%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.botones-inicio{
    display: flex;
    flex-direction: column;
}

.boton{
    font-family: 'Inter', sans-serif;
    border-radius: 15px;
    font-size: 15px;
    cursor: pointer;
}

.iniciar{
    font-size: 16px;
    padding: 25px 80px;
    color: #fff;
    background: #0a3871;
    border: none;
    margin: 15px;
    transition: all 400ms;
}

.iniciar:hover{
    background: #072b57;
}

.agregar-palabra{
    font-size: 14px;
    padding: 15px 25px;
    color: #0a3871;
    background: #fff;
    border: 1px solid #0a3871;
    margin: 15px;
    transition: all 400ms;
}

.agregar-palabra:hover{
    background: #ddd;
}

/*? INGRESAR PALABRA */

.ingresar-palabra{
    height: 80%;
    width: 70%;
    margin: 30px auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.contenedor-input{
    margin: 0px auto;
    width: 80%;
}

.input-nueva-palabra{
    height: 30px;
    width: 100%;
    background: local;
    border: none;
    font-family: 'Inter', sans-serif;
}

.input-nueva-palabra::placeholder{
    color: #0a3871;
}

.seccion-botones{
    width: 80%;
    margin: 10px auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: 'Inter', sans-serif;
}

.aclaracion{
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    padding: 3px;
    margin-bottom: 10px;
}

.info-icon{
    height: 100%;
    margin: auto 3px auto 0px;
}

.aclaracion-botones{
    height: 100%;
    font-size: 14px;
    margin: auto 0px;
}

.botones-agregar{
    display: flex;
}

.guardar{
    padding: 20px 50px;
    margin-right: 15px;
    border-radius: 20px;
    border: none;
    background: #0a3871;
    color: #fff;
    transition: all 400ms;
}

.guardar:hover{
    background: #072b57;
}

.cancelar{
    padding: 20px 50px;
    border: 1px solid #0a3871;
    border-radius: 20px;
    color: #0a3871;
    transition: all 400ms;
}

.cancelar:hover{
    background: #ddd;
}

/*? TABLERO */

.tablero{
    width: 80%;
    height: 80%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: auto;
}

.ahorcado{
    max-width: 450px;
    height: 65%;
    margin: 4rem auto;
    text-align: center;
}

.img-ahorcado{
    width: 100%;
    height: 100%;
}

.letras-acertadas{
    height: 10%;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
}

.letra{
    font-family: 'Inter', sans-serif;
    display: inline-block;
    vertical-align: middle;
    text-align: center;
    transition: all 300ms;
}

.acertada{
    font-size: 1.5rem;
    margin-left: 2%;
    border-bottom: 1px solid #0a3871;
    line-height: 4.5rem;
    height: 4.5rem;
    width: 4.5rem;
}

.acertada:hover{
    transform: translateY(-5px);
}

.letras-erradas{
    height: 10%;
    width: 100%;
    margin: 2rem auto;
    text-align: center;
    display: flex;
    justify-content: center;
}

.errada{
    margin-left: 2%;
}

#letras{
    width: 70%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    margin-bottom: 5%;
}

#letras button{
    font-family: 'Inter', sans-serif;
    font-weight: bold;
    color: #072b57;
    padding: 7px 5px;
    margin: 2px;
    background:local;
    border: none;
}

#letras button:hover{
    cursor: pointer;
    transform: scale(110%);
}

.botones-juego{
    display: flex;
}

/*? FOOTER */

.footer{
    width: 100%;
    height: 5%;
    display: flex;
    justify-content: center;
    gap: 10%;
    background: image();
}

.link{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-git{
    height: 40%;
}

.logo-git:hover{
    transform: scale(110%);
}


.p-copy{
    font-family: 'Inter', sans-serif;
}

.logo-linkedin{
    height: 50%;
}

.logo-linkedin:hover{
    transform: scale(110%);
}

/*! EXTRAS */

.oculto{
    display: none;
}

/*! QUERIES */

@media screen and (max-width: 768px) {

    /*! HEADER */

    .contenedor-logo{
        width: 100%;
        text-align: center;
    }

    /*! BODY */

    /*? INICIO */

    .iniciar{
        padding: 20px 60px;
    }

    .boton{
        font-size: 13px;
    }

    .agregar-palabra{
        padding: 15px 15px;
    }

    /*? INGRESAR PALABRA */

    .seccion-botones{
        width: 100%;
    }

    .botones-agregar{
        flex-direction: column;
    }

    .guardar{
        width: 100%;
        margin-bottom: 5px;
        padding: 10px 20px;
    }

    .cancelar{
        width: 100%;
        padding: 10px 20px;
    }

    /*? TABLERO */

    .ahorcado{
        max-width: 300px;
        padding-top: 100px;
        margin: auto;
    }

    .letras-acertadas{
        margin-top: 2rem;
        flex-wrap: wrap;
    }

    .acertada{
        font-size: 1.2rem;
        margin-left: 2%;
        border-bottom: 1px solid #0a3871;
        line-height: 3rem;
        height: 3rem;
        width: 3rem;
    }

    .letras-erradas{
        height: 10%;
        width: 100%;
        margin: 4rem auto;
        text-align: center;
        display: flex;
        justify-content: center;
    }

    .botones-juego{
        display: block;
        flex-direction: column;
    }
}