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

.conversion-button {
  display: flex;
  margin: 1.1rem 0;
}
.error {
  color: red;
  padding-top: 6px;
}
.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;
}
.radio-group {
  display: flex;
  justify-content: flex-start;
  gap: 3rem;
}
#result-panel {
  margin-top: 20px;
  padding: 10px;
  /*background: #e0f7fa;*/
  background-color: #f4f4f4;
  border-left: 5px solid #007fc2;
  min-height: 200px;
  transition: all 0.5s ease;
}
#result-panel {
  margin: 0;
  padding: 30px 40px;
  flex: 1 1 50%;
}
.result-category {
  text-align: left;
}
.results {
  border-top: 1px solid #ccc;
  margin-top: 20px;
  text-align: center;
}
.results p {
  font-family: "Roboto Condensed", sans-serif;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #ccc;
  padding: 10px 0;
  margin: 0;
}
.results .holidays {
  display: flex;
  flex-direction: column;
  justify-column: flex-start;
  text-align: left;
}
.results p:first-child {
  flex-wrap: wrap;
}
.results p:first-child span {
  flex: 0 1 auto;
  flex-wrap: wrap;
}
.result-bold {
  font-weight: bold;
}
.results .result-comment {
  display: block;
  border: none;
  padding-left: 60px !important;
  border-radius: 6px;
  font-weight: bold;
  text-align: left;
  position: relative;
}
.results .comment-success {
  background-color: #d4edda; /* Light Green */
  color: #155724;
  margin-top: 20px;
  padding: 20px;
}
.results .comment-warning {
  background-color: #fff3cd; /* Light Yellow */
  color: #856404;
  margin-top: 20px;
  padding: 20px;
}
.results .comment-danger {
  background-color: #f8d7da; /* Light Red */
  color: #721c24;
  margin-top: 20px;
  padding: 20px;
}
.results .comment-icon {
  position: absolute;
  left: 20px;
  margin-right: 10px;
  font-size: 2rem;
  opacity: 0.5;
}

@media (max-width: 767px) {
  .wrapper {
    max-width: 100%;
    margin: auto 20px;
  }
  .page-header h1 {
    font-size: 2.5rem;
  }
  #result-panel {
    margin-top: 20px;
    margin-inline: -20px;
    padding: 20px;
    border-left: none;
    min-height: 200px;
  }
  .results p {
    font-family: "Roboto Condensed", sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 6px;
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
    margin: 0;
  }
  .result-category {
    text-align: left;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #666;
  }
}
