body {
  font-family: Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}
.page-header {
  background-color: #333;
  color: #fff;
  padding: 3rem 0 1.5rem;
  margin: 0 0 2rem;
}
.page-header h1 {
  font-size: 2.25rem;
  line-height: 1.2;
  transition: all 0.5s ease;
}
.form-label {
  font-weight: 800;
}
.wrapper {
  max-width: 768px;
  margin: auto;
}
@media (max-width: 767px) {
  .wrapper {
    max-width: 100%;
    margin: auto 20px;
  }
  .page-header h1 {
    font-size: 2.5rem;
  }
}
#converterType {
  width: auto;
}
.conversion-button {
  display: flex;
  margin: 1.1rem 0;
}
.error {
  color: red;
}
#htmlTableConverter textarea,
#wordTableConverter textarea,
#file-input {
  border-color: var(--bs-gray);
}
#htmlTableConverter textarea,
#wordTableConverter textarea {
  background: var(--bs-gray-100);
}
.output-area {
  margin-block: 10px;
}
#json-output,
#htmlTableConverter textarea,
#wordTableConverter textarea {
  font-family: monospace;
  white-space: pre-wrap;
  font-size: 1rem;
  padding: 12px 20px;
  border-radius: 6px;
  min-height: 12rem; /* Minimum height */
  overflow-y: auto;
  resize: auto;
}

#json-output {
  background-color: rgb(55 65 81) !important;
  border: 1px solid #ddd;
  color: #b1b7c3;
  max-height: 400px;
}
.monospace-output {
  font-family: monospace;
  font-size: 1rem;
  margin-bottom: 6px;
}
.copy-feedback {
  color: green;
  display: none;
}
#targetContainer,
#ariaHiddenContainer,
#altTextContainer {
  transition: opacity 0.3s ease;
}
#ariaHiddenContainer.hidden,
#altTextContainer.hidden,
#targetContainer.hidden {
  opacity: 0;
  pointer-events: none;
  display: none;
}
#table-instructions,
#excel-instructions,
#word-instructions {
  transition: max-height 0.5s ease, opacity 0.5s ease;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
}
#table-instructions.show,
#excel-instructions.show,
#word-instructions.show {
  max-height: 500px; /* Adjust as needed */
  opacity: 1;
}
