body, html, div
{
	padding: 0px;
	margin: 0px;
}

body
{
	background-color: #e8e8e8;
	background-image:url('/img/bg.jpg');
	font-family: Arial, Helvetica, sans-serif;
}

input[type="text"]
{
	margin: 0px;
}

h1
{
	font-size: 26px;
	font-weight:normal;
	text-align: center;
	margin: 8px 0px
	line-height:32px;	
}

a
{
	font-weight: bold;
	color: darkGreen;
	text-decoration:none;
}

#content a:visited
{
	font-weight: bold;
	color: DarkOliveGreen;
	text-decoration:none;
}

a:hover, #content a:hover
{
	color:darkOrange;
}

a img
{
	border-style: none;
}

#container
{
	max-width: 980px;
	margin: auto;
	font-size: 16px;
}
#sidebar
{
	display:table;
	float:left;
	margin-right: 6px;
	margin-top: 8px;
	width:164px; /* This is exact width */
}

#monitor
{
	margin: auto;
	display: block;
	height: 99px;
	width: 104px;
	
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: -moz-none;
	-ms-user-select: none;
	user-select: none;
}

#monitor, #monitor img
{
	position: relative;
	top: 0px;
	left: 0px;
}

#overlay
{
	height: 99px;
	width: 104px;
	position: absolute;
	left: 0px;
	top: 0px;
	background-repeat:no-repeat;
}

.sidemenu, .sidebox
{
	border: 1px solid black;
	background-color: white;
	border-radius: 3px;
	overflow:hidden;
	margin-bottom: 10px;
}

.sidemenu a
{
	display: block;
	padding: 4px 6px;
	border-width: 1px 0px 0px 0px;
	border-color: lightGrey;
	border-style: solid;
	color: darkGreen;
	text-decoration:none;
	font-weight:bold;
	white-space: nowrap;
	
}

.sidemenu a:hover
{
	background-color: #f8f8f8;
	color:darkOrange;
}

.sidemenu a.first
{
	border-style:none; 
}

.sidemenu img
{
	vertical-align:middle;
	margin-bottom:1px;
	width:16px;
	height:16px;
}

.sidetitle
{
	font-weight:bold;
	/*font-size:16px;*/
	display: block;
	background-color:#dedede;
	color:#000;
	text-align: center;
	padding: 3px 0px 2px 0px;
	border-style:none;
	/*text-transform:uppercase;*/
	border-bottom: 1px dotted black;
}


#main
{
	overflow: auto;
}

#header
{
	margin-top: 51px;
	white-space:nowrap;
}

#logo
{
	display: block;
	width: 243px;
}

#logo img
{
	display: block;
	height: 56px;
	font-size:42px;
	color: green;
	font-family: ubuntu, Arial, Helvetica, sans-serif;
	font-style:italic;
	font-weight: bold;
	outline: none;
}

#header
{
	overflow: visible;
}

#languages
{
	float: right;
	font-size: 14px;
	margin-right: 4px;
}

#languages div
{
	display:table-cell;
    vertical-align:middle;
    text-align: center;
    height:56px;
}

#languages a, #languages span
{
	display:inline-block;
	padding:2px;
	font-weight:bold;
	color: black;
}

#languages span
{
	border: 1px solid black;
}
#languages a
{
	color: green;
	text-decoration:none;
	padding:3px;
}

#languages a:hover
{
	border: 1px dotted black;
	padding:2px;
	color:darkOrange  ;
}

#content
{
	border: 1px solid black;
	background-color: white;
	border-radius: 3px;
	padding: 0px 8px 6px 6px;
	line-height:20px;
	margin-bottom: 8px;
}

.m1
{
	visibility:hidden;
}
.m2
{
	display: none;
}

/* This should not apply to all forms */
input, textarea
{
	border: 1px solid #444; 
	/*margin-bottom: 6px;*/
	border-radius: 3px;
	/*overflow:hidden;*/
	font-size:16px;
	background-color:#fafafa;
}

input:hover, textarea:hover
{
	border-color: black;
}
input:focus, textarea:focus
{
	border-color: #c06a00;
}
input[type="submit"]:hover 
{
	background-color:#f4f4f4;
}

textarea
{
	-max-width: 600px;
	width: 100%;
	height: 160px;
	font-size:16px;
	
}

.center
{
	text-align:center;
}


.regform p
{
	padding: 0px;
	margin: 0px;
}

.regelem
{
	display:table-row;
}

.regelem div
{
	display:table-cell; 
	padding-bottom:16px;
}

.regelem div:first-child
{
	padding-right:8px;
}

.regelem #field2
{
	margin-bottom:8px;
}

.regform input[type="submit"]
{
	margin-top:8px;
}

.wrongtext
{
	border:1px solid red;
	background-color:#fee;
	padding:1px;
	margin:0px 1px;
}

.errorbox, .successbox
{
	padding:0px 8px;
	margin-bottom:8px;
	border-radius: 3px;
	text-align: center;
}

.errorbox
{
	border:1px solid red;
	background-color:#fffefe;
}

.successbox
{
	border:1px solid green;
	background-color:#fefffe;
}

.loginform
{
	line-height:13px;
	font-size: 11px;
	margin: 4px 6px;
}

.loginformlinks
{
	font-size:11px;
	padding-top:4px;
}
.loginformtext
{
	margin-bottom:8px;
}

.loginfield
{
	margin-bottom: 6px;
	padding-right: 2px;
}

.loginform input[type="password"], .loginform input[type="text"]
{
	width:100%;
	font-size:14px;
	margin: 0px;
}

.loginform input[type="submit"]
{
	font-size:11px;
}

input[type="checkbox"]
{
	vertical-align:middle;
	margin-top:1px;
}

.loginrow
{
	display: table;
	width: 100%;
}

.loginbutton
{
	display:table-cell;
	width:1px;
}

.loginremember
{
	display: table-cell;
	text-align: center;
	padding-right: 2px;
	white-space: nowrap;
}

.thread_table
{
	width:100%;
	border-spacing:0;
    border-collapse:collapse;
    line-height:normal;	
}

.thread_table .c1
{
	text-align: left;
}

.thread_table .c2, .thread_table .c3
{
	text-align: center;
}

.thread_table td.c3, .small
{
	font-size: 14px;
}

.thread_table .odd
{
	background-color: #f8f8f8;
}

.thread_table th
{
	border-bottom: 1px solid black;
}

.thread_table td, .thread_table th
{
	padding: 4px;
}

.username
{
	font-weight: bold;
}

.rank
{
	color:#666;
}

.guest
{
	color:black;
}
.member
{
	color:#040;
}
.admin
{
	color:#600;
}

.post
{
	border: 1px solid black;
	background-color: white;
	border-radius: 3px;
	overflow:hidden;
	margin-bottom: 10px;
	margin-right: -2px;
	position:relative;
}

.post_header
{
	background-color:#dedede;
	border-bottom: 1px dotted black;
	display: table;
	width: 100%;
	font-size:14px;
	line-height:18px;
}

.post_author
{
	display: table-cell;
	padding: 2px 4px;
	-background-color:red;
	width:40%;
}

.post_time
{
	display: table-cell;
	padding: 2px 4px;
	-background-color:green;

}

.post_number
{
	display: table-cell;
	padding: 2px 4px;
	text-align:right;
	-background-color:blue;
	width:40px;
}

.post_message
{
	/*padding: 2px 4px 0px 4px;*/
	padding: 6px 6px 6px 6px;
	background-color: #fefefe;
	line-height:125%;
	word-wrap: break-word;
}

.post_editlinks
{
	font-size:12px;
	color:#333;
	float:right;
	padding:2px 3px;
	word-spacing:3px;
	line-height:normal;	
}

.post_editlinks a
{
	word-spacing:0px;
}


.post_lastedit
{
	font-size:12px;
	color:#333;
	bottom:0px;
	right:0px;
	position:absolute;
	padding:1px 3px;
	line-height:normal;	
}

.post_lastedit_placeholder
{
	float:right;
	width:250px;
	height:14px;
}

.bbcode_b
{
	font-weight:bold;
}

.bbcode_i
{
	font-style:italic;
}

.bbcode_u
{
	text-decoration:underline;
}

.bbcode_codebox
{
	overflow-x: auto;
	background-color: #eeF;
	border-radius:5px;
	-display:table;
	-width:100px;
	border:1px solid #88F;
	margin:1px 8px;
	line-height:100%;
	margin-bottom: 6px;
}

.bbcode_code
{
	display:table-cell;
	font-size:14px;
	-moz-tab-size:4;
	-border:1px solid black;
	padding:4px;
	margin:0px;
}

.bbcode_lines
{
	overflow: hidden;
	display:table-cell;
	font-size:14px;
	padding:4px 5px;
	background-color: #ccF;
	border-radius:5px 0px 0px 5px;
	text-align:right;
}

.bbcode_boxtitle
{
	font-size:14px;
	font-weight:bold;
	padding-left:10px;
	line-height:normal;
}

.bbcode_quote
{
	background-color: #eee;
	border-radius:5px;
	padding:4px 6px;
	margin:1px 8px;
	border:1px solid #888;
	margin-bottom: 6px;
}

.preview_title
{
	font-size:14px;
	font-weight:bold;
	padding-left:2px;
}

.nlh /* Normal Line Height */
{
	line-height: normal;
}

.pages
{
	background-color:#f8f8f8;
	border-radius:5px;
	padding: 3px;
	font-size:14px;
	margin:8px 0px;
}

.pages a, .pages span
{
	border:1px solid black;
	padding: 1px 4px;
	font-size:12px;
	background-color:white;
}

.pages span
{
	background-color:lightgreen;
	font-weight:bold;
}

#bbcode td:first-child
{
	font-family:monospace;
}

#bbcode h2
{
	font-family:monospace;
	font-size: 20px;
	line-height: 20px;
	margin-bottom:10px;
	margin-top:4px;
	
}

#bbcode .small_h
{
	font-size: 12px;
	line-height:normal;
	font-weight:bold;
	margin-top:14px;
	display:inline-block;
}

#bbcode .pre
{
	white-space:pre;
}

#bbcode .odd
{
	background-color: #f4f4f4;
	border-radius:5px;
	padding:4px;
	margin-top:16px;
}

#bbcode .even
{
	padding:4px;
	margin-top:16px;
}

.back_link
{
	line-height:0px;
}

.btn_form
{
	display:table;
	width:100%;
}

.btn_form_div1
{
	display:table-cell;
	padding: 2px 6px; 
}

.btn_form_div2
{
	display:table-cell;
	font-style:italic;
	text-align:center;
}

.info
{
	cursor:help;
}

.gamebox
{
	position:relative;
	overflow: auto;
	height: auto !important;
	background-color: #f4f4f4;
	border-radius:3px;
	padding:6px;
	margin-top:16px;
	
	border: 1px solid #666;
}

.gamebox img
{
	float: right;
	margin-left: 6px;
}

.gamebox p img
{
	float: left;
	margin: 0px 6px 0px 0px;
}

.gamebox .progress_ghost
{
	height: 40px; 
	width: 430px;
	float: left;
}

.gamebox .progress
{
	position:absolute;
	bottom:12px;
	left:20px;
	width:420px;
	font-size: 13px;
}

.gamebox .progressbar
{
	background-color: #ddd;
	border: 1px solid #666;
	overflow:hidden;
	border-radius:3px;
	
}
.gamebox .progressbar div
{
	
	height: 10px;
	background-color: #00cc00;
}

.news_date
{
	font-size:11px;
	padding: 4px 6px 0px 6px;
	color: #444
}
#content .news_date
{
	font-size: 14px;
	padding: 0px;
	color: #444;
}

.news_text
{
	font-size:14px;
	padding: 2px 6px 4px 6px;
}

#sidebar .read_more
{
	font-size:12px;
	-margin: -2px 6px 4px 6px;
}

#content .read_more
{
	font-size:14px;
}

.parallel_content
{
	display: table-row;
}

.parallel_content div
{
	display: table-cell;
	padding: 1px;
	width: 50%;
}
.parallel_content div:last-child
{
	padding-left: 5px;
}

@media only screen and (max-width: 740px) /* Show game image above */
{
	.gamebox
	{
	
	}

	.gamebox img
	{
		float: none;
		display: block;
		margin-left: auto;
		margin-right: auto;
		max-width: 100%;
	}
	
	.gamebox .progress, .gamebox .progress_ghost
	{
	
		display: none;
	}
}

@media only screen and (max-width: 760px) /* show index page content on top of each other */
{
	.parallel_content, .parallel_content div
	{
		display: block;
		width: auto;
	}
}

@media only screen and (max-width: 520px) /* Hide side menu */
{
	#container
	{
		font-size: 16px;
	}
	
	#monitor, .sidebox, .sidemenu:nth-child(3)
	{
		display: none;
	}

	#sidebar
	{
		float:none;
		width: 100%;
		text-align: center;
	}
	
	.sidemenu
	{
		display:inline-block;
	}
	
	.sidemenu a
	{
		display: inline-block;
		border-style: none;
		margin: 0px 3px;
		padding: 5px 6px;
	}
	
	#header
	{
		margin-top: 4px;
	}
	
	#content
	{
		border-radius: 0px;
	}
}

@media only screen and (max-width: 385px) /* Hide side menu */
{
	.sidemenu a
	{
		font-size: 15px;
		margin: 0px 1px;
		padding: 5px 3px;
	}
}
