/* --- 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;
}

.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;
}

/* --- Outer Container */

#bodyOuter {
	margin: auto;
	height: 100%;
	width: 100%;
	overflow: hidden;
}

/* --- Info Section */

#infoOuter {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	background: #667;
	
	font-family: Oswald, sans-serif;
	height: var(--infoHeight);
}

#topLogo, #projectInfo, #userInfo {
	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) - 60px);
	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;
	flex-grow: 1000;
	padding-left: 10px;
	padding-right: 10px;
}

#userInfo {
	flex-grow: 1;
}

#userOuter .menuItem {
	font-family: Oswald, sans-serif;
	font-size: 1.0em;
	background: #ddf;
	border-radius: 18px;
	vertical-align: middle;
	padding: 4px;
	padding-left: 6px;
	height: calc(var(--infoHeight));
	line-height: calc(var(--infoHeight));
	
	margin-top: 0px;
	margin-bottom: 0px;
	text-align: left;
}

#userOuter .menuIcon {
	display: inline-block;
	font-size: 1.0em;
	margin-right: 3px;
	text-align: center;
	width: 24px;
	height: 20px;
	vertical-align: middle;	
}

#userOuter .menuIcon .icon {
	width: inherit;
	background: #eef;
	border-radius: 12px;
	border: 3px solid #ddf;
	aspect-ratio: 1/1;
}

.userBox, .userSettingsBox, .logoutBox {
	display: inline-block;
	vertical-align: middle;
	padding: 0px;
	padding-left: 12px;
	padding-right: 12px;
	line-height: calc(var(--infoHeight) - 2px);

	text-align: center;
}

.userBox {
	background: #eef;
	border-radius: 24px 0px 0px 24px;
}

.userSettingsBox {
	background: #bbc;
	border-radius: 0px;
	border-left: 2px solid #99a;
}

.logoutBox {
	background: #bbc;
	border-radius: 0px;
	border-left: 0px solid #99a;
}

#userInfo .icon {
	border: 3px solid #ccd0;
	padding: 2px;
	margin: 3px;
	border-radius: 20px;
	height: calc(var(--infoHeight) - 8px);
	vertical-align: middle;
}

#userInfo a, #userInfo a:visited, #userInfo a:hover {
	border-width: 0px;
}

#userInfo a img, #userInfo a:visited img {
	background: #ccd;
	border: 3px solid #ccd;
}

#userInfo a:hover img {
	background: #ccd;
	border: 3px solid #234;
}

#userInfo a .menuItem, #userInfo a:visited .menuItem {
	border: 0;
	color: #556;
	background: #ccd;
	
	text-decoration: none;
	vertical-align: baseline;
}

#userInfo a:hover .menuItem {
	color: #eef;
	background: #234;
}


.helper {
	display: inline-block;
	vertical-align: middle;
	height: 100%;
	border: 0px solid #f70;
}



/* --- 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 .menuItem {
	font-family: Oswald, sans-serif;
	font-size: 1.1em;
	text-transform: uppercase;
	background: #ddf;
	border-radius: 18px;
	vertical-align: middle;
	padding: 4px;
	padding-left: 6px;
	line-height: 30px;
	margin-top: 3px;
	margin-bottom: 3px;
	text-align: left;
}

#leftOuter .menuIcon {
	display: inline-block;
	font-size: 1.0em;
	margin-right: 3px;
	text-align: center;
	width: 24px;
	height: 28px;
	vertical-align: middle;	
}

#leftOuter .menuIcon .icon {
	width: inherit;
	background: #eef;
	border-radius: 12px;
	border: 3px solid #ddf;
}

#leftOuter a .menuItem, #leftOuter a:visited .menuItem {
	border: 0;
	color: #556;
	background: #ccd;
	
	text-decoration: none;
	padding-top: 3px;
	padding-bottom: 3px;
}

#leftOuter a:hover .menuItem {
	color: #eef;
	background: #234;
}

#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: 54px;
	}
	
	.miniHide {
		visibility: hidden;
		font-size: 0px;
		display: none;
	}
	
	#topLogo {
		background-color: #eef;
		background-image: url(images/logo_small.png);
		background-size: calc(var(--leftWidth) - 22px);
		background-repeat: no-repeat;
		background-position: center center;
	}
	
	#userOuter a .menuItem, #userOuter a:visited .menuItem, #userOuter a:hover .menuItem {
		border-width: 0px;
		text-align: center;
		aspect-ratio: 1/1;
		vertical-align: baseline;
		background: none;
	}
	
	#userOuter a .menuIcon .icon, #userOuter a:visited .menuIcon .icon {
		border: 3px solid #eef;
		padding: 4px;
	}
	
	#userOuter a:hover .menuIcon .icon {
		border: 3px solid #234;
		padding: 4px;
	}
	
	#userOuter .menuItem {
		border-radius: 40px;
		vertical-align: middle;
		padding: 0px;
		text-align: center;
	}
	
	#userOuter .menuIcon {
		margin: 0px;
		text-align: center;
		width: calc(var(--leftWidth) - 10px);
		aspect-ratio: 1/1;
		vertical-align: middle;	
	}

	#userOuter .menuIcon .icon {
		width: inherit;
		border-radius: 30px;
		border: 3px solid #eef;
		aspect-ratio: 1/1;
	}
	
	
	
	#leftOuter {
		padding: 0px;
	}
	
	#leftOuter a .menuItem, #leftOuter a:visited .menuItem, #leftOuter a:hover .menuItem {
		border-width: 0px;
		text-align: center;
		aspect-ratio: 1/1;
		vertical-align: baseline;
		background: none;
	}
	
	#leftOuter a .menuIcon .icon, #leftOuter a:visited .menuIcon .icon {
		border: 3px solid #eef;
		padding: 4px;
	}
	
	#leftOuter a:hover .menuIcon .icon {
		border: 3px solid #234;
		padding: 4px;
	}
	
	#leftOuter .menuItem {
		border-radius: 40px;
		vertical-align: middle;
		padding: 0px;
		text-align: center;
	}
	
	#leftOuter .menuIcon {
		margin: 0px;
		text-align: center;
		width: calc(var(--leftWidth) - 10px);
		aspect-ratio: 1/1;
		vertical-align: middle;	
	}

	#leftOuter .menuIcon .icon {
		width: inherit;
		border-radius: 30px;
		border: 3px solid #eef;
		aspect-ratio: 1/1;
	}
}