[hidden] {
  display: none !important;
}

main > section {
  margin-block-start: 0;
}

.hint-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.hint-row button {
  min-width: 24ch;
}

.input-group {
  display: flex;
  margin: 2rem 0.5rem;
}

.button-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.centered {
  justify-content: center;
  gap: 1rem;
}

.outlined {
  background: none;
  color: inherit;
  border: 2px solid currentColor;
}

.field-row {
  display: grid;
  grid-template-columns: 10ch 1fr;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  text-align: left;
}

.error {
  color: red;
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.spinner {
  width: 2rem;
  height: 2rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

footer {
  margin-top: 4rem;
  font-size: 1.4rem;
}

footer p {
  text-align: center;
}

textarea {
  min-height: 30rem;
  resize: vertical;
}

@media (max-width: 600px) {
  .hint-row {
    flex-direction: column;
    align-items: center;
  }
}
