@media screen and (-webkit-min-device-pixel-ratio:0) { /* add antialiasing to fonts loaded via @font-face on chrome */
	@font-face {
	font-family: 'FontAwesome';
	src: url('http://netdna.bootstrapcdn.com/font-awesome/4.0.3/fonts/fontawesome-webfont.svg?v=4.0.3#fontawesomeregular') format('svg');
	}
}

* {-webkit-tap-highlight-color:rgba(0,0,0,0)!important}

.hires {
	margin-left: auto;
	margin-right: auto;
	max-width: 1400px;
}

.file .close:after {
	background: none repeat scroll 0 0 black;
	border-radius: 14px;
	color: #fff;
	content: '\f00d';
	font-family: FontAwesome;
	font-size: 21px;
	height: 30px;
	line-height: 30px;
	position: absolute;
	text-align: center;
	width: 30px;
	margin-top: 0px;
	margin-left: -15px;
	z-index: 3;
}

video.full-view {min-width:150px;max-width:750px;max-height:600px;position:relative;z-index:2;margin-top:15px;}

.file {position: relative;}

 /*--------------------- */

.modal-cont input[type="button"], .modal-cont button {
	border-radius: 3px;
	font-size: 16px;
	padding: 7px 18px;
	transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0s;
}

.modal-cont input[type="button"]:hover, .modal-cont button:hover {
	cursor: pointer;
}

.clear:after {
	clear: both;
	content: " ";
	display: block;
}

#menu-wrapper {
	top:0;
	width:100%;
	height:30px;
	background:#fff;
	z-index:50;
}

#menu-wrapper.pinned {
	position:fixed;
}

#menu-wrapper.pinned + div {
	margin-top:30px;
}

.sub-menu h2 {
	font-size: 18px;
	margin: 10px 0 15px;
}

.sub-menu label:after {content:"";display:block}


#menu .modal-nav {
	width: 100%;
	height: 20px;
	margin: 0;
	display: table;					
	font-weight: bold;
	list-style-type: none; 
}

#menu .modal-nav li {
	display: table-cell;
	text-align: center;
	vertical-align: middle;
	cursor: pointer; 
	transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0s;
}

#menu .modal-nav li:last-child {
	border-right: none;
}

#menu .modal-nav li.tab-opened {
	background-color: transparent;
	border-bottom: none;
}

#menu .tab-content {
	padding: 10px 20px 10px 20px;
	display: none;
}

table .ui-sortable-helper {
    display: table;
}				

#menu input[type="checkbox"] {display:none}

#menu input[type="checkbox"] + label {cursor:pointer;}

#menu input[type="checkbox"] + label:before {
  content:"\f096";font-family: FontAwesome;font-size:20px;display:inline-block;width:25px;position:relative;top:2px}

#menu input[type="checkbox"]:checked + label:before {content:"\f046";}

#menu input[type="checkbox"]:disabled + label:before {
	opacity: 0.3;
}

.haze {
font-size: 9px;
right: 1px;
border-radius: 2px;
top: 25px;
z-index: 100;
opacity: 1;
position: absolute;
padding: 0px 1px;
line-height: 2;
word-break: normal;
}

.group-options a, .group a {
	color:#888;
	padding:0 2px;
	text-decoration:none;
	font-size:12px;
	display:inline-block;
	line-height:30px;
	position: relative;
}

.group-options a:hover, .group a:hover {
	color:#fff;
}

.group a:after {
	content:"/";
	display:inline;
}


.btn-wrap {
	margin-top: 4px;
	margin-bottom: 8px;
	text-align:center;
}

.opened {display:block!important; }

.group {
		display:inline-block;
		margin-left:8px;
		margin-right:10px;
	}
	
	
@media only screen and (min-width:1113px) {

	.group-options a, .group a {
		padding:0 4px;
	}
}

@media only screen and (min-width:1025px) {

	.group-options a.reset:after {
		content:"\f021";
		font-family:'FontAwesome';
		font-size: 18px;
	}
	
	.group-options a.watcher:after {
		content:"\f06e";
		font-family:'FontAwesome';
		font-size: 18px;
	}

	.group-options a.settings:after {
		content:"\f013";
		font-family:'FontAwesome';
		font-size: 18px;
	}

	.group-options, .group {display:inline-block;}

	.group-options {float:right;margin-right:5px}

	.group h2 {display:none;}

	.modal-bg {
		position:fixed;
		top:0;
		bottom:0;
		width:100%;
		background:rgba(0,0,0,0.3);
		z-index: 1;
	}

	.modal-cont {
		height:auto;
		position:relative;
		top:70px;
		left:50%;
		width:360px;
		height:auto;
		margin-left:-180px;
		padding: 0;
		font-size:12px;
		overflow:auto;
		vertical-align:top;
		max-height:80%;
		z-index: 1;
	}

	.modal-cont p {
		padding:20px
	}
	
	#user-css {
		max-width:270px;
		width:270px;
		height: 150px;
	}
	
	#user-js {
		max-width:270px;
		width:270px;
		height: 150px;
	}

	.group {
		margin-right:5px;
	}

	#menu-wrapper {
		display:block!important;
	}

	.group:first-of-type {
		margin-left:5px;
	}

	.sub-menu:first-of-type {
		display:block!important;
	}

	.sub-menu:nth-of-type(n+2) {
		display:none;
	}

	.settings-opened {display:block!important;}
	
	.komtur {
	width: 600px;
	margin-left: auto;
	margin-right: auto;
	}
}

@media only screen and (max-width:1112px) {

	.group-options a, .group a {
		padding:0 3px;
	}
}

@media only screen and (max-width:1024px) {

	.modal-cont {
		margin-left:10px;
		margin-right:10px;
	}

	#menu a.reset:after {
		content:"\f021";
		font-family:'FontAwesome';
		font-size: 18px;
	}

	.haze {
		right: 9px;
		top: 40px;
	}
	
	.ico:after {
		font-family:FontAwesome;
		display:block;
	}

	.ico {
		text-decoration:none;
	}

	#open {
		position:fixed;
		top:13px;
		margin-left:13px;
		width:40px;
		height:40px;
		z-index:100;
		padding:7px;
	}

	#open.alt {
		right:20px
	}

	#open:after {
		font-size: 46px;
		line-height: 40px;
		content:"\f0c9";
	}

	#menu-wrapper {
		padding:30px 0;
		height:auto;
	}

	#menu {
		position:absolute;
		height:100%;
		width:100%;
		top:0;
		z-index:100;
		overflow-y: auto;
	}

	#menu.alt {
		right:0;
	}

	#just-a-menu-bg {
		position:absolute;
		top:0;
		width:100%;
		height:65px;
		z-index:-1; /*temporary*/
	}

	a.tab {
		float:left;
		margin:10px 0 0 10px;
		transition:all 0.2s;
		padding:15px;
		opacity:0.2;
		color:#fff;
	}

	a.tab:hover, a.tab-opened {
		opacity:1;
	}

	a.tab:after {
		font-size:30px;
		line-height:25px;
	}

	a.tab:first-of-type {
		margin-top:10px;
	}

	a.tab.boards:after {
		content:"\f07c";
	}

	a.tab.watched:after {
		content:"\f06e";
	}

	a.tab.settings:after {
		content:"\f013";
	}
	
	#menu-close {
		opacity:1;
		float:right;
		margin:10px 10px 0 0;
		padding:10px;
		transition:all 0.2s;
	}

	#menu-close:after {
		content:"\f00d";
		font-size:39px;
		line-height:35px;
	}
	
	#menu-reset {
		opacity:1;
		float:right;
		margin:10px 10px 0 0;
		padding:10px;
		transition:all 0.2s;
	}
	
	#user-css {
		max-width:90%;
		width:90%;
		height:70px;
	}
	
	#user-js {
		max-width:90%;
		width:90%;
		height:70px;
	}

	.menu p {margin:20px;color:#fff}

	#menu-wrapper {
		position:fixed;
		width:100%;
		top:0;
		bottom:0;
		background:rgba(0,0,0,0.3);
		left:0;
		z-index:100;
		display:none;
	}

	.sub-menu {
		padding: 20px 0 0 0px;
		display:none;
		position:absolute;
		top:65px;
		width:100%;
	}

	.group-options {display:none;}

	.group a {
		line-height:62px;
		width:62px;
		height:62px;
		text-align:center;
		padding:0!important;
		margin:0 10px 10px 0;
		float:left;
		color:#fff;
		text-decoration:none;
	}

	.group a:hover {
		color:#fff;
	}

	.group a:after {
		display:none;
	}

	.sub-menu h2 {
		display:block;
		color:#fff;
		color: #FFFFFF;
		font-size: 18px;
		margin: 10px 0 15px;
	}

	.group:first-of-type h2 {margin-top:0;}

	.group:after {
		content:" ";
		display:block;
		clear:both;
	}

}

@media only screen and (max-width:640px) {

	#menu {width:100%}

	#menu li a {font-size:15px;padding:15px;font-weight:600}

	a.tab.boards:after, a.tab.watched:after, a.tab.settings:after {
		font-size:25px;
		line-height:20px;
	}

	#menu-close:after {
		line-height:25px;
		font-size:34px;
	}

	.group {
		display:inline-block;
		margin-left:10px;
		margin-right:10px;
	}

	.group:after {display:none;}

	.group a {
		line-height:51px;
		width:51px;
		height:51px;
		font-size:12px;
		margin:0 5px 5px 0;
	}

	.group h2 {display:none;}

	.sub-menu {top:60px;width:100%}

	#just-a-menu-bg {height:60px;}
}


@media only screen and (max-width:640px) {

	#submit {
	margin-top: 1px;
	}
	tbody textarea {
	width: 232px!important;
	}
	body > span:nth-child(2) {
	position: absolute;
	top: 132px;
	right: 20px;
	}
	div.thread {
	margin-left: 0px;
	margin-right: 0px;
	width: 100%;
	}
	div.sideArrows {
	display: none;
	}
	div.reply {
	margin-left: 1%;
	margin-right: 1%;
	max-width: 99%;
	}
	div.post blockquote.postMessage {
	display: inline-block;
	margin: 15px;
	min-width: initial;
	word-break: break-word;
	}
	textarea.fastReply {
	width: 242px;
	}
	div.leftFields {
	margin-left: 6px;
	}
	div.pagelist {
	margin-top: 5px;
	margin-right: 12px;
	margin-left: 0px!important;
	}
	div.pages {
	text-align: center;
	}
	input.board-input {
	width: 171px!important;
	}
	input[name=fake_id] {
	width: 171px!important;
	}
	input[name=name] {
	width: 171px!important;
	}
}

.modal-cont label {
	float: inherit;
	margin-left: 6px;
}



@media only screen and (max-width: 1024px) {
	
	#menu-close:hover {
	color: red!important;
	}
	div.sub-menu {
	box-shadow: none!important;
	}
	div.sub-menu.clear.opened {
	background: none!important;
	}
	#menu h2 {
	margin-left: 0px!important;
	margin-right: 0px!important;
	}
	.komtur {
	margin-left: 5%;
	margin-right: 5%;
	width: auto;
	}
}

@media only screen and (max-width:920px) {
	
	.op {
	overflow: hidden;
	}
}
