body {
  font-family: "Lora", serif;
  background-color: #fdf6ec;
  color: #3a2e2e;
  margin: 0;
  padding: 0;
}

header {
  background-color: #f4a261;
  color: #fff;
  padding: 24px;
  text-align: center;
  border-bottom: 5px solid #e76f51;
}

header h1 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  letter-spacing: 0.5px;
}

form {
  max-width: 500px;
  margin: 40px auto;
  padding: 24px;
  background-color: #fff0db;
  border: 2px solid #e9c46a;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.hidden {
  display: none;
}

.tooltip-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

input.topic {
  flex-grow: 1;
  padding: 12px;
  font-size: 1rem;
  font-family: "Lora", serif;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  box-sizing: border-box;
}

.tooltip-icon {
  margin-left: 10px;
  background-color: #dda15e;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  line-height: 24px;
  cursor: pointer;
}

.tooltip-text {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
  position: absolute;
  top: 35px;
  left: 0;
  background-color: #283618;
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  z-index: 10;
  width: 100%;
  pointer-events: none;
  font-family: "Lora", serif;
}

.tooltip-wrapper:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

input.submit-button {
  padding: 12px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  background-color: #2a9d8f;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: "Playfair Display", serif;
}

input.submit-button:hover {
  background-color: #21867a;
}

.result {
  max-width: 500px;
  margin: 20px auto;
  font-style: italic;
  background-color: #fffaf3;
  border: 1px dashed #e9c46a;
  padding: 20px;
  border-radius: 10px;
  white-space: pre-line;
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  line-height: 1.5;
  color: #4b3d3d;
}

footer {
  text-align: center;
  font-size: 0.9rem;
  margin: 40px auto;
  padding: 20px;
  color: #6c584c;
  font-family: "Lora", serif;
}

footer a {
  color: #bc6c25;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.blinking {
  animation: blinkingText 1s infinite;
}

@keyframes blinkingText {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
  100% {
    opacity: 1;
  }
}
