tml {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(180deg, #2b1e5c 0%, #1a1a2e 100%);
  font-family: 'Courier New', monospace;
  color: #f8f8f8;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

#top_banner {
  background: #093B5D;
  display: none;
}

#background {
  background: radial-gradient(circle, rgba(255,182,193,0.1), rgba(0,0,0,0.9));
  background-size: 100% auto;
  background-repeat: repeat;
  background-attachment: local;
}

.msgWrapper {
  display: flex;
  width: 100%;
  align-items: center;
}
.msgWrapper:has(.received) {
  justify-content: flex-start;
}
.msgWrapper:has(.sent) {
  justify-content: flex-end;
}

.allMessages {
  display: block;
  margin: 5px;
  padding: 12px;
  font-family: 'Courier New', monospace;
  font-size: 10pt;
  max-width: 80%;
  clear: both;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  color: #ffccff;
  text-shadow: 0 0 3px #ff99ff;
  box-shadow: 0 0 5px #ff66cc;
  position: relative;
}
.allMessages:hover {
  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;
  border-right: 3px solid #ff66cc;
  background: rgba(255, 102, 204, 0.1);
  color: #ffccff;
  position: relative;
}

.received {
  display: inline-block;
  border-radius: 15px 15px 15px 2px;
  border-left: 3px solid #66ffcc;
  background: rgba(102, 255, 204, 0.1);
  color: #ffffff;
  position: relative;
}

.msgBody {
  font-size: 12pt;
  line-height: 1.6;
  text-align: justify;
}

.senderInfo {
  font-weight: bold;
  font-size: 10pt;
  color: #00ffff;
  text-shadow: 0 0 4px #00ffff;
  font-style: italic;
}

#loadMore {
  color: #ff99ff;
  text-align: center;
  cursor: pointer;
  font-size: 11pt;
}
#loadMore:hover {
  text-decoration: underline;
}

#timestamp {
  clear: both;
  font-size: 9pt;
  font-family: arial;
  color: #bbbbff;
  font-style: italic;
  max-width: 75px;
}

#settings {
  background-image: url('https://grapemane.neocities.org/assets/images/gear.png');
  background-size: contain;
  background-repeat: no-repeat;
  width: 24px;
  height: 24px;
  filter: invert(1) brightness(2);
}

#scrollToBottom {
  background-color: #ff66cc;
  color: #fff;
  padding: 6px 10px;
  position: fixed;
  bottom: 20px;
  right: 20px;
  border-radius: 30px;
  box-shadow: 0 0 10px #ff66cc;
  font-size: 10pt;
  cursor: pointer;
}

.ctxMenuOption {
  background: rgba(0, 0, 0, 0.7);
  color: #ff99ff;
  padding: 6px;
  border-radius: 4px;
}
.ctxMenuOption:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.mod, .owner, .beta {
  font-size: 9pt;
  font-weight: bold;
  text-shadow: 0 0 3px #fff;
}
.mod::before {
  color: #00ffff;
}
.owner::before {
  color: #ff3333;
}
.beta::before {
  color: #ccff33;
}

#settingsWindow {
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid #ff66cc;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 20px #ff66cc;
}

.pinned {
  position: relative;
}
.pinned > .allMessages {
  position: relative;
}
.pinned > .allMessages::after {
  content: "📌";
  display: inline-block;
  position: absolute;
  right: 2px;
  top: 2px;
}

#replyBanner {
  color: #ff66cc;
  font-style: italic;
  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 10px;
}

.emoji {
  font-size: 1.2em;
  transition: transform 0.2s;
}
.emoji:hover {
  transform: scale(1.4);
}

#emojiTray {
  background: #1a1a2e;
  border: 1px solid #ff66cc;
  color: #fff;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 0 15px #ff66cc;
}

#is_typing {
  height: 15px;
  border-radius: 7px;
  background-color: #EEE;
  box-shadow: 1px 1px 1px #777;
  color: #66ffcc;
  font-style: italic;
  padding: 6px;
  animation: typing-pulse 1s infinite alternate;
}
@keyframes typing-pulse {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

#input {
  background-color: transparent;
  border: none;
  border-bottom: 2px solid #ff99ff;
  color: #ffffff;
  width: 100%;
  font-family: 'Courier New', monospace;
  font-size: 12pt;
  height: 2rem;
  padding: 8px;
  outline: none;
}
#input::placeholder {
  color: #ff99ff;
  opacity: 0.6;
}
html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(180deg, #2b1e5c 0%, #1a1a2e 100%);
  font-family: 'Courier New', monospace;
  color: #f8f8f8;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

#top_banner {
  background: #093B5D;
  display: none;
}

#background {
  background: radial-gradient(circle, rgba(255,182,193,0.1), rgba(0,0,0,0.9));
  background-size: 100% auto;
  background-repeat: repeat;
  background-attachment: local;
}

.msgWrapper {
  display: flex;
  width: 100%;
  align-items: center;
}
.msgWrapper:has(.received) {
  justify-content: flex-start;
}
.msgWrapper:has(.sent) {
  justify-content: flex-end;
}

.allMessages {
  display: block;
  margin: 5px;
  padding: 12px;
  font-family: 'Courier New', monospace;
  font-size: 10pt;
  max-width: 80%;
  clear: both;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  color: #ffccff;
  text-shadow: 0 0 3px #ff99ff;
  box-shadow: 0 0 5px #ff66cc;
  position: relative;
}
.allMessages:hover {
  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;
  border-right: 3px solid #ff66cc;
  background: rgba(255, 102, 204, 0.1);
  color: #ffccff;
  position: relative;
}

.received {
  display: inline-block;
  border-radius: 15px 15px 15px 2px;
  border-left: 3px solid #66ffcc;
  background: rgba(102, 255, 204, 0.1);
  color: #ffffff;
  position: relative;
}

.msgBody {
  font-size: 12pt;
  line-height: 1.6;
  text-align: justify;
}

.senderInfo {
  font-weight: bold;
  font-size: 10pt;
  color: #00ffff;
  text-shadow: 0 0 4px #00ffff;
  font-style: italic;
}

#loadMore {
  color: #ff99ff;
  text-align: center;
  cursor: pointer;
  font-size: 11pt;
}
#loadMore:hover {
  text-decoration: underline;
}

#timestamp {
  clear: both;
  font-size: 9pt;
  font-family: arial;
  color: #bbbbff;
  font-style: italic;
  max-width: 75px;
}

#settings {
  background-image: url('https://grapemane.neocities.org/assets/images/gear.png');
  background-size: contain;
  background-repeat: no-repeat;
  width: 24px;
  height: 24px;
  filter: invert(1) brightness(2);
}

#scrollToBottom {
  background-color: #ff66cc;
  color: #fff;
  padding: 6px 10px;
  position: fixed;
  bottom: 20px;
  right: 20px;
  border-radius: 30px;
  box-shadow: 0 0 10px #ff66cc;
  font-size: 10pt;
  cursor: pointer;
}

.ctxMenuOption {
  background: rgba(0, 0, 0, 0.7);
  color: #ff99ff;
  padding: 6px;
  border-radius: 4px;
}
.ctxMenuOption:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.mod, .owner, .beta {
  font-size: 9pt;
  font-weight: bold;
  text-shadow: 0 0 3px #fff;
}
.mod::before {
  color: #00ffff;
}
.owner::before {
  color: #ff3333;
}
.beta::before {
  color: #ccff33;
}

#settingsWindow {
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid #ff66cc;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 20px #ff66cc;
}

.pinned {
  position: relative;
}
.pinned > .allMessages {
  position: relative;
}
.pinned > .allMessages::after {
  content: "📌";
  display: inline-block;
  position: absolute;
  right: 2px;
  top: 2px;
}

#replyBanner {
  color: #ff66cc;
  font-style: italic;
  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 10px;
}

.emoji {
  font-size: 1.2em;
  transition: transform 0.2s;
}
.emoji:hover {
  transform: scale(1.4);
}

#emojiTray {
  background: #1a1a2e;
  border: 1px solid #ff66cc;
  color: #fff;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 0 15px #ff66cc;
}

#is_typing {
  height: 15px;
  border-radius: 7px;
  background-color: #EEE;
  box-shadow: 1px 1px 1px #777;
  color: #66ffcc;
  font-style: italic;
  padding: 6px;
  animation: typing-pulse 1s infinite alternate;
}
@keyframes typing-pulse {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

#input {
  background-color: transparent;
  border: none;
  border-bottom: 2px solid #ff99ff;
  color: #ffffff;
  width: 100%;
  font-family: 'Courier New', monospace;
  font-size: 12pt;
  height: 2rem;
  padding: 8px;
  outline: none;
}
#input::placeholder {
  color: #ff99ff;
  opacity: 0.6;
}

pre:has(>code) {
  margin: 5px;
  background-color: rgba(0, 0, 0, 0.25);
}

pre:has(>code) {
  margin: 5px;
  background-color: rgba(0, 0, 0, 0.25);
}


