/* --- General formatting */
body {
	font-family: capriola, sans, sans-serif, helvetica, arial;
	font-size: 1em;
	line-height: 1.5;
	color: #112;
	background: #99a;
	
	
	--topHeight: 0px;
	--infoHeight: 36px;
	--leftWidth: 170px;
	--footHeight: 0px;
}

* {
	box-sizing: border-box;
	margin: 0px;
	padding: 0px;
}

a, a:visited {
	color: #223;
	border-bottom: 2px solid #234;
	
	text-decoration: none;
}

a:hover {
	color: #223;
	border-bottom: 2px solid #1bf;
}

hr {
	border: 0;
	border: 1px solid #069;
}

ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

li {
	display: inline-block;
	text-align: center;
	margin: 0;
	padding: 0;
}

.stdContainer, #moduleInfo {
	margin-bottom: 5px;
	padding: 7px;
	border: 2px solid #99a;
	border-radius: 8px;
}

.stdContainer {
	background: #dde;
}

#moduleInfo {
	background: #889;
	color: #eef;
}

.containerHeader {
	font-family: Oswald, sans-serif;
	font-size: 1.2em;
	display: block;
	border-bottom: 2px solid #1bf;
	text-transform: uppercase;
	font-weight: normal;
	margin-bottom: 7px;
}

.containerHeader:before {
	color: #1bf;
	content: "» ";
}

.containerArrow {
	color: #1bf;
}

.projectName {
	font-weight: normal;
	font-size: 1.2em;
}

.moduleName {
	font-family: Oswald, sans-serif;
	font-weight: normal;
	font-size: 1.8em;
}

.moduleProps {
	font-size: 0.7em;
}

.menuIcon {
	display: inline-block;
	font-size: 1.0em;
	margin-right: 3px;
	text-align: center;
	height: 24px;
	aspect-ratio: 1/1;
}

/* --- Outer Container */

#bodyOuter {
	margin: auto;
	height: 100%;
	width: 100%;
	overflow: hidden;
}

/* --- Info Section */

#infoOuter {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	
	font-family: Oswald, sans-serif;
	height: var(--infoHeight);
	line-height: var(--infoHeight);
	vertical-align: middle;
}

#topLogo, #projectInfo, #userInfo {
	padding-left: 10px;
	padding-right: 10px;
	height: var(--infoHeight);
	line-height: var(--infoHeight);
	vertical-align: middle;
}

#topLogo {
	background-color: #eef;
	background-image: url(images/logo_big.png);
	background-size: calc(var(--leftWidth) - 50px);
	background-repeat: no-repeat;
	background-position: center center;
	
	border-right: 2px solid #069;
	width: var(--leftWidth);
	text-align: center;
}

#topLogo img {
	margin: auto;
	padding: 3px;
}

.bigLogo {
	visibility: visible;
	height: calc(var(--infoHeight));
}

.smallLogo {
	visibility: hidden;
	height: 0px;
}

#projectInfo {
	color: #eef;
	background: #667;
	flex-grow: 1000;
}

#userInfo {
	background: #889;
	flex-grow: 1;
	
	font-size: 0.9em;
	text-align: right;
	border-left: 0px solid #556;
}

.userInfoName {
	color: #dde;
	font-size: 1.0em;
}

/* --- Flex Section */

#flexOuter {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	height: calc(100% - var(--topHeight) - var(--infoHeight) - var(--footHeight) - 2px);
	border-top: 2px solid #069;
}

/* --- Left Section */

#leftOuter {
	border-right: 2px solid #069;
	background: #bbc;
	padding: 0px;
	
	min-width: var(--leftWidth);
	flex-grow: 1;
	overflow: auto;
	font-size: 0.9em;
}

#leftOuter ul {
	
}

#leftOuter li {
	font-family: Oswald, sans-serif;
	font-size: 1.1em;
	text-transform: uppercase;
	
	display: block;
	text-align: left;
	line-height: 26px;
	font-weight: normal;	
	padding: 3px;
	border-radius: 0px;
	margin-top: 1px;
	margin-bottom: 1px;
	vertical-align: middle;
}

#leftOuter a li, #leftOuter a:visited li {
	border: 0;
	color: #556;
	background: #ccd;
	border-left: 0px solid #889;
	
	text-decoration: none;
	padding-top: 3px;
	padding-bottom: 3px;
}

#leftOuter a:hover li {
	color: #eef;
	background: #234;
	border-left: 0px solid #f70;
}

#leftOuter .stdContainer {
	text-align: center;
	background: none;
	border: 0px;
	padding: 0px;
}

/* --- Main Section */

#mainOuter {
	background: #dde;
	padding: 8px;
	overflow: auto;
	font-size: 0.9em;
	
	min-width: 200px;
	flex-grow: 10000;
}

/* --- Footer Section */

#footOuter {
	clear: both;
	border-top: 0px solid #556;
	border-bottom: 0px solid #556;
	
	background: #99a;
	padding: 0px;
	padding-left: 10px;
	padding-right: 10px;
	height: var(--footHeight);
	line-height: var(--footHeight);
	vertical-align: middle;
	font-size: 0.6em;
}

/* --- Other stuff */

#loginBox {
	width: 200px;
	height: 150px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
	vertical-align: middle;
}

#loginBox input {
	border: 1px solid #555;
	border-radius: 5px;
	padding: 5px;
	margin-bottom: 5px;
	text-align: center;
	width: 170px;
	line-height: 24px;
	vertical-align: middle;
}

/* --- Small screens, e g smartphones */	

@media screen and (max-width: 650px) {
	body {
		--leftWidth: 50px;
	}
	
	.projectName {
		font-weight: normal;
		font-size: 0.9em;
	}
	
	.menuIcon {
		margin: 0px;
		text-align: center;
		vertical-align: super;
		font-size: 1.5em;
		height: 36px;
	}
	
	.miniHide {
		visibility: hidden;
		font-size: 0px;
		display: none;
	}
	
	#topLogo {
		background-color: #eef;
		background-image: url(images/logo_small.png);
		background-size: calc(var(--leftWidth) - 16px);
		background-repeat: no-repeat;
		background-position: center center;
	}
	
	#leftOuter {
		padding: 0px;
	}
	
	#leftOuter li {
		font-size: 1em;
		padding: 3px;
		border-radius: 0px;
		margin-top: 1px;
		margin-bottom: 1px;
		line-height: 36px;
	}
	
	#leftOuter a li, #leftOuter a:visited li, #leftOuter a:hover li {
		border-width: 0px;
		text-align: center;
	}
}