:root {
    --color-primario: #e5e5e5;
    --color-secundario: #0a3871;
    --color-terciario: #130b4b;
    --color-white: #ffffff;
    --color-textoArea: #0a3871;
    --color-parrafo: #495057;
    --fuente-Inter: "Inter", sans serif;
}

body.light-mode {
    --color-primario: #021526;
    --color-secundario: #323135;
    --color-terciario: #0c042f16;
    --color-white: #280c8559;
    --color-textoArea: #e5ebf1;
    --color-parrafo: #b7c0ca;
}

/* boton del tema */
.presentacion_tema {
    display: flex;
    height: 20%;
    padding: 25px 0 0 30px;
}

.tema-color {
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
}

.icon {
    fill: black;
    filter: drop-shadow(rgba(255, 255, 255, 0.81) 0px 5px 10px);
    font-size: 30px;
    transition: all 0.4s;
}

.icon:hover {
    filter: drop-shadow(rgba(41, 41, 42, 0.81) 0px 5px 15px);
    transition: all 0.4s;
}

#sun-icon {
    color: white;
}

#moon-icon {
    color: black;
}

/* ocultar la luna */
.hidden {
    display: none;
}

/* --- */
body {
    box-sizing: border-box;
    background-color: var(--color-primario);
    background-image: url('./image-background.png');
    background-position: right;
    background-size: auto;
    background-repeat: no-repeat;
    background-blend-mode: soft-light;
    height: 100%;
    margin: 0;
}

.container_general {
    display: flex;
    justify-content: space-around;
    gap: 24px;
    height: 100%;
}

.section1 {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 770px;
}

.section1_logo {
    margin-top: 40px;
}

.section1_textarea {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    flex: 1;
}

#textarea,
#respuesta_encriptado {
    background-color: transparent;
    font-family: var(--fuente-Inter);
    color: var(--color-textoArea);
    font-size: 2rem;
    outline: none;
    border: none;
    resize: none;
    width: 80%;
    height: 100%;
}

#textarea::placeholder {
    color: var(--color-placeholder_textarea);
    font-size: 2rem;
}

.section1_parrafo_aviso {
    font-family: var(--fuente-Inter);
    font-size: 1rem;
    color: var(--color-parrafo);
}

.section1_botones_container {
    display: flex;
    justify-content: center;
    gap: 24px;
    width: 100%;
}

.section1_boton {
    display: flex;
    justify-content: center;
    font-family: var(--fuente-Inter);
    font-size: 1rem;
    border: var(--color-secundario) solid 1px;
    border-radius: 24px;
    transition: 0.5s all;
    cursor: pointer;
    padding: 24px;
    width: 30%;
}

.section1_btn_encriptar {
    background-color: var(--color-secundario);
    color: white;
}

.section1_btn_encriptar:hover {
    background-color: #072b57;
    transition: 0.5s all;
}

.section1_btn_desencriptar {
    background-color: #e4e9ed;
    color: var(--color-secundario);
}

.section1_btn_desencriptar:hover {
    background-color: #d3d6da;
    transition: 0.5s all;
}

/* Seection 2*/
.section2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 2;
    background-color: var(--color-white);
    border-radius: 32px;
    box-shadow: rgba(0, 0, 0, 0.061) 0px 3px 20px,
        rgba(0, 0, 0, 0.198) 0px 3px 20px;
    margin-top: 40px;
    margin-right: 40px;
    padding: 0 32px 0 32px;
    width: 55%;
    height: 750px;
}

.section2_mensaje {
    text-align: center;
    width: 80%;
}

.section2_mensaje h2 {
    font-family: var(--fuente-Inter);
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--color-textoArea);
}

.section2_parrafo {
    font-family: var(--fuente-Inter);
    color: var(--color-parrafo);
}

.section2_img {
    padding: 0, 32px, 32px, 32px;
    transition: all 1s;
}

.section2_img:hover {
    transform: rotate(10deg);
    transition: all 1s;
}

.boton_section2 {
    display: none;
    align-items: center;
    width: 100%;
    height: 15%;
}

.section2_boton {
    color: var(--color-secundario);
    margin-bottom: 20px;
    width: 100%;
}

.section2_boton:hover {
    background-color: #dad7d3;
}

#respuesta_encriptado {
    display: none;
    align-items: center;
    font-family: var(--fuente-Inter);
    font-size: 1.5rem;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
    border: none;
    cursor: text;
    width: 300px;
    height: 100%;
}

footer {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 10px;
    background-color: var(--color-terciario);
    border-top: 1px solid var(--color-parrafo);
    padding: 20px 0;
    margin-top: 15px;
    color: white;
}

footer span {
    font-family: var(--fuente-Inter);
}

footer img {
    margin: 0 5px 0 5px;
    width: 40px;
    height: 40px;
}

/* tablet */
@media (max-width: 1200px) {
    .container_general {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .section1_textarea {
        padding: 40px 40px 0 40px;
        height: 100%;
    }

    #textarea {
        width: 100%;
        height: 100%;
    }

    .section1_boton {
        width: 100%;
    }

    .section2 {
        margin-bottom: 80px;
        margin-right: 0;
        width: 80%;
    }

    .section2_img {
        display: none;
    }

    #respuesta_encriptado {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .section1_botones_container {
        flex-direction: column;
    }

    .section2 {
        padding: 32px 20px 32px 20px;
    }

    #respuesta_encriptado {
        height: 550px;
    }
}