/* Estilos Generales */

body {
    background: #ffee00 url("../images/Fondo.jpg") no-repeat center;
    background-size: cover;
    /*Tipografía Oswald Global*/
    font-family: 'Oswald';
    font-style: normal;
    line-height: 150%;
    font-weight: 400;
    padding-top: 2.5rem;
}

img {
    width: fit-content;
    height: auto;
}


/*Botones Global*/

input {
    height: 4rem;
    padding: 1rem;
    border-radius: 1.5rem;
    font-family: 'Oswald';
    font-size: 1rem;
    line-height: 150%;
    box-shadow: 0px 24px 32px -8px rgba(0, 0, 0, 0.3);
    transition: all 0.1s ease;
}

h2 {
    font-size: 1.5rem;
    line-height: 120%;
    font-weight: 700;
    color: #fe5823;
}


/* Cabecera */

header,
main {
    padding: 0 3%;
}

.logo-alura {
    position: absolute;
}


/* Cuerpo */

main {
    display: flex;
    flex-flow: row;
    justify-content: space-evenly;
    gap: 6%;
    margin: 2rem 0;
}


/* Bloque Izquierdo: Encriptador */

.bloque-izq {
    flex: 1 50%;
    display: flex;
    flex-flow: row wrap;
    margin-top: 6rem;
    margin-bottom: 2rem;
    padding-left: 10%;
}

.bloque-izq textarea {
    flex: 1 100%;
    background-color: #ffffffbf;
    font-family: 'Oswald';
    font-size: 2rem;
    line-height: 150%;
    color: #f06400;
    border: 0;
    border-radius: 2rem;
    resize: unset;
    padding: 2rem 5%;
    height: 177px;
    box-shadow: 0px 24px 32px -8px rgba(0, 0, 0, 0.3);
}

.bloque-izq textarea::placeholder {
    opacity: 1;
    color: #ff0000;
    padding-top: 60px;
    text-align: center;
}

.indicacion {
    flex: 1 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.indicacion p {
    display: inline-block;
    color: rgb(255, 0, 0);
    font-size: 1rem;
}

.botones {
    flex: 1 100%;
    display: flex;
    flex-flow: row;
    gap: 1.5rem;
    margin-top: 1rem;
}

.botones input {
    flex: 1 50%;
}

.btn-encriptar,
.btn-copiar {
    background-color: #ff5e00;
    border: 0;
    color: #fff200;
    font-size: 1.2rem;
    text-align: center;
}

.btn-desencriptar {
    background-color: #fff200;
    border: 0;
    color: #ff5e00;
    font-size: 1.2rem;
    text-align: center;
}


/* Bloque Derecho: Instrucción y Mensaje */

.bloque-der {
    flex: 1 34%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    background-color: #d7eddacc;
    border-radius: 2rem;
    box-shadow: 0px 24px 32px -8px rgba(0, 0, 0, 0.3);
}


/* Instrucción */

.instruccion {
    flex: 1 100%;
    display: inline-flex;
    flex-flow: row wrap;
    justify-content: center;
    padding: 7.5%;
}

.instruccion img {
    width: max-content;
}

.textos {
    margin-top: 2rem;
    text-align: center;
}

.textos p {
    margin-top: 1rem;
    color: #ff0000;
    font-size: 1.2rem;
}


/* Mensaje de Resultado */

.mensaje {
    flex: 1 100%;
    display: none;
    flex-flow: row wrap;
    justify-content: center;
    padding: 7.5%;
}

.mensaje textarea {
    flex: 1 100%;
    background-color: unset;
    font-family: 'Oswald';
    font-size: 1.4rem;
    line-height: 150%;
    color: #ff8000;
    border: 0;
    resize: unset;
    height: 328px;
}

.btn-copiar {
    flex: 1 100%;
    margin-top: 2rem;
}


/* Botones Hover y Active */

.btn-encriptar:hover,
.btn-copiar:hover {
    background-color: #ff0000;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.6);
    cursor: pointer;
    color: white;
}

.btn-desencriptar:hover {
    border: 0;
    background-color: #ff0000;
    color: white;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.btn-encriptar:active,
.btn-desencriptar:active,
.btn-copiar:active {
    transform: scale(0.9);
}


/* Footer */

footer {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    gap: 1rem;
    background-color: #ff6f00;
    padding: 1rem;
}

footer p {
    display: inline-flex;
    gap: 0.5rem;
    font-size: 1rem;
    color: white;
}