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

:root{    
    --font-main: 'Inter', sans-serif;

    --alert-tamanho-altura-1: 310px;
    --alert-tamanho-largura-1: 60%;

    --font-size-1: 32px;
    --font-size-2: 24px;
    --font-size-3: 16px;
    --font-size-4: 12px;
}

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

.cabecalho{
    width: 100%;
    height: 50px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--background-cabecalho-rodape);
    z-index: 0;
    overflow: auto;
}

.cabecalho__titulo{
    font-family: var(--font-main);
    color: var(--font-color-cabecalho-rodape);
    font-size: var(--font-size-1);
}

.conteudo{
    width: 100%;
    box-sizing: border-box;
    background-color: var(--background-main);
    display: flex;
    z-index: 0;
}

.conteudo__logo{
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: auto;
}

.conteudo__logo__estilo{
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.conteudo__logo__estilo__imagem{
    opacity: 0.75;
    border: 1px solid var(--border-change);
    border-radius: 20px;
    transition: background-color 1s;
}

.conteudo__logo__estilo__imagem:hover{
    background-color: var(--background-hover-change);
}

.conteudo__texto{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 16px;
    overflow: auto;
}

.conteudo__texto__input{
    background: var(--background-input);
    font-family: var(--font-main);
    font-size: var(--font-size-1);
    color: var(--font-color-input);
    width: 100%;
    border: 1px solid var(--border-input);
    border-radius: 20px;
    resize: none;
    line-height: 150%;
    outline: none;
    padding: 20px;
}

textarea::placeholder{
    color: var(--font-color-input);
    opacity: 1;
}

.conteudo__texto__alerta{
    display: flex;
    justify-content: left;
    align-items: center;
    height: 16px;
    width: 100%;
    gap: 8px;
}

.conteudo__texto__alerta__imagem{
    height: 100%;
}

.conteudo__texto__alerta__texto{
    font-family: var(--font-main);
    color: var(--font-color-resposta-titulo);
    font-size: var(--font-size-4);
    height: 100%
}

.conteudo__texto__botoes{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.conteudo__texto__botoes__criptografar,
.conteudo__texto__botoes__descriptografar,
.conteudo__resultado__botao{
    font-size: var(--font-size-3);
    font-family: var(--font-main);
    border-radius: 20px;
    width: 330px;
    height: 60px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 1s;
}

.conteudo__texto__botoes__criptografar{
    color: var(--font-color-criptografar);
    border: 1px solid var(--border-criptografar);
    background: var(--background-criptografar);
}

.conteudo__texto__botoes__criptografar:hover{
    background-color: var(--background-hover-criptografar);
    opacity: 0.75;
}

.conteudo__texto__botoes__descriptografar{
    color: var(--font-color-descriptografar);
    background: var(--background-descriptografar);
    border: 1px solid var(--border-descriptografar);
}

.conteudo__texto__botoes__descriptografar:hover{
    background-color: var(--background-hover-descriptografar);
    opacity: 0.75;
}

.conteudo__resultado{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: var(--background-resposta);
    gap: 30px;
    border: 1px solid var(--border-resposta);
    border-radius: 20px;
    overflow: auto;
    padding: 20px;
}

.conteudo__resultado__logo{
    width: 100%;
    aspect-ratio: 1;
    border-radius: 30px;
    border: 1px solid var(--border-resposta-logo);
}

.conteudo__resultado__resposta{
    background-color: transparent;
    font-family: var(--font-main);
    font-size: var(--font-size-2);
    color: var(--font-color-resposta);
    width: 100%;
    height: 100%;
    border: none;
    resize: none;
    line-height: 150%;
    outline: none;
    overflow: auto;
}

.conteudo__resultado__instrucoes{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;    
    gap: 16px;
}

.conteudo__resultado__instrucoes__titulo{
    font-family: var(--font-main);
    font-size: var(--font-size-2);
    color: var(--font-color-resposta-informativo);
    line-height: 120%;
    text-align: center;
}

.conteudo__resultado__instrucoes__texto{
    font-family: var(--font-main);
    color: var(--font-color-resposta-titulo);
    font-size: var(--font-size-3);
    line-height: 150%;
    text-align: center;
}

.conteudo__resultado__botao{
    color: var(--font-color-copiar);
    background: var(--background-copiar);
    border: 1px solid var(--border-copiar);
}

.conteudo__resultado__botao:hover{
    background-color: var(--background-hover-copiar);
    opacity: 0.75;
}

.conteudo__alerta_estilos{
    z-index: 1;
    position: absolute;
    height: fit-content;
    max-height: 100vh;
    max-width: 100vw;
    background-color: var(--background-alert);
    border-radius: 20px;
    border: 1px solid var(--border-alert);
    display: none;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    padding: 40px;
    gap: 20px;
    box-shadow: 0px 2px 5px 0px var(--shadow-alert);
}

.conteudo__alerta_estilos__texto{
    font-family: var(--font-main);
    font-size: var(--font-size-1);
    color: var(--font-color-alert);
    max-height: 340px;
    text-align: center;
    overflow: auto;
}

.conteudo__alerta_estilos__botoes{
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: fit-content;
    gap: 10px;
    padding: 10px;
    overflow: auto;
}

.conteudo__alerta_estilos__botao__azul,
.conteudo__alerta_estilos__botao__vermelha,
.conteudo__alerta_estilos__botao_ok{
    font-family: var(--font-main);
    font-size: var(--font-size-1);
    border: 1px solid var(--border-alert);
    border-radius: 20px;
    width: 260px;
    height: fit-content;
    padding: 10px;
    background-color: transparent;
    transition: background-color 1s;
    cursor: pointer;
    overflow: auto;
}

.conteudo__alerta_estilos__botao__vermelha{
    color: var(--font-color-button-alert-vermelha);
}

.conteudo__alerta_estilos__botao__vermelha:hover{
    background-color: var(--background-hover-alert-vermelha);
    opacity: 0.75;   
}

.conteudo__alerta_estilos__botao__azul{
    color: var(--font-color-button-alert-azul);
}

.conteudo__alerta_estilos__botao__azul:hover{
    background-color: var(--background-hover-alert-azul);
    opacity: 0.75;
}

.conteudo__alerta_estilos__botao_ok{
    color: var(--font-color-copiar);
    display: none;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

.conteudo__alerta_estilos__botao_ok:hover{
    background-color: var(--background-hover-copiar);
    opacity: 0.75;
}

.rodape{
    height: 50px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--background-cabecalho-rodape);
    z-index: 0;
    overflow: auto;
}

.rodape__texto{
    text-decoration: none;
    font-family: var(--font-main);
    color: var(--font-color-cabecalho-rodape);
    font-size: var(--font-size-3);
    cursor: pointer;
}

/*Desktop*/
@media (min-width: 1440px){
    body{
        height: 100vh;
        min-height: 390px;
        width: 100vw;
    }

    .conteudo{
        height: calc(100% - 100px);
        justify-content: center;
        padding: 40px;
        gap: 80px;
    }
    
    .conteudo__logo{
        flex-direction: column;
        min-width: 120px;
        width: 10%;
    }

    .conteudo__logo__icones__one{
        width: 100%;
    }

    .conteudo__logo__estilo{
        width: 100%;
    }

    .conteudo__logo__estilo__imagem{
        width: 100%;
        border-radius: 20px;
    }

    .conteudo__texto{
        width: 680px;
        padding: 125px 0px 0px 0px;
        overflow: auto;
    }

    .conteudo__texto__input{
        height: 100%;
        min-height: 100px;
    }

    .conteudo__texto__botoes{
        padding: 0px 0px 32px 0px;
    }

    .conteudo__resultado{
        width: 340px;
        height: 100%;
        overflow: auto;    
    }

    .conteudo__resultado__instrucoes{
        width: 100%;
    }

    .conteudo__resultado__botao{
        width: 100%;
    }

    .conteudo__alerta_estilos{
        width: 900px;
        height: fit-content;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        margin: auto;
    }
}

@media (min-width: 1440px) and (max-height: 675px) {
    .conteudo__resultado{
        justify-content: start;
    }

    .conteudo__resultado__logo{
        height: 70%;
        width: auto;
    }
}

@media (min-width: 1440px) and (max-height: 550px) {
    .conteudo__texto{
        padding: 0px;
    }
    
    .conteudo__resultado{
        justify-content: start;
    }

    .conteudo__resultado{
        justify-content: center;
    }

    .conteudo__resultado__logo{
        display: none;
    }
}

@media (min-width: 1440px) and (max-height: 420px) {
    .conteudo{
        padding: 0px;
    }
    
    .conteudo__logo{
        justify-content: start;
    }
    
    .conteudo__texto{
        padding: 0px;
        justify-content: start;
    }

    .conteudo__resultado{
        justify-content: start;
    }

    .conteudo__resultado__logo{
        display: none;
    }
}

/*Tablet*/
@media (max-width:1439px) and (min-width: 770px) {
    body{
        height: 100vh;
        width: 100vw;
    }

    .conteudo{
        height: calc(100% - 100px);
        flex-direction: column;
        justify-content: space-between;
        gap: 20px;
    }

    .conteudo__logo{
        flex-direction: row;
        height: 10%;
        min-height: 75px;
        overflow: unset;
        padding: 5px;
    }

    .conteudo__logo__icones{
        height: 100%;
    }

    .conteudo__logo__icones__one{
        height: 100%;
    }

    .conteudo__logo__estilo{
        height: 100%;
    }

    .conteudo__logo__estilo__imagem{
        height: 100%;
        border-radius: 20px;
    }

    .conteudo__texto{
        height: 50%;
    }

    .conteudo__texto__input{
        height: 100%;
        min-height: 100px;
    }

    .conteudo__resultado{
        height: 30%;
        min-height: 120px;
        width: 100%;
        box-sizing: border-box;
    }

    .conteudo__resultado__logo{
        display: none;
    }

    .conteudo__resultado__instrucoes{
        height: 69px;
    }

    .conteudo__resultado__botao{
        width: 330px;
    }

    .conteudo__alerta_estilos{
        width: 500px;
        height: fit-content;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        margin: auto;
    }

    .conteudo__alerta_estilos__texto{
        font-size: var(--font-size-2);
    }
}

@media (max-width:1439px) and (min-width: 770px) and (max-height: 550px)  {
    .conteudo{
        min-height: 456px;
        justify-content: start;
        overflow: auto;
    }
}


/*Smartphone*/
@media (max-width: 769px) {
    body{
        width: 100vw;
        height: 100vh;
    }

    .cabecalho__titulo{
        font-size: var(--font-size-3);
    }

    .conteudo{
        height: calc(100% - 100px);
        flex-direction: column;
        justify-content: space-between;
        gap: 20px;
    }

    .conteudo__logo{
        flex-direction: row;
        min-height: 50px;
        height: 10%;
        overflow: unset;
    }

    .conteudo__logo__icones{
        height: 100%;
    }

    .conteudo__logo__icones__one{
        height: 100%;
    }

    .conteudo__logo__estilo{
        height: 100%;
    }

    .conteudo__logo__estilo__imagem{
        height: 100%;
        border-radius: 20px;
    }

    .conteudo__texto{
        height: 50%;
        min-height: 260px;
        gap: 10px
    }

    .conteudo__texto__input{
        height: 100%;
        min-height: 100px;
        font-size: var(--font-size-3);
    }

    .conteudo__texto__botoes{
        flex-direction: column;
    }

    .conteudo__resultado{
        width: 100%;
        gap: 32px;
        height: 30%;
        min-height: 180px;
        box-sizing: border-box;
    }

    .conteudo__resultado__resposta{
        font-size: var(--font-size-3);
    }

    .conteudo__resultado__logo{
        display: none;
    }
    
    .conteudo__texto__botoes__criptografar,
    .conteudo__texto__botoes__descriptografar,
    .conteudo__resultado__botao{
        width: 100%;
        max-width: 300px;
        height: 40px;
        border-radius: 20px;
    }

    .conteudo__resultado__instrucoes{
        height: fit-content;
    }

    .conteudo__alerta_estilos__botao__vermelha,
    .conteudo__alerta_estilos__botao__azul,
    .conteudo__alerta_estilos__botao_ok,
    .conteudo__alerta_estilos__texto{
        font-size: var(--font-size-3);
    }

    .conteudo__alerta_estilos{
        width: 250px;
        height: fit-content;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        margin: auto;
    }

    .conteudo__alerta_estilos__botao__azul,
    .conteudo__alerta_estilos__botao__vermelha,
    .conteudo__alerta_estilos__botao_ok{
        width: 150px;
    }
}

@media (max-width: 380px){
    .cabecalho__titulo,
    .rodape__texto{
        font-size: var(--font-size-4);
        text-align: center;
        min-width: 280px;
    }

    .conteudo__resultado{
        justify-content: start;
    }

    .conteudo__logo,
    .conteudo__texto,
    .conteudo__resultado{
        min-width: 280px;
    }
}

@media (max-width: 250px){
    .cabecalho,
    .rodape{
        justify-content: left;
    }
}