
body, html
{
    min-height:800px;
	margin: 0px;
	padding: 0px;
	font-family: 'Alegreya Sans', sans-serif;
}


#header
{
	background: #132b43 url('img/mattbg.png');
	text-align: center;
	padding-top: 100px;
	height: 450px;
}

#portrait
{
	width: 200px;
	height: 200px;
	background: url('img/portrait.png') no-repeat center;
	margin: auto;
	background-size: 200px;
	background-color: #94b2d0;
	border-radius: 110px;
	border: 5px solid white;
	/*transition: width 0.3s, height 0.3s, background 0.3s;*/
}


#header.small #headercontent
{
	box-sizing: border-box;
	width: 920px;
	margin: auto;
	padding: 5px 20px 0px 50px;
}

#spacer.small
{
	height: 525px;
}

#spacer
{
	height: 25px;
}


#spacer.verysmall
{
	height: 125px;
}


#header.small
{
	background: #132b43;
	position: fixed;
	top: -1px;
	width: 100%;
	height: 100px;
	padding: 0px;
}


#header.small #portrait
{
	width: 76px;
	height: 76px;
	background: url('img/logo.png') no-repeat center;
	float: left;
	margin-bottom: 5px;
	border: none;
}

#title
{
	color: #ecf2ff;
	display: block;
	font-weight: 900;
	font-size: 2.5em;
	margin-top: 10px;
}

#header.small #title
{
	float: left;
	margin-left: 10px;
	margin-top: 15px;
}

#subtitle
{
	display: inline-block;
	padding: 0px;
	margin: 0px;
	padding-bottom: 100px;
}

#header.small #subtitle
{
	padding-bottom: 0px;
	display: inline;
	float: right;
	margin-right: 50px;
	margin-top: 29px;
}

#subtitle > li:first-child
{
	color: #40bde6;
	list-style-type: none;
	font-family: 'Alegreya Sans', sans-serif;
	font-weight: bold;
	text-transform: uppercase;
	font-size: 2em;
	float: none;
	padding: 0px;
	margin: 0px;
}

#subtitle > li:nth-child(2)
{
	list-style-type: none;
}

#subtitle li
{
	list-style-position: outside;
	float: left;
	color: #3a96d0;
	font-size: 1.8em;
	font-family: 'Rancho', sans-serif;
	margin-left: 17px;
	margin-right: 17px;
}

#header.small #subtitle > li:first-child
{
	font-weight: 800;
	float: left;
	text-transform: none;
	color: #ecf2ff;
}

#header.small #subtitle > li:nth-child(2)
{
	list-style-type: disc;
}

#header.small #subtitle li
{
	font-family: 'Alegreya Sans', sans-serif;
	font-weight: 800;
	color: #ecf2ff;
	float: left;
	font-size: 1.2em;
	margin-left: 10px;
	margin-right: 17px;
}

#menu
{
	background-color: #94b2d0;
	display: inline-block;
	list-style-type: none;
	padding: 0px;
	margin: 0px;
	min-width: 920px;
	width: 100%;
    text-align:center;
}

#menu li
{
	display: inline-block;
	padding: 7px 50px;
	font-weight: 800;
	font-size: 1.3em;
}

#menu li.selected
{
	color: white;
	background: url('img/menuflash.png') no-repeat center;
}

#menu li:not(.selected):hover
{
	cursor: hand;
	color: black;
	border-bottom: 7px solid #132b43;
	padding-bottom: 0px;
}

#menu a
{
	color: #132b43;
	text-decoration: none;
}

#menu li.selected a
{
	color: white;
}

#large
{
	position: fixed;
	top: 30px;
	width: 100%;
	text-align: center;
}

#large img
{
	border: 5px solid #000022;
	border-radius: 20px;
}


/* ************************** Articles ************************** */

.article
{
	background: white url('img/invaderbg.png');
	padding: 50px;
}

.article:nth-child(even)
{
	background: #43c9fb url('img/invaderbg.png');
}

.article h1, h2
{
	box-sizing: border-box;
	width: 820px;
	margin: auto;
	padding: 0px 10px;
	color: #43c9fb;
	font-size: 1.8em;
}

.article h1 a
{
	color: #43c9fb;
}

.article:nth-child(even) a
{
    color: #fbc943;
}

.article:nth-child(even) h1
{
	color: white;
}

.article h2
{
	color: #132b43;
	font-size: 1.2em;
}

.article p iframe
{
	display: block;
	margin: 10px auto 20px auto;
}

.article p img.gameicon
{
	margin-top: 60px;
	margin-bottom: 100px;
	margin-right: 50px;
	border-radius: 25px;
}

.article p, .article ul
{
	box-sizing: border-box;
	text-align: justify;
	width: 820px;
	margin: auto;
	padding: 5px 10px 20px 10px;
	font-size: 1.2em;
}
.article ul
{
	padding-left: 50px;
}

.article img.screenshot4
{
    width: 24%;
    border-radius: 10px;
}

.article img.screenshot3
{
	width: 30%;
	border-radius: 10px;
}

.article img.screenshot2
{
	width: 49%;
	border-radius: 10px;
}

.article img.screenshot1
{
	width: 100%;
	border-radius: 10px;
}

.article div.header
{
	width: 800px;
	margin: auto;
	padding: 0px 10px;
}

.playbutton
{
	float: right;
	margin: 10px 50px;
	width: 160px;
	height: 38px;
	background-color: #56ab56;
	text-align: center;
	color: white;
	padding-top: 6px;
	font-size: 1.6em;
	font-weight: bold;
	border-radius: 10px;
	cursor: pointer;
}

.article a.anchor
{
    display: block;
    position: relative;
    top: -170px;
    visibility: hidden;
}

/* ************************** Contact Form ************************** */

#contact
{
	min-height: 350px;
	background-color: #283643;
	padding: 0px 50px;
}

#contactcontent
{
	box-sizing: border-box;
	width: 820px;
	margin: 0px auto;
	padding: 5px 10px;
}

#contact h1
{
	color: #ecf2ff;
	padding-top: 10px;
	margin: 15px;
	font-size: 1.8em;
	background: url('img/ems.png') no-repeat center 16px;
	width: 450px;
}

#contacttitle
{
	height: 50px;
	background: url('img/ems.png') no-repeat center 16px;
}

#contact form
{
	width: 45%;
	float: left;
	padding: 0px;
	margin: 0px;
}

#contact input
{
	display: block;
	margin-bottom: 5px;
	width: 95%;
	border-radius: 15px;
	padding: 2px 8px;
	font-family: 'Alegreya Sans', sans-serif;
	font-size: 1em;
	font-style: italic;
	font-weight: bold;
	color: silver;
}

#contact input[type="submit"]
{
	width: 100px;
	margin: 5px auto;
	font-family: 'Alegreya Sans', sans-serif;
	font-size: 1em;
	font-weight: bold;
	font-style: normal;
	color: black;
}

#contact textarea
{
	width: 95%;
	height: 80px;
	border-radius: 15px;
	padding: 5px 8px;
	font-family: 'Alegreya Sans', sans-serif;
	font-size: 1em;
	font-style: italic;
	font-weight: bold;
	color: silver;
}

#contact label
{
	width: 70px;
	float: left;
	text-align: right;
	padding-right: 10px;
	color: #ecf2ff;
	font-weight: bold;
	padding-top: 4px;
}

#contact #icons
{
	float: right;
	width: 50%;
	text-align: center;
	list-style-type: none;
	padding: 0px;
	margin-top: 30px;
}

#contact #icons li:not(:first-child)
{
	display: inline-block;
	padding: 0px;
	margin: 8px 30px;
}

#contact #icons > li:first-child
{
	display: block;
	color: white;
	margin-bottom: 18px;
}

#contact #icons > li:first-child a
{
	color: white;
	text-decoration: none;
}

#contact #icons img
{
	margin: 0px;
	padding: 0px;
	width: 64px;
}


@media only screen and (max-device-width: 480px)
{

	.article p
	{
		font-size: 0.9em;
	}

	#portrait
	{
		width: 500px;
		height: 500px;
		background-size: 100%;
	}

	#header
	{
		height: 850px;
	}
	
	#title
	{
		font-size: 5em;
	}

	#header.small #subtitle
	{
		padding-bottom: 0px;
		display: inline;
		float: right;
		margin-right: 50px;
		margin-top: 29px;
	}

	#subtitle > li:first-child
	{
		font-size: 4em;
	}

	#subtitle li
	{
		font-size: 3.4em;
		margin-left: 30px;
		margin-right: 30px;
	}


	#header.small
	{
		height: 200px;
	}

	#header.small #portrait
	{
		width: 128px;
		height: 128px;
		background-size: 100%;
		margin: 15px;
	}

	#header.small #title
	{
		margin-top: 20px;
		margin-bottom: 0px;
	}

	#header.small #subtitle
	{
		padding-bottom: 0px;
		display: block;
		float: none;
		margin-right: 0px;
		font-size: 1.6em;
		margin-top: -10px;
	}

	#header.small #subtitle li
	{
		margin: 0px 30px 0px 15px;
	}

	#spacer.verysmall
	{
		height: 225px;
	}

	#spacer.small
	{
		height: 620px;
	}
	
	#contact
	{
		min-height: 1250px;
	}

	#contacttitle
	{
		background-size: 100%;
		height: 100px;
		margin-bottom: 30px;
	}

	#contact form
	{
		float: none;
		width: 100%;
	}
	
	#contact input
	{
		font-size: 2em;
		width: 100%;
		border-radius: 30px;
	}
	
	#contact input[type="submit"]
	{
		font-size: 2em;
		width: 200px;
		height: 70px;
		margin-top: 20px;
	}

	#contact textarea
	{
		width: 100%;
		height: 250px;
		border-radius: 30px;
	}
	
	#contact #icons
	{
		float: none;
		width: 100%;
	}
	
	#contact #icons a
	{
		font-size: 1.6em;
	}

	#contact #icons img
	{
		width: 150px;
	}

	#contact #icons li:not(:first-child)
	{
		margin: 8px 50px;
	}

	#menu
	{
		font-size: 1.6em;
	}
	
	#menu li
	{
		padding: 7px 30px;
	}

}

