html,
body {
	width: 100%;
	padding: 0px;
	margin: 0px;
	border: none;
	display: flex;
	flex-direction: column;
	background-color: #000;
	overflow: hidden;
	height: 100vh;
    overflow-y: hidden;
	overscroll-behavior: contain;
	font-optical-sizing: auto;
	font-weight: 400;
	font-stretch: normal;
	font-style: normal;
	font-variation-settings:
		"wdth" 98;
	font-size: 16px;
}

* {
	font-family: "IBM Plex Sans", sans-serif;
	color: #efefef;
}

#loadingScreen {
	gap: 1em;
	width: 100%;
	height: 100%;
	display: flex;
	position: absolute;
	text-align: center;
	align-items: center;
	justify-content: center;
	background-color: #000;
	flex-direction: column;
	z-index: 999999;
	transition: opacity 0.5s linear;
	opacity: 1;
}

#loadingScreen.loaded {
	opacity: 0;
	pointer-events: none;
}

#loadingScreen .icon {
	max-height: 25%;
}

.hidden {
	display: none !important;
}

::-webkit-scrollbar {
	width: 8px;
}

::-webkit-scrollbar-track {
	background: #000000;
}

::-webkit-scrollbar-thumb {
	background: #252525;
}

::-webkit-scrollbar-thumb:hover {
	background: #555;
}

/* Add this to your CSS file */

.voice-modal {
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	display: flex;
	justify-content: center;
	align-items: center;
  }
  
  .voice-modal-content {
	background-color: #18181b;
	padding: 20px;
	border-radius: 8px;
	width: 400px;
	max-width: 90%;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  .voice-modal h3 {
	margin-top: 0;
	color: #efeff1;
  }
  
  .voice-controls {
	margin: 20px 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
  }
  
  .record-button {
	padding: 10px 15px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-weight: bold;
  }
  
  #startRecording {
	background-color: #9147ff;
	color: white;
  }
  
  #stopRecording {
	background-color: #eb0400;
	color: white;
  }
  
  .recording-time {
	margin-left: 10px;
	font-family: monospace;
	font-size: 18px;
  }
  
  .voice-preview {
	margin: 15px 0;
  }
  
  .voice-preview audio {
	width: 100%;
  }
  
  .voice-actions {
	display: flex;
	justify-content: space-between;
	margin-top: 20px;
  }
  
  .voice-action-button {
	padding: 8px 16px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
  }
  
  #cancelRecording {
	background-color: #303030;
	color: white;
  }
  
  #uploadRecording {
	background-color: #00b5ad;
	color: white;
  }
  
  button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
  }
  .transcript {
	margin: 15px 0;
	border-top: 1px solid #3a3a3d;
	padding-top: 10px;
  }
  
  .transcript h4 {
	margin-top: 0;
	margin-bottom: 5px;
	color: #efeff1;
  }
  
  .transcript-text {
	background-color: #2a2a2d;
	padding: 10px;
	border-radius: 4px;
	max-height: 100px;
	overflow-y: auto;
	white-space: pre-wrap;
	word-break: break-word;
	font-size: 14px;
  }
  .update-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #9147ff;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    max-width: 300px;
}

.update-notification p {
    margin: 0 0 10px 0;
}

.update-notification button {
    background-color: white;
    color: #9147ff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}
#topBar {
	position: absolute;
	display: flex;
	width: 100%;
	min-height: 1.75em;
	height: 1.75em;
	padding-top: 0.5em;
	z-index: 999999;
}

#channelList {
	flex-grow: 1;
	overflow-x: auto;
	overflow-y: hidden;
	display: flex;
	scrollbar-width: none;
}

#channelList>* {
	display: flex;
	padding: 0.5em;
	align-items: center;
	background-color: #363636;
	gap: 0.25em;
	margin: 0.1em;
}

#channelList>.active {
	background-color: #2d4c21;
}

#channelList>*>.closeButton {
	display: none;
}

#channelList>.active>.closeButton {
	font-size: 0.65em;
	text-align: center;
	display: block;
	background-color: #1c1c1c;
	width: 2em;
	height: 2em;
}

#channelList .channel {
	color: rgb(156, 156, 156);
	position: relative;
}

#channelList .channel.unread {
	color: white;
}

#channelList .channel.mentioned::before {
	width: 0.5em;
	height: 0.5em;
	position: absolute;
	right: 0.1em;
	top: 0.1em;
	background-color: orange;
	border-radius: 1em;
	content: ' ';
}

.colored {
	color: inherit;
}

.username {
	cursor: pointer;
	font-weight: 600;
}

.message .reactions {
	display: flex;
	flex-wrap: wrap;
}
.reactions-label {
	margin-right: 0.2em;
	margin-left: 0.5em;
}
.reaction-users {
	margin-left: 0.3em;
	font-size: 0.75em;
	opacity: 0.75;
	font-weight: 550;
}
.reaction .emote {
	font-size: 1em;
	vertical-align: middle;
}
.reaction {
	margin-right: 0.75em;
	vertical-align: middle;
}

.reply {
	/* no wrapping */
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	overflow-wrap: break-all;
	word-break: break-all;
}

.inputBar {
	display: flex;
	gap: 0.25em;
	width: 100%;
	min-height: 3.5em;
	height: 3.5em;
	background-color: #000000;
	padding: 0.25em;
	box-sizing: border-box;
	border-top: 0.15em solid #252525;
}

#textInput {
	color: #EEE;
	background-color: #000000;
	border: none;
	border-radius: 6px;
	flex-grow: 1;
	font-size: 1em;
	resize: none;
	vertical-align: middle;
	padding: 0.6em;
	outline: none;
	border-left: 0.25em solid #555;
	/*overflow: hidden;*/
}

#textInput.connected {
	border-left: 0.25em solid lime;
}

#textInput.disconnected {
	border-left: 0.25em solid red;
}

button {
	background-color: #000000;
	border: none;
	border-radius: 8px;
	font-size: 1em;
	cursor: pointer;
}

.square {
	aspect-ratio: 1;
}

#tlbox {
	flex-grow: 1;
	overflow-y: hidden;
}

#tlbox>* {
	height: 100%;
	overflow: hidden;
}

#tlbox>#emptyMessage {
	text-align: center;
}

#scrollToBottom {
	cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: #222;
	opacity: 0.9;
	min-height: 1.5em;
	margin-top: -2em;
	padding: 0.25em;
}

.timeline .upload {
	display: flex;
	flex-direction: column;
}

.timeline .reply {
	font-size: 0.75em;
	cursor: pointer;
	opacity: 0.75;
}

.timeline .highlight {
	animation-name: replyHighlight;
	animation-duration: 1s;
	animation-play-state: running;
}

.timeline .blocked {
	display: none;
}
.action * {
	color: inherit;
}
.message:hover {
	background-color: color-mix(in srgb, var(--bg-color), #FFF 10%);
}
.message.edited .content > span > span:last-child::after {
	content: ' (edited)';
	font-size: 0.75em;
	margin-left: 0.25em;
	position: relative;
	font-style: italic;
}
#settingsButton, #installButton, #accountButton {
	z-index: 999999;
}
#accountButton {
	background: #105e00;
}
#settingsButton {
	padding-right: 0.5em;
	padding-bottom: 0.5em;
	margin-right: 0.5em;
}
.message {
	position: relative;
	flex-direction: row;
	overflow-wrap: break-word;
	word-break: break-word;
	hyphens: auto;
	max-width: 100%;
	overflow: hidden;
	padding-top: 1px !important;
	padding-bottom: 2px !important;
	box-sizing: border-box;
}
.message > div {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.content {
	margin-left: 2px;
}
.message audio {
	height: 1em;
	width: 190px;
	position: relative;
	top: 0.1em;
	left: 0.1em;
}

#addChannelButton, .about, .sed-edit {
	display: none !important;
}

.message.last-read {
	border-bottom: 1px solid #555;
}
.inputBar button {
	width: 1.75em;
}
#sendButton {
	width: 2.5em;
}
.message:last-child {
	border-bottom: 0 !important;
}
.message span.spacer {
	display: inline-block;
	min-width: 0.2em;
}
.message p {
	display: inline-flex;
	margin: 0;
}

.emoteGroup {
	padding-bottom: 3px;
}

.hoverReplyButton {
	position: absolute;
	right: 0;
	display: none;
	z-index: 999;
	background: none;
	border: none;
}
.copyButton {
	position: absolute;
	right: 60px;
	display: none;
	z-index: 999;
	background: none;
	border: none;
}
.hoverEditButton {
	position: absolute;
	right: 30px;
	display: none;
	z-index: 999;
	background: none;
	border: none;
}

.message-span > span:last-child span {
	box-decoration-break: clone;
}
.imageEmbed, .videoEmbed, .ai-preview-widget {
	max-width: 80%;
	max-height: 200px;
	display: block;
	margin: 0.5em 0;
	border-radius: 0.5em;
}
.ai-preview-widget {
	border: 0;
}

.message:not(.reaction-notification):hover .hoverReplyButton, .message.hover .hoverReplyButton {
	display: block;
}
.message:not(.reaction-notification):hover .hoverEditButton, .message.hover .hoverEditButton {
	display: block;
}
.message:not(.reaction-notification):hover .copyButton, .message.hover .copyButton {
	display: block;
}
@keyframes replyHighlight {

	0%,
	50%,
	100% {
		background-color: transparent;
	}

	25%,
	75% {
		background-color: white;
	}
}

.username {
	white-space: nowrap;
}
.settings {
	overflow: auto !important;
}
.emote {
	vertical-align: text-top !important;
}
.message-components {
	display: inline;
	overflow-x: clip;
	vertical-align: text-top;
}
.reactions {
	display: block;
}
.content {
	vertical-align: top;
	overflow-x: clip;
}
h1, h2, h3, h4, h5, h6 {
	line-height: unset;
	overflow: clip;
	margin: 0;
}
.marquee {
	line-height: unset;
	min-width: 300px;
	white-space: nowrap;
	overflow-x: clip;
	display: inline-flex;
}
  .marquee p {
	line-height: unset;
	padding-left: 100%;
	animation: marquee 15s linear infinite;
  }
  @keyframes marquee {
	0%   { transform: translate(0, 0); }
	100% { transform: translate(-100%, 0); }
  }

.timeline {
	padding-bottom: 0.5em;
	box-sizing: border-box;
	overflow-y: auto !important;
	overflow-x: hidden !important;
}

.timeline iframe {
	display: flex;
	border: 0;
	padding: 0.5em;
	box-sizing: border-box;
}

.timeline>* .time {
	padding-top: 0.2em;
	padding-right: 0.3em;
	padding-left: 0;
	opacity: 50%;
	word-break: keep-all;
	font-size: 0.75em;
	font-family: "Roboto Mono", monospace;
  	font-optical-sizing: auto;
	font-style: normal;
}

.timeline a {
	text-decoration-color: #82a9c9;
	font-style: italic;
}

.timeline>* {
	padding-right: 0.2em;
	padding-top: 0em;
	padding-bottom: 0em;
	padding-left: 0.2em;
	width: 100%;

	--bg-color: #000000;
	background-color: var(--bg-color);
	display: flex;
}
.message-span>*{
	padding: 0;
}
/*
.timeline>:nth-last-child(odd) {
	background-color: color-mix(in srgb, var(--bg-color), #FFF 3%);
}
*/

.timeline>.announcement {
	--bg-color: rgb(199, 195, 5);
}

.timeline>.mentioned {
	--bg-color: rgb(100, 0, 0);
}

.timeline>.first {
	--bg-color: rgb(58, 128, 33);
}

.timeline>.sub {
	--bg-color: #9146FF;
}

.timeline>.raid {
	--bg-color: #e87044;
}

.timeline>.redeem {
	--bg-color: #4197cc;
}

.badges>img {
	height: 1.5em;
	margin-right: 3px;
	vertical-align: bottom;
	border-radius: 4px;
}

.reaction-name {
	margin-left: 0.5em;
}

.emote *
{
	transform-style: flat;
}

.emote {
	transform-style: preserve-3d;
	display: inline;
	text-align: center;
	justify-items: center;
	align-items: center;
	font-size: 1em;
	overflow: clip;
}

.emote img {
	height: 1.1em;
	/*width: var(--emoteWidth);*/
	grid-column: 1;
	grid-row: 1;
	vertical-align: middle;
}

.gradient {
	background: -webkit-linear-gradient(#eee, #333);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

#emoteSuggestions {
	position: absolute;
	top: 0px;
}

.popupMenu {
	background: #222;
	display: flex;
	flex-direction: column;
	position: absolute;
	user-select: none;
}
.popupMenu button {
	background: #105e00;
	border: none;
	color: white;
	padding: 0.5em;
}

#currentAccountAvatar {
	max-width: 1.25em;
	height: 1.25em;
}

.tooltip {
	background: #222;
	pointer-events: none;
	user-select: none;
	border-radius: 0.25em;
	padding: 0.5em;
	position: absolute;
	overflow: hidden;
}

.contextMenu {
	pointer-events: all;
	padding: 0px;
	border-radius: 0px;
	box-shadow: black 0px 0px 5px;
	background-color: #222;
}

.contextMenu button {
	border-radius: 0px;
	background-color: #222;
}

.contextMenu button:hover {
	background-color: #333;
	border-radius: 0px;
}

.contextMenu hr {
	height: 1px;
	padding: 0px;
	margin: 0px;
	width: 100%;
	border: none;
	background-color: #1c1c1c;
}

.emoteTooltip {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	max-width: 20em;
}

.emoteTooltip>img {
	height: 3em;
}

.message.deleted {
	opacity: 0.25;
}

.message.deletion {
	opacity: 0.5;
	cursor: pointer;
}

.message.hidden-message {
	display: none;
}
#dropZone {
	box-sizing: border-box;
	display: none;
	position: fixed;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	z-index: 99999;
	background: #000000c0;

	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 0.75em;
}

#dropZone::before {
	font-size: 3em;
}

input, textarea {
	color: black;
}

input:placeholder-shown {
	text-overflow: ellipsis;
}

#emojiList {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	flex-grow: 1;
	overflow-y: scroll;
	background: #111;
}
.timeline {
	overflow-y: hidden;
}

#emotePages {
	flex-grow: 1;
}

#emojiList .emote {
	margin: 0.1em;
	padding: 0.2em;
	cursor: pointer;
}

#emoteTabs>* {
	padding: 0.25em;
	align-items: center;
	background-color: #363636;
	margin: 0.2em;
	gap: 0.1em;
}

#emoteTabs>.active {
	background-color: #2d4c21;
}

#replyingToBar {
	padding: 0.35em;
	background: #222222;
	display: flex;
	flex-direction: column;
}

#replyingToBar>* {
	display: flex;
	flex-direction: row;
}

#replyContent {
	flex-grow: 1;
}

#cancelReplyButton {
	background: none;
	border: none;
}

#editingBar {
	padding: 0.35em;
	background: #222222;
	display: flex;
	flex-direction: column;
}

#editingBar>* {
	display: flex;
	flex-direction: row;
}

#originalContent {
	flex-grow: 1;
}

#cancelEditButton {
	background: none;
	border: none;
}

.messageMenu {
	display: flex;
	flex-direction: column;
	width: 15em;
}

.settings>.content {
	padding: 3em;
	max-width: 30em;
	margin: auto;
	display: flex;
	flex-direction: column;
}

.settings h2 {
	margin: 0.25em 0em;
}

.settings h3 {
	margin: 0.25em 0em;
}

.settings input[type=text] {
	width: 100%;
}

.settings input[type=range] {
	width: calc(100% - 7.9em);
}

.settings input[type=number].forSlider {
	width: 7em;
}

.settings .blocklist {
	height: 8em;
	overflow-y: scroll;
	width: 100%;

	background-color: #222222;
	color: white;
	border: none;
	border-radius: 0.25em;
}

.settings .blocklist option {
	background-color: transparent;
	color: white;
}

.settings .blocklist option:checked {
	background-color: #3a3ae5;
}

.hidehchatuserbadge .badge-hchat {
	display: none;
}

.hideappinstallbutton #installButton {
	display: none;
}

.autocomplete
{
	max-height: 50vh;
	max-width: 50vh;
	overflow-y: auto;

	overflow-wrap: break-word;
	word-wrap: break-word;
	word-break: break-all;
	word-break: break-word;
}

.autocomplete > *
{
	align-items: center;
	display: flex;
	gap: 0.5em;
	padding: 0.5em;
}

/*
.autocomplete > *:nth-child(2n)
{
	background-color: #000A;
}
*/

.autocomplete > .active
{
	background-color: #2d4c21;
}

.autocomplete img
{
	height: 1.5em;
}

.about
{
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5em;
	text-align: center;
}

.about .links
{
	gap: 0.5em;
	text-align: center;
}

.about > *
{
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.about .icon{
	height: 8em;
}

select, option
{
	color: black;
	background-color:  white;
}

  
  /* GIF modal styles */
  .gif-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	z-index: 1000;
	display: flex;
	justify-content: center;
	align-items: center;
  }
  
  .gif-modal-content {
	background-color: #18181b;
	width: 80%;
	max-width: 800px;
	max-height: 80vh;
	border-radius: 8px;
	padding: 16px;
	color: #efeff1;
	display: flex;
	flex-direction: column;
  }
  
  .gif-search-container {
	display: flex;
	margin-bottom: 16px;
  }
  
  .gif-search-container input {
	flex-grow: 1;
	padding: 8px;
	border-radius: 4px 0 0 4px;
	border: 1px solid #464649;
	background-color: #0e0e10;
	color: #efeff1;
	outline: none;
  }
  
  .gif-search-container button {
	padding: 8px 16px;
	border-radius: 0 4px 4px 0;
	border: 1px solid #464649;
	background-color: #9147ff;
	color: white;
	cursor: pointer;
  }
  
  .gif-results {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	overflow-y: auto;
	max-height: 50vh;
	padding: 8px 0;
  }
  
  .gif-result {
	width: calc(25% - 8px);
	cursor: pointer;
	border-radius: 4px;
	overflow: hidden;
	transition: transform 0.2s ease;
  }
  
  .gif-result:hover {
	transform: scale(1.05);
  }
  
  .gif-result img {
	width: 100%;
	height: auto;
	object-fit: cover;
  }
  
  .gif-actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 16px;
  }
  
  .gif-action-button {
	padding: 8px 16px;
	background-color: #3a3a3d;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
  }
  
  .gif-action-button:hover {
	background-color: #464649;
  }
  
  /* Mobile responsiveness */
  @media (max-width: 768px) {
	.gif-result {
	  width: calc(33.33% - 8px);
	}
  }
  
  @media (max-width: 480px) {
	.gif-result {
	  width: calc(50% - 8px);
	}
  }


/* Add these CSS rules wherever appropriate in your project */
.expandable-buttons-container {
	display: flex;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
	transition: opacity 0.2s ease, transform 0.2s ease;
	margin-left: 4px;
  }
  
  .expandable-buttons-container.hidden {
	display: none;
	opacity: 0;
	transform: translateY(10px);
  }
  
  .expandable-buttons-container button {
	margin: 0 4px;
  }


.button-container {
  display: flex;
  position: relative;
}

.expandable-buttons-container.hidden {
  display: none;
}

.inputButton {
  color: #efeff1;
  display: flex;
  align-items: center;
  justify-content: center;
}