.allMessages {
   display: block;
   margin: 5px;
   padding: 10px;
   font-family: arial;
   font-size: 10pt;
   max-width: 80%;
   clear: both;
   box-shadow: 1px 1px 2px #555;
}
 .allMessages:hover {
   filter: brightness(85%);
   -webkit-filter: brightness(85%);
}
.allMessages.containsOnlyEmojis .emoji {
    height: 50px;
}
.allMessages.pm {
  padding-top: 26px;
}
.allMessages.pm:before {
  content: "Private Message";
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 16px;
  width: calc(100% - 26px);
  line-height: 16px;
  position: absolute;
  right: 26px;
  top: 5px;
  font-size: 12px;
  font-weight: bolder;
  opacity: 0.5;
}
.allMessages.pm:after {
  content: " ";
  display: block;
  height: 16px;
  width: 16px;
  position: absolute;
  right: 5px;
  top: 5px;
  background-image: url("/media/lock.svg");
  background-size: 100% 100%;
  opacity: 0.5;
}
 .sent {
   display: inline-block;
   border-radius: 15px 15px 2px 15px;
   background-color: #CCC;
   color: #111;
   position: relative;
}
.senderInfo {
   font-style: italic;
   color: #555;
   font-weight: 500;
}
 .recieved {
   display: inline-block;
   border-radius: 15px 15px 15px 2px;
   background-color: #04b58f;
   color: #FFF;
   position: relative;
}
 .recieved > .senderInfo {
   font-style: italic;
   color: #02755d;
}
 .msgBody {
   text-align: justify;
}
 #background {
   background-color: none;
   background-image:none;
   background-size: 50%;
   background-attachment: local;
   background-repeat: repeat;
}
 #input, #nameEntry {
   background-color: #AAA;
   border-radius: 0;
}
 #input:empty::before {
   content: "Send a message...";
}
 .owner {
   background-color: transparent;
   background-image: url('/media/owner.png');
   background-size: 100% 100%;
}
 .mod {
   background-color: transparent;
   background-image: url('/media/mod.png');
   background-size: 100% 100%;
}
 #timestamp {
   clear: both;
   font-family: arial;
   font-size: 10pt;
   text-shadow: 1px 1px #FFF, -1px -1px #FFF;
   color: #000;
   max-width: 75px;
}
 #textInput {
   background-color: #FFF;
   background-image: url('/media/doodle.jpg');
   background-size: 100% auto;
   background-attachment: local;
   background-repeat: repeat;
}
 .msgWrapper {
   display: flex;
   width: 100%;
   align-items: center;
}
 .msgWrapper:has(.received) {
   justify-content: flex-start;
}
 .msgWrapper:has(.sent) {
   justify-content: flex-end;
}
 .pinned {
   position: relative;
}
 .pinned:after {
   display: none;
   content: "";
}
.pinned > .allMessages {
  position: relative;
}
.pinned > .allMessages::after {
   display: inline-block;
   position: absolute;
   right: 2px;
   top: 2px;
   content: "📌";
}
#top_banner {
    display:none;
  background:none;
}
#replyBanner {
  font-size: 10pt;
  display: inline-block;
  background-color: #777;
  border-radius: 8px 8px 0 0;
  box-shadow: 1px 1px 3px #AAA;
  margin-left: 15px;
  padding: 2px;
  padding-right: 10px;
  padding-left: 10px;
}
#emojiTray {
  background-color: #AAA;
}
#is_typing {
  height: 15px;
  border-radius: 7px;
  background-color: #EEE;
  box-shadow: 1px 1px 1px #777;
}
#is_typing > span {
  background-color: #777;
}
