/*--Fuentes Importadas--*/

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

/*--Variables Globales css*/
:root{
    --Font:#E5E5E5;
    --White:#FFFFFF;
    --Greey:#C5C5C5;
    --Dark-Blue: #0A3871;
    --Medium-Gray: #67808E;
    --RGBA:rgba(0,0,0,0.08);
    --White-Blue: #D8DFE8;
    --Medium-Blue: #0a38718a;
    --Gray: #343A40;
    --Gree: #495057;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    background: var(--White);
}

body{
    height: 100%;
}

img{
    max-width: 100%;
}

/*--Encabezado html--*/

header{
    position: absolute;
    margin: 40px 0px 0px 40px;
}

header.logo{
    display: flex;
    align-items: flex-start;
    width: 120px;
    height: 48px;
}

/*--Seccion Principal*/

main{
   display: flex;
   flex-direction: row;
   background: url(../imagenes/portada.png) no-repeat;
   background-size: cover;
   background-position: center;
}

.encriptador{
    width: 60%;
    margin: 168px 0px 0px 140px;
    background: transparent;
}

.txtTexto{
    width: 660px;
    height: 288px;
    font-weight: 400;
    font-size: 32px;
    line-height: 48px;
    outline: none;
    border: 1px solid var(--Greey);
    border-radius: 15px;
    resize: none;
}

.txtTexto::placeholder,:focus{
    color: var(--Dark-Blue);
}

.advertencia_del_encriptador{
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 8px;
    position: absolute;
    top: 500px;
}

.texto_informativo{
    width: 100%;
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    opacity: 0.8;
    color: var(--Medium-Gray);
}

.contenedor_de_botones{
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
    position: absolute;
    top: 526px;
}

.botonEncriptar{
    width: 328px;
    height: 67px;
    padding: 24px;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    text-align: center;
    color: var(--White);
    background: var(--Dark-Blue);
    border: 1px solid var(--Dark-Blue);
    border-radius: 24px;
    cursor: pointer;
    box-shadow: 0px 20px 29px --5px var(--RGBA);
}

.botonEncriptar:active{
    box-shadow: inset 2px 2px 4px var(--Font),
    inset -3px -4px 8px var(--Dark-Blue);
    color: var(--White-Blue); 
}

.botonDesencriptar{
    width: 328px;
    height: 67px;
    padding: 24px;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    text-align: center;
    color: var(--Dark-Blue);
    background: var(--White-Blue);
    border: 1px solid var(--Dark-Blue);
    border-radius: 24px;
    cursor: pointer;
    box-shadow: 0px 20px 29px --5px var(--RGBA);
}

.botonCopiar:active,
.botonDesencriptar:active{
    box-shadow: inset 2px 2px 4px var(--Dark-Blue),
    inset -3px -4px 8px var(--Font);
    color: var(--Medium-Blue); 
}

.seccion_muñeco{
    width: 270px;
    height: 580px;
    background: var(--Font);
    box-shadow: 10px 24px 32px -8px var(--Gray);
    position: relative;
    margin-top: 40px;
    border-radius: 32px;
    text-align: center;
}

.contenedor_de_muñeco{
    width: 250px;
    margin: auto;
    margin-top: 50%;
    background: var(--Font);    
}

.imgMuñeco{
    background: var(--Font);
}

.mensaje_por_defecto{
    font-style: normal;
    font-weight: 700;
    font-size: 18px;
    line-height: 120%;
    text-align: center;
    color: var(--Gray);
    background: var(--Font);
}

.mensaje_de_accion{
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 150%;
    text-align: center;
    color: var(--Medium-Gray);
    background: var(--Font);
}

.evaluar{
    width: 100%;
    height: 485px;
    position: absolute;
    padding: 20px;
    top: 0;
    left: 0;
    font-weight: 400;
    font-size: 24px;
    line-height: 36px;
    color: var(--Gree);
    background: transparent;
    border-top-right-radius: 32px;
    border-top-left-radius: 32px;
    border: none;
    resize: none;
}

.evaluar:focus{
    outline: none;
}

.botonCopiar{
    width: 224px;
    height: 67px;
    margin: 23px;
    position: absolute;
    bottom: 0;
    left: 0;
    visibility: hidden;
    padding: 24px;
    font-size: 16px;
    line-height: 19px;
    text-align: center;
    background: var(--White-Blue);
    border: 1px solid var(--Dark-Blue);
    border-radius: 20px;
    cursor: pointer;   
}

.botonEncriptar:hover,
.botonDesencriptar:hover,
.botonCopiar:hover{
    transform: scale(0.97);
}

/*--Seccion de Pie de Pagina*/

footer{
    margin-top: 15px;
    padding: 10px;
    border-top: 2px solid var(--Font);
    color: var(--Gray);
    text-align: center;
    height: 5px;
    font-size: 20px;
    font-weight: 700;
    color: var(--Gray);
}

.Linkedin:hover{
    color: var(--Font);
    opacity: 0.8;
}

.GitHub:hover{
    color: var(--Font);
    opacity: 0.6;
}

/*---Responsividad---*/

@media(max-width:1250px){
    main{
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .encriptador{
        margin: 168px 0px 0px 0px;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .contenedor_de_botones{
        display: flex;
        align-items: center;
        position: inherit;
    }

    .advertencia_del_encriptador{
        position: inherit;
        margin: 15px;
    }

    .seccion_muñeco{
        width: 665px;
        height: 300px;
        display: flex;
        justify-content: center;
        align-items: flex-end;
    }

    .contenedor_de_muñeco{
        display: block;
        justify-content: center;
        align-items: center;
        width: 100%;
        position: absolute;
        bottom: 20%;
        font-size: 24px;
        font-weight: 700;
    }

    .imgMuñeco{
        display: none;
    }

    .botonCopiar{
        position: inherit;
        width: 100%;
    }

    .evaluar{
        width: 100%;
        height: 210px;
        padding: 10px;
    }   
}


@media(max-width:720px){
    
    header.logo{
       width: 100%;
       background: var(--White);
       padding: 2px; 
    }

    .txtTexto{
        width: 90%;
        font-size: 24px;
    }

    .contenedor_de_botones{
        display: grid;
        gap: 21px;
    }

    .seccion_muñeco{
        width: 90%;
    }

    .desarrollador{
        font-size: 20px;
    }
}

