body { /* CONFIGURAÇÕES GERAIS DE ESTILO */
    
    margin: 2px;
    background-color: #F3F5FC;
    display: flex;
    min-height: 90vh;
    width: 90vw;
    font-family: 'Kanit', sans-serif;
    font-weight: 400;
    box-sizing: border-box;
    justify-content: center;
    overflow: hidden;
}


.logo { /* CONFIGURA A LOGO DA ALURA */
    margin: 20px 0 0 50px ;
}

.titulo {
	font-family: 'Kanit', sans-serif;
	color: purple;
	font-size: 2.5rem;
	letter-spacing: 3px;
    padding-left: 10px;
}

.principal { /* CONFIGURA O CONTEÚDO PRINCIPAL A SER MODIFICADO PELO JS */
    margin: auto auto;
    height: 100%;
}

.tabuleiros { /* CONFUGURAÇÕES GERAIS DOS TABULEIROS */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.botoes { /* CONFIGURAÇÕES GERAIS DOS BOTÕES DA TELA INICIAL */
    display: flex;
    border-radius: 24px;
    width: 200px;
    height: 80px;
    border: purple solid 2px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
}
/* BOTÕES DA TELA INICIAL */
.botao1 { 
    color: white;
    background: purple;
    margin-bottom: 20px;
}

.botao2 {
    background: purple;
    color: white;
}

.sublinhado { /* CONFIGURA A DIV QUE VAI MOSTRAR O SUBLINHADO E AS LETRAS (ESTAS ÚLTIMAS SOMENTE SERÃO MOSTRADAS SE O JOGADOR ACERTAR) */
    width: 30px;
    height: 30px;
    border-bottom: solid 5px purple;
    display: inline-block;
    margin: 0 5px;
    text-align: center;
}
.linhas { /* CONFIGURA A DIV INTEIRA QUE VAI RECEBER AS LETRAS DENTRO DA DIV COM A CLASS "SUBLINHADO" */
    color: purple;
    font-size: 25px;
    text-align: center;
}

.esconder { /* ESTILO QUE TORNA AS LETRAS DA PALAVRA A SER DESVENDADA ESCONDIDAS POR PADRÃO E NÃO PERMITE SELECIONA-LAS COPIA-LAS COM O MOUSE */
    color: #F3F5FC;
    -webkit-touch-callout: none;  /* iPhone OS, Safari */
    -webkit-user-select: none;    /* Chrome, Safari 3 */
    -khtml-user-select: none;     /* Safari 2 */
    -moz-user-select: none;       /* Firefox */
    -ms-user-select: none;        /* IE10+ */
    user-select: none;            /* Possível implementação no futuro */
    /* cursor: default; */
}

.entrada{ /* TORNA O INPUT QUE VAI RECEBER AS LETRAS DIGITADAS, INVISIVEL */
    width: 0;
    height: 0;
    border: none;
    outline: none;
}

.mensagem { /* CONFIGURA TEXTO DE VITÓRIA OU DERROTA */
    text-align: center;
    font-size: 20px;
    margin: 5px;
}

.erros { /* CONFIGURA LETRAS QUE NÃO ESTÃO CONTIDAS NA PALAVRA A SER DESVENDADA */
    text-align: center;
    font-size: 20px;
    color: red;
    font-weight: bold;
}

.novojogo { /* CONFIGURA A DIV QUE CONTÉM OS BOTÕES DE "NOVO JOGO" E "DESISTIR" */
    display: flex;
    width: 40vw;
    justify-content: space-evenly;
}

textarea { /* CONFIGURA O TEXTAREA QUE VAI RECEBER A NOVA PALAVRA ADICIONADA PELO JOGADOR */
    border: none;
    background-color: #F3F5FC;
    width: 40vw;
    height: 50vh;
    font-size: 30px;
    color: purple;
    outline: none;
    resize: none;
    margin: 150px 0 0 0;
}

textarea::placeholder { /* CONFIGURA A COR DO PLACEHOLDER DO TEXTAREA */
    color: purple;
}

.aviso { /* CONFIGURAÇÕES GERAIS DA DIV QUE VAI RECEBER O AVISO DE "NÚMERO MAXIMO DE LETRAS", ENTRE O TEXTAREA E OS BOTÕES */
    display: flex;
    flex-direction: row;
    margin: 2px 0 10px 0;
    font-size: 15px;
    align-items: center;
    width: 100%;
}

.aviso p { /* CONFIGURA SOMENTE O TEXTO DA DIV AVISO */
    margin: 0 0 0 5px;
}

.opcoes { /* CONFIGURA A DIV QUE COMPORTA OS BOTÕES DE "SALVAR E COMEÇAR" E "CONTINUAR" */
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.botao { /* CONFIGURAÇOES GERAIS DOS BOTÕES DE "SALVAR E COMEÇAR", "CANCELAR" "NOVO JOGO" E "DESISTIR"*/
    border-radius: 24px;
    width: 200px;
    height: 60px;
    border: purple solid 2px;
    cursor: pointer;
}

#buttonfirst:hover {
    background-color: white; 
    transition: 0.5s;
    color: purple;
    opacity: 0.9;
}

#buttonsecond:hover {
    background-color: white; 
    transition: 0.5s;
    opacity: 0.9;
    color: purple
}

footer {
    bottom: 0;
    left: 0;
    width: 100%;
    position: fixed;
    background: purple;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    font-size: 17px;
    height: 27px;
}

footer img{
	width: 27px;
	height: 27px;
    padding: 8px
}

@media (max-width: 768px) /* AJUSTA A TELA À RESOLUÇÃO DE TABLET */ {
    body {
        overflow: scroll;
    }
    canvas {
        margin: 120px 0 0 0;
        width: 300px;
    }
    
    .novojogo{
        width: 75vw;
    }

    textarea {
        width: 100%;
    }

    .botao {
        width: 100%;
    }
}

@media (max-width: 425px) /* AJUSTA A TELA À RESOLUÇÃO DE CELULAR */ {
    .logo {
        margin: 0;
    }
    .botoes {
        width: 200px;
        height: 70px;
    }

    .novojogo {
        display: flex;
        flex-direction: column;
    }

    textarea {
        width: 100%;
    }

    textarea::placeholder {
        font-size: 26px;
    }
    
    .opcoes {
        display: flex;
        flex-direction: column;
    }
    
    .sublinhado {
        width: 25px;
    }
}

@media (max-width: 320px) {
    canvas {
        width: 250px;
    }

    .botao {
        width: 250px;
    }

    textarea::placeholder {
        font-size: 20px;
    }
}