/* ------------------------------------- *\
 * Main styling
\* ------------------------------------- */
body
{
	margin: 0px;
	font-family: Arial;
}

*
{
	box-sizing: border-box;
}

#toppanel
{
	color: white;
	width: 100%;
	height: 130px;
	background-color: #CCCCDD;
	/*background-image: url("/static/images/header.jpg");*/
	background-size: cover;
	font-size: 32pt;
	text-align: center;
	padding-top: 18px;
	box-sizing: border-box;
	text-shadow: 2px 2px black, -2px 2px black, 2px -2px black, -2px -2px black;
}

#toppanel-logo
{
	height: 90px;
	max-width: 90%;
}

#menu
{
	background-color: #39355d;
	text-align: center;
	font-size: 0; /* Removes whitespace between child divs with display:inline-block */
}

#menu > *
{
	width: 100%;
	color: #AAAAAA;
	cursor: pointer;
	position: relative;
	background-color: #39355d;
	text-align: center;
	display: inline-block;
	font-size: 12pt;
	font-weight: bold;
	transition: ease-out 0.2s;
	padding-top: 10px;
	vertical-align: top;
	text-decoration: none;
}

#menu > a
{
	height: 40px;
}

#menu > div
{
	color: #606080;
}

#menu > a:hover
{
	color: #FFFFFF;
	background-color: #9e97e2;
}

#menu div a
{
	display: block;
	color: #AAAAAA;
	height: 40px;
	cursor: pointer;
	background-color: #39355d;
	text-align: center;
	font-size: 12pt;
	font-weight: bold;
	transition: ease-out 0.2s;
	padding-top: 10px;
	box-sizing: border-box;
	vertical-align: top;
	text-decoration: none;
	z-index: 1;
}

#menu div a:hover
{
	color: #FFFFFF;
	background-color: #9e97e2;
}

#menu div a:first-child
{
	margin-top: 10px;
}

#main
{
	width: 100%;
	margin: 0px;
	padding: 0px;
	text-align: center;
}

#main > div
{
	width: 100%;
	max-width: 800px;
	display: inline-block;
	text-align: left;
	padding: 15px;
}

#footer
{
	color: #AAAAAA;
	font-size: 9pt;
	text-align: center;
	border-top: solid 1px lightgray;
	padding-top: 10px;
	margin-top: 30px;
	margin-bottom: 40px;
}

/* Between phones and desktop (600px to 800px) */
@media only screen and (min-width: 600px)
{
	#toppanel {font-size: 48pt;}
	#menu > *
	{
		height: 40px;
	}
	#menu > div
	{
		color: #AAAAAA;
		width: 160px;
		padding-left: 0px;
		padding-right: 0px;
	}
	#menu > a
	{
		width: initial;
		padding-left: 18px;
		padding-right: 18px;
	}
	#menu > div:hover
	{
		color: #FFFFFF;
		background-color: #9e97e2;
	}
	#menu div a
	{
		display: none;
	}
	#menu div:hover a
	{
		display: block;
	}
}

/* We have 800px width on desktop, hence the 'odd' breakpoint */
@media only screen and (min-width: 800px)
{
	#menu > div
	{
		width: 160px;
		padding-left: 0px;
		padding-right: 0px;
	}
	#menu > a
	{
		width: 160px;
		padding-left: 0px;
		padding-right: 0px;
	}
}