.wrp {
	max-width: 1100px;
    margin: 0 auto;
}

.line-black-top {
	position: fixed;
	z-index: 5;
	top: 0;
	left:0;
	right:0;
	border-top: 2px solid #000;
}

#header {
	background: #000;
	position: relative;
    z-index: 6;
}

#header_menu {
    padding-right: 105px;
}

#mobile_menu_btn {
    display: block;
}

#cat_menu-wrap {
	position: relative;
	z-index: 5;
}

#cat_menu {
    z-index: 1111;
    top: 0;
    left: 0;
    top: -25px;
    bottom: 0;
    margin: 0;
    width: 200px;
    background-color: #ededed;
    border-right: 1px solid #d9d9d9;
    visibility: hidden;
    opacity: 0;
    -webkit-overflow-scrolling: touch;
    float: none;
    display: none;
}

@media only screen and (max-width: 600px) {
	#cat_menu {
		top: 0;
		right: 0;
    	width: auto;
	}
}

.mobile-menu_open #cat_menu {
    opacity: 1;
    visibility: visible;
    position: absolute;
    display: block;
    height: 100vh;
    overflow: auto;
    background: transparent;
    border-right: 0;
}

.cat_menu {
	background: #ccc;
}

.midside {
	padding-left: 0;
}

#login_pane {
	position: absolute;
    top: 21px;
    right: 65px;
}

	#search_btn {
		position: absolute;
		right: 15px; 
		top: 0; bottom: 0;
		width: 34px; 
		height: 80px;
		border: 0 none;
		cursor: pointer;
		background-color: transparent;
	}
	#search_btn > span {
		display: block;
		width: 32px; height: 32px;
		border: 2px solid #fff;
		border-radius: 50%;
		overflow: hidden;
		position: relative;
	}
	#search_btn > span > .icon {
		position: absolute;
		left: 50%; top: 50%;
		margin: -8px 0 0 -8px;
		width: 16px; height: 16px;
		fill: #fff;
		-webkit-transition: all ease .3s; transition: all ease .3s;
	}
	.search_open #search_btn > span > .icon-search,
	#search_btn > span > .icon-cross {
		opacity: 0; visibility: hidden;
		-webkit-transform: scale(0.3,0.3);
    	transform: scale(0.3,0.3);
	}
	.search_open #search_btn > span > .icon-cross,
	#search_btn > span > .icon-search {
		opacity: 1; visibility: visible;
		-webkit-transform: scale(1,1);
    	transform: scale(1,1);
	}
	
	#q_search-wrap {
		position: relative;
	}
	
	#q_search {
		display: block;
		position: absolute;
		z-index: 23;
		left: 10px; right: 60px; top: 0;
		margin:0;
		width: auto; height: 80px;
		margin-top: -80px;
	}
	
	.q_search > input { background-color: #fff; }
	.logotype, #mobile_menu_btn, #login_pane, #q_search { -webkit-transition: all ease .3s; transition: all ease .3s; }
	.search_open .logotype, .search_open #mobile_menu_btn, .search_open #login_pane, #q_search { opacity: 0; visibility: hidden; }
	.search_open #q_search { margin-top: 0; opacity: 1; visibility: visible; }
	.q_search_adv { display: none; }
	
	
	@media only screen and (max-width: 700px) {
		#header_menu {
			display: block;
		}
		#top_menu {
			display: none;
		}
	}
	
	@media only screen and (max-width: 600px) {
		#mobile_menu_btn {
		    width: 50px;
		    height: 50px;
		    padding: 0;
		    border-right-width: 0;
		}
		
		#search_btn {
		    height: 24px;
		    top: 2px;
		}
		
		#search_btn > span {
		    display: block;
		    width: 25px;
		    height: 25px;
		}
		#top_menu { 
		display: none; 
		}
		.cat_menu {
		    background: #000;
		}
		#login_pane {
		    top: -9px;
		}
		#login_pane {
			opacity: 1;
			visibility: visible;
		}
		
		
	}
	
#dle-comments-list img {
	max-width: 100%;
}

#upper {
    position: fixed;
    z-index: 1000;
    right: 18px;
    bottom: 80px;
}
	

.toggle-view {
	position: fixed;
	z-index: 1000;
	bottom: 0;
	right: 0;
	padding: 15px;
	background: #bbb;
	display: flex;
	justify-content: space-between;
	width: 75px;
}

.toggle-view > div {
	width: 30px;
	height: 30px;
	background: #fff;
	cursor: pointer;
}

.toggle-view .toggle-view-night {
	background: #000;
}


@media only screen and (max-width: 700px) {
	.toggle-view {
		padding: 5px;
		width: 15px;
		display: block;
	}

	.toggle-view > div {
		width: 15px;
		height: 15px;
	}
	
	.toggle-view-day {
		margin-bottom: 5px;
	}	
}

body.view-night {
    background-color: #000;
    color: #bfbfbf;
}

body.view-night #header {
	background-color: #22272B;
}

body.view-night .block_grey {
    background-color: #22272B;
}

body.view-night .box, 
body.view-night .comment {
	background-color: #22272B;
}

body.view-night .story > .meta {
    background-color: #22272B;
}

body.view-night a {
    color: #bfbfbf !important;
}

body.view-night .cat_menu {
    background-color: #22272B;
}

body.view-night .btn, 
body.view-night .bbcodes, 
body.view-night .btn-border {
    background-color: #000;
}

body.view-night .btn:hover, 
body.view-night .bbcodes:hover, 
body.view-night .btn-border:hover {
    background-color: #000;
}

body.view-night .tag_list > span > a:hover {
    background-color: #000;
}

body.view-night #upper {
    background-color: #22272B;
}

body.view-night .pages span, 
body.view-night .pages a:hover, 
body.view-night .page_next-prev {
    background-color: #22272B;
}

body.view-night .calendar tr th {
	background-color: #22272B;
}

body.view-night .calendar tr th.weekday {
    background-color: #ea5f24;
    color: #bfbfbf;
}

body.view-night .title_tabs ul li.active > a {
	background-color: #bfbfbf;
}

body.view-night .block > .title:after {
    background-color: #bfbfbf;
    border-top: 1px solid #bfbfbf;
}

body.view-night .vote_list .vote > input + label:before, .vote_list .pollanswer > input + label:before {
    background-color: #bfbfbf;
}

body.view-night .dropdown-menu, 
body.view-night .dropdown-form {
	background-color: #22272B;
    color: #bfbfbf;
}

body.view-night .dropdown-menu.dot:before, 
body.view-night .dropdown-form.dot:before {
    background-color: #bfbfbf;
}

body.view-night #login_pane > li > .btn-border:hover {
    border-color: #bfbfbf;
}

body.view-night #search_btn > span {
    border: 2px solid #bfbfbf;
}

body.view-night .but-enlarge-photo {
	background: #000;
    color: #bfbfbf;
}

body.view-night .but-enlarge-photo:hover {
    background: #000;
    color: #bfbfbf;
}

body.view-night body, 
body.view-night select, 
body.view-night input, 
body.view-night textarea, 
body.view-night button {
	color: #bfbfbf;
}

body.view-night .berrors {
	color: #bfbfbf;
}

body.view-night .menu_toggle > i {
	background: #bfbfbf;
}

body.view-night .ui-dialog {
    background-color: #22272B;
}

body.view-night .ui-dialog-content {
	border-color: #bfbfbf;
}

body.view-night .block {
	background-color: #22272B;
}

body.view-night .voteprogress, 
body.view-night .pollprogress {
    background-color: #bfbfbf;
}

body.view-night .ui-dialog-titlebar-close .ui-icon {
	background: #ff0;
}

body.view-night .dropdown-form.logged:before, 
body.view-night .dropdown-form.logged:after {
    background-color: #22272B;
}

body.view-night .q_search > input {
	background-color: #bfbfbf;
	color: #000;
}

body.view-night .com_content > .text .title_quote,
body.view-night .com_content > .text .quote {
	background: #3b454c;
}

/*span.ratingtypeplusminus{
	display: none !important;
}
*/


/*div.avatar p{
	display: none !important;
}

div.ui-c2 b{
	display: none !important;
}*/
