:root{
    --fonte: #302c2c;
    --fundo: #f6f6f6;
    --main_color: #5bcaaf;
}
/* darkMode*/
.dark-mode:root{
    --fonte: #f6f6f6;
    --fundo: #302c2c;
}
html{
    scroll-behavior: smooth;
}
*{
    font-family: 'Nunito', sem serifa;
}
body{
    background-color: var(--fundo);
}
/*cabeçalho*/
.cabecalho{
    align-items: center;
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}
.cabecalho_imagem{
    width: 300px;
}
/*botão dark mode*/
.checkbox {
    display: none;
}
.slider {
    background-color: lightgray;
    border: 4px solid transparent;
    border-radius: 20px;
    box-shadow: 0 0 10px 0 rgb(0, 0, 0, 0.25) inset;
    cursor: pointer;
    display: flex;
    height: 15px;
    overflow: hidden;
    transition: .2s;
    width: 45px;
}
.slider::before {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 0 10px 3px rgb(0, 0, 0, 0.25);
    content: '';
    display: block;
    height: 100%;
    transform: translateX(-30px);
    transition: .3s;
    width: 100%;
}
.checkbox:checked ~ .slider::before {
    box-shadow: 0 0 10px 3px rgb(0, 0, 0, 0.25);
    transform: translateX(30px);
}
.checkbox:checked ~ .slider {
    background-color: var(--main_color);
}
.checkbox:active ~ .slider::before {
    transform: translate(0);
}

/*principal*/
.container_main{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/*esquerda*/
.container_left{
    background-color: var(--fundo);
    border: 0.05rem solid;
    border-color: var(--main_color);
    border-radius: 0.25rem;
    margin-bottom: 2rem;
    padding: 2rem;
    width: 250px;
}
.textarea{
    background-color: var(--fundo);
    border: none;
    border-radius: 0.25rem;
    color: var(--fonte);
    font-size: 18px;
    height: 300px;
    padding: 15px;
    width: 220px;
}
.message{
    color: var(--fonte);
    font-size: 12.5px;
    font-weight: 600;
    text-align: center;
    text-transform:lowercase;
}
.position_button{
    display: flex;
    justify-content: space-between;
}
.button{
    background-color:var(--main_color);
    border: 0.05rem solid;
    border-radius: 0.6rem;
    color: var(--fundo);
    font-size: 16px;
    font-weight: 600;
    margin-top: 1.5rem;
    padding: 5px 15px;
}
.button:hover{
    background-color:var(--fundo);
    border-color: var(--main_color);
    color: var(--main_color);
    cursor: pointer;
}

/*direita*/
.container_right{
    border: 0.05rem solid;
    border-color: var(--main_color);
    border-radius: 0.25rem;
    padding: 2rem;
    text-align: center;
    width: 250px;
}
.textareaOutput{
    background-color: var(--fundo);
    border: none;
    border-radius: 0.25rem;
    color: var(--fonte);
    font-size: 18px;
    padding: 15px;
    width: 200px;
}
.space_message{
    color: var(--fonte);
    font-size: 15px;
    font-weight: 800;
    padding: 10px 20px;
}
.spam_message{
    color: var(--fonte);
    font-size: 12.5px;
    font-weight: 600;
    text-align: center;
} 

/*rodapé*/
.footer{
    color: var(--fonte);
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    margin-top: 0.25rem;
} 

/*media query*/

/*tablet*/
@media screen and (min-width: 768px){
    .cabecalho{
        display: flex;
        justify-content: center;
    }
    .cabecalho_imagem{
        width: 550px;
    }
    .slider {
        height: 20px;
        width: 60px;
    }
    .container_left{
        width: 450px;
    }
    .textarea{
        height: 300px;
        width: 420px;
    }
    .position_button{
        display: flex;
        justify-content: space-evenly;
    }
    .container_right{
        width: 450px;
    }
    .textareaOutput{
        height: 350px;
        width: 400px;
    }
}

/*desktop*/
@media screen and (min-width: 1024px){
    .cabecalho{
        flex-direction: row;
        justify-content: space-between;
        margin-left: 3.5rem;
    }
    .cabecalho_imagem{
        width: 250px;
    }
    .container_main{
        justify-content: space-evenly;
    }
    .switch {
        height: 15px;
        margin-right:10rem;
        margin-top: 1.5rem;
        margin-bottom: 2rem;
        width: 40px;
    }
    .container_left{
        height: 400px;
        width: 500px;
    }
    .textarea{
        height: 275px;
        width: 475px;
    }
    .message{
        font-size: 11.5px;
    }
    .position_button{
        display: flex;
        justify-content: space-evenly;
    }
    .container_right{
        height: 400px;
        width: 300px;
    }
    .textareaOutput{
        height: 300px;
        width: 275px;
    }
    .space_image{
        width: 100px;
    }
    .space_message{
        font-size: 14px;
    }
    .spam_message{
        font-size: 11.5px;
    } 
}

