:root{
    --blue: #0A3871;
    --lightblue: #D8DFE8;
    --grey: #495057;
    --lightgrey: #E5E5E5;
    --reallywhite: #FFFFFF;   
}

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

html{
    font-size: 62.5%;
    background-color: var(--lightblue); 
    background-image: url(../assets/img/alura-e1584016996575.png); 
    background-position: center;    
    background-size: 25%;
    background-repeat: no-repeat;
    background-blend-mode: soft-light;
}

header{
    position: absolute;
    left: 40px;
    top: 40px;
}

header:hover{
    transform: scale(1.3); 
}

main{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
}

.box-left{
    margin-left: 140px;
}

.insert-text textarea{
    width: 700px;
    height: 570px;
    padding: 15px;
    margin-top: 168px;
    resize: none;
    font-weight: 400;
    font-size: 32px;
    line-height: 150%;
    color: var(--blue);
    letter-spacing: 0rem;
    text-align: left;
    border-radius: 32px;
    border: none;
    background-color: transparent;
}

textarea:focus, input:focus, input[type]:focus {
    border-color: var(--lightblue);
    outline: 0 none;
}

.insert-text textarea::-webkit-scrollbar{
    width: 0px;
}

.insert-text textarea::placeholder{
    font-family: 'Inter';
    font-style: normal;
    font-size: 32px;
    font-weight: 400;
    line-height: 48px;
    color: var(--blue);
} 

.box-left .advice{
    display: flex;
    align-items: center
} 

.box-left .advice img{
    width: 16px;
    height: 16px;
}

.box-left .advice img:hover{
    transform: scale(1.25); 
}


.box-left .advice p{
    padding-left: 8px;
    color: var(--grey);
    width: 205px;
    height: 18px;
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 150%;
    opacity: 0.8;
    flex: none;
    order: 1;
    flex-grow: 0;
}

.main-buttons div img{
    width: 20px;
    height: 15px;
}

.box-left .main-buttons{
    width: 530px;
    margin-left: 76px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;   
    justify-content: space-around;
}

.box-left .main-buttons .encriptar{
    align-items: flex-start;
    padding: 24px;
    gap: 8px;
    width: 328px;
    height: 67px;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    text-align: center;
    color: var(--reallywhite);
    background: var(--blue);
    border: solid var(--blue);
    border-radius: 24px;
    flex: none;
    order: 1;
    flex-grow: 0; 
    cursor: pointer;
}

.encriptar:hover{
    background: var(--blue);
    transform: scale(1.1); 
    box-shadow: 0px 24px 32px -8px rgba(91, 136, 220, 0.467);
}

.box-left .main-buttons .desencriptar{
    align-items: flex-start;
    padding: 24px;
    gap: 8px;
    width: 328px;
    height: 67px;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    text-align: center;
    color: var(--blue);
    background: var(--lightgrey);
    border: 1px solid var(--blue);
    border-radius: 24px;
    flex: none;
    order: 1;
    flex-grow: 0;
    cursor: pointer;
}

.desencriptar:hover{
    background: var(--lightgrey);
    transform: scale(1.1); 
    box-shadow: 0px 24px 32px -8px rgba(136, 142, 231, 0.114);
}

.copy-of-text{
    margin-top: 40px;
    border-radius: 32px;
    width: 400px;
    height: 835px;
    border: 1px solid var(--grey);
    background-color:var(--reallywhite);
    border: none;
    box-shadow: 0px 24px 32px -8px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.box-right .copy-of-text .muñeco img{
    margin-top: 191px;
    animation: float 7s linear infinite;
}

@keyframes float {
    0%, 100%{
        transform: translateY(0rem);
    }
    50%{
        transform: translateY(5.5rem);
    }
}

.box-right .copy-of-text p{
    margin-top: 70px;
    width: 400px;
    height: 58px;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-size: 24px;
    line-height: 120%;
    text-align: center;
    color: #343A40;
}

.box-right .copy-of-text div .advice{
    color: var(--grey);
    text-align: center;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    margin-top: 26px;
}

.copy-of-text textarea{
    border-radius: 32px;
    width: 336px;
    height: 658px;
    padding: 10px;
    margin-top: 16px;
    resize: none;
    font-weight: 400;
    font-size: 24px;
    line-height: 150%;
    font-family: 'Inter';
    font-style: normal;
    line-height: 150%;
    text-align: center;
    border: none;
    color: var(--grey);
    background-color: var(--white);
}

.copy-of-text textarea::-webkit-scrollbar{
    width: 0px;
}

.copy-of-text textarea::placeholder{
    color: var(--grey);
    text-align: center;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
} 

.copiar{
    padding: 24px;
    gap: 8px;
    width: 360px;
    height: 67px;
    color: var(--blue);
    background: var(--lightgrey);
    border: 1px solid var(--blue);
    border-radius: 24px;
    order: 1;
    margin-top: 67px;
    margin-left: 20px;
    cursor: pointer;
    font-size: 16px;
    line-height: 19px;
    text-align: center; 
} 

#myButton{
    display: none;
}

.copiar:hover{
    background: var(--lightgrey);
    transform: scale(1.1); 
}

.copy-of-text .copiar img{
    width: 15px;
    height: 20px;
}

.box-right .copy-of-text #hide{
    position: absolute;
    top: 10px;
}


footer .creditos{
    font-size: 2rem;
    font-weight: normal;
    letter-spacing: .1rem;
    color: var(--blue);
    padding-right: 20px;
    text-align: left;
    margin-left: 40px;
}

footer img{
    width: 32px;
    height: 32px;
}

footer img:hover{
    transform: scale(1.2); 
}

@media screen and (max-width:768px){
    
    html{
        background-position-x: center;
        background-position-y: 25%;    
        background-size: 40%;
    }

    header{
        position: absolute;
        left: -5px;
    }

    body{
        margin: 40px;
    } 

    main {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: flex-end;
    }

    .box-left{
        width: 700px;
        display: flex;
        justify-content: space-between;
    }

    .insert-text textarea{
        margin-top: 140px;
        width: 730px;
        height: 522px;
    }

    .box-left .main-buttons{
        margin: auto;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-evenly;
        align-items: baseline;
        row-gap: 10;
    }

    .box-left .main-buttons .encriptar {
        width: 305px;
    }

    .encriptar:hover{
        transform: scale(1.05); 
    }

    .box-left .main-buttons .desencriptar{
        width: 305px;
    }

    .desencriptar:hover{
        transform: scale(1.05); 
    }

    .box-right{
        width: 690px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .box-right .copy-of-text div .advice{
        color: var(--grey);
        text-align: center;
        font-weight: 400;
        font-size: 24px;
        line-height: 30px;
    }

    .box-right .copy-of-text .copiar{
        padding: 24px;
        gap: 8px;
        width: 650px;
        color: var(--blue);
        margin-top: 25px;
    } 

    .copiar:hover{
        transform: scale(1.05); 
    }

    .box-right .copy-of-text p{
        width: 730px;
        margin-top: 80px;
        font-size: 28px;
    }
    
    .copy-of-text textarea{
        border-radius: 32px;
        width: 670px;
        height: 244px;
    }

    .copy-of-text{
        width: 100%;
        height: 370px;
        text-align: center;      
    }

    .box-right .copy-of-text #hide{
        position: absolute;
        width: 600px;
        margin-bottom: 100px;
        top: 885px;
    }

    .box-right .copy-of-text #hide img{
        display: none;
    }

    footer .creditos{
        font-size: 2rem;
        margin-top: 15px;
        margin-left: 0;
    }
}

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

    html{
        background-position-y: 20%;    
        background-size: 50%;
    }


    header{
        position: absolute;
        left: 40px;
    }

    body{
        margin: 20px;
    } 

    main {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: flex-end;
    }

    .box-left{
        width: 338px;
        display: flex;
        justify-content: center;
    }

    .box-left .advice {
        margin-left: 10px;
    }

    header img{
        position: absolute;
        left: -45px;
    }

    .main{
        width: 360px;
    }

    .insert-text textarea{
        width: 100%;
        height: 450px;
        margin-top: 100px;
        padding: 20px;
    }

    .box-left .main-buttons{
        width: 377px;
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        flex-direction: column;
        align-content: flex-start;
        align-items: center;
    }

    .box-left .main-buttons .encriptar{
        width: 340px;
    }

    .encriptar:hover{
    box-shadow: 0px 24px 32px -1px rgba(107, 134, 185, 0.467);
    }

    .box-left .main-buttons .desencriptar{
        width: 340px;
    }

    .copy-of-text textarea {
        border-radius: 32px;
        width: 100%;
        height: 180px;
        height: 215px;
    }    

    .box-right{
        width: 335px;
    }

    .box-right .copy-of-text{
        width: 100%;
        height: 344px;
    }

    .box-right .copy-of-text p{
        width: 340px;
        margin-top: 36px;
    }

    .box-right .copy-of-text div .advice{
        width: 340px;
        line-height: 100%;
    }

    .box-right .copy-of-text .copiar {
        width: 295px;
    }

    .box-right .copy-of-text #hide {
        position: absolute;
        width: auto;
        margin-bottom: 106px;
        top: 885px;
    }

    footer .creditos {
        font-size: 1.2rem; 
        margin-left: 10px;
    }

    footer img{
        width: 20px;
        height: 20px;
    }
}
