/* See https://itnext.io/how-to-build-a-responsive-navbar-using-flexbox-and-javascript-eb0af24f19bf */
/*
 * Changes:
 * - .nav-links to navlink,
 * - handle navlink-inactive,

*/
* {
	/* box-sizing: border-box; - breaks float layout */
	padding: 0;
	margin: 0;
}

body {
	font-family: 'Josefin Sans', sans-serif;
	font-size:4mm;
}

.navbar {
	font-size: 6mm;
	background-image: linear-gradient(260deg, rgb(14%,46%,68%) 0%, rgb(76%,43%,81%) 100%);
	border: 1pt solid rgba(0, 0, 0, 0.2);
	padding-bottom: 4mm;
}

.main-nav {
	list-style-type: none;
	display: none;
}

.navlink,
.navlink-inactive,
.logo {
	text-decoration: none;
	color: rgba(255, 255, 255, 0.7);
}

.main-nav li {
	text-align: center;
	margin: 4mm auto;
}

.logo {
	display: inline-block;
	/* font-size: 6mm; */
	margin-top: 4mm;
	margin-left: 4mm;
}

.navbar-toggle {
	position: absolute;
	top: 3mm;
	right: 8%;
	cursor: pointer;
	color: rgba(255, 255, 255, 0.8);
	font-size: 5mm;
}

.active {
	display: block;
}

@media screen and (min-width: 300mm) { /* min-width: 725pt */
    /* NOTE: The breakpoint above must be adjusted as per the link_count*(margin_width+link_width) at the top! */
	.navbar {
		display: flex;
		justify-content: space-between;
		padding-bottom: 0;
		height: 12mm;
		align-items: center;
	}

	.main-nav {
		display: flex;
		margin-right: 8mm;
		flex-direction: row;
		justify-content: flex-end;
	}

	.main-nav li {
		margin: 0;
	}

	.navlink,
	.navlink-inactive {
		margin-left: 8mm;
		white-space: nowrap;
	}

	.logo {
		margin-top: 0;
	}

	.navbar-toggle {
		display: none;
	}

	.logo:hover,
	.navlink:hover {
		color: rgba(255, 255, 255, 1);
	}
}


/* from Herzing University - Internet Foundation course
 * ~/ownCloud/Student/IS127/unit4/applyAStudent-unit4a/css/applystyles07.css
 * */
/* Style for the container element */
#container {
	width: 90%;
	margin-left: auto;
	margin-right: auto;
}
/* Style for the main element  */
main {
	display: block;
	margin: 1%;
	padding: 2mm;
	border-radius: 2mm;
	background-color: rgb(90%,85%,90%);
	/* box-shadow: 2mm 2mm 2mm rgb(25%,25%,25%); */
	float: right;
	width: 65%;
}
/* Style for the footer element */
footer {
	font-size: 3.5mm;
	text-align: center;
	clear: left;
}
/* style for every section */
section {
	background-color: rgb(90%,85%,90%);  /* or lightgray for frame around rounded article */
	color: white;
	margin-top: 4%;
	padding: 1%;
}
/* style for every article */
article {
	background-color: white;
	border-radius: 2mm;
	color: black;
	margin-top: 1%;
	padding: 2%;
}
/* style for every aside */
aside {
	background-color: rgb(14%,46%,68%);
	border-radius: 2mm;
	width: 25%;
	float: left;
	padding: 2%;
	margin-top: 1%;
	color: white;
}
aside a {
	color: rgba(255, 255, 255, 0.7);
}

@media only screen and (max-width: 299mm), only screen and (max-device-width: 299mm) {
	aside {
		width:93%;
		float:none;
	}
	main {
		width:94%;
		float:none;
		margin-left:0;
		margin-right:0;
	}
	article {
		margin-left:0;
		margin-right:0;
	}
	section {
		margin-left:0;
		margin-right:0;
		padding-left:0;
		padding-right:0;
	}
}
