* {
  margin: auto;
  padding: 0;
  border: none;
}
header {
	padding-top: 5em;
}
#main_content{
	border: solid #A8676B;
	height: 555px;
}


#hamburger, #cross{
	background-color: black;
	color: white;
}

body {
  width: 85%;
  max-width: 1160px;
  margin: 0 auto;
  /*font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;*/
  font-family:monospace;
  font-size: 14px;
  color: #FCFFFF;
  background-color: black;
}

a{
 color:#585252;
 text-decoration: none;
}

a:hover{
	color:#4D9C2D;
}

h1 {
  font-size: 5em;
  padding-top
}

h1 a{
	text-decoration: none;
}

h1, h2 {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  color:#585252;
}

h2 {
	padding-bottom: 40px;
}
/*
nav {
  background-color: #ccc;
  border: 1px solid #000;
  overflow: hidden;
}

nav ul {
  list-style: none;
}

nav ul li {
  border-right: 1px solid #000;
  float: left;
}

nav ul li a {
  line-height: 3em;
  padding: 1em;
}

nav ul li a:hover {
  background-color: #FFB37E;
}
*/
#main_content aside {
	/*border: 1px solid white;*/
  float: left;
  margin-top: 1em;
  margin-left: 1em;
  width: 25%;
  height:555px;
  text-align: left;
  
}

aside a{
  text-decoration:none;
}

#nav {
	/*border: 1px solid white;*/
    text-align: justify;
	margin-left: 2.5em;
	margin-right:2.5em;
	position: static;
}
#nav:after {
	
    content: '';
    display: inline-block;
    width: 100%;
}
#nav li {
    display: inline-block;
}

#main_content article {
  float: right;
  margin-top: 1em;
  width: 70%;
  height: 555px;
  text-align: center;
  /*border: 1px solid red;*/
  margin-right: 1em;
}


p {
  margin-bottom: 1.5em;
}

#pages {
	text-align: center;
}

#cv, #resume {
	text-align: center;
	color: #585252;
}

#thumbs {
	/*border: 1px solid white;*/
	/*padding-left: 12px;*/
	height: 475px;
	float: right;
	text-align: center;
	overflow: auto;
}

#downloads{
	display: none;
}

#thumbs img {
  /*width: 200px;*/
  margin: 1em 1em 1em 1em;
  
}

.picha:hover, #thumbnails img:hover{
	cursor: pointer;
	-webkit-filter: grayscale(1); 
	filter: gray; 
	filter: grayscale(1);
}

#top {
	/*margin-top: 2em;*/
}

	
footer{
	display: none;
}
.w3-modal{z-index:3;display:none;padding-top: 0; bottom: -100; position:fixed;left:0;top:15em !important;width:100%;height:600px;margin:auto 3em auto 0em;overflow: auto;background-color:rgb(0,0,0);background-color:rgba(0,0,0,0.85)}
.w3-modal-content{margin:auto;position:relative;padding:0;outline:0;width:900px}

/*
#thumbs img:nth-child(6n+0) {
  margin: 0 0 1em 0;
}*/
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background-color: black;
	border: 1px solid #fcffff;
}
::-webkit-scrollbar-thumb {
    background-color: black;
	border: 1px solid #fcffff;
}
::-webkit-scrollbar-thumb:hover {
  background-color:#585252;;
}

@media all and (max-width: 640px) {
	
	#menu, article{
		font-size:120%;
	}
	/*
	#menu{
		display: block;
	}*/
	
	h1{
		font-size: 3em;
	}

	/*article {
		clear: both; 
		width: 90%;
		margin-top: 0;
	}
	aside {
		display: none;	
	}
*/
	header{
		padding-bottom: 10px;
		text-align: center;
		padding-top: 1em;

	}

	header h2{
		padding-bottom: 10px;
		margin-bottom: 0;
	}
	#menu p{
		margin-bottom: 0;
		font-size: 12px;
	}
	/*#downloads, section #nav{
		padding-top: 5px;
	}
	
	#downloads{
		display: block;
		text-align: center;
		width: 90%;
	}
	#cv,#resume{
		width:40%;
		margin:0;
		position: relative;
		display: inline-block;
		border-top: 5px;
		font-size:100%;
	}*/

	.w3-modal{z-index:3;display:none; position:fixed;left:0;top:0 !important;width:100%;height:100%;overflow:auto;background-color:rgb(0,0,0);background-color:rgba(0,0,0,0.8)}
	.w3-modal-content{margin:auto;position:relative;padding:0;outline:0;width:90%; }
	
	#thumbs img {
		width: 90%;
		height: auto;
		margin: 0 1em 1em 1em;
		float: left;
	}
	
	#thumbs div div p, #thumbs div div h4, #thumbs div div h3 {
		text-align: left;
		clear: both;
	}
	
	footer {
		display:block;
		text-align: right;
	}
	nav ul li {
		width: 100%;
		border-right: none;
		border-bottom: 1px solid #000;
		clear: both;
	}
	#nav, aside {
		display: none
	}
	
	#main_content article{
		text-align: left;
		width: 90%;
	}
}