html,
body {
	height: 100%;
	margin: 0px;
	padding: 0px;
	font-size: 20px;
}

body {
	line-height: normal;
	font-family: Arial, sans-serif;
	background-color: #FFFFFF;
	color: #000;
	max-height: 100vh;
	overflow-x: auto;
}

table {
	font-family: Arial, sans-serif;
	font-style: normal;
	font-weight: normal;
	text-transform: normal;
	border-collapse: collapse;
	empty-cells: show;
}

input,
textarea {
	border: solid 1px #bbb;
	border-radius: .5em;
	padding: .25em .5rem;
	width: 100%;
	line-height: 1.5rem;
}

*:focus {
	outline: none;
}

.button {
	border: none;
	border-radius: .2em;
	padding: .5em .8em;
	color: #fff;
	cursor: pointer;
	text-shadow: none;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .1) inset;
	display: inline-block;
	min-height: 1em;
	outline: 0;
	vertical-align: baseline;
	font-weight: 400;
	line-height: 1em;
	text-align: center;
	text-decoration: none;
	background-color: #4184f3;
	background-image: -webkit-gradient(linear, left top, left bottom, from(transparent), to(rgba(0, 0, 0, .05)));
	background-image: -webkit-linear-gradient(transparent, rgba(0, 0, 0, .05));
	background-image: linear-gradient(transparent, rgba(0, 0, 0, .05));
}

.button:focus {
	background-color: #0c68ff;
	color: #fff;
	text-shadow: none;
}

h1 {
	margin: 0;
	font-size: 1.2em;
}

p {
	margin: .3em 0;
}

#attachIcon {
	margin-top: 4px;
	height: 36px;
}

#attachIcon:hover {
	cursor: pointer;
}

#sendButton:hover {
	cursor: pointer;
}

.msgCnt {
	display: table;
	width: 100%;
}

.msgCnt .time {
	font-size: .8em;
	position: absolute;
	top: .2em;
	color: #999;
}

.msgCnt .attach,
.msgCnt .attachPreview {
	font-size: .9em;
	color: #333;
}

.msgCnt .attach:before {
	background-image: url('attach.svg');
	background-size: 1.2em auto;
	display: inline-block;
	width: 1.2em;
	height: 1.2em;
	content: '';
	background-repeat: no-repeat;
	position: relative;
	top: .2em;
}

.msgCnt .attachPreview img {
	max-width: 500px;
}

.msgRcv,
.msgSnt {
	max-width: 80%;
	display: inline-block;
	padding: 1em;
	border-radius: 14px;
	margin: .3em .5em;
	position: relative;
	min-width: 6em;
}

.msgRcv {
	border: solid 1px #BBB;
	background-color: #F0F0F0;
	margin-left: 1.2em;
}

.msgRcv:before {
	content: '';
	position: absolute;
	width: 0;
	height: 0;
	left: -14px;
	right: auto;
	top: -1px;
	bottom: auto;
	border: 14px solid;
	border-top-color: currentcolor;
	border-right-color: currentcolor;
	border-bottom-color: currentcolor;
	border-left-color: currentcolor;
	border-color: #BBB transparent transparent transparent;
}

.msgRcv:after {
	content: ' ';
	position: absolute;
	width: 0;
	height: 0;
	left: -12px;
	right: auto;
	top: 0;
	bottom: auto;
	border: 14px solid;
	border-top-color: currentcolor;
	border-right-color: currentcolor;
	border-bottom-color: currentcolor;
	border-left-color: currentcolor;
	border-top-color: currentcolor;
	border-right-color: currentcolor;
	border-bottom-color: currentcolor;
	border-left-color: currentcolor;
	border-color: #F0F0F0 transparent transparent transparent;
}

.msgRcv img {
	height: 1em;
	vertical-align: middle;
}

.msgRcv a {
	text-decoration: none;
	color: #000;
}

.msgRcv a.visited {
	text-decoration: none;
	color: #006800;
}

.msgSnt {
	border: solid 1px #0073BF;
	background-color: #9df;
	float: right;
	margin-right: 1.2em;
}

.msgSnt:before {
	content: '';
	position: absolute;
	width: 0;
	height: 0;
	left: auto;
	right: -14px;
	top: -1px;
	bottom: auto;
	border: 14px solid;
	border-top-color: currentcolor;
	border-right-color: currentcolor;
	border-bottom-color: currentcolor;
	border-left-color: currentcolor;
	border-color: #0073BF transparent transparent transparent;
}

.msgSnt:after {
	content: ' ';
	position: absolute;
	width: 0;
	height: 0;
	left: auto;
	right: -12px;
	top: 0;
	bottom: auto;
	border: 14px solid;
	border-top-color: currentcolor;
	border-right-color: currentcolor;
	border-bottom-color: currentcolor;
	border-left-color: currentcolor;
	border-top-color: currentcolor;
	border-right-color: currentcolor;
	border-bottom-color: currentcolor;
	border-left-color: currentcolor;
	border-color: #9df transparent transparent transparent;
}

.msgConfirmed {
	background-color: #0099FF;
	color: #FFFFFF;
}

.msgConfirmed.msgSnt:after {
	border-color: #0099FF transparent transparent transparent;
}

.msgConfirmed .time {
	color: #CCC;
}

.msgConfirmed .attachPreview {
	color: #EEE;
}

.msgErr {
	background-color: #FF3333;
	color: #FFFFFF;
}

.msgErr.msgSnt:after {
	border-color: #FF3333 transparent transparent transparent;
}

.msgErr .time {
	color: #CCC;
}

.msgErr .attachPreview {
	color: #EEE;
}

.msgNew {
	background-color: #FFF3BE;
}

.msgNew.msgRcv:after {
	border-color: #FFF3BE transparent transparent transparent;
}

#preview {
	display: none;
	border: solid 1px #ccc;
	background: #FFF;
	text-align: left;
}

.preview {
	display: inline-block;
	padding: .5em;
	font-size: .7em;
	color: #555;
}

.preview img {
	max-height: 60px;
}

#attachRemove {
	display: none;
	position: absolute;
	right: .4em;
	text-decoration: none;
	color: #555;
	font-weight: bold;
	font-size: 1.2em;
	margin-top: .1em;
}

.msgSelected * {
	color: #FF0000 !important;
}

.msgSelected img {
	filter: grayscale(100%) brightness(40%) sepia(100%) hue-rotate(-50deg) saturate(600%) contrast(0.8);
}

.navimg {
	height: 32px;
}

.footer {
	background-color: #eee;
	padding: 4px;
	font-size: 12px;
	color: #111;
	text-align: center;
	border-top: solid 1px #ccc;
}

.head {
	height: 40px;
	font-size: 1.1rem;
}

.head>td {
	top: 0;
	left: 0;
	right: 0;
	position: fixed;
	z-index: 999;
	color: #111;
	border-bottom: solid 1px #ccc;
	background-color: #eee;
	padding: 0 5px;
}

.head .navbar {
	color: #111;
}

.head .navbar td {
	height: 40px;
	vertical-align: middle;
}

.head .navbar td>div {
	white-space: nowrap;
	max-width: 35vw;
	overflow-x: hidden;
	text-overflow: ellipsis;
}

.head .navbar a {
	text-decoration: none;
	color: #009FDA;
	font-size: 1.2rem;
}

#navTitle {
	overflow: hidden;
	max-width: 11em;
}

a.aRcv {
	text-decoration: underline;
	color: #0645AD;
}

a.aSnt {
	text-decoration: underline;
	color: #FFFF66;
}