/* Header styles */
nav
{
	display: grid;
	grid-template-columns: auto auto 1fr auto;
	grid-column-gap: 10px;
	background-color: #343434;
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 10;
	font-size: 26px;
	padding: 10px;
	min-height: 64px;
}

	nav img
	{
		height: 64px;
	}

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

		nav a:hover
		{
			color: gray;
		}

	nav p
	{
		grid-column: 4;
		user-select: none;
		cursor: pointer;
		text-align: right;
		margin: 0px;
	}

menu
{
	margin: 26px 0px;
	grid-row: 2;
	grid-column: 1/5;
	list-style: none;
}

	menu li
	{
		font-size: 20px;
		margin-top: 10px;
		display: block;
	}

/* Body styles */
html
{
	overflow: hidden;
}

body
{
	font-family: 'Consolas', 'SegoeMDL2Assets';
	overflow: auto;
	margin: 0px;
	margin-top: 84px;
	display: grid;
	grid-template-rows: 1fr auto;
	height: calc(100vh - 84px);
}

main
{
	font-family: 'Calibri', 'SegoeMDL2Assets';
}

.back
{
	text-decoration: none;
	color: black !important;
}

	.back:hover
	{
		text-decoration: underline;
	}

article
{
	margin: 0px 20px;
}

	article a:visited, article a:link
	{
		color: blue;
	}

.comment, .comment:visited
{
	color: #57a64a !important;
}

.video
{
	max-width: 560px;
	height: 315px;
	width: 100%;
}

*[hidden]
{
	display: none;
}

/* Footer styles */
footer
{
	padding: 10px;
	display: grid;
	align-items: center;
	grid-template-columns: 1fr auto;
	grid-column-gap: 10px;
}

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

		footer a:hover
		{
			color: orangered;
		}

/* Adaptive code */
@media only screen and (min-width: 1150px)
{
	menu
	{
		display: initial !important;
		grid-row: 1;
		grid-column: 3;
		margin: 0px;
		align-self: end;
		margin-bottom: 3px;
	}

		menu li
		{
			display: inline-block;
			margin-right: 10px;
			margin-top: 0px;
		}

	#menu-toggle
	{
		display: none;
	}
}

@media only screen and (max-width: 700px) and (min-width: 480px)
{
	body
	{
		margin-top: 112px !important;
		height: calc(100vh - 112px) !important;
	}
}

@media only screen and (max-width: 480px)
{
	nav > a > span
	{
		display: none;
	}

	.video
	{
		height: 240px !important;
	}
}

nav > p > a:nth-last-child(2)
{
	visibility: hidden;
}