﻿* {
	vertical-align: middle;
}

:root {
	font-size: 14pt;
}
body {
	font-family: Arial, Roboto, "Noto Sans", sans-serif;
	background-color: #7EBFE5;
}

#page-container {
	display: grid;
	grid-gap: 8px;
	margin: auto;
	width: 80%;
}

body.index #page-container {
	grid-template-areas: 'header header header'
						 'item1 item2 item3';
}

body.employees #page-container {
	grid-template-areas: 'header' 'item1' 'item2' 'item3';
}

#page-container > * {
	border: 2px solid #001837;
	border-radius: 8px;
	background-color: white;
	box-shadow: 2px 2px 6px #808080;
}

header {
	grid-area: header;
	display: grid;
	grid-template-areas: 'title title title'
						 'start employees .';
	
}

#title-container {
	grid-area: title;
	border-bottom: 2px solid #001837;
	padding: 8px;
	
	display: -webkit-flex;
	display: flex;
}

#logo-container {
	width: 140px;
	height: 140px;
	border-radius: 100%;
	overflow: hidden;
	border: 1px solid #001837;
}

#logo {
	width: 100%;
	height: 100%;
	display: inline-block;
}

h1 {
	font-size: 4.5em;
	text-align: center;
	line-height: 140px;
	height: 140px;
	width: calc(100% - 140px);
	color: #001837;
	font-style: italic;
	text-shadow: 3px 3px 0px #7EBFE5;
}

.nav-link {
	padding: 8px;
	border-right: 2px solid #001837;
	font-size: 1.2em;
	font-weight: bold;
}

#start-link {
	grid-area: start;
}

#employee-link {
	grid-area: employees;
}

body.index #start-link a, body.employees #employee-link a {
	text-decoration: underline !important;
	
	-moz-text-decoration-style: double !important;
	text-decoration-style: double !important;
}

.item {
	text-align: center;
	padding: 8px;
}

#item1 {
	grid-area: item1;
}
#item2 {
	grid-area: item2;
}
#item3 {
	grid-area: item3;
}

.item img {
	border-radius: 4px;
	box-shadow: 1px 1px 4px #808080;
}
img.product-preview {
	max-width: 80%;
	max-height: 220px;
	text-align: center;
	margin-bottom: 8px;
	/*border: 1px solid #001837;*/
}

.item p {
	text-align: justify;
	padding: 0px 2em;
}

.employee {
	display: grid;
	grid-template-areas: 'portrait name'
						 'portrait bio';
}

h2 {
	grid-area: name;
	text-align: left;
	font-size: 1.8em;
	padding-left: 8px;
}
img.employee-portrait {
	grid-area: portrait;
	max-width: 130px;
	max-height: 130px;
}
.employee p {
	grid-area: bio;
	padding: 0px 0px 0px 8px;
}

@media screen and (max-width: 1200px) {
	body.index #page-container {
		grid-template-areas: 'header header' 'item1 item1' 'item2 item3';
	}
}
@media screen and (max-width: 1120px) {
	#page-container {
		width: 90%;
	}
}
@media screen and (max-width: 1000px) {
	body.index #page-container {
		grid-template-areas: 'header' 'item1' 'item2' 'item3';
	}
	#page-container {
		width: 100%;
	}
}
@media screen and (max-width: 920px) {
	h1 {
		font-size: 3.5em;
		height: 100px;
		line-height: 100px;
		width: calc(100% - 100px);
	}
	#logo-container {
		width: 100px;
		height: 100px;
	}
}
@media screen and (max-width: 715px) {
	body {
		/*background-color: #001837;*/
		margin: 0px;
	}
	
	h1 {
		font-size: 2.5em;
		line-height: 80px;
		height: 80px;
		width: calc(100% - 80px);
	}
	
	#logo-container {
		width: 80px;
		height: 80px;
	}
	
	.nav-link {
		font-size: 1em;
	}
	
	#page-container > * {
		border: none;
		border-radius: 0px;
		box-shadow: none;
	}
	
	header, .item:not(:last-child) {
		border-bottom: 2px solid #001837 !important;
	}
	
	#page-container {
		grid-gap: 0px;
	}
}