/* ===== PARTE 1: IMPORTANDO FONTE DO GOOGLE FONTS ===== */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");

/* ===== PARTE 2: VARIÁVEIS CSS ===== */
:root {
  --color-text: #fff0c8; /* Texto principal (bege claro) */
  --color-button: #60804d; /* Botões e elementos interativos (verde escuro) */
  --font-padrao: "Open Sans", Verdana, sans-serif; /* Fonte padrão com fallback */
}

/* ===== PARTE 3: RESET CSS ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== PARTE 4: ESTILO DO BODY ===== */
body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background: #306b34;
  height: 100vh;
  font-family: var(--font-padrao);
}

/* ===== PARTE 5: CABEÇALHO ===== */
header {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 40px;
}

/* ===== PARTE 6: LOGO ===== */
#logo-img {
  width: 400px;
  max-width: 90%; /* Ajusta em telas menores */
}

/* ===== PARTE 7: CONTEÚDO PRINCIPAL ===== */
.conteudo-principal {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ===== PARTE 8: ENUNCIADO ===== */
.enunciado-principal {
  width: 60%;
  color: var(--color-text);
  font-weight: 500;
  font-size: 3rem;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ===== PARTE 9: BOTÕES ===== */
button {
  border: none;
  padding: 15px;
  border-radius: 15px;
  color: var(--color-text);
  background: var(--color-button);
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: #4f683c; /* Leve efeito hover */
}

/* ===== PARTE 10: RODAPÉ ===== */
footer p {
  text-align: center;
  font-family: var(--font-padrao);
  color: var(--color-text);
  padding: 20px;
}

footer p a {
  color: var(--color-text);
  text-decoration: underline;
}

/* ===== PARTE 11: CAMPO DE TEXTO ===== */
.input-text {
  width: 300px;
  border: none;
  outline: none;
  padding: 15px;
  border-radius: 10px;
  background: var(--color-button);
  color: var(--color-text);
  font-size: 1.5rem;
  text-align: center;
}

/* ===== PARTE 12: CURSOR INPUT ===== */
input {
  caret-color: var(--color-button);
}

/* ===== PARTE 13: PLACEHOLDER ===== */
.input-text::placeholder {
  color: var(--color-text);
  text-align: center;
  font-size: 1.5rem;
  opacity: 0.5;
}

/* ===== PARTE 14: BARRA DESLIZANTE ===== */
.input-range {
  accent-color: var(--color-button);
  margin-top: 40px;
  width: 80%;
}

/* ===== PARTE 15: CAMPO NUMÉRICO ===== */
.input-number {
  width: 150px;
  padding: 20px;
  margin-top: 40px;
  border: none;
  outline: none;
  border-radius: 20px;
  background: var(--color-button);
  color: var(--color-text);
  font-size: 1.5rem;
  text-align: center;
}

/* ===== PARTE 16: CAIXA DOS RÁDIOS ===== */
.input-box {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  width: 100%;
}

/* ===== PARTE 17: CADA BOTÃO DE RÁDIO ===== */
.radio {
  display: flex;
  flex-direction: row;
  margin: 20px;
}

.radio label {
  margin-left: 15px;
  font-size: 2rem;
}

.radio input {
  width: 1.5rem;
  accent-color: var(--color-button);
}

/* ===== PARTE 18: IMAGEM DE RESULTADO ===== */
.img-planeta {
  width: 250px;
  max-width: 90%; /* Ajuste em telas menores */
}

/* ===== PARTE 19: TEXTO DE RESULTADO ===== */
.qtd-planetas {
  margin-left: 20px;
  font-size: 2.5rem;
  font-style: italic;
  font-weight: bold;
}

/* ===== PARTE 20: DIV DE RESULTADO ===== */
.resultado-div {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* ===== PARTE 21: DESCRIÇÕES DO RESULTADO ===== */
.descricao-resultado {
  font-size: 2.5rem;
  margin: 0.5rem;
  text-align: center;
}

/* ===== PARTE 22: RESPONSIVIDADE ===== */
@media (max-width: 475px) {
  #logo-img {
    width: 300px;
  }

  .descricao-resultado {
    font-size: 1.5rem;
  }

  .img-planeta {
    width: 150px;
  }

  .qtd-planetas {
    font-size: 1.5rem;
  }

  .enunciado-principal {
    font-size: 1.5rem;
    width: 90%;
    padding: 20px;
  }

  .input-text,
  .input-number {
    width: 80%;
    font-size: 1.2rem;
    padding: 12px;
  }

  .button {
    font-size: 1.5rem;
    padding: 12px;
  }

  .input-range {
    width: 90%;
  }
}
