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;
  }
}

.conversion-button {
  display: flex;
  margin: 1.1rem 0;
}

.error {
  color: red;
}

.output-area {
  margin-block: 10px;
}

#output {
  overflow-y: auto;
  resize: none; /* Disable manual resizing for consistent behavior */
  min-height: 10rem;
  background-color: #e9ecef;
}

.monospace-output {
  font-family: monospace;
  margin-bottom: 6px;
}

.copy-feedback {
  color: green;
  display: none;
}

::placeholder {
  color: #888!important;
  opacity: 1; 
}

/* Smooth transition for elements that toggle visibility */
#targetContainer,
#ariaHiddenContainer,
#altTextContainer {
  max-height: 300px; /* Set a value to cover the full expanded height */
  opacity: 1;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  /*overflow: hidden;*/
}

/* Hide elements smoothly */
.hidden {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

/* Instructions slide-down effect */
#instructions {
  transition: max-height 0.5s ease, opacity 0.5s ease;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
}

#instructions.show {
  max-height: 500px; /* Adjust as needed */
  opacity: 1;
}
