.page {
	background-color:#0a162e;
}
#page {
	position: relative;
	max-width: 970px;
	margin: auto;
	padding: 30px 0;
}
#page h2 {
	margin: 0 0 20px 0;
	color: white;
}
.chat-pages-wrap {
	position: relative;
}
.chat-pages {
	position: absolute;
	right: 0px;
	top: 0px;
	z-index: 10;
}
.chat-pages.fixed nav {
	background-color: #fff;
			border-radius: 23px;
	   -moz-border-radius: 23px;
	-webkit-border-radius: 23px;
			box-shadow: 0px 2px 15px #cecece;
	   -moz-box-shadow: 0px 2px 15px rgba(0,0,0,0.2);
	-webkit-box-shadow: 0px 2px 15px rgba(0,0,0,0.2);
}
.chat-pages nav {
	position: relative;
	padding: 5px 1px;
	z-index: 1;
	margin: auto;
	line-height: 20px;
	display: -moz-inline-stack;
	display: inline-block;
	vertical-align: top;
	*display: inline;
	zoom: 1;
	color: #31708f;
}
.chat-pages nav a {
	display: -moz-inline-stack;
	display: inline-block;
	vertical-align: top;
	*display: inline;
	zoom: 1;
	min-width: 26px;
	height: 26px;
	line-height: 26px;
	padding: 0 4px;
	margin: 0 4px;
	font-size: 10pt;
	text-align: center;
	text-align-last: center;
	text-decoration: none;
	color: #fcfcfc;
	background-color: #2e2f7e;
	-webkit-border-radius: 13px;
	   -moz-border-radius: 13px;
			border-radius: 13px;
	-webkit-box-sizing: border-box;
			box-sizing: border-box;
}

.chat-pages nav a.active {
	color: #000;
	background-color: #afc62b;
}

.chat-wrap {
	clear: both;
	float: none;
}
.chat-form {
	position: relative;
	margin: 0 0 20px;
}
.chat-form.send .im_send button {
	visibility: hidden;
	opacity: 0;
}
.chat_item {
	display: table;
	width: 100%;
	-webkit-box-sizing:border-box;
	box-sizing:border-box;
}
.chat_item > div {
	display: table-cell;
	vertical-align: top;
}
.chat_item > div:first-child {
	width: 50px;
	padding-right: 14px;
	text-align: center;
	font-size: 80%;
	color: #999
}
.chat_item > div:first-child img {
	display: block;
	line-height: 50px;
	width:50px;
	height:50px;
	margin:0 auto 5px auto;
			border-radius: 50%;
	   -moz-border-radius: 50%;
	-webkit-border-radius: 50%;
}
.chat_item .im_wrap {
	background-color: #fff;
	border-radius: 7px;
	-moz-border-radius: 7px;
	-webkit-border-radius: 7px;
}
.chat_item .public {
  padding: 5px 10px;
  background-color: rgba(200,200,200,0.2);
}
.chat-form .im_wrap .parent .pop {
}
.chat-form .im_wrap .parent .pop label {
	cursor: pointer;
	color: #999;
}
.chat-form .im_wrap .parent .pop b {
	color: #fcfcfc;
}
.chat-form .im_wrap .parent .pop:after {
	left: inherit;
	right: 16px;
	border-top-color: #222635;
}
.chat-form .im_wrap .parent .pop label:hover {
	color: #fff;
}
.chat-form .im_wrap > div {
	padding: 0 0 10px 0;
}
.chat-form .im_wrap > div > div {
	margin: 0 10px;
}
.chat-form .im_wrap .input .text {
	border: none;
	min-height: 21px;
	padding: 10px 5px;
}
.im_wrap .input .text,
.im_items .text {
	caret-color: #222 !important;
	color: #222 !important;
}
.im_items .respond {
    background: #fcf8e3 !important;
    color: initial !important;
}
.im_items .respond .header {
	border-bottom-color: rgba(148, 148, 148, 0.25) !important;
}
.im_items .respond .header .msg {
	color: inherit;
}
.chat-items .chat_item .body {
	padding-bottom: 10px;
}
.chat-form .im_wrap .input {
    border-bottom: 1px solid #ddd;
}
.chat-form .im_wrap .focus {
    border-bottom-color: #ffc108;
}
.chat-form .im_wrap .im_btn {
	text-indent: inherit;
}
.chat-form .parent label {
	display: block;
}
.chat-form .parent svg {
	cursor: pointer;
	margin: 3px;
}
.chat-form .im_wrap .input .scroll {
    border-width: 10px;
	border-right-width: 0;
}
.chat-form .im_wrap .placeholder {
	left: 5px;
	z-index: -1;
	float: left;
}
.chat-form .scrollbox .scroll .outer {
	padding: 1px;
	background: #eee;
	-webkit-border-radius: 7px;
	   -moz-border-radius: 7px;
			border-radius: 7px;
}
.chat-form .im_wrap .smiles_wrap .scroll.hover .bar {
	width: 5px;
}
.chat-items .im_attaches li {
	margin-bottom: 0;
}
.chat_item .header .ava {
	display: none;
	width: 26px;
	padding-right: 6px;
	line-height: 0;
}
.chat_item .header .ava img {
	display: block;
	width: 26px;
	height: 26px;
			border-radius: 50%;
	   -moz-border-radius: 50%;
	-webkit-border-radius: 50%;
}
.chat_item .header a {
	color: #333;
    text-decoration: none;
}
.chat_item .header a:hover {
	color: #77d444;
    text-decoration: underline;
}
.chat_item .header > div:last-child {
	width: 60%;
}

/* new emoji style */
.emoji_parent {
	margin-right: 70px;
	height: 32px;
	overflow: hidden;
}
.emoji_parent ul li span {
	margin: 5px;
}
.emoji_more {
	display: block;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
	width: 26px;
	height: 26px;
	margin: 2px;
	border: 1px solid transparent;
	cursor: pointer;
	border-radius: 14px;
	-moz-border-radius: 14px;
	-webkit-border-radius: 14px;
	background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22m12%2019.5l0%200c4.1%200%207.5-3.4%207.5-7.5%200-4.1-3.4-7.5-7.5-7.5%20-4.1%200-7.5%203.4-7.5%207.5%200%204.1%203.4%207.5%207.5%207.5l0%200zm0%201.5c-5%200-9-4-9-9%200-5%204-9%209-9%205%200%209%204%209%209%200%205-4%209-9%209zm-3-4.9c0.7%200.5%201.7%200.9%203%200.9%201.3%200%202.3-0.4%203-0.9%200.5-0.3%200.8-0.7%200.9-1%200.2-0.4%200.1-1.1%200.1-1.1%200%200-8%200-8%200%200%200-0.1%200.7%200.1%201.1%200.1%200.3%200.4%200.7%200.9%201zm0-4.1c0.6%200%201-0.7%201-1.5%200-0.8-0.4-1.5-1-1.5%20-0.6%200-1%200.7-1%201.5%200%200.8%200.4%201.5%201%201.5zm6%200c0.6%200%201-0.7%201-1.5%200-0.8-0.4-1.5-1-1.5%20-0.6%200-1%200.7-1%201.5%200%200.8%200.4%201.5%201%201.5z%22%20fill%3D%22%23FFC107%22/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center center;
}
.emoji_more:hover {
		border-color: rgba(0,0,0,0.2);
	background-color: rgba(0,0,0,0.1);
}



@media(max-width:990px) {
	#page h1 {
		margin-bottom: 50px;
	}
	.chat_item {
		padding: 0 5px;
	}
	.chat-pages {
		left: 5px;
	}
}
@media(max-width:600px) {
	#page h1 {
		visibility: hidden;
		margin-bottom: 20px;
	}
	.chat-form .chat_item > div:nth-child(1) {
		display: none;
	}
	.im_items .chat_item .header {
		font-size: 14px;
		padding: 6px 0;
	}
	.im_items .chat_item .body {
		padding-left: 10px;
		padding-right: 10px;
	}
}
@media(max-width:480px) {
	.chat_item > div:nth-child(1) {
		display: none;
	}
	.chat_item .header .ava {
		display: table-cell;
	}
	.chat_item .header .msg {
		display: none;
	}
}
