html, body {
	margin: 0px;
	padding: 0px;
	width: 100%;
	height: 100%;
	font-family: 'Varela', 'Lucida Sans Unicode', 'Lucida Grande', Tahoma, Verdana, sans-serif;
	font-size: 16px;
	background-color: black;
}

a:link, a:visited {
	text-decoration: none;
}

a:hover, a:active {
	text-decoration: underline;
}

input[type="text"]:invalid {
	color: red;
}

/*
 * USERBAR
*/

header {
	display: block;
	width: 100%;
	height: 50px;
	line-height: 50px;
	background-color: #222222;
	color: white;
	padding: 0px;
}

	header a {
		color: white;
	}

	#loginbox {
		display: block;
		text-align: right;
		float: right;
		clear: right;
		margin-right: 10px;
	}

		#loginbox input {
			width: 130px;
		}

		header .inputtype_text {
			display: inline-block;
			margin: 0px 10px;
			text-align: left;
		}

	#registerDialogBtn, #loginBtn {
		display: inline-block;
		color: white;
		width: 80px;
		font-weight: bold;
		border: 0px;
		cursor: pointer;
		margin: 0px;
		padding: 0px 10px;
		text-align: center;
	}

		#registerDialogBtn:hover, #loginBtn:hover {
			background-color: lightseagreen;
		}

	#logo {
		font-weight: bold;
		margin-left: 10px;
		margin-right: 10px;
		display: inline-block;

		transition: all 0.3s ease-in;
		-webkit-transition: all 0.3s ease-in; /*Safari & Chrome*/  
		-moz-transition: all 0.3s ease-in; /* Firefox 4 */
		-o-transition: all 0.3s ease-in; /* Opera */
	}

		#logo:hover, #logo:focus #logo:active {
			text-shadow:
				 2px  2px 2px lightseagreen,
				 2px -2px 2px lightseagreen,
				-2px  2px 2px lightseagreen,
				-2px -2px 2px lightseagreen;

			transition: width 0.3s;
			-webkit-transition: width 0.3s; /*Safari & Chrome*/
			-moz-transition: width 0.3s; /* Firefox 4 */
			-o-transition: width 0.3s; /* Opera */
		}

	#reghelp {
		display: table;
		width: 370px;
	}

		#reghelp span {
			display: table-cell;
			vertical-align: middle;
		}

	#register_overlay table {
		display: inline-block;
	}

/*
 * MAIN
*/

.maincontent {
	background-color: #333333;
	margin: 10px auto 100px auto;
	display: block;
	padding: 0px;
	padding-bottom: 10px;
	width: 900px;
	text-align: center;
	color: white;
}

.withmenu {
	padding-bottom: 0px !important;
	background-color: #222 !important;
}

	.maincontent > nav {
		width: 178px;
		min-height: 500px;
		float: left;
		background-color: #222;
	}

	.maincontent > nav a {
		text-decoration: none;
	}

	.maincontent > nav div {
		padding: 10px 15px;
		width: 150px;
		text-align: left;
		color: white;
		line-height: 40px;
		height: 40px;
		background-color: #444;
	}

	.maincontent > .content {
		width: 722px;
		min-height: 500px;
		float: right;
		background-color: #333;
	}

.end {
	clear: both;
}

/*

	MESSAGE OVERLAY

*/

.msg_overlay {
	display: none;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	text-align:center;
	z-index: 1000;
	background: rgba(0,0,0,0.7);
}

.msg_box {
	display: block;
	background-color: #fff;
	border: 2px solid black;
	padding: 0px;
	text-align: center;
	position: absolute;
	top: 45%;
	left: 50%;
	transform: translate(-50%, -50%);
}

	.msg_box .content {
		padding: 15px;
	}

		.msg_box .content a {
			color: blue;
		}

		.msg_box .content div,
		.msg_box .content table {
			margin-bottom: 15px;
		}

		.msg_box .content > *:last-child {
			margin-bottom: 0px;
		}

	.msg_box .button {
		display: block;
		height: 2em;
		line-height: 2em;
		padding: 5px 0px;
		color: black;
		font-weight: bold;
		cursor: pointer;
	}

		.msg_box .accept {
			background-color: lightgreen;
		}

			.msg_box .accept:hover {
				background-color: #7CDD00;
			}

		.msg_box .cancel {
			background-color: pink;
		}

			.msg_box .cancel:hover {
				background-color: lightcoral;
			}

/* MOBILE */

@media (max-width: 899px) {
	.maincontent nav {
		display: none;
	}

	.maincontent,
	.maincontent nav,
	.maincontent > .content {
		width: 640px;
	}

	.maincontent nav div {
		width: 610px;
	}

	#logo span {
		display: none;
	}

	#loginbox input {
		width: 100px;
	}
}

@media (max-width: 639px) {
	.maincontent,
	.maincontent nav,
	.maincontent > .content {
		width: 480px;
	}

	.maincontent nav div {
		width: 450px;
	}

	#upload_page_link,
	#registerDialogBtn {
		display: none;
	}

	#loginBtn {
		padding: 0px;
	}
}

@media (max-width: 479px) {
	#loginbox input {
		width: 50px;
	}

	.maincontent,
	.maincontent nav,
	.maincontent > .content {
		width: 320px;
	}

	.maincontent nav div {
		width: 290px;
	}

	#loginbox {
		display: none;
	}

	#logo span {
		display: inline;
	}
}
