@charset "UTF-8";

html {
	height: 100%;
	margin: 0;
}
body {
	font-family: "Titillium Web", serif; /* Nunito, Montserrat */
	margin: 0;
	padding: 0;
	min-height: 100%;
	display: flex;
	flex-direction: column;
}
a {
	text-decoration: none;
	color:#0795fc;
}
h1 a, h2 a {
	color: inherit;
}
a:hover {
	text-decoration:underline;
}
@media (max-width: 950px) {
	h1, h2,
	p {
		padding: 0 10px;
	}
}
img {
	border-width: 0;
	margin: 0;
}

header {
	background-color: #333333;
	color: #cccccc;
	flex-shrink: 0;
	flex-grow: 0;
}
main {
	flex-grow: 1;
}
footer {
	flex-shrink: 0;
	flex-grow: 0;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	border-top: 1px solid #333333;
	font-size: 0.8rem;
}
footer img {
	height: 2em;
	vertical-align: middle;
}
footer .element {
	padding: 0.7em;
}

nav {
	width: 100%;
	max-width: 950px;
	left: 0;
	right: 0;
	margin: auto;
}
nav ul {
	margin: 0;
	padding: 0;
	list-style-type: none;
	overflow: hidden;
}
nav ul li {
	float: left;
}
nav ul li.right {
	float: right;
}
nav ul li a {
	display: table-cell;
	color: inherit;
	height: 3.5rem;
	padding: 0 1.5rem;
	vertical-align: middle;
}
nav ul li.main a img {
	height: 2rem;
	vertical-align: middle;
}
nav ul li a:hover {
	text-decoration: none;
	background-color: #555555;
}
@media(max-width: 500px) {
	nav ul li a {
		padding: 0 1rem;
	}
}
@media(max-width: 400px) {
	nav ul li a {
		padding: 0 0.75rem;
	}
}
@media(max-width: 350px) {
	nav ul li a {
		padding: 0 0.5rem;
	}
}
/*@media(max-width: 374px) {
	nav ul li.main {
		margin-right: 100vw;
	}
	nav ul li a {
		padding: 0 1rem;
		height: 2.5rem;
	}
}*/

.clearFloat:after {
	content: "";
	display: block;
	clear: both;
	visibility: hidden;
	height: 0;
}

img.wide {
	width: 100%;
	max-width: 950px;
	max-height: 250px;
	object-fit: contain;
	object-position: center;
}
@media (max-width: 1000px) {
	img.wide {
		max-height: 25vw;
	}
}

section {
	overflow: auto;
}
section.bright {
	background: linear-gradient(to bottom, hsl(192, 100%, 100%), hsl(201, 100%, 95%));
}
section.dark {
	background: linear-gradient(to bottom, hsl(192, 50%, 30%), hsl(201, 50%, 20%));
	color: #cccccc;
}
section.crazyChicken {
	background: linear-gradient(to bottom, hsl(207, 100%, 83%), hsl(207, 100%, 83%), hsl(207, 100%, 78%), hsl(207, 100%, 73%));
}

.box {
	width: 100%;
	max-width: 950px;
	left: 0;
	right: 0;
	margin: auto;
}

.row {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	flex-wrap: wrap;
	margin: 20px 0;
}
.row .col30 {
	flex-basis: 30%;
}
.row .col50 {
	width: 45%;
}
.row .col65 {
	width: 65%;
}

.row.imageText {
	align-items: center;
}
@media (max-width: 450px) {
	.row .col50 {
		width: 100%;
	}
	.row .col50 + .col50 {
		margin-top: 20px;
	}
}
@media (max-width: 650px) {
	.row .col65 {
		width: 100%;
	}
	.row .col30 {
		flex-basis: 100%;
	}
}

.box .teaser {
	width: 100%;
	height: 400px;
	object-fit: cover;
	object-position: center;
	display: block;
}

/* Index page top */
.bigImageBox {
	position: relative;
	text-align: center;
	color: white;
	height: 80vh;
	overflow: hidden;
	padding: 0;
}
.bigImageBox .background {
	width: 100%;
	object-fit: cover;
	object-position: center;
}
.bigImageBox .top {
	position: absolute;
	width: 100%;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
}

/* Preview boxes on index page */
.previews {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	flex-wrap: wrap;
	margin-top: 30px;
}
.preview {
	flex-basis: 30%;
}
.preview h2 {
	font-size: 1.2rem;
}
.preview .previewImage {
	max-width: 100%;
}
.preview .more {
	display: block;
	text-align: right;
}
@media(max-width: 600px) {
	.previews {
		justify-content: space-around;
	}
	.preview {
		max-width: 400px;
		flex-basis: 100%;
		text-align: center;
	}
	.preview .previewImage {
		width: 100%;
		max-height: 150px;

		object-fit: cover;
		object-position: top;
	}
	.preview p {
		text-align: left;
	}
}

