﻿* {
	box-sizing: border-box;
}

body {
	font-family: OpenSans;
	padding: 0;
	margin: 0;
}

header {
	color: rgb(23,144,68);
	display: grid;
}

	header a {
		color: inherit;
		text-decoration: none;
	}

	header p {
		margin: auto 0px;
		padding: 10px;
	}

		header p.header-left {
			font-size: 44px;
		}

		header p.header-right {
			padding-top: 0px;
		}


.separator {
	border-bottom: 1px solid black;
	box-shadow: 0px 1px 3px #000;
	margin-bottom: 10px;
}

nav {
	background-color: #555;
	color: white;
	padding: 0;
	box-shadow: 0px 1px 3px #555;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

	nav a {
		display: block;
		color: white;
		padding: 10px;
		text-decoration: none;
	}

		nav a.active, nav a:hover {
			background-color: rgb(23,144,68)
		}

		nav a:hover {
			background-color: rgba(23,144,68, 0.5);
		}

main {
	padding: 10px;
	margin-bottom: 100px;
}

	main a {
		color: rgb(23,144,68);
	}

div.img-decor {
	position: relative;
	padding: 0;
}

div.img-decor-bottom {
	position: absolute;
	background-color: rgba(255,255,255, 0.5);
	bottom: 0;
	left: 0;
}

div.img-decor-gallery {
	position: absolute;
	background-color: rgba(0,0,0, 0.5);
	bottom: 4px;
	left: 0;
	right: 0;
	height: 30px;
	color: white;
	padding: 4px;
}

div.img-decor-banner {
	position: absolute;
	background-color: rgba(255,255,255, 0.5);
	bottom: 0;
	left: 0;
	right: 0;
	height: 35px;
	padding: 5px;
}

span.initial {
	background-color: rgb(23,144,68);
	color: white;
	width: 1.25em;
	display: inline-block;
	text-align: center;
}

.col-2 {
	display: grid;
}

img {
	max-width: 100%;
}

@media (max-width:999px) {
	div.in-text {
		width: 100%;
	}

		div.in-text img {
			width: 100%;
		}

	div.img-decor-bottom {
		right: 0;
		height: 30px;
	}
}


@media (min-width:1000px) {
	header {
		grid-template-columns: 1fr 1fr;
	}

		header p.header-right {
			text-align: center;
			padding-top: 10px;
		}

	.col-2 {
		grid-template-columns: 1fr 1fr;
		grid-column-gap: 20px;
	}

	main {
		padding: 10px 20px;
		min-height: 500px;
		text-align: justify;
	}

	.in-text {
		float: right;
		margin-left: 20px;
		margin-bottom: 20px;
		min-width: 400px;
		max-width: 40%;
	}

		.in-text img {
			max-width: 100%;
		}

	div.img-decor-bottom {
		top: 0;
		width: 20px;
	}

	p, li, article, h2, div.main {
		max-width: 1000px;
	}
}


section {
	background-color: #F8F8F8;
	box-shadow: 3px 3px 3px #AAA;
	padding: 0;
	display: grid;
	grid-template-columns: min-content auto;
	margin-bottom: 10px;
}

article {
	background-color: #F8F8F8;
	box-shadow: 3px 3px 3px #AAA;
	margin-bottom: 25px;
	padding: 10px;
}

	article h3 {
		background-color: rgb(23,144,68);
		color: white;
		margin-top: -10px;
		margin-left: -10px;
		margin-right: -10px;
		padding: 10px;
	}


footer {
	clear: both;
	background-color: #555;
	color: white;
	width: 100%;
}

	footer nav {
		grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	}


@media (prefers-color-scheme: dark) {
	body {
		background-color: black;
		color: white;
	}

	article, section {
		background-color: #444;
		box-shadow: 3px 3px 3px #444;
	}

	div.img-decor-bottom, div.img-decor-banner {
		background-color: rgba(0,0,0, 0.5);
	}
}
