.chatbox-holder {
	position: fixed;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: flex-end;
	height: 0;
}

.chatbox {
	width: 300px;
	height: 600px;
	margin: 0 20px 0 0;
	position: relative;
	box-shadow: 0 0 5px 0 rgba(0, 0, 0, .2);
	display: flex;
	flex-flow: column;
	align-items: flex-centre;
	border-radius: 10px 10px 0 0;
	background: white;
	bottom: 0;
	transition: .1s ease-out;
}

.chatbox-top {
	position: relative;
	display: flex;
	padding: 10px 0;
	border-radius: 10px 10px 0 0;
	background: rgba(0, 0, 0, .05);
}

.chatbox-icons {
	padding: 0 10px 0 0;
	display: flex;
	position: relative;
}

.chatbox-icons .fa {
	background: rgba(220, 0, 0, .6);
	padding: 3px 5px;
	margin: 0 0 0 3px;
	color: white;
	border-radius: 0 5px 0 5px;
	transition: 0.3s;
}

.chatbox-icons .fa:hover {
	border-radius: 5px 0 5px 0;
	background: rgba(220, 0, 0, 1);
}

.chatbox-icons a,
.chatbox-icons a:link,
.chatbox-icons a:visited {
	color: white;
}

.chat-partner-name a:link {
	color: #153522;
}

.chat-partner-name,
.chat-group-name {
	flex: 1;
	padding: 0 0 0 95px;
	font-size: 15px;
	font-weight: bold;
	color: #30649c;
	text-shadow: 1px 1px 0 white;
	transition: .1s ease-out;
}

.chatbox-min {
	/* For normal */
	/* margin-bottom: -362px;  */

	/* For modified */
	margin-bottom: -562px;
	/*   height: 46px; */
}

.chatbox-min .chatbox-avatar {
	width: 60px;
	height: 60px;
}

.chatbox-min .chat-partner-name,
.chatbox-min .chat-group-name {
	padding: 0 0 0 100px;
}

/* Online users and chats */

#chatbox {

	width: 290px;
	background: #fff;
	border-radius: 6px;
	overflow: hidden;
	height: 600px;
	position: absolute;

	top: 40px;
	left: 53%;
	margin-left: -155px;
}

#friends-div {
	/* position: relative; */
	/* overflow-x: hidden; */
	overflow-y: scroll;
	width: 100%;
	height: 500px;
}

#friendslist {
	position: absolute;
	top: 0;
	left: 0;
	width: 290px;
	height: 484px;
}

#topmenu {
	height: 69px;
	width: 290px;
	border-bottom: 1px solid #d8dfe3;
}

#topmenu span {
	float: left;
	width: 96px;
	height: 70px;
	background: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/245657/top-menu.png") -3px -118px no-repeat;
}

#topmenu span.friends {
	margin-bottom: -1px;
}

#topmenu span.chats {
	background-position: -95px 25px;
	cursor: pointer;
}

#topmenu span.chats:hover {
	background-position: -95px -46px;
	cursor: pointer;
}

#topmenu span.history {
	background-position: -190px 24px;
	cursor: pointer;
}

#topmenu span.history:hover {
	background-position: -190px -47px;
	cursor: pointer;
}

.friend {
	height: 70px;
	border-bottom: 1px solid #e7ebee;
	position: relative;
}

.friend:hover {
	background: #f1f4f6;
	cursor: pointer;
}

.friend span {
	background: #597a96;
	height: 45px;
	width: 40px;
	border-radius: 50%;
	margin: 11px 4px 0 5px;
	float: left;
}

.friend span div {
	padding: 12px 0 0 11px;
	color: white;
	font-size: 14px;
}

.floatingImg {
	width: 40px;
	border-radius: 50%;
	position: absolute;
	top: 0;
	left: 12px;
	border: 3px solid #fff;
}

.friend p {
	padding: 21px 0 0 7px;
	float: left;
	width: 220px;
}

.friend p strong {
	font-family: 'Lato', sans-serif;
	font-weight: 600;
	font-size: 15px;
	color: #597a96;

}

.friend p span {
	font-size: 13px;
	font-weight: 400;
	color: #aab8c2;
}

.friend .status {
	background: #26c281;
	border-radius: 50%;
	width: 9px;
	height: 9px;
	position: absolute;
	top: 31px;
	right: 17px;
}

.friend .status.away {
	background: #ffce54;
}

.friend .status.inactive {
	background: #eaeef0;
}

#search {
	background: #e3e9ed url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/245657/search.png") -11px 0 no-repeat;
	height: 60px;
	width: 290px;
	position: absolute;
	bottom: -60px;
	left: -10px;
}

#searchfield {
	background: #e3e9ed;
	margin: 21px 0 0 55px;
	border: none;
	padding: 0;
	font-size: 14px;
	font-family: "Open Sans", sans-serif;
	font-weight: 400px;
	color: #8198ac;
}

#searchfield:focus {
	outline: 0;
}

#chatview {
	width: 290px;
	height: 600px;
	position: absolute;
	top: 0;
	left: 0;
	display: none;
	background: #fff;
}

#profile {
	height: 153px;
	overflow: hidden;
	text-align: center;
	color: #fff;
}

.p1 #profile {
	background: #fff url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/245657/timeline1.png") 0 0 no-repeat;
}

#profile .avatar {
	width: 68px;
	border: 3px solid #fff;
	margin: 23px 0 0;
	border-radius: 50%;
}

#profile p {
	font-weight: 600;
	font-size: 15px;
	margin: 118px 0 -1px;
	opacity: 0;
	-webkit-transition: all 200ms cubic-bezier(0.000, 0.995, 0.990, 1.000);
	-moz-transition: all 200ms cubic-bezier(0.000, 0.995, 0.990, 1.000);
	-ms-transition: all 200ms cubic-bezier(0.000, 0.995, 0.990, 1.000);
	-o-transition: all 200ms cubic-bezier(0.000, 0.995, 0.990, 1.000);
	transition: all 200ms cubic-bezier(0.000, 0.995, 0.990, 1.000);
}

#profile p.animate {
	margin-top: 97px;
	opacity: 1;
	-webkit-transition: all 200ms cubic-bezier(0.000, 0.995, 0.990, 1.000);
	-moz-transition: all 200ms cubic-bezier(0.000, 0.995, 0.990, 1.000);
	-ms-transition: all 200ms cubic-bezier(0.000, 0.995, 0.990, 1.000);
	-o-transition: all 200ms cubic-bezier(0.000, 0.995, 0.990, 1.000);
	transition: all 200ms cubic-bezier(0.000, 0.995, 0.990, 1.000);
}

#profile span {
	font-weight: 400;
	font-size: 11px;
}

#chat-messages {

	opacity: 0;
	margin-top: 30px;
	width: 290px;
	height: 340px;
	;
	overflow-y: scroll;
	overflow-x: hidden;
	/* padding-right: 20px; */
	-webkit-transition: all 200ms cubic-bezier(0.000, 0.995, 0.990, 1.000);
	-moz-transition: all 200ms cubic-bezier(0.000, 0.995, 0.990, 1.000);
	-ms-transition: all 200ms cubic-bezier(0.000, 0.995, 0.990, 1.000);
	-o-transition: all 200ms cubic-bezier(0.000, 0.995, 0.990, 1.000);
	transition: all 200ms cubic-bezier(0.000, 0.995, 0.990, 1.000);
}

#chat-messages.animate {
	opacity: 1;
	margin-top: 0;
}

#chat-messages label {
	color: #aab8c2;
	font-weight: 600;
	font-size: 12px;
	text-align: center;
	margin: 15px 0;
	width: 290px;
	display: block;
}

#chat-messages div.message {
	padding: 0 0 30px 58px;
	clear: both;
	margin-bottom: 45px;
}

#chat-messages div.message.right {
	padding: 0 58px 30px 0;
	margin-right: -19px;
	margin-left: 19px;
}

#chat-messages .message img {
	background: #597a96;
	float: left;
	margin-left: -52px;
	background: #597a96;
	height: 40px;
	width: 40px;
	border-radius: 50%;
	margin-top: 12px;
}

#chat-messages div.message.right img {
	background: rgb(164, 110, 110);
	float: right;
	width: 40px;
	margin-left: 10px;
	margin-right: -38px;
}

.message .bubble {
	background: #f0f4f7;
	font-size: 13px;
	font-weight: 600;
	padding: 12px 13px;
	border-radius: 5px 5px 5px 0px;
	color: #8495a3;
	position: relative;
	float: left;
}

#chat-messages div.message.right .bubble {
	float: right;
	border-radius: 5px 5px 0px 5px;
}

.bubble .corner {
	background: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/245657/bubble-corner.png") 0 0 no-repeat;
	position: absolute;
	width: 7px;
	height: 7px;
	left: -5px;
	bottom: 0;
}

div.message.right .corner {
	background: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/245657/bubble-cornerR.png") 0 0 no-repeat;
	left: auto;
	right: -5px;
}

.bubble span {
	color: #aab8c2;
	font-size: 11px;
	position: absolute;
	right: 0;
	bottom: -22px;
}

#sendmessage {
	height: 60px;
	border-top: 1px solid #e7ebee;
	position: absolute;
	bottom: 50px;
	right: 0px;
	width: 290px;
	background: #fff;
	/* padding-bottm:10px; */
	padding-bottom: 10px;
}

/* #sendmessage input{
	border
} */
#sendmessage input {
	background: #fff;
	margin: 21px 0 0 21px;
	border: none;
	padding: 0;
	font-size: 14px;
	font-family: "Open Sans", sans-serif;
	font-weight: 400px;
	color: #aab8c2;
}

#sendmessage input:focus {
	outline: 0;
}

#sendmessage button {
	background: #fff url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/245657/send.png") 0 -41px no-repeat;
	width: 30px;
	height: 30px;
	position: absolute;
	right: 15px;
	top: 23px;
	border: none;
}

#sendmessage button:hover {
	cursor: pointer;
	background-position: 0 0;
}

#sendmessage button:focus {
	outline: 0;
}

#close {
	position: absolute;
	top: 8px;
	opacity: 0.8;
	right: 10px;
	width: 20px;
	height: 20px;
	cursor: pointer;
}

#close:hover {
	opacity: 1;
}

.cx,
.cy {
	background: #fff;
	position: absolute;
	width: 0px;
	top: 15px;
	right: 15px;
	height: 3px;
	-webkit-transition: all 250ms ease-in-out;
	-moz-transition: all 250ms ease-in-out;
	-ms-transition: all 250ms ease-in-out;
	-o-transition: all 250ms ease-in-out;
	transition: all 250ms ease-in-out;
}

.cx.s1,
.cy.s1 {
	right: 0;
	width: 20px;
	-webkit-transition: all 100ms ease-out;
	-moz-transition: all 100ms ease-out;
	-ms-transition: all 100ms ease-out;
	-o-transition: all 100ms ease-out;
	transition: all 100ms ease-out;
}

.cy.s2 {
	-ms-transform: rotate(50deg);
	-webkit-transform: rotate(50deg);
	transform: rotate(50deg);
	-webkit-transition: all 100ms ease-out;
	-moz-transition: all 100ms ease-out;
	-ms-transition: all 100ms ease-out;
	-o-transition: all 100ms ease-out;
	transition: all 100ms ease-out;
}

.cy.s3 {
	-ms-transform: rotate(45deg);
	-webkit-transform: rotate(45deg);
	transform: rotate(45deg);
	-webkit-transition: all 100ms ease-out;
	-moz-transition: all 100ms ease-out;
	-ms-transition: all 100ms ease-out;
	-o-transition: all 100ms ease-out;
	transition: all 100ms ease-out;
}

.cx.s1 {
	right: 0;
	width: 20px;
	-webkit-transition: all 100ms ease-out;
	-moz-transition: all 100ms ease-out;
	-ms-transition: all 100ms ease-out;
	-o-transition: all 100ms ease-out;
	transition: all 100ms ease-out;
}

.cx.s2 {
	-ms-transform: rotate(140deg);
	-webkit-transform: rotate(140deg);
	transform: rotate(140deg);
	-webkit-transition: all 100ms ease-out;
	-moz-transition: all 100ms ease-out;
	-ms-transition: all 100ease-out;
	-o-transition: all 100ms ease-out;
	transition: all 100ms ease-out;
}

.cx.s3 {
	-ms-transform: rotate(135deg);
	-webkit-transform: rotate(135deg);
	transform: rotate(135deg);
	-webkit-transition: all 100ease-out;
	-moz-transition: all 100ms ease-out;
	-ms-transition: all 100ms ease-out;
	-o-transition: all 100ms ease-out;
	transition: all 100ms ease-out;
}

#chatview,
#sendmessage {
	overflow: hidden;
	border-radius: 6px;
}