html {
	height: 100%;
}

body {
	font-family: Oswald, sans, sans-serif, helvetica, arial;
	font-size: 1.1rem;
	color: #fff;
	background-color: #ccc;
	background-blend-mode: darken, multiply;
	background-image: url('images/back.png');
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
	
	height: 100%;
	
	--topSize: 40px;
	--menuSize: 100px;
}

* {
	box-sizing: border-box;
	margin: 0px;
	padding: 0px;
	scrollbar-color: #069c #0000;
	scrollbar-width: thin;
	
	margin-block-start: 0;
	margin-block-end: 0;
	margin-inline-start: 0;
	margin-inline-end: 0;
}

a, a:visited {
	color: #069;
}

a:hover {
	color: #0af;
}

h1, h2, h3, h4, strong {
	display: inline;
	font-weight: 600;
	font-style: normal;
	color: #006699ff;
}

h1 {
	font-size: 2.5rem;
}

h2 {
	font-size: 2rem;
}

h3 {
	font-size: 1.5rem;
}

h4 {
	font-size: 1.1rem;
}

hr {
	border: 0;
	height: 2px;
	margin-bottom: 5px;
	background-image: linear-gradient(to right, #0000, #00669955, #006699ff, #006699ff, #006699ff, #006699ff, #006699ff, #00669955, #0000);
}

.lightBlue {
	color: #0af;
}

.kinkBlue {
	color: #069;
}

.topBox {
	font-family: Michroma;
	font-size: 1.3rem;
	text-align: center;
}

/* --- Page elements */

#fullPage {
	display: flex;
	flex-flow: column nowrap;
	align-items: stretch;
	margin-left: auto;
	margin-right: auto;
	padding: 10px;
	width: 100%;
	max-width: 800px;
	height: 100%;
	min-height: 100%;
	max-height: 100%;
}

#topContainer {
	flex-grow: 1;
	display: flex;
	flex-flow: row nowrap;
	align-items: stretch;
	width: 100%;
	height: calc(var(--topSize));
	min-height: calc(var(--topSize));
	max-height: calc(var(--topSize));
	margin: 0px;
	margin-bottom: 5px;
	padding: 0px;
}

#pageContainer {
	display: flex;
	flex-flow: column nowrap;
	align-items: stretch;
	width: 100%;
	height: 100%;
	max-height: 100%;
	margin: 0px;
	padding: 0px;
	overflow: hidden;
}

#menuContainer {
	flex-grow: 1;
	display: flex;
	flex-flow: row nowrap;
	justify-content: space-between;
	width: 100%;
	min-width: 100%;
	max-width: 100%;
	padding: 0px;
	margin-bottom: 5px;
}

#mainContainerWrapper {
	flex-grow: 1000;
	height: 1px;
	padding: 10px;
	background: #111e;
	border: 3px solid #069a;
	border-radius: 10px;
}

#mainContainer {
	height: calc(100%);
	max-height: calc(100%);
	overflow-y: scroll;
	overflow-x: hidden;
}

/* --- Top container */

#topMain {
	flex-grow: 100;
	
	background-image: url('images/text.php?s=fff&t=069');
	background-size: auto calc(var(--topSize) * 0.9);
	background-repeat: no-repeat;
	background-position: 50px center;
	
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	
	width: 100%;
	min-width: 100%;
	max-width: 100%;
	height: 100%;
}

#topMain a, #topMain a:visited, #topMain a:hover {
	color: 0;
	text-decoration: none;
}

#topMain a .targetBox, #topMain a:visited .targetBox {
	color: #0af;
	background: #111e;
	border: 3px solid #069a;
	border-radius: 10px;
}

#topMain a:hover .targetBox {
	color: #fff;
	border: 3px solid #0af;
}

.targetBox i {
	color: #fff;
}

#topSpacer {
	flex-grow: 1000;
	
	height: calc(var(--topSize));
	min-height: calc(var(--topSize));
	max-height: calc(var(--topSize));
	
	background: none;
	background-image: url('images/logo.php?l=0af&r=234&b=069&h=0af');
	background-size: calc(var(--topSize) * 0.9);
	background-repeat: no-repeat;
	background-position: left center;
}

#userBox {
	flex-grow: 1;
	
	display: flex;
	flex-flow: row nowrap;
	
	height: calc(var(--topSize));
	min-height: calc(var(--topSize));
	max-height: calc(var(--topSize));
	line-height: calc(var(--topSize) - 4px);
}

#userBoxText {
	flex-grow: 1;
	padding-left: 10px;
	padding-right: 10px;
}

#userBoxIcon {
	flex-grow: 1;
	text-align: center;
	font-size: 26px;
	color: #fff;
	width: 40px;
	min-width: 40px;
	max-width: 40px;
}

#backBox, #refreshBox, #logoutBox {
	flex-grow: 1;
	
	text-align: center;
	font-size: 26px;
	
	width: calc(var(--topSize));
	min-width: calc(var(--topSize));
	max-width: calc(var(--topSize));
	height: calc(var(--topSize));
	min-height: calc(var(--topSize));
	max-height: calc(var(--topSize));
	line-height: calc(var(--topSize) - 4px);

	margin-right: 5px;
}

#backBox, #refreshBox {
	display: none;
}

#logoutBox {
	margin-left: 5px;
	margin-right: 0px;
}

/* --- Menu container*/

#menuContainer a, #menuContainer a:visited {
	color: 0;
	border: 0;
	text-decoration: none;
	width: calc(var(--menuSize));
}

.menuItem {
	flex-grow: 1;
	height: 80px;
	min-height: 80px;
	max-height: 80px;
	line-height: 40px;
	width: calc(var(--menuSize));
	min-width: calc(var(--menuSize));
	max-width: calc(var(--menuSize));
	background: #111e;
	border-radius: 10px;
	font-size: 1.2rem;
	font-family: Bebas Neue;
	text-align: center;
	vertical-align: middle;
}

a .menuItem, a:visited .menuItem {
	color: #069;
	color: #0af;
	border: 3px solid #069a;
	width: 100%;
}

a .menuItem i {
	color: #fff;
	display: block;
	font-size: 30px;
}

a:hover .menuItem {
	color: #fff;
	border: 3px solid #0af;
}



/* --- Module styling */

.loginBox {
	font-size: 1.2rem;
	margin: 10px;
	margin-left: auto;
	margin-right: auto;
	width: 250px;
	border: 2px solid #0698;
	padding: 10px;
	border-radius: 10px;
	text-align: center;
	font-family: Oswald, sans-serif;
}

.loginBox input {
	font-family: Oswald, sans, sans-serif, helvetica, arial;
	font-size: 1.0rem;
	width: 100%;
	height: 36px;
	line-height: 28px;
	vertical-align: middle;
	padding-left: 30px;
	
	background-color: #0692;
	background-position: 4px center;
	background-size: 22px;
	background-repeat: no-repeat;
	
	color: #fff;
	border: 0;
	border: 1px solid #0698;
	border-radius: 10px;
	text-align: left;
	margin-top: 5px;
	margin-bottom: 5px;
}

.loginBox #username {
	background-image: url('images/user.svg');
}

.loginBox #password {
	background-image: url('images/password.svg');
}

.loginBox #submit {
	background-image: url('images/login.svg');
}

.loginBox #register {
	background-image: url('images/register.svg');
}

.loginBox #forgot {
	background-image: url('images/forgot.svg');
}


.profileRow {
	display: flex;
	flex-flow: row nowrap;
	align-items: flex-start;
	width: fit-content;
	height: 40px;
	font-size: 1rem;
	line-height: 2rem;
	vertical-align: middle;
	margin-bottom: 10px;
}

.profileRowIcon {
	flex-grow: 1;
	width: 50px;
	min-width: 50px;
	max-width: 50px;
	height: 40px;
	line-height: 40px;
	vertical-align: middle;
	justify-content: center;
	align-items: center;
}

.profileRowIcon i {
	color: #fff;
	background: #069a;
	border-radius: 40px;
	padding: 5px;
	font-size: 30px;
}

.profileRowText {
	flex-grow: 1000;
	display: flex;
	flex-flow: column nowrap;
	align-items: flex-start;
	width: fit-content;
}

.profileRowHeader {
	font-family: Bebas Neue;
	flex-grow: 1;
	height: 16px;
	min-height: 16px;
	max-height: 16px;
	line-height: 16px;
	color: #069;
	vertical-align: top;
	justify-content: top;
	align-items: flex-start;
}

.profileRowInfo {
	flex-grow: 1;
	height: 24px;
	min-height: 24px;
	max-height: 24px;
	line-height: 24px;
	font-family: Oswald;
	color: #fff;
	font-size: 1.2rem;
	
	vertical-align: bottom;
	justify-content: bottom;
	align-items: flex-end;
}



/* --- Small screens, e g smartphones */	

@media (max-width: 700px) {
	body {
		--menuSize: 50px;
	}
	
	#fullPage {
		padding: 5px;
	}
	
	#pageContainer {
		flex-flow: column-reverse nowrap;
	}
	
	#topMain {
		background: none;
	}
	
	#backBox, #refreshBox {
		display: inline-block;
	}
	
	#menuContainer {
		display: flex;
		flex-flow: row nowrap;
		justify-content: space-around;
		
		width: calc(100%);
		min-width: calc(100%);
		max-width: calc(100%);
		height: calc(var(--menuSize));
		min-height: calc(var(--menuSize));
		max-height: calc(var(--menuSize));
		line-height: 34px;
		
		margin: 0px;
		margin-top: 10px;
		margin-bottom: 5px;
		padding: 0px;
	}
	
	#menuContainer a {
		width: initial;
	}
	
	a .menuItem {
		width: calc(var(--menuSize));
		min-width: calc(var(--menuSize));
		max-width: calc(var(--menuSize));
	}
	
	.menuItem {
		flex-grow: auto;
		text-align: center;
		width: calc(var(--menuSize));
		min-width: calc(var(--menuSize));
		max-width: calc(var(--menuSize));
		height: calc(var(--menuSize));
		min-height: calc(var(--menuSize));
		max-height: calc(var(--menuSize));
		line-height: calc(var(--menuSize) - 4px);
		border-radius: 20px;
		padding: 0px;
		margin: 0px;
		font-size: 30px;
	}
	
	.hideText {
		display: none;
	}
}