/* Clearfix */
.clearfix:before, .clearfix:after { content: " "; display: table; }
.clearfix:after { clear: both; }
.clearfix { *zoom: 1; }

*, *:before, *:after { box-sizing: border-box; }

/* CONTENT -------------------------------------------------------------------*/

#content {
	margin: 1em 0 0 0;
	padding: 10px;
	width: 100%;
	font-family: "PT Sans", sans-serif;
	/*background: #f0f0f0; 
	border: 1px solid #666;*/
}

body {
	/* Add more left-right whitespace as window grows */
	margin: 0.5em 10%;
}

main h2 {
	border-bottom: 1px solid black;
}

.button-link {
	background: #ffedcc;
	color: #004a80;
	padding: 0.15em 0.25em;
	border-radius: 5px;
}

.about h3 {
	margin: 0em 0em 0em 0em;
	line-height: 1;
}

.about p {
	margin-top: 0.25em;
}

.about img {
	float: right;
	width: 300px;
	margin-left: 2em;
	margin-bottom: 1em;
}



.screenshots {
	margin: 2em auto;
	overflow: auto;
	/*border: 1px solid red;*/
}

.screenshots div {
	width: 32%;
	margin: 2em auto;
	/*border: 1px solid blue;*/
	display: inline-block;
}
.screenshots img {
	max-width: 100%;
}


.screenshots h3 {
	margin: 0;
	text-align: center;
}



.change-log h3 {
	margin: 2em 0em 0em 0em;
}

.change-log ul h4 {
	margin: 1em 0em 0.25em 0em;
}

.change-log-subhead {
	list-style-type: none;
}

.change-log ul {
	margin: 0.25em auto auto auto;
}

.woah {
	color: #f29d00;
}

.tip {
	font-style: italic;
	background: #eee;
	margin: 0.5em 3em;
	padding: 0.5em;
	border: 1px solid #ccc;
	border-radius: 8px;
}

/* HELP/MANUAL --------------------------------------------------------------------*/

.help-section {
	/*border: 1px solid red;*/
	/*padding: 0;
	margin: 0;*/
}
.help-section h3 {
	border-bottom: 1px solid grey;
	line-height: 1;
	margin: 0.75em 0 0 0;
}

.help-subsection {
	padding-top: 0.5em;
	display: grid;
	grid-template-columns: auto auto;
    grid-gap: 0.5em;
}

.help-text {
	margin: 0em auto;
}

.help-text img {
	vertical-align: middle;
}

.help-text p {
	margin: 0 0 0.5em 0;
	display: list-item;
    list-style-type: circle;
    list-style-position: inside;
    text-indent: 0.5em;
}

.help-figures {
	max-width: 30em;
}

.help-figure {
	font-style: italic;
	background: #f7f7f7;
	margin-bottom: 0.5em;
	padding: 0.5em;
	border: 1px solid #ccc;
	border-radius: 8px;
	text-align: center;
}

.help-figure span {
	display: block;
}

.help-figure img {
	max-width: 100%;
}



/* HEADER --------------------------------------------------------------------*/

header {
	padding: 1em 0em 1em 1em;
	overflow: auto; /* Prevents the image from overflowing outside its container */
	/*border: 1px dashed blue;*/
}

header img {
	float: left;
	display: block;
	margin-left: auto;
	margin-right: auto;
	width: 10em;
}

header div {
	display: inline-block;
	margin-left: 1.0em;
}

header h1 {
	font-family: "Roboto", "Helvetica Neue", "Helvetica", sans-serif;
	font-weight: 100;
	font-size: 32pt;
	margin: 0;
}

header h2 {
	font-family: "PT Sans", "Helvetica Neue", "Helvetica", sans-serif;
	font-weight: 400;
	margin: 0 0 1em 0;
	color: orange;
}

header p {
	margin-bottom: 0;
	font-family: "Roboto", "Helvetica Neue", "Helvetica", sans-serif;
	font-weight: 300;
	font-style: italic;
}


/* NAVIGATION BAR ------------------------------------------------------------*/

nav {
	clear: both;
	width: 100%;
	height: 40px;
	margin: 0;
	padding: 0;
	background: #f29d00;
	text-align: center;
	z-index: 50;
	position: relative;
}

nav ul {
	margin: 0;
	padding: 0;
	font-size: 0; /*Fixes the margin error on inline li's*/
}

nav li {
	display: inline;
	margin: 0px auto;
	
}

nav a {
	padding-left: 1em;
	padding-right: 1em;
	line-height: 40px;
	color: #fff;
	display: inline-block;
	text-align: center;
	text-decoration: none;

	font-family: "Roboto", "Helvetica Neue", "Helvetica", sans-serif;
	font-weight: 500;
	font-size: 14pt;
}

nav .selected {
	font-weight: 700;
	font-size: 24pt;
}

nav li a {
	border-right: 1px solid #fff;
}

nav li:first-child a {
	border-left: 1px solid #fff;
}

nav li a:focus {
	border-bottom: 2px solid #004a80;
}

nav li a:hover,
nav li a:active {
	border-bottom: 5px solid #004a80;
}

nav a#pull {
	display: none;
	background-color: #283744;
	width: 100%;
	position: relative;
}

nav a#pull:hover {
	text-decoration: none;
	color: white;
}

.navbar-fixed {
	top: 0;
	left: 0;
	z-index: 100;
	position: fixed;
	width: 100%;
}



/* FOOTER --------------------------------------------------------------------*/

footer {
	margin: 0.5em 0 0 0; padding: 0.5em 0.5em 1.5em 0.5em;
	color: #aaa;
	background: #222;;
	font-family: "Roboto", "Helvetica Neue", "Helvetica", sans-serif;
	font-weight: 300;
	text-align: center;
}

footer a {
	color: white;
	text-decoration: none;
}

footer a:hover {
	text-decoration: underline;
}

footer button {
	padding: 0.25em 5em;
	font-size: 12pt;
}

/* FLAT BLUE BUTTON ----------------------------------------------------------*/
button, input[type=submit] {
	padding: 0.5em 1em;
	color: white;
	background: #f29d00;

	border: none;
	border-radius: 5px;
	cursor: pointer;
	vertical-align: middle;

	font-size: 10pt;
	font-family: "Roboto", "Helvetica Neue", "Helvetica", sans-serif;
	font-weight: 100;
	text-transform: uppercase;
}

button:focus, input[type=submit]:focus {
	outline: none;
	border: none;
}

button:hover, input[type=submit]:hover {
	box-shadow: inset 0px 0px 0px 1px white;
	cursor: pointer;
}


@media only screen and (max-width : 900px) {
	body {
	/* Add more left-right whitespace as window grows */
		margin: 0.25em 2%;
	}
}


@media only screen and (max-width : 750px) {
	
	body {
		margin: 0.25em;
	}

	.navbar-fixed {
		top: 0;
		left: 0px;
		z-index: 100;
		position: static;
		width: 100%;
	}

	header {
		padding: 0;
	}

	header img {
		float: none;
		text-align: center;
		display: block;
		width: 7em;
	}

	header div {
		display: block;
		margin: 0.5em 0 0 0;
		text-align: center;
	}

	header p {
		padding-bottom: 1em;
	}

	nav {
		margin-top: 0;
		height: auto;
		overflow: auto;
	}
	nav ul {
		width: 100%;
		display: block;
		height: auto;
	}
	nav li {
		width: 50%;
		float: left;
		position: relative;
		font-size: 12pt;
	}
	nav li a {
		border-bottom: 1px solid #fff;
		border-right: 1px solid #fff;
	}
	nav a {
		text-align: center;
		width: 100%;
		/*line-height: 30px;*/
	}

	nav li a:hover,
	nav li a:active {
		border-bottom: 1px solid #004a80;
		color: #004a80;
	}

	.about img {
		margin-left: 0.5em;
		margin-bottom: 0.5em;
		max-width: 40%
	}

	.screenshots div {
		width: 49%;
	}

	.help-figures {
		max-width: 20em;
	}
}

@media only screen and (max-width : 480px) {
	nav ul {
		display: none;
		height: auto;
	}
	nav a#pull {
		display: block;
	}
	nav a#pull:after {
		content:"";
		background: url('../img/icons/nav-icon.png') no-repeat;
		width: 30px;
		height: 30px;
		display: inline-block;
		position: absolute;
		right: 15px;
		top: 10px;
	}

	header img {
		width: 6em;
	}

	nav li {
		width: 100%;
		float: left;
		position: relative;
	}

	#content h1, h2, .header {
		text-align: center
	}
	
	header h1 {
		font-size: 20pt;
	}
	header h2 {
		font-size: 16px;
	}
	header p {
		font-size: 12px;
	}

	.screenshots div {
		width: 99%;
	}

	.tip {
		margin: 0.5em 0.5em;
	}

	.help-subsection {
		display: block;
	}

	.help-figures {
		max-width: 100%;
	}
}

