@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,700&subset=cyrillic,cyrillic-ext');

* {
	font-family: 'Open Sans', sans-serif;
	font-size: 14px;
	box-sizing: border-box;
	color: #000;
}

body {
	margin:0;
	padding-top: 160px;
	background: #fff;
	min-width: 1200px;
}

.displaynone {
	display: none !important;
}

.opacity {
	opacity: 0.2 !important;
}

.overlay {
	position:fixed;
	top:0;
	bottom:0;
	width:100%;
	height:100%;
	z-index: 1000;
	background: #333;
	display: none;
}

.alert {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 1100;
	background: #00ffaa;
	color: #000;
	font-weight: bold;
	padding: 5px 15px;
	border-radius: 5px;
}

.counter {
	position: absolute;
	right: 275px;
	top: 14px;
}

.dialog_bg {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(0,0,0, 0.75) !important;
	width: 100%;
	height: 100%;
	z-index: 1000;
}

.dialog_bg .dialog {
	min-width: 500px;
	max-width: 600px;
	min-height: 110px;
	max-height: 700px;
	width: fit-content;
	height: fit-content;
	position: absolute;
	margin: auto;
	top: 20%;
	left: 0;
	right: 0;
	
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background: #fff;
	border: 1px solid #aaa;
}

.dialog_bg .dialog .dialog_title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 28px;
	background: #333;
	padding: 0 5px 0 10px;
	color: #fffef0;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
}

.dialog_bg .dialog .dialog_title .close_dialog {
    color: #fffef0;
    font-size: 22px;
	cursor: pointer;
}

.dialog_bg .dialog .dialog_title .close_dialog:hover {
    color: #ff8f8f;
}

.dialog_bg .dialog .dialog_content {
	padding: 10px;
	flex-grow: 1;
	max-height: 400px;
	overflow-y: scroll;
}

.dialog_bg .dialog .dialog_buttons {
	padding: 10px;
	display: flex;
	justify-content: space-around;
	flex-wrap: wrap;
}

.dialog_bg .dialog .dialog_buttons .button {
	margin: 0 5px;
}


header {
	display: flex;
	align-items: center;
	border-bottom: 2px solid #fae0e0;
	padding: 0 20px;
	height: 160px;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background: #ffe;
	z-index: 100;
}

header #logo {
	cursor: pointer;
	margin-right: 20px;
}

header>div {
	width: 100%;
}

header .title {
	font-size: 20px;
	/*color: #d80f00;*/
	color: #333;
	font-weight: bold;
	margin: 5px 0;
}

header .title a {
	font-size: inherit;
	color: inherit;
	text-decoration: underline;
}


header .search {
	position: relative;
	display: flex;
	min-width: 925px;
	width: 925px;
	justify-content: space-between;
	align-items: center;
	line-height: 1;
	margin-bottom: 10px;
}

header .search #search {
	font-size: 20px;
	padding: 0px 40px 4px 10px;
	font-weight: bold;
	width: 100%;
	color: #003388;
	outline: 0;
}

header .search #searchclear {
    position: absolute;
    right: 263px;
	font-size: 20px;
    color: #ccc;
	cursor: pointer;
}

header .search #searchclear:hover {
    color: #d80f00;
}

header .searchbuttons {
	width: 250px;
	min-width: 250px;
	display: flex;
	justify-content: flex-end;
}

header .searchbuttons>div {
	font-size: 34px;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px 0;
	min-width: 50px;
	width: 50px;
	position: relative;
	background: #fff;
	margin: 0 4px;
}

header .searchbuttons>div.fas:before {
	color: #333;
	width: 100%;
	display: block;
	text-align: center;
	cursor: pointer;
}

header .searchbuttons>div.fas:hover:before {
	color: #d80f00;
}


header .images {
	display:flex;
	align-items: center;
}

header .images #hidemode {
	margin: 0 5px;
	width: 50px;
	text-align: center;
}

header .images #hidemode i.fa-eye {
	font-size: 40px;
	color: green;
	cursor: pointer;
}

header .images #hidemode i.fa-eye-slash {
	font-size: 40px;
	color: red;
	cursor: pointer;
}

header .images #graymode i.fa-palette {
	font-size: 40px;
	color: yellowgreen;
	cursor: pointer;
	margin: 0 10px;
}

header .images #reverse i.fa-long-arrow-alt-down,
header .images #reverse i.fa-long-arrow-alt-up {
	font-size: 40px;
	color: #ff5e00;
	cursor: pointer;
	margin: 0 10px;
}

header .imgc {
	position: relative;
	width: 80px;
}

header .imgc:after {
	content: attr(title);
	position: absolute;
	top: -6px;
	left: 0;
	width: 100%;
	text-align: center;
	font-size: 10px;
	font-weight: bold;
	color: #333;
}

header .togglecity {
	cursor: pointer;
	/*filter: grayscale(100%);*/
	height: 47px;
	margin: 10px 15px 0;
}

header .togglecity:hover {
	filter: grayscale(0%) !important;
}

.chat {
	margin-bottom: 106px;
	background: #fff;
	display: flex;
	flex-direction: column;
}

.chat.reverse {
	flex-direction: column-reverse;
}

.chat .message {
	display: flex;
	align-items: flex-start;
	margin: 3px 0 0 0;
	border: 1px dashed transparent;
}

.chat .message.finded {
	border: 1px dashed #ccc;
    background: #eee;
}

.chat .message.finded .text {
    font-weight: bold;
}

.chat .message.exclude {
	border: 1px dashed #ccc;
    background: #f44;
}

.chat .message.exclude .text{
	font-weight: bold;
}

.chat .message:hover {
	background: #ddf1ff;
}

.chat .message .city {
	color: orangered;
	min-width: 150px;
	width: 150px;
	font-weight: bold;
	text-transform: capitalize;
	text-align: right;
	margin-right: 10px;
	letter-spacing: 0.2px;
}

.chat .message .time {
	color: #000;
	background-color: #00ffaa;
	padding: 0 5px;
	font-weight: bold;
	letter-spacing: 0.5px;
}

.chat .message .login {
	font-weight: bold;
	color: #003388;
	margin: 0 10px;
	min-width: 210px;
	width: 210px;
	cursor: pointer;
}

.chat .message .text {
	min-width: 600px;
}

.chat .message .text span {
	color: red;
	font-weight: bold;
	background-color: #fae0e0;
	padding: 0 5px;
	margin-right: 5px;
	cursor: pointer;
}

.chat .message .text a.chat_link, a.chat_link:visited {
	text-decoration: none;
	font-weight: bold;
	color: #003388;
}

footer {
	height: 96px;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: #ffe;
	border-top: 2px solid #fae0e0;
	padding: 5px 0 5px 160px;
	z-index: 100;
}

footer .header {
	font-size: 16px;
	font-weight: bold;
}

footer .text {
	max-width: 600px;
}

footer a.flinks, footer a.flinks:visited {
	margin: 0 10px 0 0;
    color: #ff5722;
}

footer a.flinks.tournir, footer a.flinks.tournir:visited {
	font-weight: bold;
    color: #00b700;
}

footer .state {
	position: absolute;
	right: 30px;
	top: 10px;
	width: 225px;
}

footer .state #active {
	font-weight: bold;
}

footer .state #autoscroll {
	font-weight: bold;
}

.fav_item {
	display: flex;
	align-items: center;
	line-height: 1;
	padding: 1px 0 1px 10px;
	background: #ffe;
	border: 1px solid #ddd;
	margin: 6px 0;
	justify-content: space-between;
	cursor: pointer;
}

.fav_item:hover {
	background: #ffff99;
}

.fav_remove {
    padding: 0 10px;
    font-size: 20px;
	color: #d80f00;
}




body.gray * {
	color: black !important;
    background: #fff;
}

body.gray .chat .message .time {
	background-color: #fff;
}

body.gray .chat .message .text span {
	background-color: #fff;
}

body.gray .dialog_bg .dialog .dialog_title {
	color: #fff !important;
}

body.gray header #logo {
	filter: grayscale(1);
}

body.gray header .images .imgc img {
	filter: grayscale(1);
}

body.gray header .images #hidemode *:hover {
	color: red !important;
}

body.gray header .images #graymode *:hover {
	color: yellowgreen !important;
}

body.gray .chat .message.finded {
    background: #fff;
}

body.gray .chat .message:hover {
	background: #ddf1ff;
}

body.gray .chat .message:hover * {
	background: #ddf1ff !important;
}

body.gray .counter {
	filter: grayscale(1);
}


body.gray .dialog_bg .dialog .dialog_title .close_dialog {
	color: #fff !important;
	background: #333 !important;
}

body.gray .dialog_bg .dialog .dialog_title .close_dialog:hover {
    color: #ff8f8f !important;
}

body.gray .fav_item:hover * {
	background: #ffff99;
}



#go_end {
	position: fixed;
    right: 6px;
    bottom: 26px;
    z-index: 100;
    font-size: 48px;
    color: green;
    opacity: 0.4;
}

#go_end:hover {
	cursor: pointer;
    opacity: 1;
}
