body {
  margin: 0;
  font-family: Inter, sans-serif;
  background-image: url("background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  align-items: center;
  min-height: 100vh; /* garante que o body ocupe toda a tela */
}

header {
  text-align: center;
  background-color: rgba(49, 15, 15, 0.85);
  opacity: 0.95;
  padding: 20px 20px 10px 20px;
  border-radius: 30px;
  max-width: 600px; /* mesma largura do container */
  margin: 50px auto 0 auto;
}
h1 {
  text-align: center;
  color: #99643d;
  font-family: "Quicksand", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 48px;
  letter-spacing: 2px;
  text-shadow: rgb(113, 55, 76) 2px 2px 4px;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px; /* espaço entre elementos, transparente porque não tem fundo */
  max-width: 600px; /* largura consistente */
  margin: -20px auto auto auto;
  padding: 10px;
  opacity: 0.95;
  border-radius: 30px;
}

form {
  display: flex;
  flex-direction: row; /* input e botão lado a lado */
  gap: 10px; /* espaço transparente entre input e botão */
  width: 100%; /* ocupa toda a largura do container pai */
  max-width: 800px; /* mesma largura do header */
  margin: 0 auto; /* centraliza */
  background-color: transparent;
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 400;
  font-style: normal;
}
.theme {
  flex: 3; /* ocupa 2/3 da largura */
  padding: 16px;
  border-radius: 14px;
  border: 1px solid #815d51;
  color: #747171;
  background-color: rgba(49, 15, 15, 1);
  font-weight: 600;
  width: 70%;
}

.submit-button {
  flex: 1; /* ocupa 1/3 da largura */
  padding: 16px;
  border-radius: 14px;
  border: 1px solid #815d51;
  cursor: pointer;
  background-color: #310f0f;
  color: #747171;
  font-weight: 600;
  transition: 0.3s ease-in-out;
  width: 30%;
}
.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(109, 25, 68, 0.4);
}
.instructions {
  font-size: 12px;
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 400;
  font-style: italic;
  color: #815d51;
  display: block;
  margin: -9px 0px 0px -380px;
}
main {
  max-width: 600px;
  margin: 20px auto 0 auto;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: rgba(49, 15, 15, 0.85);
  border-radius: 30px;
}
.poem-output {
  font-size: 18px;
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 500;
  font-style: italic;
  line-height: 1.6;
  background-color: #310f0f;
  padding: 20px;
  max-width: 600px;
  text-align: center;
  display: block;
  margin: 20px auto;
  border-radius: 30px;
  color: #7e5a4e;
  line-height: 1.8;
}
.copy-container {
  margin-top: 0px;
  max-width: 600px;
  align-items: baseline;
  display: flex;
  justify-content: flex-end;
}

.copy-btn {
  width: 45px;
  height: 45px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #815d51;
  background-color: #310f0f;
  color: #a27a8c;
  cursor: pointer;
  font-size: 18px;
  display: flex;

  justify-content: center;
  transition: 0.3s ease;
}

.copy-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(109, 25, 68, 0.5);
}

.material-symbols-outlined {
  font-variation-settings:
    "FILL" 0,
    "wght" 300,
    "GRAD" 0,
    "opsz" 50;
  font-size: 90px; /* tamanho */
  color: #94613c;
  padding: 8px;
}

footer {
  text-align: center;
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 12px;
  color: #a27a8c;
  background-color: rgba(49, 15, 15, 0.85);
  opacity: 0.95;
  padding: 20px;
  opacity: 0.95;
  max-width: 600px;
  margin: 20px auto auto auto;
  border-radius: 15px;
}
a {
  text-decoration: none;
  color: #815d51;
}
a:hover {
  text-decoration: underline;
}
