*{
	margin: 0;
	padding: 0;
	border: 0 none;
	text-decoration: none;
}
html,body{
	height:100%;
}

header,
hgroup,
footer,
section,
nav,
dialog{
	display: block;
}

dd,dt,
time{
	display: inline;
}

input{
	line-height: 17px !important;
	height: 17px;
}

u{
	text-decoration: underline;
}
p{
	margin: 1em 0;
}
ul{
	list-style: none none;
}
body > div,
body > nav,
textarea,
div.outset,
ul > li,
input{
	padding:10px;
}
div.outset,
ul > li{
	margin: 5px;
}
input,
div.inset input{
	padding: 0;
}
div input{
	border: 0 none;
}
body > div.inset,
div.inset > div.inset{
	background-color: transparent;
}
h1{
	margin: 0.5em 0 1em;
	text-align: center;
	font-size: 2em;
	font-weight: bold;
}
h2{
	font-size: 1.5em;
	font-weight: bold;
	margin: 1em 0;
}
.news h2{
	margin-top: 0;
}
h2 .date{
	font-size: 0.666em;
	font-weight: normal;
	margin-right: 2em;
}
a img{
	border: 0 none;	
}


body{
	overflow: hidden;
}

div.inset{
	padding: 5px;
}
div div.inset{
	margin: 5px 0;
}
div.inset > div.inset{
	margin: 0;
}
#header,
#header_channel{
	position: relative;
	z-index: 2;
	text-align: center;
	background-color: transparent;
	cursor: default;
}
#header_links{
	position: absolute;
	right: 6px;
	bottom: 6px;
	text-align: right;
}
	#header_links a{
		display: block;
	}
#header{
	padding-left: 148px;
}
#header_channel{
	margin-left: 150px;
	margin-right: 152px;
	padding: 10px 0 0;
	height: 52px;
}
	body.hide_channellist #header_channel{
		margin-left: 0;
	}
	body.connecting #header_channel,
	body.hide_userlist #header_channel{
		margin-right: 0;
	}
	#header img,
	#header_channel img{
		vertical-align: middle;
		position: relative;
		z-index: 2;
		max-width: 35%;
	}
	#header_channel img{
		max-width: 60%;
	}
	#header_location{
		font-size: 2em;
	}
#main{
	position: absolute;
	left: 150px;
	right: 0;
	top: 0;
	bottom: 0;
	padding: 0;
	background-color: transparent;
}
	#main a{
		text-decoration: underline;
	}
#body{
	position: absolute;
	left: 0px;
	right: 152px;
	top: 64px;
	bottom: 20px;
	background-color: transparent;
}
#input{
	position: absolute;
	bottom: 0px;
	left: 0;
	width: 100%;
	text-indent: 4px;
}
#viewer{
	position: absolute;
	top: 0px;
	left: 0px;
	right: 0px;
	height: 66%;
	
	overflow: hidden;
}
	#viewer iframe{
		margin: 0;
	}
	#viewer a.close{
		position: absolute;
		top: 0px;
		right: 0px;
		width: 15px;
		height: 16px;
		margin: 0 2px;
		text-align: center;
		line-height: 14px;
		font-weight: bold;
		z-index: 2;
		cursor: pointer;
		text-decoration: none;
	}
	#viewer img[src$=".gif"],
	#viewer img[src$=".png"]{
		image-rendering: optimizespeed;
		/*image-rendering: -moz-crisp-edges;*/
		-ms-interpolation-mode: nearest-neighbor;
	}
#content_connecting{
	display: none;
	position: relative;
	text-align: center;
	top: 50%;
	margin-top: -16px;
	font-size: 16px;
}
body.connecting #content_connecting{
	display: block;
}
#main .content{
	position: absolute;
	height: 100%;
	bottom: 0px;
	left: 10px;
	right: 0px;
}
	#body .content .hide_options{
		position: absolute;
		right: 0;
		padding: 0 4px;
		font-size: 32px;
		font-weight: normal;
		line-height: 32px;
		text-transform: uppercase;
		z-index: 1;
	}
		#body .content .hide_options.top{
			top: 0;
		}
		#body .content .hide_options.bottom{
			bottom: 0;
		}
		#body .content .action.selected{
			float: none;
		}
		/*#body .content .action.selected .hide_options,
		#body .content .action.selected .hide_options a{
			background: transparent !important;
		}*/
		#body .content .hide_options a{
			display: block;
		}
	#body .content .ledge{
		position: absolute;
		top: -2px;
		right: -20px;
		width: 14px;
		display: none;
	}
	#body .content .hidden{
		cursor: pointer;
	}
	.content .scroll{
		position: absolute;
		top: 0;
		bottom: 0;
		left: 0;
		right: 0;
		
		overflow:auto;
	}
	.content > div > div > div{
		clear: left;
	}
	.content .action{
		position: relative;
	}
	.content span.time{
		margin: 0 6px 0 0;
		font-weight: normal;
	}
	.content div > span.user,
	.content div dt > span.user,
	.content div > a.channel{
		display: inline-block;
		text-align: right;
		min-width: 70px;
	}
	/*@media only screen and (max-device-width: 480px) { 
		.content div > span.user,
		.content div dt > span.user{
			display: inline;
		}
	}*/
	.content .unimportant{
		/*font-size: 0.9em;
		opacity: 0.8;*/
	}
	.content .action_join,
	.content .action_part{
		font-weight: bold;
	}
	.content .action_message dd{
		margin: 0 6px;
	}
	.content .action_message dd a{
		text-decoration: underline;
	}
	.content .action_command{
		float: left;
		clear: none;
		position: relative;
		border-style: solid;
		border-width: 1px;
		padding: 4px 6px;
		margin: 2px 4px 2px 0;
		overflow: auto;
	}
		.content .action_command > h2{
			line-height: 19px;
		}
			#body .content .action_command > h2{
				margin-top: 0;
				margin-bottom: 4px;
				margin-right: 20px;
			}
		.content .action_command > .close{
			position: absolute;
			right: 0;
			top: 0;
			width: 15px;
			height: 16px;
			text-align: center;
			line-height: 14px;
			border-style: solid;
			border-width: 1px;
			margin: 2px;
			opacity: 0.5;
		}
			.content .action_command > .close:hover{
				opacity: 1.0;
			}
			#main .content .action_command > .close{
				text-decoration: none;
			}
	.content .date{
		text-align: center;
		font-size: 1.2em;
		font-weight: bold;
	}
#users_content{
	overflow:hidden;
	overflow-y:auto;
}
	#users_content div{
		height: 18px;
		line-height: 18px;
		overflow: hidden;
	}
#media_content{
	overflow: hidden;
}
#media_content_data{
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
}
#channellist{
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 128px;
	z-index: 2;
	overflow: hidden;
	cursor: default;
}
	#channellist a .count{
		float: right;
	}
	#channellist a.active .count{
		display: none;
	}
#actions{
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 32px;
}
body.mode_page #actions{
	bottom: 8px;
}
#user{
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 1px 4px 0;
	text-align: center;
	overflow: hidden;
}
	#user:focus{
		outline: 0 none;
	}
body.mode_page #user{
	display: none;
}

#userlist{
	position: absolute;
	right: 0;
	top: 0;
	bottom: 20px;
	width: 140px;
	z-index: 2;
	margin: 0;
	
	cursor: default;
}
	#userlist .move_right{
		left:4px;
		top:37%;
		margin-top:-5px;
	}
#users{
	position: absolute;
	top: 0;
	bottom: 61.8%;
	left: 0;
	right: 0;
}
	#users_content{
		position: absolute;
		top: 1.7em;
		bottom: 0;
		left: 0;
		right: 0;
	}
#media{
	position: absolute;
	top: 38.2%;
	bottom: 0;
	left: 0;
	right: 0;
}
	#media_content{
		position: absolute;
		top: 1.7em;
		bottom: 0;
		left: 0;
		right: 0;
		text-align: center;
	}
	#media a{
		text-decoration: none;
	}
	#media a div{
		text-decoration: none;
		font-size: 10px;
		line-height: 1.2em;
		padding: 0.7em 0;
		margin: 0 5px;
		width: 130px;
	}
#list_sfw,
#list_nsfw{
	display:block;
}
.list_channel > a{
	display:block;
}
a.move_left{
	display: block;
	position: absolute;
}
a.move_right{
	display: block;
	position: absolute;
}
a.move_up{
	display: block;
	position: absolute;
}
a.move_down{
	display: block;
	position: absolute;
}
	
.move_bar{
	display: none;
	position: absolute;
}
	.move_bar .bar{
		display: block;
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
	}
	
body .mode_channel{
	display: none;
}
body.mode_channel .mode_channel{
	display: block;
}
body .mode_page{
	display: none;
}
body.mode_page .mode_page{
	display: block;
}

body.hide_channellist{}	
	body.hide_channellist #channellist{
		display: none;
	}
	body.hide_channellist #main{
		left: 0;
	}
	#main > .move_right{
		display: none;
	}
	body.hide_channellist #main > .move_right{
		display: block;
	}
	
body.connecting,
body.hide_userlist{}
	body.connecting #userlist,
	body.hide_userlist #userlist{
		display: none;
	}
	body.connecting #body,
	body.hide_userlist #body{
		right: 0;
	}
	body.connecting #body .content{
		display: none;
	}
	#main > .move_left{
		display: none;
	}
	body.connecting #main > .move_left,
	body.hide_userlist #main > .move_left{
		display: block;
	}
#body .content dialog div{
	clear: left;
}
#intro{
	position: relative;
	padding: 1px 0 0 0;
	margin: 0 5px 3em;
	line-height: 1.6em;
}
	#intro .prompt{
		float: left;
		width: 286px;
		height: 149px;
		background: url('/homepage_prompt.png') no-repeat left top;
	}