@import url('https://fonts.googleapis.com/css2?family=Catamaran:wght@300;400;500;700&family=Open+Sans&display=swap');

body {
	background: #393b41;
	height: calc(100vh - 46px);
	font-family: 'Catamaran', sans-serif;
	color: #ffffe6;
}

h1 {
	font-size: 15.5px;
	font-weight: 700;
}

b, .bold {
	font-weight: bold;
}

i, .italic {
	font-style: italic;
}

.flex-center,
.server-icon,
.empty-channel-icon,
.modal {
	display: flex;
	align-items: center;
	justify-content: center;
}

.content {
	margin-top: 46px;
	display: flex;
	height: 100%;
}

.servers-bar,
.channels-bar,
.main {
	height: 100%;
}

.servers-bar {
	width: 72px;
	display: flex;
	flex-direction: column;
	align-items: center;
	background: #252629;
}

.server-icon {
	padding-left: 7px;
}

.server-icon img {
	width: 48px;
	height: 48px;
	margin: 4px 14px 5px 8px;
	border-radius: 50%;
}

.server-icon.discord img,
.server-icon.selected img {
	margin-top: 10px;
	border-radius: 16px;
}

.server-icon:hover img {
	border-radius: 16px;
}

.server-icon.selected {
	position: relative;
}

.server-icon.selected::after {
	content: '';
	position: absolute;
	top: 22%;
	left: 4px;
	background: #fff;
	width: 4px;
	height: 40px;
	border-radius: 0 5px 5px 0;
}

.servers-bar .separator {
	border-bottom: 2px solid #303235;
	width: 32px;
	margin-left: 2px;
}

.main-cont,
.main-area {
	width: 100%;
	height: 100%;
}

.header {
	height: 50px;
	border-bottom: 1.5px solid #222427;
	box-shadow: 0 0 4px rgba(0,0,0,0.2);
	position: relative;
	z-index: 1;
	pointer-events: none;
}

.main-area {
	display: flex;
	margin-top: -50px;
}

.channels-bar,
.user-list {
	background: #323438;
	width: 275px;
}

.channels-bar a {
	text-decoration: none;
	color: #ffffe6;
}

.channels-bar p {
	font-size: 16px;
	text-transform: lowercase;
	font-weight: 500;
	color: #8f9297;
	border-radius: 5px;
	margin: 2px 10px;
	padding-top: 2px;
	padding-bottom: 2px;
}

.channels-bar p:hover {
	cursor: pointer;
	color: #ffffe6;
	background-color: rgba(66,70,77,0.3);
}

.channels-bar p::before,
.channel-name::before {
	content: "#";
	display: inline-block;
	vertical-align: middle;
	margin: 0 8px;
	margin-top: -4px;
	font-weight: 300;
	color: #8f9297;
}

.channels-bar p::before {
	font-size: 32px;
}

.channel-name::before {
	font-size: 38px;
}

.channels-bar p.selected {
	color: #ffffe6;
	background-color: #42464d;
}

.channels-bar p.selected::before {
	color: #8f9297;
}

.channels-head {
	height: 50px;
	width: 100%;
	display: flex;
	align-items: center;
	padding-left: 35px;
	margin-bottom: 20px;
}

.channels-head:hover {
	background: rgba(255,255,255,0.025);
	color: #fff;
	cursor: pointer;
}

.channels-head img {
	width: 25px;
}

.channels-head h1 {
	margin-left: 15px;
}

.channel-name {
	font-weight: 600;
	color: #fff;
	font-size: 15.5px;
}

.channel-info {
	color: #b9bbbe;
	font-size: 14px;
}

.main {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.main.hidden {
	display: none;
}

.main-head {
	height: 50px;
	display: flex;
	align-items: center;
	padding: 10px 20px;
	white-space: nowrap;
}

.main-head .separator {
	border-right: 1px solid #42464d;
	margin: 20px;
	height: 25px;
}

.chat-box,
.chat {
	flex: 1;
}

.chat-box {
	overflow-y: auto;
}

.chat {
	margin-bottom: 15px;
}

.channel-start {
	margin: 0 20px;
	margin-top: 35px;
}

.empty-channel-icon {
	font-size: 70px;
	font-weight: 200;
	color: #fff;
	background: #4f545c;
	border-radius: 50%;
	height: 70px;
	width: 70px;
	margin-bottom: 10px;
	user-select: none;
}

.chat-welcome {
	color: #fff;
	font-weight: bold;
	font-size: 35px;
}

.start-text {
	color: #b9bbbe;
	font-size: 16px;
	margin: 10px 0;
}

.chat-box .separator {
	width: 100%;
	border-bottom: 1px solid #42464d;
	margin: 20px 0;
}

.msgWrapper {
	display: flex;
	padding: 3px 20px;
	font-size: 16px;
}

.msgWrapper:hover {
	background-color: #42464d;
}

.msgWrapper.no-img {
	padding-left: 68px;
}

.spam .msgWrapper {
	padding-top: 0;
	padding-bottom: 0;
}

.displayPhoto {
	border-radius: 50%;
	cursor: pointer;
	width: 48px;
	height: 48px;
}

.allMessages {
	margin-left: 15px;
}

.senderInfo .name {
	font-weight: bold;
}

.senderInfo .name:hover {
	text-decoration: underline;
	cursor: pointer;
}

.senderInfo .name.iSmile {
	color: #1ebc9c;
}

.senderInfo .timestamp {
	color: #a3a6a990;
	font-size: 12px;
	margin-left: 5px;
	font-family: 'Open Sans', sans-serif;
	cursor: default;
}

.msgBody {
	margin-top: 7px;
	color: #dcddde;
}

.msgBody img {
	border-radius: 10px;
	cursor: pointer;
}

.msgBody p {
	margin: 10px 0;
}

.no-img .msgBody {
	margin-top: 0;
}

.rules .msgBody p {
	margin: 20px 0;
}

a.channel-link {
	background: rgba(255,255,255,0.03);
	color: #7289da;
	text-decoration: none;
	font-weight: bold;
}

.input-inactive,
.input-active {
	background: #40444b;
	height: 44px;
	display: flex;
	align-items: center;
	padding-left: 20px;
	margin: 15px;
	margin-top: 0;
	border-radius: 7px;
	font-size: 16px;
}

.input-inactive {
	cursor: not-allowed;
	user-select: none;
	color: #73757b;
}

.input-active {
	border: none;
	color: #fff;
}

.input-active::placeholder {
	color: #73757b;
}

.input-active:focus {
	outline: none;
}

#chattable {
	width: 100%;
	height: 100%;
}

.user-list {
	margin-top: 50px;
	padding: 15px;
}

.user-list h2 {
	text-transform: uppercase;
	font-weight: 700;
	font-size: 12px;
}

#userNumber {
	font-family: 'Open Sans', sans-serif;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 25px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}