/* Estilo global */
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
  background: url("./src/back.png") no-repeat center center fixed;
  background-size: cover;
  touch-action: manipulation;
}
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(249, 249, 249, 0.384);
  z-index: -1;
}

/* Container principal */
.container {
  position: relative;
  margin: 0 auto;
  width: 90%;
  max-width: 70vw;
  padding: 50px;
  border-radius: 10px;
  text-align: center;
}


/* Gráfico de escolhas */
#choicesChart {
  max-width: 300px;
  max-height: 300px;
  margin: 0 auto;
}

/* Resultado */
#result {
  margin-top: 20px;
  font-size: 1.2em;
}

/* Imagens no container */
.container img {
  width: 200px;
  height: 230px;
}

/* Títulos */
.title {
  font-size: 4vw;
  font-weight: bold;
  margin: 20px 0;
  color: #000000;
}

/* Perguntas */
.question {
  font-size: 1.5vw;
}

/* Opções */
.options {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: #000000;
}

/* Botões gerais */
.button,
.buttonfim,
.buttoon,
.popup-content button {
  width: 100%;
  font-weight:400;
  border: 1px solid black;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.button {
  width: 400px;
  height: 80px;
  padding: 5px;
  background-color: rgb(255, 255, 255);
  color: #2D2E2F;
  margin: 4px;
  box-sizing: border-box;
}

.button:hover {
  background-color: #2D2E2F;
  color: #FFF;
}

.buttonfim {
  max-width: 90px;
  height: 40px;
  background-color: white;
  color: #2D2E2F;
}

.buttoon {
  max-width: 150px;
  height: 6vh;
  background-color: #2D2E2F;
  color: white;
  border-radius: 5px;
  margin: 5px;
}

.popup-content button {
  max-width: 400px;
  height: 50px;
  background-color: #2D2E2F;
  color: white;
  border-radius: 5px;
  margin: 5px;
}

.popup-content button:hover {
  background-color: #333;
}

/* Texto */
.texto {
  margin-top: 10px;
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  cursor: pointer;
}

/* Estilos auxiliares */
.hidden {
  display: none;
}

/* Sobreposição */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 999;
  display: none;
}

/* Pop-up de lembrete */
#reminder-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border: 1px solid black;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: none;
}

/* Conteúdo do pop-up */
.popup-content {
  text-align: center;
}

.popup-content p {
  margin: 20px 0;
  font-size: 1.2em;
}

/* Texto justificado */
.justified-text {
  text-align: justify;
  line-height: 1.5;
  margin: 0;
}

/* Cores por categoria */
.emo h1 { color: #FF0000; }
.men h1 { color: #0070C0; }
.ins h1 { color: #00B050; }
.org { color: #7030A0; }
.srv { color: #E46C0A; }
.real { color: #0070C0; }
.roma { color: #FFC000; }
.observador { color: #953735; }
.questionador { color: #948A54; }
.sonhador { color: #00B050; }
.confrontador { color: #C00000; }
.intermediador { color: #000000; }

#pre-teste-container .container {
  text-align: center;
}

#email-form {
  margin-bottom: 20px;
}

#email-input {
  width: 100%;
  max-width: 400px;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 20px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.122); /* Sombra sutil */
}

#codigo-input {
  width: 100%;
  max-width: 400px;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 20px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.122); /* Sombra sutil */
}

/* Responsividade */
@media screen and (max-width: 768px) {
  .wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Centraliza verticalmente */
    width: 100vw; /* Ocupa toda a largura da tela */
    height: auto; /* Ajusta a altura automaticamente */
    padding: 10px; /* Adiciona padding de 10px nas bordas */
    margin: 0 auto; /* Centraliza horizontalmente */
  }

  .container {
    width: 90%; /* Limita a largura para 90% da tela */
    max-width: 768px;
    padding: 10px; /* Garante um padding interno de 10px */
    text-align: center;
    margin: 10px; /* Adiciona uma margem de 10px em volta do container */
    display: flex;
    flex-direction: column;
    align-items: center; /* Alinha o conteúdo internamente */
    justify-content: center; /* Centraliza verticalmente */
  }

  .question {
    font-size: 4vw; /* Ajusta o tamanho da fonte de forma mais responsiva */
    margin-bottom: 20px; /* Reduz a margem inferior */
    width: 100%; /* Garante que a pergunta ocupe a largura total */
  }

  .button {
    font-size: 3vw; /* Diminui o tamanho do texto do botão */
    padding: 10px; /* Reduz o padding para evitar um botão grande demais */
    margin-top: 10px;
    text-align: center;
    word-wrap: break-word;
    white-space: normal;
    width: 90%; /* Define a largura do botão como 80% da largura disponível */
    max-width: 400px; /* Limita o tamanho máximo do botão */
  }

  h1 { font-size: 5vw; } /* Ajusta o tamanho das fontes com relação à largura da tela */
  h2 { font-size: 4.5vw; }
  h3 { font-size: 4vw; }
  p { font-size: 3.5vw; }

  .right-section {
    order: -1; /* Move a seção direita para cima */
  }

  .left-section {
    order: 1; /* Mantém a seção esquerda abaixo da seção direita */
  }
}
