body
{
	margin: 0;
	padding: 0;
	background-color: #FFF;
	font-family: trebuchet ms, verdana, tahoma, arial;
	font-size: 75%;
	line-height: 180%;
}

img
{
	border: 0px;
}

body > #menu
{
	position: fixed;
}

a:active, a:visited, a:link
{
	color: #5E8E3E;
	text-decoration: underline;
}

a:hover
{
	color: #ff6600;
	text-decoration: none;
}

#menu
{
	position: absolute;
	top: 0;
	left: 0;
	width: 200px;
	height: 100%;
	overflow: hidden;
	background-color: #555;
	border-right:1px solid #000;
	font-size: 90%;
}

#menutop
{
	width: 200px;
	border-bottom:1px solid #808080;
	background-color: #444;
}

/*-------------------------------------MAIN-INDEX-----------------------------------*/


#main
{
	width: 140px;
	margin-left: 200px;
	padding: 20px;
}


#main h2
{
	border-bottom: 1px solid #808080;
	font-family: arial;
	font-weight: 100;
	letter-spacing: 8px;
	font-size: 200%;
	text-align: right;
}

/*-------------------------------MEDIA-QUERIES-START---------------------------------------*/

@media (max-width: 1680px) {
	html {
		grid-template-columns: 1fr;
	}
	body {
		grid-column: 1 / -1;
	}
}

@media (max-width: 970px) {
	header h1 {
	    font-size: calc(1rem + 2.5vw); 
	} 
}

@media (max-width: 770px) {
	.box {
		justify-items: center;		/*Trys to center all grid items. doesnt perfectly center*/
		grid-template-columns: 1fr;
		grid-template-rows: auto;
		grid-template-areas:
		  'foto'
		  'title'
		  'text';
	}
	.title {
		text-align: center;
	}
	.text {
	    text-align: justify;
		text-rendering: optimizeLegibility;  /*use for fancy text rendering. may not need*/
	}

	nav li:nth-child(5) {
		display: none;
	}
	nav li:nth-child(6) {
		display: none;
	}
}

@media (max-width: 640px) {
	footer {
		grid-template-columns: 1fr; 
	}
	.footer-left {
		justify-self: center;
	}
	.footer-right {
		display: none;
	}
	nav li:nth-child(2) {
		display: none;
	}
}

@media (max-width: 460px) {
	.foto {		
		width: 100%; 				/*makes image expand & scale to box boarder*/
	}
	header h1 {
		justify-self: center;
	}
	nav ul{
		grid-template-columns: auto auto auto;
		font-family: bold Arial, sans-serif;
		font-size: .84em; 
	}
	nav li a{
		padding: 14px 16px;		/*top&bott, right&left*/
		width: 100%;
	}
	nav li:nth-child(4) {
    	border-right: none;
	}
	.me{
	grid-column: 1 / -1;
	}
}

/*-------------------------------MEDIA-QUERIES-END---------------------------------------*/

