/*EXCLUSIVO DO INDEX*/
.tela-inicio {
    background: linear-gradient(to right, white, #57a5b8);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.container-inicio {
    display: flex;
    width: 850px;
    height: auto;
    min-height: 500px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.lado-esquerdo {
    background-color: #57a5b8;
    color: white;
    width: 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.lado-esquerdo h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: white;
}

.imagem-esquerdo {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 20px;
    width: 220px;
}

.lado-direito {
    width: 60%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lado-direito h2 {
    color: #57a5b8;
    margin-bottom: 15px;
}

.inicio {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px;
}

.btn-inicio {
    border: 1px solid #ccc;
    border-radius: 30px;
    padding: 10px 20px;
    outline: none;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-inicio:hover {
    background: #57a5b8;
    color: white;
    border: 1px solid #ccc;
    border-radius: 30px;
    padding: 10px 40px;
}

/* GERAL */
body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background: linear-gradient(to right, white, #57a5b8);
}

/* Área de cadastro/login */
.container {
    background-color: #fff;
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
    width: 350px;
    text-align: center;
}

/* Título */
h2 {
    color: #333;
    margin-bottom: 20px;
}

/* Labels e inputs */
label {
    display: block;
    text-align: left;
    font-weight: bold;
    margin-top: 10px;
    color: #333;
}

input {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

/* Botões */
.bnt-azul {
    background-color: #57a5b8;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    width: 100%;
    margin-top: 20px;
    cursor: pointer;
    font-weight: bold;
}

.bnt-azul:hover {
    background-color: #4a8c9c;
}

.bnt-cinza {
    background-color: #ccc;
    color: #333;
    border: none;
    padding: 10px;
    border-radius: 6px;
    width: 100%;
    margin-top: 10px;
    cursor: pointer;
    font-weight: bold;
}

.bnt-cinza:hover {
    background-color: #bbb;
}

/*EXCLUSIVO DO JOGO*/

.setas {
    margin-top: 10px;
    cursor: pointer;
    font-weight: bold;
    background-color: #ccc;
    border: 1px solid #000000;
    color: #333;
    width: 100px;
    height: 100px;
    padding: 10px;
    border-radius: 10px;
    font-size: 48px;
    margin: 5px;
}

.mainsetas {
    margin-top: 20px;
}

.body-jogo {
    /* BLOQUEAR SELEÇÃO DE TEXTO */
    user-select: none;
    -webkit-user-select: none; /* Safari, Chrome Mobile */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE/Edge antigo */

    /* BLOQUEAR MENU DE TOQUE (iOS: copiar/colar, compartilhar, etc.) */
    -webkit-touch-callout: none;

    /* BLOQUEAR HIGHLIGHT AZUL EM ALGUNS ANDROID (opcional) */
    -webkit-tap-highlight-color: transparent;

    /* BLOQUEAR DRAG DE IMAGENS E ELEMENTOS EM ALGUNS BROWSERS */
    -webkit-user-drag: none;
    user-drag: none;

    /* IMPEDIR QUE TOQUE LONGO CAUSE SELEÇÃO EM ALGUNS ANDROID */
    touch-action: none; /* Cuidado: isso também bloqueia scroll dentro do elemento */

    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
}

.tela {
    display: none;
    padding: 20px;
}

.tela.ativa {
    display: block;
}

#labirinto {
    display: grid;
    justify-content: center;
    margin: 20px auto;
    gap: 1px;
}

#exibeFase {
    font-weight: bold;
}

.celula {
    width: 25px;
    height: 25px;
    border-radius: 4px;
}

.parede {
    background: #333;
}

.livre {
    background: #eee;
}

.jogador {
    background: blue;
}

.saida {
    background: green;
}

/* EXCLUSIVO DO SOBRE */

/* Área dos alunos */
.alunos {
    display: grid;
    grid-template-columns: repeat(2, 250px);
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    /* Diminuída a distância até o botão */
    text-align: center;
    padding: 20px;
}

/* Aluno individual */
.aluno {
    background: #57a5b8;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 20px;
    width: 220px;
    color: white;
    transition: transform 0.3s, box-shadow 0.3s;
}

.aluno:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.aluno img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 3px solid white;
}

.aluno h3 {
    margin: 10px 0 5px;
    color: white;
    font-weight: bold;
}

.aluno p {
    color: #e0f7ef;
    font-size: 14px;
}

/* Sobre o jogo */
.sobre {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    margin: 0 auto 30px auto;
}

/*<!--ACHO QUE TERMINAMOS!!!-->*/


/* ESCALA AUTOMÁTICA DO JOGO */
#containerJogo {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

#telaJogo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform-origin: center center;
}

#gameStage {
    display: inline-block; /* mantém tamanho natural */
}
