:root {
	--message-min-width: 330px;
	--chat-wrapper-bg: #424082;
	--chat-body-bg: #1A1938;
  }

  a {
	all: unset;
  }

  .chatNoti {
	grid-area: chat;
	position: sticky;
	top: 0;
	height: 100vh;
	margin-top: -60px;
	width: 0px;
	z-index: 99;
	transition: transform 0.5s ease, width 0.5s ease;
  }

  .chat2 {
	border: none;
	overflow: hidden;
	background: none;
	height: 100%;
	border-radius: 0;
  }

  .chat2 .card-header {
	background-color: var(--chat-wrapper-bg);
	color: white;
	height: 60px;
	border-radius: 0;
  }

  .chat2 .btn-chatNoti {
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	color: white;
	background-color: #0B0A29;
	width: 30px;
	height: 30px;
	border-radius: 20%;
	border: none;
  }

  .chat2 .btn-chatNoti:hover {
	color: rgba(255, 255, 255, 0.562);
	background-color: #15143c;
  }

  .chat2 .btn-chatNoti:active {
	color: white;
	background-color: #1d1b4c;
  }

  .jj-shout-history .jj-shout-edit {
	display: none;
  }

  .jj-shout-error {
	position: absolute;
	top: 40px;
	z-index: 100;
  }

  .chat2 .card-body {
	background-color: var(--chat-body-bg);
	overflow-y: scroll;
	overflow-x: hidden;
  }

  .chat2 .card-body::-webkit-scrollbar {
	width: 8px;
	height: 8px;
  }

  .message {
	margin-bottom: 1rem;
	min-width: var(--message-min-width);
	font-size: 16px;
	font-family: sans-serif;
  }

  .message-container {
	max-width: calc(100% - 45px);
	width: 100%;
  }


  .message-with-mention {
	.message-text {
		background-color: #403D96 !important;
	}
  }

  .message-header {
	color: #ffffffb4;
	width: 100%;
	display: flex;
	align-items: end;

	.level-badge {
		font-size: 12px !important;
		color: black;
		font-weight: bold;
		border-radius: 10px;
		padding-left: 0.5rem;
		padding-right: 0.5rem;
		background-color: white;
		min-width: 30px;

		height: 16px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		margin-left: 5px;
		margin-right: 5px;
		margin-bottom: 6px;
	}

	.username {
		font-size: 20px;
		max-width: 70%;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.action-btn {
		padding: 3px;
	}

	.shout-remove {
		background: none;
		border: 0;
		margin: 0;
		cursor: pointer;
	}

	.mention {
		margin-left: auto;
		font-size: 16px;
		color: #ffffffb4;
		border: none;
		opacity: 0;
		padding-top: 0;
	}

	.mention:hover {
		color: white;
	}
  }

  .message:hover {
	.mention {
		opacity: 1;
	}
  }

  .message-content {
	div {
		margin-bottom: 0.25rem;
		max-width: 100%;
	}

	.message-text {
		max-width: 100%;
		color: white;
		background-color: #23224C;
		border-radius: 0.5rem;
		padding: 0.3rem 0.5rem 0.3rem 0.5rem;
		display: inline-block;
		position: relative;
		overflow-wrap: break-word;
	}

	.mentioned-user {
		color: #5DAB21;
	}

	.message-text::after {
		content: attr(timestamp);
		font-size: 12px;
		color: #ffffffb4;
		margin-left: 10px;
		float: right;
		position: relative;
		top: 5px;

	}

	.link {
		text-decoration: underline;
	}

	.link:hover {
		text-decoration: none;
	}
  }

  .message.outgoing-message {
	display: flex;
	justify-content: end;

	.shout-header {
		flex-direction: row-reverse;
		width: 100%;
	}

	.message-header {
		flex-direction: row-reverse;
	}

	.message-container {
		margin-top: 15px;
	}

	.message-content {
		display: flex;
		justify-content: end;
	}

	.message-content span {
		background-color: #403D96;
	}

	.mention,
	.username,
	.level-badge {
		display: none;
	}
  }

  .chat2 .card-footer {
	background-color: var(--chat-wrapper-bg);
	overflow: auto;
	border-radius: 0;
  }

  .chat2 #noguest {
	min-width: var(--message-min-width);
	color: white;
  }

  .chat2 .input-container {
	position: relative;
	flex-grow: 1;
  }

  .chat2 #jj_message::placeholder {
	color: #80808A;
	opacity: 1;
  }

  .chat2 #jj_message:focus {
	border-color: transparent;
	border: 1px solid white;
	box-shadow: inset 0px 0px 0px 1px transparent;
  }

  .chat2 #jj_message {
	max-height: 150px;
	height: calc(1em + 10px);
	resize: none;
	scrollbar-width: none;

	font-size: 16px;
	padding-right: 40px;
	border-color: transparent;
	background-color: var(--chat-body-bg);
	color: white;
  }

  .chat2 #emojiMenu {
	position: absolute;
	bottom: 4px;
	right: 3px;
	border-radius: 100%;
	border: 2px solid yellow;
	padding: 2px;
	margin: 5px;
	height: 25px;
	width: 25px;
	background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20px" height="20px" fill="yellow" class="bi bi-emoji-smile-fill" viewBox="0 0 16 16"><path d="M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16M7 6.5C7 7.328 6.552 8 6 8s-1-.672-1-1.5S5.448 5 6 5s1 .672 1 1.5M4.285 9.567a.5.5 0 0 1 .683.183A3.5 3.5 0 0 0 8 11.5a3.5 3.5 0 0 0 3.032-1.75.5.5 0 1 1 .866.5A4.5 4.5 0 0 1 8 12.5a4.5 4.5 0 0 1-3.898-2.25.5.5 0 0 1 .183-.683M10 8c-.552 0-1-.672-1-1.5S9.448 5 10 5s1 .672 1 1.5S10.552 8 10 8"/></svg>');
	background-size: 18px;
	background-position: center;
	background-repeat: no-repeat;
  }

  .chat2 #sendBtn {
	width: 45px;
	height: 45px;

	display: flex;
	justify-content: center;
	align-items: center;
	background-color: #47C62F;
	border-radius: 20%;
  }

  .chat2 #sendBtn:hover {
	background-color: green;
  }

  .bbcode-form {
	display: none;
	margin-top: 10px;
  }

  .bbcode-form p {
	font-weight: bold;
  }

  .bbcode-form input {
	width: 100%;
	min-height: 30px;
	margin-bottom: 5px;
  }

  #bbcode-insert,
  #bbcode-cancel {
	margin-top: 5px;
  }

  .jj-bold {
	font-weight: bold !important;
  }

  .jj-italic {
	font-style: italic !important;
  }

  .jj-underline {
	text-decoration: underline !important;
  }

  .admin-toolbar {
	button {
		color: #fff;
	}

	button:hover {
		color: #ffffff86;
	}

	button:active {
		color: #fff !important;
		border: none !important;
	}

  }

  .mass_delete {
	margin-top: 20px;
	color: white;

	input {
		height: 100%;
	}

	select {
		height: 100%;
	}

	option {
		background-color: white;
	}
  }

  a.edit-cancel,
  a.edit-cancel.btn,
  .uk-button.edit-cancel {
	display: none;
	width: 100%;
	margin-top: 5px;
	min-height: 30px;
	box-sizing: border-box;
  }


  .divider:after,
  .divider:before {
	content: "";
	flex: 1;
	height: 1px;
	background: #eeeeee88;
  }


  #jj-rules-modal .modal-body {
	scrollbar-width: none;
  }

  #jj-rules-modal .modal-body::-webkit-scrollbar {
	width: 0;
  }

  /*#region emojiMenu*/

  .fg-emoji-container {
	position: fixed;
	top: 0;
	left: 0;
	border-radius: 5px;
	box-shadow: 0px 3px 20px 0px rgba(0, 0, 0, 0.62);
	background-color: #23224C;
	overflow: hidden;
	z-index: 9999;
  }

  .fg-emoji-container svg {
	max-width: 100%;
	box-sizing: border-box;
	width: 15px;
	height: 15px;
  }

  .fg-emoji-picker-category-title {
	display: block;
	margin: 20px 0 0 0;
	padding: 0 10px 5px 10px;
	font-size: 16px;
	font-family: sans-serif;
	font-weight: bold;
	flex: 0 0 100%;
	background-color: #23224C;
	color: white;
	border-bottom: 1px solid #ededed;
  }

  .fg-emoji-nav {
	background-color: var(--chat-body-bg);
  }

  .fg-emoji-nav li a svg {
	transition: all .2s ease;
	fill: white;
  }

  .fg-emoji-nav li:hover a svg {
	fill: black;
  }

  .fg-emoji-nav ul {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
  }

  .fg-emoji-nav ul li {
	flex: 1;
  }

  .fg-emoji-nav ul li a {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 40px;
	transition: all .2s ease;
  }

  .fg-emoji-nav ul li a:hover {
	background-color: #e9ebf1;
  }

  .fg-emoji-nav ul li.active a {
	background-color: #e9ebf1;
  }

  .fg-emoji-nav ul li.emoji-picker-nav-active a {
	background-color: #e9ebf1;
  }

  .fg-emoji-nav ul li.emoji-picker-nav-active a svg {
	fill: #646772;
  }

  .fg-emoji-picker-move {
	cursor: move;
  }

  .fg-picker-special-buttons:last-child a {
	box-shadow: inset 1px 0px 0px 0 rgba(0, 0, 0, 0.11);
  }

  .fg-emoji-list {
	list-style: none;
	margin: 0;
	padding: 0;
	overflow-y: scroll;
	overflow-x: hidden;
	height: 260px;
	background-color: #23224C;
	scrollbar-width: none;
  }

  .fg-emoji-picker-category-wrapper {
	display: flex;
	flex-wrap: wrap;
	flex: 1;
  }

  .fg-emoji-list li {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	flex: 0 0 calc(100% / 6);
	height: 50px;
  }

  .fg-emoji-list li a {
	position: absolute;
	width: 100%;
	height: 100%;
	text-decoration: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	font-size: 23px;
	background-color: #23224C;
	border-radius: 3px;
	transition: all .3s ease;
  }

  .fg-emoji-list li a:hover {
	background-color: #ebebeb;
  }

  /*#endregion emojiMenu*/
