.main-window {
  position: absolute;
  display: flex;
  flex-direction: column;
  left: 0;
  top: 0;
  background: ghostwhite;
  max-height: 100%;
}

.app-window {
  overflow-y: scroll;
  overflow-x: auto;
  flex-direction: column-reverse;
  flex: 1;
}

.message-edit-bottom-toolbar {
  border: 1px solid #444444 !important;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}
.message-edit-wrapper {
}
.message-edit-window {
  height: 100px !important;
}
.message-input-text-style-btn {
  display: block;
  width: 30px;
  height: 30px;
  background-color: whitesmoke;
  border: 1px solid #444444;
}

.message-input-window {
  background: #d8d8d8;
  border-radius: 10px;
  margin-bottom: 10px;
}

.chat-display-window {
  width: 99%;
}

.message:hover {
  backdrop-filter: brightness(95%);
}
.message-author {
  color: #3a3939;
  text-decoration: none;
}

.message-timestamp {
  color: #444444;
  font-size: smaller;
  align-content: center;
}

.message-text {
  color: #3a3939;
  text-wrap: wrap;
  width: 85%;
  p {
    margin-bottom: 0px !important;
  }
}

.message-date-separator-datespan {
  border-color: #444444;
  border-radius: 10px;
  border-width: 1px;
  border-style: solid;
  padding-inline: 10px;
  font-size: 80%;
}

.message-date-separator {
  display: flex;
  align-items: center;
  text-align: center;
}

.message-date-separator::before,
.message-date-separator::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #000;
}

.message-date-separator:not(:empty)::before {
  margin-left: 5%;
  margin-right: 1%;
}

.message-date-separator:not(:empty)::after {
  margin-right: 5%;
  margin-left: 1%;
}

.message-replies-and-date {
  a {
    font-style: italic;
  }
  font-size: smaller;
}
.message-reply-date {
  font-style: italic;
}

.message-thumbnail-col {
  flex: 0 0 auto;
  width: 48px; /* 32x32 thumbnail? */
}

.reply-react-toolbar-btn {
  font-size: 70% !important;
}
.reaction-link {
  border-width: 0;
  font-size: small;
  background-color: rgba(206, 206, 206, 0.46) !important;
}
.emoji-picker-link {
  text-decoration: none;
  font-size: medium;
}

span.item:empty:before {
  content: "\200b";
}

.clear-badge {
  background-color: #ddd;
}

.reaction-reply-toolbar {
  overflow: visible;
  /*max-height: 24px;*/
}

.btn-smaller {
  border-color: #3a3939;
  max-height: 24px !important;
  max-width: 24px !important;
  padding: 1px 5px 3px;
}

.taut-sidebar {
  width: 280px;
  overflow: scroll;
}

.user-browse-link {
  text-decoration: none;
  font-size: medium;
}

.center-content {
  height: 100vh;
}

.img-profile-card {
  display: block;
  max-width: 40px;
  max-height: 40px;
  width: auto;
  height: auto;
  border-radius: 4px;
  border: 1px solid slategrey;
}
.img-profile-small {
  display: block;
  max-width: 36px;
  max-height: 36px;
  width: auto;
  height: auto;
  border-radius: 9px;
  border: 1px solid slategrey;
}
.img-profile-smaller {
  display: block;
  max-width: 24px;
  max-height: 24px;
  width: auto;
  height: auto;
  border-radius: 6px;
  border: 1px solid slategrey;
}

.profile-pic-preview {
  display: block;
  max-height: 100px;
  max-width: 100px;
  width: auto;
  height: auto;
  border-radius: 8px;
  border: 2px solid slategrey;
}

.channel-title {
  text-decoration: none;
}
.channel-title-replies-navbar {
  text-decoration: none;
  font-size: smaller;
}

.add-reaction-button {
}

.user-mention-picker {
  text-decoration: none;
  font-size: medium;
  color: #444444;
}

.search-button {
  border-radius: 8px;
  /*background-color: transparent;*/
}

.search-result-list {
  max-height: 300px;
}

.message-highlight {
  background-color: ghostwhite;
  animation: Highlight 5s ease-in-out forwards;
}

@keyframes Highlight {
  from {
    background-color: #ffff99;
  }
  to {
    background-color: ghostwhite;
  }
}
.reply-and-date-widget {
  align-content: center;

  a {
    text-decoration: none;
  }
}

.edit-message-textarea {
  resize: none;
}

.textarea {
  border: 1px solid #ccc;
  font-family: inherit;
  font-size: inherit;
  padding: 1px 6px;
}

.width-machine {
  /*   Sort of a magic number to add extra space for number spinner */
  padding: 0 1rem;
}

.ql-container.ql-snow {
  font-family: var(--bs-font-sans-serif), sans-serif !important;
  font-size: var(--bs-body-font-size) !important;
  border: 1px solid #444444 !important;
}

.ql-toolbar.ql-snow {
  border: 1px solid #444444 !important;
  border-top-right-radius: 10px;
  border-top-left-radius: 10px;
}
.message-and-toolbar {
  display: flex;
}

[taut-tooltip] {
  position: relative;
  display: inline-block;
}

[taut-tooltip]::before {
  /* caret */
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px 6px 0 6px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.7) transparent transparent transparent;
  z-index: 99;
  opacity: 0;
  transition: 0s opacity;
}

[taut-tooltip]::after {
  /* body */
  content: attr(taut-tooltip);
  position: absolute;
  left: 50%;
  top: -6px;
  transform: translateX(-50%) translateY(-100%);
  background: rgba(0, 0, 0, 0.7);
  text-align: center;
  color: #fff;
  padding: 4px 2px;
  font-size: 12px;
  min-width: 80px;
  border-radius: 5px;
  pointer-events: none;
  z-index: 99;
  opacity: 0;
  transition: 0s opacity;
}

[taut-tooltip]:hover::after,
[taut-tooltip]:hover::before {
  transition: 0s opacity;
  transition-delay: 1s;
  opacity: 1;
}

#navbar-wrapper {
  width: 100%;
}
#reaction-reply-toolbar {
  visibility: hidden;
}
.channel-title-and-topic {
  font-size: 1.25rem;
}
#thread-topic {
  font-size: 1rem;
}

.search-kbd-label {
  aspect-ratio: 1/1;
}
.reply-wrapper {
  margin-left: 1.5rem !important;
}
@media screen and (width <= 768px) {
  .message-and-toolbar {
  }
  .message-text {
    width: 100%;
  }
  .reply-wrapper {
    margin-left: 0.75rem !important;
  }
  .ql-container.ql-snow {
    font-size: 95% !important;
  }
}
@media screen and (width <=600px) {
  .channel-title-and-topic {
    font-size: 95% !important;
  }
  #thread-topic {
    font-size: smaller;
  }
  #search-btn {
  }
  #reaction-reply-toolbar {
    visibility: visible !important;
  }
  .reply-wrapper {
    margin-left: 0.25rem !important;
  }
  .ql-container.ql-snow {
    font-size: 90% !important;
  }
}
@media screen and (width <= 400px) {
  body {
    font-size: 85%;
  }
  .ql-container.ql-snow {
    font-size: 85% !important;
  }
  .message-date-separator-datespan {
    padding-inline: 5px;
  }
  .search-label {
    font-size: smaller;
  }
  #search-btn {
  }
  .search-kbd-label {
    display: none;
  }

  #message-send {
    font-size: 0.75rem !important;
  }
  .img-profile-small {
    width: 25px;
    height: 25px;
    border-radius: 6px;
  }

  .message-thumbnail-col {
    width: 30px;
  }
  .ql-toolbar.ql-snow {
    padding: 4px !important;
  }
}

#loading-indicator {
  height: 50vh;
  width: 80vw;
  transition-duration: 0.25s;
  border-radius: 10px;
  background-color: rgba(199, 198, 198, 0.75);
}

::backdrop {
  backdrop-filter: blur(5px);
}
#popover-blocker {
  position: fixed;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: none;
  left: 0;
  right: 0;
  background: transparent;
  pointer-events: all;
}

.update-trigger {
}

.reply-button {
  background: none !important;
  border: none;
  padding: 0 !important;
  cursor: pointer;
}

.text-dark-gray {
  color: #777777;
}

.user-menu-loader-show {
  display: block;
  z-index: 99;
  overflow-y: auto;
  border-radius: 10px;
  width: 50vw;
  max-width: 50vw;
  max-height: 66vh;
}

.user-menu-loader-show-no-scroll {
  display: flex;
  flex-direction: column;
  z-index: 99;
  border-radius: 10px;
  overflow: hidden;
  width: 50vw;
  max-width: 50vw;
}

.websocket-loader {
  border-radius: 10px;
}

.user-menu-scrollable-content {
  overflow-y: auto;
  max-height: 66vh;
  min-height: 0;
}

.pointer {
  cursor: pointer;
}

details {
  display: block;
  width: fit-content;
}

summary {
  font-weight: lighter;
  text-align: right;
  width: fit-content;
}

details[open] {
  width: fit-content;
}

details[open] summary {
  text-align: right;
}
details:last-of-type summary {
  list-style: none;
  &::after {
    content: "⏵";
    font-weight: lighter;
    margin-inline-start: 5px;
  }
  [open] &::after {
    content: "⏷";
    font-weight: lighter;
  }
}
details:last-of-type summary::-webkit-details-marker {
  display: none;
}

.badge-online {
  background-color: #008a00;
}
.badge-away {
  background-color: orange;
}

.badge-busy {
  background-color: red;
}

.badge-offline {
  background-color: black;
}

.badge-user-browser-online {
  background-color: #008a00;
  transform: translate(-50%, -50%) !important;
  padding: 0.4rem !important;
}
.badge-user-browser-away {
  background-color: orange;
  transform: translate(-50%, -50%) !important;
  padding: 0.4rem !important;
}
.badge-user-browser-busy {
  background-color: red;
  transform: translate(-50%, -50%) !important;
  padding: 0.4rem !important;
}
.badge-user-browser-offline {
  background-color: black;
  transform: translate(-50%, -50%) !important;
  padding: 0.4rem !important;
}

