#user-content a {
  color: #3598DB !important;
  text-decoration: underline;
  font-style: italic;
  transition: color 0.3s ease;
}

#user-content a:hover {
  color: #2980B9 !important;
}

#user-content blockquote {
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-left: 0.25rem solid #d1d5db;
  border-radius: 0.25rem;
  font-style: italic;
}

#user-content blockquote p {
  margin-bottom: 0;
}

#user-content p:not([style*="color"]) {
  margin-bottom: 1.5rem;
  color: inherit !important;
}

#user-content h1:not([style*="color"]), 
#user-content h2:not([style*="color"]), 
#user-content h3:not([style*="color"]), 
#user-content h4:not([style*="color"]), 
#user-content h5:not([style*="color"]), 
#user-content h6:not([style*="color"]) {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: inherit !important;
}

#user-content img {
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

#user-content ul,
#user-content ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

#user-content ul {
  list-style-type: disc;
}

#user-content ol {
  list-style-type: decimal;
}

#user-content li:not([style*="color"]) {
  margin-bottom: 0.5rem;
  line-height: 1.7;
  /* Optional: add a little padding for better readability */
  padding-left: 0.25rem;
  color: inherit !important;
}

#user-content hr {
  margin-bottom: 2rem;
  border: none;
  border-top: 1px solid #d1d5db;
  margin-top: 2rem;
}

/* Strikethrough text styling */
#user-content strike,
#user-content s,
#user-content del {
  text-decoration: line-through;
  opacity: 0.7;
  color: inherit !important;
}

/* Override any inline color styles, but allow styled spans */
#user-content *:not([style*="color"]) {
  color: inherit !important;
}

/* Allow styled spans to keep their colors - inline styles will take precedence */

#user-content div:not([style*="color"]) {
  color: inherit !important;
}

#user-content strong:not([style*="color"]) {
  color: inherit !important;
}

#user-content em:not([style*="color"]) {
  color: inherit !important;
}

#user-content code:not([style*="color"]) {
  color: inherit !important;
}

#user-content pre:not([style*="color"]) {
  color: inherit !important;
}

@media (max-width: 768px) {
  #user-content {
    font-size: 1rem;
  }
}

.selected-image {
  border: 3px solid pink;
  box-shadow: 0 0 5px pink;
}