/* Página principal */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Rubik", sans-serif;
  line-height: 1.6;
  color: #222;
  background: #f9f9f9;
  text-align: center;
  padding: 1rem;
}

h1, h2, h3, h4 {
  font-family: "Merriweather", serif;
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  color: #003366;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #004488;
}

h3, h4 {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #333;
}

span {
  color: #d40000;
  font-weight: bold;
}

header {
  margin: 2rem 0;
}

header h3 {
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 800px;
  margin: 0 auto;
}

#imgContainer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  align-items: start;
  justify-items: center;
  margin: 2rem 0;
}

#imgContainer figure {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 1rem;
  max-width: 350px;
}

#imgContainer img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

#imgContainer figcaption {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #555;
}

footer {
  margin-top: 3rem;
  padding: 2rem 0;
  background: #003366;
  color: white;
  border-radius: 10px;
}

#seehere {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #ffdd00;
}

#topicsContainer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

#inputPainel {
  display: grid;
  grid-template: 1fr 1fr / 1fr 1fr; 
  gap: 1rem;
  max-width: 600px;
  margin: 1rem auto;
  text-align: center;
}

#painel {
  background-color: rgb(255, 200, 0);
  width: 80%;
  min-height: 80px;
  margin: 1rem auto;
  padding: 0.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#btnResult {
  display: block;
  width: 80%;
  margin: 1rem auto;
  padding: 0.75rem;
  font-size: 1rem;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#visor {
  background-color: rgba(255, 255, 255, 0.8);
  height: 80px;
  width: 300px;
  border-radius: 10px;
  display: flex;
  align-items: center; /* Texto no meio vertical */
  justify-content: flex-end; /* Texto alinhado à direita */
  padding: 10px;
  font-size: 2rem;
  margin-bottom: 20px;
}

#buttons {
  display: grid;
  grid-template-columns: repeat(4, 70px); /* 4 colunas fixas */
  grid-gap: 10px; /* Espaço entre botões */
}

.button {
  background-color: black;
  color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  border: none;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  height: 70px;
  width: 70px;
}

.button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

#btnResult:hover {
  background: #555;
}

#topicsContainer a {
  display: block;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s ease;
}

#topicsContainer a:hover {
  background: rgba(255, 255, 255, 0.3);
}

footer h3 {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #ccc;
}
