.title {
  font-size: 48px;
  font-weight: 700;
  color: #27272a;
  margin-bottom: 16px;
}

.container {
  max-width: 600px;
  margin: auto;
  padding: 20px;
}

textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  box-sizing: border-box;
  min-height: 100px;
  overflow-y: hidden; /* Prevents scroll bar flash */
  resize: vertical; /* Allows vertical resize */
  word-wrap: break-word; /* Ensures text wraps */
}

button {
  padding: 10px 20px;
  margin-right: 10px;
}



/* ... existing styles ... */

.spinner {
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top: 3px solid #3498db;
  width: 14px;
  height: 14px;
  animation: spin 1s linear infinite;
  display: inline-block;
  /* or other display styles, but don't force visibility */
  vertical-align: middle;
  margin-left: 10px;
  /* Space between button and spinner */
}

[hidden] {
  display: none !important;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

#charCount {
  margin-top: 5px;
}

.context-help {
  font-style: italic;
  font-size: 15px;
}

.disclaimer {
  font-style: bold;
  font-size: 18px;
}


footer {
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  background-color: #f2f2f2; /* You can change the background color */
  color: #000; /* And the text color */
}

footer a {
  color: #007bff; /* Color for the link */
  text-decoration: none;
}

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

.code-output {
  white-space: pre-wrap; /* To maintain formatting and wrap text */
  border: 1px solid #ccc; /* Border for visibility */
  padding: 10px; /* Padding around the content */
  overflow-x: auto; /* Scroll horizontally if needed */
  min-height: 70px; /* Minimum height */
  width: 100%; /* Take full width of the container */
  margin: auto; /* Center the div if it's smaller than the max width */
  line-height: 1.5; /* Line height for readability */
}
