*{
    *outline: 1px solid black;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
:root{
    --fondo : rgba(243, 245, 252, 1);
    --azul : rgb(10, 56, 113);
    --desencriptar: rgb(216, 223, 232);
    
}

body{
    background: var(--fondo);
    display: flex;
    justify-content: center;
    align-items: center;
}
/*input*/
.encriptador{
    width: 70vw;
    height: 100vh;
}
.encriptador img{
    position: relative;
    left: 60px;;
    width: 50px;
}

form{
    height: 80vh;
}



form .input{
    height: 90%;
    padding: 40px 140px;
}
form .input textarea{
    width: 100%;
    height: 100%;
    padding: 10px;
    background-color: transparent;
    font-size: 30px;
    resize: none;
    letter-spacing: 5px;
    border: none;
    outline: none;
}


form .input textarea::placeholder{
    color:var(--azul);
}
form .botones{
    height: 10%;
    padding: 40px 140px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
form input .span{
    color: gray;
}

form .botones .encriptar{
    background: var(--azul);
    color: white;
    padding: 20px;
    width: 45%;
    border: none;
    font-size: 30px;
    cursor: pointer;
    border-radius: 24px;
}


form .botones .desencriptar{
    background: var(--desencriptar);
    padding: 20px;
    width: 45%;
    border: none;
    font-size: 30px;
    cursor: pointer;
    border: 1px solid #0A3871;
    border-radius: 24px;
    color: var(--azul);
}




/*output*/
.output{
    width: 30vw;
    height: 90vh;
    padding: 63px 30px;
    border-radius: 32px;
    margin: 30px;
    display: flex;
    justify-content: space-between;
    
    flex-direction: column;
    background: rgba(255, 255, 255, 1);
    position: relative;
    box-shadow: 0px 24px 32px -8px rgba(0, 0, 0, 0.08);
}

.output .texto-output{
    width: 100%;
    height: auto;
    color: var(--azul);
    font-size: 30px;
    letter-spacing: 5px;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 40px;
}

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

.output .botones button{
    background: var(--azul);
    color: white;
    padding: 20px;
    width: 376px;
    height: 74px;
    border: none;
    font-size: 30px;
    cursor: pointer;
    border-radius: 24px;
}

.output .absolute{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    
}

.output .absolute p:nth-child(2){
    font-weight: bold;
    font-size: 24px;
}
.output .absolute p:nth-child(3){
    color: rgba(73, 80, 87, 1);
}

.output .absolute p{
    padding: 10px;
    text-align: center;
}

.output .botones{
    opacity: 0;
}
.output .copy{
    font-size: 24px;
    color: var(--azul);
    text-align: center;
    font-weight: bold;
    display: none;
    z-index: 10;
}

/*esta clase fue creado en javascript en la funcion copiar()*/
.alerta-copiar {
    position: fixed;
    bottom: 70px;
    right: 240px;
    background-color: #000000;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
}

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

    body{
        flex-direction: column;
    }
    .encriptador img {
        left: 0px;
        width: 30px;

    }
    .encriptador {
        width: 90vw;
        height: 80vh;
    }
    form .input{
        height: 80%;
        padding: 0px;
    }
    .encriptador img{
        font-size: 20px;
    }
    form input .span{
        color: gray;
        position: absolute;
        top: -100px;
    }
    form .botones {
        height: auto;
        padding: 30px 10px;
    }
    
    .absolute img{
        display: none;
    }


    .output{
        width: 90vw;
        max-height: 343px;
        padding: 20px;
    }
    .alerta-copiar {
        bottom: 125px;
        right: 305px; 
    }
    
    
}

@media screen and (max-width: 375px){
    form .botones {
        flex-direction: column;
    }
    form .botones .encriptar, form .botones .desencriptar {
        width: 100%;
        margin-bottom: 10px;
    }
    form .input textarea::placeholder {
        font-size: 16px;
        line-height: 2;
    }
    .output{
        margin-top: 120px;
    }
    .output .absolute p:nth-child(3){
        white-space: nowrap;
    }
    .output{  
        max-height: 595px;
    }
    .alerta-copiar {
        white-space: nowrap;
        bottom: 130px;
        right: 142px;
        font-size: 10px;
        font-weight: bold;
    }

}