body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #eaf5ea;
  color: #004d1a;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.titulo {
  text-align: center;
  padding: 30px 20px;
  background-color: #007f3d;
  color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.titulo h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
}

.conteudo,
.fim {
  max-width: 700px;
  margin: 40px auto;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 77, 26, 0.15);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.pergunta {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
}

.respostas {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.botao-resposta {
  background-color: #007f3d;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 14px 22px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.botao-resposta:hover {
  background-color: #005c2c;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 77, 26, 0.2);
}

.progresso {
  font-weight: bold;
  text-align: right;
  color: #007f3d;
  font-size: 14px;
}

.fim {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.pontuacao-final {
  font-size: 26px;
  font-weight: bold;
  color: #004d1a;
  text-align: center;
  margin: 0;
}

.rank-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background-color: #eaf5ea;
  border: 2px solid #007f3d;
  border-radius: 12px;
  padding: 20px 30px;
  width: 100%;
  box-sizing: border-box;
}

.rank-titulo {
  font-size: 28px;
  font-weight: 800;
  color: #007f3d;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rank-mensagem {
  font-size: 16px;
  font-weight: 400;
  color: #004d1a;
  font-style: italic;
}

button.reiniciar {
  padding: 12px 24px;
  background-color: #ffc107;
  color: #004d1a;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

button.reiniciar:hover {
  background-color: #e0a800;
  transform: scale(1.05);
}

.fim-acoes {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-gabarito {
  padding: 12px 24px;
  background-color: #004d1a;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-gabarito:hover {
  background-color: #003512;
  transform: scale(1.05);
}

.gabarito {
  display: none;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.gabarito-item {
  border-radius: 10px;
  padding: 16px 18px;
  border-left: 5px solid;
}

.gabarito-item.acerto {
  background-color: #d4edda;
  border-color: #28a745;
}

.gabarito-item.erro {
  background-color: #f8d7da;
  border-color: #dc3545;
}

.gabarito-numero {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #666;
  margin: 0 0 4px 0;
}

.gabarito-pergunta {
  font-size: 15px;
  font-weight: 600;
  color: #004d1a;
  margin: 0 0 8px 0;
}

.gabarito-resposta {
  font-size: 14px;
  margin: 0 0 4px 0;
  color: #333;
}

.gabarito-correta {
  font-size: 14px;
  margin: 0;
  color: #155724;
  font-weight: 500;
}

.rodape {
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: #004d1a;
}

@media (max-width: 600px) {
  .conteudo, .fim {
    margin: 20px;
    padding: 20px;
  }

  .botao-resposta {
    font-size: 15px;
    padding: 12px 16px;
  }

  .titulo h1 {
    font-size: 20px;
  }

  .fim-acoes {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-gabarito,
  button.reiniciar {
    width: 100%;
  }
}
