/* Reset básico */
body {
  font-family: Arial, sans-serif;
  background-color: #f2f2f2;
  margin: 0;
  padding: 0;
}

/* Container principal */
.container {
  max-width: 500px;
  margin: 20px auto;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Títulos */
h1, h2 {
  text-align: center;
  color: #d35400;
}

/* Labels e inputs */
label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}

input[type="number"] {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 5px;
}

input[type="number"]:focus {
  border-color: #d35400;
  outline: none;
  box-shadow: 0 0 5px rgba(211, 84, 0, 0.5);
}

/* Botões */
button,
.botao-reiniciar,
.botao-explicacao {
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  background-color: #d35400;
  color: white;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover,
.botao-reiniciar:hover,
.botao-explicacao:hover {
  background-color: #e65c00;
  transform: scale(1.03);
  box-shadow: 0 0 10px rgba(211, 84, 0, 0.4);
}

button:focus,
.botao-reiniciar:focus,
.botao-explicacao:focus {
  outline: 2px solid #d35400;
  outline-offset: 2px;
}

/* Bloco de resultado */
.resultado {
  margin-top: 30px;
  background-color: #ffe6cc;
  padding: 15px;
  border-radius: 5px;
}

/* Estilo dos itens com ícone */
.item {
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.item label {
  flex: 1;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}

.item label::before {
  content: "🛒";
  font-size: 18px;
}

/* Select padrão */
select {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
  border: 2px solid #ccc;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Verde claro para "Sim" */
select.sim {
  background-color: #d4f4d7;
  border-color: #2ecc71;
}

/* Vermelho claro para "Não" */
select.nao {
  background-color: #f8d4d4;
  border-color: #e74c3c;
}

/* Modal explicativo */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.modal-conteudo {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 80%;
  max-width: 500px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.fechar {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.fechar:hover {
  color: #000;
}

/* Lista com ícones na modal */
.lista-explicacao {
  list-style: none;
  padding-left: 0;
}

.lista-explicacao li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 16px;
}

.lista-explicacao li span {
  font-size: 20px;
}

/* Responsividade */
@media (max-width: 600px) {
  .container {
    margin: 10px;
    padding: 15px;
  }

  .modal-conteudo {
    width: 95%;
    margin: 20% auto;
  }

  button,
  .botao-reiniciar,
  .botao-explicacao {
    font-size: 14px;
    padding: 10px;
  }
}
