* {
	box-sizing: border-box;
}

html,body{
	position: relative;
	width: 100%;
	height: 100%;
	padding: 0px;
	margin: 0px;
	font-size: 100%;
}

div#overlay {
	position: absolute;
	display: none;
	grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
	grid-gap: .5vh;
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;
	padding: 10px;
	background-color: rgba(0,0,0,.75);
	z-index: 100;
	animation-name: show;
	animation-duration: .4s;
	transition-timing-function: ease-out;
  	overflow-y: hidden;
  	overflow-x:hidden;
	padding: 13% 0% 7% 0%;
}

@keyframes show {
	0% {top: 700px}
	100% {top: 0px}
}

div#overlay a {
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Oswald', sans-serif;
	font-size: 1.1rem;
	color: white;
	border: solid 1px rgba(255,255,255,.4);
	text-decoration: none;
	margin: 0px 10px 5px 0px;
}

div#overlay a:hover {
	background-color: rgba(0,0,0,.4);
	border-color: rgba(255,255,255,1);
}

body{ 
	margin: 0px;
	padding: 0px
	font-size: 100%;
	background-color: #f9f9f9;
	color: black;
	padding-top: 115px;
}

body p{ 
	position: absolute;
	bottom: 0px;
}

header {
	position: fixed;
	height: 100px;
	top: 0px;				
	width: 100%;
	background-color: black;
	font-family: 'Oswald', sans-serif;
	font-size: 3rem;
	color: white;
	padding: 10px;
	z-index: 50;
}

header main {
	width: 100%;
	max-width: 960px;
	height: 100%;
	margin: auto;
}

header main nav {
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	height: 80%;
	padding-bottom: 0px;
	font-size: .9rem;
	background-image: none;
}

header main nav a {
	text-decoration: none;
	color: gray;
	font-family: arial, helvetica, sans-serif;
	margin-left: 15px;
}

header main nav a:hover {
	color: red;
}

div#mobile {
	display: none;
}

main {
	display: flex;
	width: 100%;
	max-width: 960px;
	margin: auto;
}

main nav {
	position: relative;
	width: 100%;	
	min-width: 230px;
	margin-right: 30px;
	height: calc(auto + 100px);
	padding: 15px 0;
	background-image: url("http://www.monamijean.com/images/splash.png");
	background-repeat: no-repeat;
	background-position: bottom center;
	background-size: 110%;
}


main nav section {
	margin-bottom: 5px;
	padding: 5px 10px;
	border: solid 1px rgba(0,0,0,.4);
	background-color: white;
}



main nav section:hover {
	border-color: black;
	box-shadow: 5px 5px 10px rgba(0,0,0,.4);
	transition: all .25s;
}

main nav section h2 {
	margin-bottom: 5px;
	line-height: 1.2rem;
}

main nav section img {
	width: 100%;
}


section {
	flex-grow: 2;
}

article {
	padding: 10px;
	border: solid 1px rgba(0,0,0,.4);
	margin-bottom: 30px;
	background-color: #ffffff;
}

article:hover {
	border-color: black;
	box-shadow: 5px 5px 10px rgba(0,0,0,.4);
	transition: all .25s;
}

article div.thumbs2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-gap: 10px;
}

article div.thumbs3 {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	grid-gap: 5px;
}

article img {
	width: 100%;
}

div.legende {
	margin-top: 5px;
	font-family: arial;
	font-size: .7rem;
	line-height: .85rem;
}

div.legende2 {
	margin-top: 0px;
	font-family: arial;
	font-size: .7rem;
	line-height: .85rem;
}

aside {
	flex-grow: 1;
	min-width: 180px;
	padding-top: 15px;
	margin-left: 30px;
}


h1 {
	padding: 0;
	margin:0;
	margin-bottom: 20px;
	font-family: 'Oswald', sans-serif;
	font-size: 21px;
}

h2 {
	padding: 0;
	margin:0;
	margin-bottom: 20px;
	font-family: 'Oswald', sans-serif;
	font-size: 16px;
}

h3 {
	font-family: 'Oswald', sans-serif;
	font-size: 14px;
}

footer {
	margin-top: 40px;
	margin-bottom: 80px;
}

footer img {
	display: block;
	margin-bottom: 10px;
}

footer img.cac {
	height: 45px;
}

footer img.cal  {
	height: 35px;
}


@media screen and (max-width: 768px) {

	div#overlay {
		padding: 105px 20px 20px 20px;
		height: 100%;
	grid-template-rows: repeat(5,1fr);
	grid-gap: 10px;

	}

	div#overlay a {

		height: 100%;
	}

	div#mobile {
		display: block;
	}

	img.menu {
		width: 50px;
	}

	nav#desktop {
		display: none;
	}

	header {
		font-size: 1.7rem;
	}

	header main {
		display: flex;
		align-items: flex-end;
		justify-content: space-between;
		padding-bottom:0px;
	}

	main {
		display: block;
		position: relative;
		top: -10px;
		padding: 10px;	
		height: auto;
	}

	main nav {
		background-image: none;
		border: solid 0px rgba(0,0,0,.4);
	
	}

	section {
		display: block;
		clear: both;
		padding: 20px;
}


}
