body {
	width: 100%;
	height: 100%;
	margin: 0 auto;
	background-color: white;
	transition: 0.5s;
}

#index_header {
	margin: 0px;
	padding-top: 65px;
	padding-bottom: 15px;
	width: 100%;
	height: auto;
	display: block;
	text-align: center;
}
nav a {
	margin-top: 0px;
	text-decoration: none;
	color: #9c9c9c;
	padding: 24px;
	background-color: white;
	transition: 0.3s;
	font-family: calibri, Helvetica;
	font-weight: bold;
	display: inline-block;
}
h1 {
	font-size: 24px;
	margin-bottom: auto;
	margin-top:0px;
	margin-left: auto;
	margin-right: auto;
	color: #7b7b7b;
	display:block;
	font-family: 'Catamaran';
	line-height: 100%;
	max-width: 80%;
}
nav a:hover{
	color: #3c3c3c;
}
#homebtn {
	color: #4b4b4b;
	font-size: 62px;
	margin-bottom: 0px;
	line-height: 48px;
	font-family: 'Catamaran';
	text-decoration: none;
}

#videoplayer {
	position: fixed;
	display: flex;
	top:0;
	width:100%;
	height:100%;
	margin: 0 auto;
	flex-flow: row wrap;
	background-color:rgba(0,0,0,0.0);
	justify-content: center;
	align-items: center;
	transition: 0.5s;
	z-index: 2;
	overflow: hidden;
}
#videoplayer p {
	display: block;
	position: fixed;
	top:10px;
	margin:auto;
	color: white;
	font-family: 'Catamaran';
	text-align: center;
	font-size: 15px;
	transition: 1s;
	z-index: -1;
}

iframe {
	display: block;
	width:80%;
	position: relative;
	margin-left: auto;
	margin-right: auto;
	margin-top: 30px;
	text-align: center;
	font-size: 30px;
	color: white;
	transition: 1s;
	overflow: hidden;
}

.flex-container {
	display: flex;
	margin: 0 auto;
	flex-flow: row wrap;
	background-color:white;
	justify-content: center;
	align-items: center;
	transition: 0.5s;
}

.flex-container > div {
	position:relative;
	background-color:white;
	width: 500px;
	height:400px;
	margin:1px;
	text-align: center;
	line-height: 550px;
	font-size: 30px;
	color: white;
	transition: 0.5s;
	overflow: hidden;
}
#imageFader {
	text-shadow: 0px 0px 30px black;
}

.active {
	position:relative;
	background-color:#1b1b1b;
	width: 500px;
	height:400px;
	margin:1px;
	text-align: center;
	line-height: 550px;
	font-size: 30px;
	color: white;
	transition: 0.5s;
	overflow: hidden;
	filter: grayscale(0%);
}
@media (hover: none) and (max-width: 400px) {
	.flex-container > div {
		width: 400px;
		height: 300px;
	}
	.flex-content > a{
		line-height: 800px;
		color:rgba(0,0,0,0.0);
	}
	.active > a {
		line-height: 500px;
		color:white;
		font-size: 24px;
	}
	iframe {
		width: 95%;
		height: 25%;
	}
	#videoplayer p {
		top:33%;
	}
}

.flex-content > a {
	position: absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
	text-align: center;
	transition: 0.8s;
	text-decoration: none;
	font-family: Catamaran;
	overflow: hidden;
	color: white;
}
.active > a {
	position: absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
	text-align: center;
	transition: 0.8s;
	text-decoration: none;
	font-family: Catamaran;
	overflow: hidden;
	color: white;
}
.flex-content > a:hover{
	line-height: 650px;
	color:rgba(255,255,255,1.0);
}

@media (hover: hover) {
	.flex-content > a {
		line-height: 800px;
		color:rgba(0,0,0,0.0);
	}
	iframe {
		height: 80%;
		width: 80%;
	}
}
@media (hover: hover) and (max-width: 1300px) {
	.flex-content {
	filter: grayscale(75%);
}
	.flex-container > div {
		width: 700px;
		height: 360px;
	}
	.flex-content > a{
		line-height: 800px;
		color:rgba(0,0,0,0.0);
	}
	.active > a {
		line-height: 650px;
		color:white;
		font-size: 30px;
	}
	iframe {
		height: 80%;
		width: 80%;
	}
	
}
@media (hover: none) and (min-width: 400px) {
	.flex-container > div {
		width: 700px;
		height: 360px;
	}
	.flex-content > a{
		line-height: 800px;
		color:rgba(0,0,0,0.0);
	}
	.active > a {
		line-height: 650px;
		color:white;
		font-size: 30px;
	}
	iframe {
		height: 80%;
		width: 80%;
	}
}
video {
	display: inline-block;
	position: relative;
	height:420px;
}
@media only screen and (max-width: 400px) {
	video {
		height:320px;
	}
}
#index_footer {
	margin: 0px;
	width: 100%;
	background-color: white;
	float: left;
}
#index_footer p {
	padding-top: 30px;
	padding-bottom: 30px;
	text-align: center;
	font-size: 10px;
	color: grey;
	font-family: calibri, Helvetica;
}
@media only screen and (max-width: 1500px) {
#index_content {
	margin: auto;
	width: 80%;
}
#work_content {
	width: 100%
}
#work_content p {
	width: 100%;
}
}

@media screen and (orientation: portrait) and (max-width: 1500px) {
	#work_content p {
		font-size: 30px;
		line-height: 36px;
	}
	#index_header {
		margin: 0px;
		padding-top: 50px;
		padding-bottom: 10px;
		width: 100%;
		height: auto;
		text-align: center;
	}
	#homebtn {
		font-size: 42px;
		line-height: 30px;
	}
	h1 {
		font-size: 17px;
	}
	.flex-container > div {
		margin-left:0px;
		margin-right:0px;
		margin-top:0px;
		margin-bottom:30px;
	}
}
@media screen and (orientation: landscape) and (max-width: 1000px) {
		.flex-container > div {
	margin:0px;
	}
}
	
@media screen and (orientation: landscape) and (max-width: 1500px) {
	#index_header {
	margin: 0px;
	padding-top: 50px;
	padding-bottom: 0px;
	width: 100%;
	height: auto;
	text-align: center;
	}
	#homebtn {
	font-size: 42px;
	}
	h1 {
		font-size: 17px;
	}
}
@media only screen and (max-width: 378px) {
	nav a{
		padding: 15px;
	}
	h1 {
		margin-bottom:10px;
	}
}
@media only screen and (max-width: 350px) {
	video {
		height: 300px;
	}
	.flex-content > a{
		font-size: 18px;
	}
	.active > a {
		font-size: 18px;
	}
}
@media only screen and (max-width: 295px) {
	nav a{
		padding: 9px;
	}
}