#avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px dashed #66aaaa;
  background-color: transparent;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  margin: auto;
}
#avatar.has-img {
  border: 0;  
}

.markdown p {
  white-space: pre-line;
}

.markdown ul, ul.rtree {
  list-style-type: square;
  padding-inline-start: 20px !important;
  background-color: transparent !important; /* so we can override bg colors */
}

.markdown ul a, ul.rtree a, .link {
  /* match brutopia's "p a" colors */
  color: var(--link-color) !important;
  font-weight: 600 !important;
}

.card-text .truncate {
 -webkit-line-clamp: 3;
 display: -webkit-box;
 -webkit-box-orient: vertical;
 overflow: hidden;
}

.thumbnail {
  height: 150px;
}
@media (max-width: 800px) {
  .thumbnail {
    height: 100px;
  }
}

textarea {
  field-sizing: content;
}

/* https://stackoverflow.com/questions/20726174/placeholder-for-contenteditable-div 
  [id="bio"][contenteditable=true]:empty:before{
*/
[contenteditable=true]:empty:before{
  content: attr(placeholder);
  pointer-events: none;
  display: block; /* For Firefox */
  color: #aaa;
}
/*
[contenteditable=true]:empty:focus::before {
    content: "";
}
*/
[contenteditable=true] {
  outline: 0px solid transparent;
}

#tags.limit-lines {
  max-height: 4.5rem; /* Adjust based on badge height */
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
}
#tags.limit-lines::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

#upvote-btn .fa-circle, #downvote-btn .fa-circle {
  color: #ccc;
}
#upvote-btn.clicked .fa-circle {
  color: rgba(var(--bs-success-rgb), 1);
}
#downvote-btn.clicked .fa-circle {
  color: rgba(var(--bs-warning-rgb), 1);
}
