* {
	margin: 0;
	padding: 0;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
body.yl {
	background-color: #fff000;
	font-size: 1em;
	font-family: Verdana, Arial, Helvetica, sans-serif;
}

/* Стандартные объекты */
h1, h2, h3, h4, h5, h6 {font-weight: normal;}
ul {list-style: none;}
input[type="text"], input[type="number"], input[type="email"], textarea{
	border: 1px solid #ddd;
	padding: 4px;
	color: #555;
	width: 100%;
}
select {
    width: 50%;
}

/* Классы */
.btn {
	border: 2px solid #ff0000;
	background-color: #fff;
	color: #555;
	text-decoration: none;
    white-space: nowrap;
	padding: 5px 15px;
	font-size: 0.9em;
}
.btn:hover {
	background-color: #ff0000;
	color: #fff;
}

.intro {
	display: block;
	margin-bottom: 15px;
}
.logo {display: none;}

/* Blocks */
.container {
	max-width: 1920px;
	max-height: 1080px;
	margin: auto;
	border: 1px solid #cfc300;

	position: absolute;
	bottom: 0;
	left: 0;
	top: 0;
	right: 0;
}
.chatcontainer {
	margin: auto;
	border: 1px solid #cfc300;
}

/* Верхний блок */
.top {
	vertical-align: middle;
	padding: 20px 15px;
}
.top ul {white-space: nowrap;}
.top ul li {
	display: inline-block;
	width: 22%;
	vertical-align: middle;
	text-align: right;
}
.top ul li:first-child {text-align: left; width: 77%;}
.top ul li img {width: 100%;}

/* Основной контент */
.main {
	padding: 0 15px;
}
.cont2 {
	padding: 0 20px;
}
.main form {
	background-color: #fff;
	padding: 15px;
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	border-radius: 10px;
	border: 1px solid #e6e6e6;
}
.chatmain form {
	background-color: #fff;
	padding: 15px;
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	border-radius: 10px;
	border: 1px solid #e6e6e6;
}

.main .row {
	display: block;
	width: 100%;
	white-space: nowrap;
	margin-bottom: 10px;
}
.main .row:after {content: " "; display: block; clear: both;}
.main .row > div {
	display: inline-block;
	width: 55%;
	float: right;
}
.main .row > div:first-child {
	width: 45%;
	vertical-align: top;
	float: left;
}

.controls {margin-bottom: 10px;}
.controls ul {list-style: none; text-align: right;}
.controls ul li {display: inline-block;}

.footer {
	width: 100%;
	height: 100px;
	position: relative;
	bottom: 0;
}
.footer p {
	text-align: center;
	padding: 10px;
}
.footer p span {
	color: #ff0000;
	font-weight: bolder;
}
.footer > div {
	position: relative;
	background: url('/images/uzor.png');
	width: 100%;
	bottom: 0;
	height: 52px;
}

#chatwnd {
	border: 1px solid #ddd;
}

.message {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #4F4F4F;
	padding-left: 3px;
	padding-top: 3px;
	padding-bottom: 3px;
	padding-right: 3px;
	line-height: 17px;
}

.message span.time {
	color: #aaa;
}

.message span.nuser {
	color: #B11E23;
	font-weight: bold;
}

.message span.nagent {
	font-weight: bold;
}

.message span.minf {
	color: #1E48B1;
	font-size: 11px;
}

.message span.mevent {
	color: #A1A1A1;
	font-size: 11px;
}

.message span.mhidden {
	color: #A1A1A1;
	font-size: 11px;
}

.message span.mconn {
	color: #A1A1A1;
	font-size: 11px;
}

@media screen and (max-width: 600px){
	.container {
		border: 0;
		position: static;
		padding: 0;
		max-height: none;
		max-width: none;
	}
	.cont2 {padding: 10px;}
	.chatcontainer {
		border: 0;
		position: static;
		max-height: none;
		max-width: none;
	}
	.logo {
		width: 100%;
		display: block;
		text-align: center;
		padding: 10px 0;
	}
	.logo img {width: 50%;}

	.top {
		vertical-align: middle;
		padding: 20px 15px 20px 15px;
	}
	.top ul {text-align: center; white-space: normal;}
	.top ul li:nth-child(1) {text-align: center;}
	.top ul li:nth-child(2) {
		display: none;
	}

	.top .ul2 {text-align: left; white-space: normal;}
	.top .ul2 li:nth-child(2) {text-align: right; width: 20%;}
	.top .ul2 h1 {font-size: 1.7em;}

	.main .row > div {
		display: block;
		width: 100%;
	}
	.chatmain {padding: 10px;}
	.chatmain .btn {
		width: 100%;
		display: block;
		text-align: center;
	}
	.chatmain .row > div {
		display: block;
		width: 100%;
	}
	.chatmain form {
		padding: 0;
		background-color: inherit;
		border: 0;
		height: 60%;
	}

	#chatwnd {
		background-color: #fff;
		height: 100%;
		width: 100%;
		color: #666;
		border: 1px solid #ddd;
		-webkit-border-radius: 5px;
		-moz-border-radius: 5px;
		border-radius: 5px;
		padding: 5px;
	}
}