body
{
	background-color: #242424;
	color: #eeeeee;
	margin: 60px auto;
	max-width: 850px;
	padding: 0 20px;
	font-family: sans-serif;
	display: flex;
	flex-direction: column;
}

nav
{
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin-bottom: -1px;
	padding-left: 0;
	width: fit-content;
	position: absolute;
	left: max(20px, calc(50% - 465px));
	top: 60px;
}

nav a
{
	text-decoration: none;
	color: #888;
	padding: 10px 20px;
	font-size: 14px;
	border: 1px solid transparent;
	display: block;
	width: 100%;
	box-sizing: border-box;
}

nav a:hover
{
	color: #fff;
	background: #282828;
	border: 1px solid #484848;
	border-right: 1px solid #484848;
}

nav a.active
{
	background-color: #353535;
	border: 1px solid #444;
	border-right: 1px solid #484848;
	color: #fff;
	border-radius: 0px 0px 0 0;
	font-weight: bold;
	margin-right: -1px;
}

main
{
	background-color: #353535;
	border: 1px solid #444;
	border-radius: 0 0px 0px 0px;
	padding: 30px;
	box-shadow: 0 8px 25px rgba(0,0,0,0.4);
	margin-left: 120px;
	min-height: 400px;
}

h1
{
	font-size: 1.5em;
	margin-top: 0;
	padding-bottom: 12px;
	font-weight: 500;
}

h3
{
	margin-top: 30px;
	color: #ccc;
	font-size: 1.1em;
}

pre
{
	font-size: clamp(8px, 1.5vw, 14px);
	line-height: 1.1;
	max-width: 100%;
	overflow: visible
}


.gallery
{
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 15px;
}

@media (max-width: 768px)
{
	nav
	{
		position: relative;
		left: 0;
		top: 0;
		flex-direction: column;
		width: 100%;
	}

	nav a
	{
		padding: 10px 12px;
		width: 100%;
	}

	nav a.active
	{
		border-right: 1px solid #444;
		margin-right: 0;
	}

	main
	{
		margin-left: 0;
	}
}

@media (max-width: 480px)
{
	nav a
	{
		padding: 8px 8px;
	}

	pre
	{
		font-size: 8px;
	}
}

.caption
{
	font-size: 0.8em;
	color: #bbb;
	margin-top: 8px;
	text-align: left;
	font-style: italic;
}

footer
{
	text-align: center;
	margin-top: 40px;
	font-size: 1.0em;
	color: #666;
	display: flex;
	justify-content: center;
	width: 100%;
}

a
{
	color: #fff;
	text-underline-offset: 2px;
}
