* {
	box-sizing: border-box;
	color: #777;
	font-size: 16px;
	line-height: 24px;
	font-family: "lft-etica",sans-serif;
}

html, body, #ChatForm {
	height: 100%;
	background: #f2f2f2;
	padding: 0;
	margin: 0;
}

body {
	position: relative;
}

#header {
	height: 400px;
	background: #333;
	border-top: 4px solid #2382b2;
	border-bottom: 2px solid #d6ffa1;
}

#header-content {
	max-width: 640px;
	height: 120px;
	margin: 0 auto;
}
#header-content > img {
	height: 80px;
	margin-top: 20px;
	float: left;
}
#header-content > h1 {
	font-size: 42px;
	line-height: 64px;
	margin: 56px 0 0 24px;
	float: left;
	color: #fff;
}
#header-content > a {
	display: none;
	float: right;
	color: #fff;
	font-size: 16px;
	text-decoration: none;
	margin-top: 48px;
}

#ChatForm {
	width: 640px;
	margin: 0 auto;
	border: 2px solid #fcfcfc;
	box-shadow: 0 0 10px #777;
	height: calc(100% - 160px);
	position: absolute;
	top: 120px;
	bottom: 40px;
	left: calc(50% - 320px);
}

#ChatHeader {
	overflow: hidden;
	background: #fcfcfc;
	height: 80px;
}
#ChatHeader > div {
	padding-top: 24px;
	padding-bottom: 24px;
	float: left;
}
#ChatHeader > div:first-child {
	width: 60%;
	text-align: left;
	padding-left: 24px;
}
#ChatHeader > div:last-child {
	width: 40%;
	text-align: right;
	padding-right: 24px;
	float: right;
}
#ChatHeader h2 {
	font-size: 24px;
	margin: 0;
	line-height: 32px;
}

#ChatFooter {
	background: #fcfcfc;
	border-top: 2px solid #f8f8f8;
	height: 112px;
	padding: 24px;
}

#ChatDisplay {
	height: 100%
}

#ChatMessageHistory {
	height: calc(100% - 192px);
	width: 100%;
	background: #fff;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}

#ChatSendInput {
	height: 64px;
	width: 400px;
	margin-right: 24px;
	border: 2px solid #f8f8f8;
	border-radius: 2px;
}

#ChatSendButton {
	float: right;
	background: #d6ffa1;
	border: none;
	border-bottom: 3px solid #a8efa3;
	border-radius: 2px;
	color: #000;
	padding: 12px 24px;
	box-shadow: none;
	-webkit-box-shadow: none;
	-mox-box-shadow: none;
	outline: none;
	cursor: pointer;
	text-transform: uppercase;
	font-weight: 900;
	width: 164px;
	height: 64px;
}

.received, .sent {
	position: relative;
	margin-top: 2px;
	padding: 24px;
}
.received {
	border-left: 5px solid #2382b2;
	border-right: 5px solid #f8f8f8;
}
.sent {
	border-left: 5px solid #f8f8f8;
	border-right: 5px solid #66fed2;
	text-align: right;
}
.received:before, .sent:before {
	content: '';
	position: absolute;
	border-top: 2px solid #f8f8f8;
	left: -5px;
	right: -5px;
	top: -2px;
}
.received:last-child, .sent:last-child {
	margin-bottom: 2px;
}
.received:last-child:after, .sent:last-child:after {
	content: '';
	position: absolute;
	border-bottom: 2px solid #f8f8f8;
	left: -5px;
	right: -5px;
	bottom: -2px;
}

.ChatRecordInSender, .ChatRecordOutSender {
	font-style: italic;
	display: block;
	margin-bottom: 12px;
}

.ChatRecordInText, .ChatRecordOutText {
	color: #333;
}

.ChatRecordOutSender, .ChatRecordOutText {
	display: block;
	max-width: 480px;
	margin-left: auto;
}

.ChatRecordOutText {
	font-weight: 900;
}

.ChatRecordInSender, .ChatRecordInText {
	display: block;
	max-width: 480px;
	margin-right: auto;
}

@media only screen and (max-width: 768px) {
	#ChatForm {
		width: 100%;
		height: calc(100% - 80px);
		bottom: 0px;
		left: 0;
		top: 80px;
	}
	#header-content {
		max-width: initial;
		height: 80px;
		width: 100%;
		padding-left: 24px;
		padding-right: 24px;
	}
	#header-content > img {
		height: 56px;
		margin-top: 12px;
	}
	#header-content > h1 {
		display: none;
	}
	#header-content > a {
		display: block;
	}
	#ChatHeader {
		display: none;
	}
	#ChatMessageHistory {
		height: calc(100% - 172px);
	}
	#ChatFooter {
		height: 172px;
	}
	#ChatSendInput {
		width: 100%;
		margin-right: initial;
		margin-bottom: 12px;
	}
	#ChatSendButton {
		float: initial;
		width: 100%;
		height: 48px;
	}
}
