.post-container {
  position: relative;
  margin-bottom: 50px;
}

.alert {
  padding-top: 40px; /* Add space at the top to ensure text does not overlap with char-count and btn-copy */
}

.char-count {
  position: absolute;
  top: 4px;
  right: 10px;
  font-size: 0.9rem;
  color: #555;
}

.btn-copy {
  position: absolute;
  top: 4px !important;
  left: -1px !important;
  font-size: 0.9rem;
  background-color: #007bff;
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 3px;
  box-shadow: 1px 1px 5px rgba(0,0,0,0.1);
}

.btn-copy:hover {
  background-color: #0056b3;
}

.btn-copy.copied {
  background-color: #28a745; /* Bootstrap green color */
  border-color: #28a745;
}

h3, textarea {  /* Assuming your headlines are h3 elements */
  margin-bottom: 15px;  /* Adjust the value as needed */
  margin-top: 15px;  /* Adjust the value as needed */
}

ol {  /* Assuming your headlines are h2 elements */
  margin-top: 50px;  /* Adjust the value as needed */
  margin-bottom: 50px;  /* Adjust the value as needed */
  color: #888;
}

#previewArea a {
  color: #007bff; /* Bootstrap's default link color */
  text-decoration: underline;
}

#charLimit {
  width: 70px;
  margin-right: 10px !important;
}

.btn-secondary {
  margin-top: -5px;
  left: 0;
  font-size: 0.9rem;
  background-color: #007bff;
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 3px;
  box-shadow: 1px 1px 5px rgba(0,0,0,0.1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.subheading {
  font-style: italic;
}
.subtitle {
  animation-name: fadeIn;
  animation-duration: 1s;
}

.jumbotron {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

.btn-copy.copied {
  background-color: #28a745; /* Bootstrap green color */
  border-color: #28a745;
}

.footer {
  color: #d2d2d2;
  left: 0;
  bottom: 0;
  width: 100%;
  padding-top: 2px !important; /* reduce padding-top to half */
  padding-bottom: 2px !important; /* reduce padding-bottom to half */
  font-size: 0.9em;
}

.copied-post .alert {
  background-color: #e6ffe6; /* This is a very light green tint */
}

.line-limited {
    overflow-y: scroll;
    max-height: 30rem;
}

.header {

}

#header-icon {
  height: 3rem;
  align: bottom;
  padding-right: 1rem;
}

label {
  user-select: none;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 90%;
  position: relative;
}

.modal-content h3 {
  margin-top: 0;
  margin-bottom: 15px;
}

.modal-content p {
  margin-bottom: 10px;
  color: #666;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #888;
  line-height: 1;
}

.modal-close:hover {
  color: #333;
}

.modal-error {
  color: #dc3545;
  margin-top: 10px;
  font-size: 0.9rem;
}

#fileProtocolError {
  text-align: left;
}

#fileProtocolError a {
  color: #007bff;
}

/* Mastodon Controls */
.mastodon-controls {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #dee2e6;
}

.mastodon-controls button {
  margin-right: 10px;
}

/* Post Status Message */
.post-status-message {
  display: inline-block;
  margin-left: 10px;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.9rem;
}

.status-success {
  color: #155724;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
}

#errorModalMessage,
.status-error {
  color: #721c24;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
}
#errorModalMessage,
p.status-error {
  padding: 0.3em;
}

/* Visibility Selector */
.visibility-selector {
  margin-bottom: 10px;
}

.visibility-selector label {
  font-weight: 500;
}
