* {

	font-family: 'Open Sans', sans-serif;

}

.main.chat {
	margin-bottom: -40px;
	padding-bottom: 50px;
	padding-top: 5px;
	background: linear-gradient(#9A4BE4 0%, #9A4BE4 130px, #d9dbd5 130px, #d9dbd5 100%);
}
.chat-container {
/*	padding-bottom: 50px;*/
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
/*	background: linear-gradient(#009688 0%, #009688 130px, #d9dbd5 130px, #d9dbd5 100%);*/
}

.error-msg {
	display: none;
	background: #e98000;
	width: 100%;
	padding: 5px;
	text-align: center;
	color: ghostwhite;
}
.popBox {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 11111; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.8); /* Black w/ opacity */
}
.popBoxcontainer {
  background-color: #fefefe;
  margin: 15% auto; /* 15% from the top and centered */
/*  padding: 5px 12px;*/
/*  border: 1px solid #888;*/
  width: 40%; /* Could be more or less, depending on screen size */
}
.popBoxHeader {
 display: flex;
 position: relative;
 width: 100%;
 max-height: 40px;
/* margin-bottom: -20px;*/
 padding: 2px 5px 0 5px;
 background: lightgrey;
}
.popBoxHeader p {
	font-weight: 600;
	text-transform: capitalize;
	font-size: 25px;
	font-family: monospace;
}
.popBoxHeader span {
	position: absolute;
	top: 0;
	right: 0;
	color: red;
	font-size: 30px;
	margin: -2px 5px 5px 0;
	cursor: pointer;
}
.popBox form {
	width: 100%;
	padding: 10px;
}
.popBox form p {
	margin: 5px 0 7px 0;
	color: grey;
}
.popBox form input[type="file"], .popBox form input[type="text"], .popBox form input[type="url"] {
	width: 100%;
	border-radius: 5px;
	padding: 5px;
	border: 0.5px solid lightgrey;
	margin-top: 3pxs;
}
.radioBox {
	width: 100%;
	position: relative;
	padding: 5px;
	border: 1px solid lightgrey;
	border-top-left-radius: 7px;
	border-bottom-right-radius: 10px;
	margin: 0 0 5px 0;
	padding: 3px 5px;
}
.radioBox:hover {
	background: lightgoldenrodyellow;
	transform: scale(1.01);
}
.radioBox input[type="radio"] {
	position: absolute;
	top: 0;
	left: 0;
	margin: 3px 2px 0 3px;
}
.radioBox label {
	margin: -5px 0 0 17px;
	font-size: 17px;
}
.radioBox label p {
	color: coral;
	font-size: 13px;
	font-weight: normal;
	margin-left: -15px;
}
.popBoxfooter {
	width: 100%;
	display: flex;
/*	position: relative;*/
}
.popBoxfooter div {
	width: 80%;
}
.popBoxfooter button {
	width: 20%;
	background: blue;
	color: white;
	padding: 8px 0;
	margin: 10px 0 0 0;
}



.chat-container-content {
	position: relative;
	width: 1300px;
	max-width: 100%;
	height: calc(100vh - 40px);
	background: #fff;
	box-shadow: 0 1px 1px 0 rgba(0,0,0,0.06), 0 2px 5px 0 rgba(0,0,0,0.06);
	display: flex;
}
.leftside {
	position: relative;
	flex: 30%;
	background: #fff;
	border-right: 1px solid rgba(0, 0, 0, 0.2);
}
.leftside .header, .rightside .header {
	position: relative;
	width: 100%;
	height: 60px;
	background: #ededed;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 15px;
}
.leftside .userimg, .rightside .userimg {
	position: relative;
	width: 40px;
	height: 40px;
	overflow: hidden;
	border-radius: 50%;
/*	border: 2.5px solid #000;*/
	background: blue;
	font-weight: 600;
	box-shadow: 0 1px 1px 0 rgba(0,0,0,0.06), 0 2px 5px 0 rgba(0,0,0,0.06);
	color: #FFF;
	text-align: center;
	padding-top: 8.5px;
}
.rightside .userimg {background: grey;}

.leftside .nav_icons, .rightside .nav_icons {
	display: flex;
}
.leftside .nav_icons li, .rightside .nav_icons li {
	display: flex;
	list-style-type: none;
	cursor: pointer;
	color: #51585c;
	font-size: 1.2em;
	margin-left: 2px;
	opacity: 0.9;
}
.leftside .search_chat {
	position: relative;
	height: 50px;
	background: #f6f6f6;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0 15px;
}
.leftside .search_chat div {
	width: 100%;
}
.leftside .search_chat div input {
	width: 100%;
	outline: none;
	border: none;
	background: #fff;
	padding: 6px;
	padding-left: 40px;
	height: 38px;
	border-radius: 30px;
	font-size: 14px;
}
.leftside .search_chat div input::placeholder {
	color: #bbb;
}

/* STYLING FOR READING MORE ON CHAT INFO */


.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 200px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 5px;
  position: absolute;
  z-index: 1;
  top: 125%;
  left: 50%;
  margin-left: -180px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 13px;
}


.tooltip i {
	font-size: 1.1em;
	opacity: 0.7;
}
/*.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-right: -15px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}*/

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}


/* STYLING FOR READING MORE ON CHAT INFO ENDS*/




.leftside .search_chat div i {
	position: absolute;
	left: 30px;
	top: 14px;
	font-size: 1.1em;
	opacity: 0.5;
}
.leftside .chatlist {
	position: relative;
	height: calc(100% - 110px);
	overflow-y: auto;
}

.leftside .chatlist a {
	text-decoration: none;
}
.leftside .chatlist .block {
	position: relative;
	width: 100%;
	display: flex;
/*	justify-content: center;*/
	align-items: center;
	padding: 15px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	cursor: pointer;
}
.leftside .chatlist .block:hover {
	background: #f5f5f5;
}
.leftside .chatlist .block.active {
	background: #ebebeb;
}
.leftside .chatlist .block .iconbx {
	position: relative;
	min-width: 45px;
	height: 45px;
	overflow: hidden;
	border-radius: 50%;
	text-align: center;
	font-weight: 600;
/*	background: purple;*/
	color: #fff;
	padding-top: 6.5px;
	margin-right: 10px;
}
.leftside .chatlist .block .details {
	position: relative;
	width: 100%;
}
.leftside .chatlist .block .details .listheader {
	display: flex;
	justify-content: space-between;
	margin-bottom: -5px;
}
.leftside .chatlist .block .details .listheader h4 {
	font-size: 1.1em;
	font-weight: 600;
	color: #111;
}
.leftside .chatlist .block .details .listheader .time {
	font-size: 0.7em;
	color: #aaa;
}
.leftside .chatlist .block.active .details .listheader .time {
	color: #111;
}
.leftside .chatlist .block.unread .details .listheader .time {
	color: #ebd755;
}
.message_p {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.message_p p {
	color: #aaa;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	font-size: 0.9em;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}
.message_p b {
	background: #06d755;
	color: #fff;
	min-width: 20px;
	height: 20px;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 0.75em;
	margin-top: -20px;
}
.rightside {
	position: relative;
	flex: 70%;
	background: #e5ddd5;
}
.rightside::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: url('whatsapp2ndimgae.jpeg');
	opacity: 0.4;
}

.usertext {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
}
.usertext h4 {
	font-weight: 500;
	line-height: 1.2em;
	margin: 8px 0 0 15px;
	font-size: 22px;
}
.usertext h4 span {
	font-size: 0.7em;
	color: #555;
}
.rightside .header span img {
	height: 21px;
	margin-right: 5px;
	cursor: pointer;
/*	display: none;*/
}
.rightside .header span.close {
	font-size: 35px;
	color: grey;
	display: none;
	cursor: pointer;
}


.rightside .header .more-options {
	z-index: 11;
	background: #f2f2f2;
	position: absolute;
	right: 7px;
	top: 43px;
	min-width: 50px;
	border-radius: 5px;
	display: none;
}
.rightside .header .more-options ul li a, .rightside .header .more-options ul li {
	text-decoration: none;
	color: rgba(0, 0, 0, 0.8);
}
/*.rightside .header .more-options ul li a i {
	transform: rotate(90deg);
}*/
.rightside .header .more-options ul li a i, .rightside .header .more-options ul li i {margin-right: 7px;}

.rightside .header .more-options ul, .rightside .header .more-options ul li ul {
	list-style-type: none;
}
.rightside .header .more-options ul {
		margin: 10px 10px 5px -20px;
}

.rightside .header .more-options ul li {
	line-height: 30px;
	font-size: 16px;
	margin: 0 0 10px 0;
	color: grey;
}

.rightside .header .more-options ul li.call {
	background: purple;
	text-align: center;
	width: 100%;
	padding: 5px 0;
	border-radius: 5px;
	cursor: pointer;
	text-transform: capitalize;
}
.rightside .header .more-options ul li.call a {
	color: #fff;
}
.rightside .header .more-options ul li.call a i {
	margin-left: 20px;
}


.rightside .header .more-options ul li ul {
	margin-left: -30px;
	margin-top: -1px;
	max-height: 200px;
	overflow-y: auto;
}
.rightside .header .more-options ul li ul li {
	margin: 2px 0 0 0;
}

.rightside .header .more-options ul li ul li a {
	display: flex;
	background: rgba(0, 225, 225, 0.7);
	padding: 5px 10px;
	border-radius: 5px;
	margin: 5px 0;
}
.rightside .header .more-options ul li ul li a .img {
	height: 30px;
	width: 30px;
	margin: 10px 10px 0 0;
}
.rightside .header .more-options ul li ul li a .img img {
	height: 100%;
	width: 100%;
	border-radius: 50px;
}
/*.rightside .header .more-options ul li ul li a .text {
	max-width: 200px;
}*/
.rightside .header .more-options ul li ul li a .text .name {
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	max-width: 200px;
	overflow: hidden;
	text-overflow: ellipsis;
	text-transform: capitalize;
}
.rightside .header .more-options ul li ul li a .text .cat {
	font-size: 15px;
	color: grey;
	margin-top: -10px;
	text-transform: capitalize;
}

.rightside .header .more-options ul li ul li .no_bus {
	text-align: center;
	background: lightgrey;
	border-radius: 5px;
	padding: 10px;
}
.rightside .header .more-options ul li .add_bus {
	background: green;
	text-align: center;
	border-radius: 5px;
	padding: 5px 0;
}
.rightside .header .more-options ul li .add_bus a {
	color: #fff;
	background: transparent;
}
/*.rightside .header .more-options ul li ul li a {
	display: flex;
	color: #009;
}
.rightside .header .more-options ul li ul li a:hover {
	color: #006;
}
.rightside .header .more-options ul li ul li a div.img {
	height: 20px;
	width: 20px;
	margin: -3px 5px 0 0;
}
.rightside .header .more-options ul li ul li a div.img img {
	height: 100%;
	width: 100%;
	border-radius: 50px;
}*/

.chatBox {
	position: relative;
	width: 100%;
	height: calc(100% - 120px);
	padding: 0 20px;
	overflow-y: auto;
}
.chatBoxinfo {
	text-align: center;
	width: 100%;
	padding-top: 300px;
	color: #f2f2f2;
}
.chatBoxinfo .fas.fa-comments {
	font-size: 5em;
}
.chatBoxinfo h3 {
	text-transform: capitalize;
}
.message {
	position: relative;
	display: flex;
	width: 100%;
	margin: 1px 0;
}
.message p {
	position: relative;
	right: 0;
	text-align: right;
	max-width: 65%;
	padding: 12px;
	background: #dcf8c6;
	border-radius: 10px;
	font-size: 0.9em;
}
.message p {
	max-width: 50%;
}
.message p::before {
	content: '';
	position: absolute;
	top: 0;
	right: -12px;
	width: 20px;
	height: 20px;
	background: linear-gradient(135deg, #dcf8c6 0%, #dcf8c6 50%, transparent 50%, transparent);
}
.message p img {
	max-width: 100%;
	height: 400px;
}
.message p.doc a {
	border: 1.5px solid orange;
	padding: 5px;
	background: #f2f2f2;
	text-decoration: none;
	color: orange;
	border-radius: 4px;
}
.message p.doc a:hover {
	background: orange;
	color: #f2f2f2;
}
.message p span {
	display: block;
	margin-top: 5px;
	font-size: 0.85em;
	opacity: 0.5;
}
.message.sent {
	justify-content: flex-end;
}
.message.sent p {
	text-align: left;
}
.message p span {
	text-align: right;
}
.message.receieved {
	justify-content: flex-start;
}
.message.receieved p {
	background: #fff;
	text-align: left;
}
.message.receieved p::before {
	left: -12px;
	background: linear-gradient(225deg, #fff 0%, #fff 50%, transparent 50%, transparent);

}

.chatbox_input {
	position: relative;
	width: 100%;
	height: 60px;
	background: #f0f0f0;
	padding: 15px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.chatbox_input i {
	cursor: pointer;
	font-size: 1.3em;
	color: #51585c;
}
.chatbox_input i:hover {
	opacity: 0.8;
}
.chatbox_input i:nth-child(1) {
	margin-right: 15px;
}
.chatbox_input textarea {
	position: relative;
	width: 90%;
	margin: 0 20px;
	padding: 8px 20px 10px 20px;
	border: none;
	outline: none;
	border-radius: 30px;
	font-size: 1em;
	resize: none;
	height: 45px;
}


@media screen and (max-width: 768px) {

	.popBoxcontainer {
	  background-color: #fefefe;
	  margin: 15% auto; /* 15% from the top and centered */
	  width: 95%; /* Could be more or less, depending on screen size */
	}
		.popBoxfooter div {
		width: 60%;
		}
		.popBoxfooter button {
		width: 40%;
		}

	.main.chat {
		margin-bottom: 50px;
	}

	.list_users, .all_users{
		display: none;
	}
	.rightside.show_message, .leftside.list_all_users {
		flex: 100%;
	}
	.rightside.show_message {
		margin: -10px -15px 0 -15px;
	}
	.message p {
		position: relative;
		right: 0;
		text-align: right;
		max-width: 75%;
		padding: 12px;
		background: #dcf8c6;
		border-radius: 10px;
		font-size: 0.9em;
	}
	.message p {
		max-width: 85%;
	}
	.message p::before {
		content: '';
		position: absolute;
		top: 0;
		right: -12px;
		width: 20px;
		height: 20px;
		background: linear-gradient(135deg, #dcf8c6 0%, #dcf8c6 50%, transparent 50%, transparent);
	}
	.message p img {
		max-width: 100%;
		height: 300px;
	}
	.message.sent {
		justify-content: flex-end;
	}
	.message.sent p {
		text-align: left;
	}
	.chatbox_input {
		padding: 20px 13px;
	}
}