﻿/* style sheet for jeffjacobsen.org */
/* layout in percentages, text in ems */

html {
	background: #ffcc99; font-family: 'Magra', sans-serif; position: center;
}
header {
	background: #e67300
}
img {
	 max-width: 100%; }
	 
body { margin: 0 auto;  text-align: center;
}
	 
footer {
	 background: #fff2e6;  clear:both;
}
	

article { padding: 1em 1em 1em 1em;
}
 
/* set basic elements */
	 
h1 {
	 font-size: 2em;
}
h2 {
	font-size: 1.5em;
}
h1,h2 {
	font-weight: bold; margin: 5px 0;
}	 
p {
	font-size: 1em; margin: 5px 0;
}
ul {
	padding-left: 10px; margin: 10px 0; list-style-type: disc;
}
li {
	margin-left: 10px; padding-left: 10px; 
}
header,article,aside,footer {
	 border: 1px solid #111; padding: 10px 1 em; margin: 0 5% 10px;
}
header {
	margin-top:: 10px; 
}
/* work on the navigation */	 
/*Strip the ul of padding and list styling*/
ul {
	list-style-type:none;
	margin:0;
	padding:0;
	position: absolute;
}

/*Create a horizontal list with spacing*/
li {
	display:inline-block;
	float: left;
	margin-right: 1px;
}

/*Style for menu links*/
li a {
	display:block;
	min-width:140px;
	height: 50px;
	text-align: center;
	line-height: 50px;
	color: #000000;
	background: #ffa64d;
	text-decoration: none;
}

/*Hover state for top level links*/
li:hover a {
	background: #ffa64d;
}

/*Style for dropdown links*/
li:hover ul a {
	background: #f3f3f3;
	color: #2f3036;
	height: 40px;
	line-height: 40px;
}

/*Hover state for dropdown links*/
li:hover ul a:hover {
	background: #19c589;
	color: #fff;
}


/*Hide dropdown links until they are needed*/
li ul {
	display: none;
}

/*Make dropdown links vertical*/
li ul li {
	display: block;
	float: none;
}

/*Prevent text wrapping*/
li ul li a {
	width: auto;
	min-width: 100px;
	padding: 0 20px;
}

/*Display the dropdown on hover*/
ul li a:hover + .hidden, .hidden:hover {
	display: block;
}

/*Responsive Styles*/

@media screen and (max-width : 39em){
	/*Make dropdown links appear inline*/
	ul {
		position: static;
		float: none;
	}
	/*Create vertical spacing*/
	li {
		margin-bottom: 1px;
	}
	/*Make all menu links full width*/
	ul li, li a {
		width: 100%;
	}
}

/* now design for wider screen */

@media only screen and (min-width: 40em) {li 
{ display: inline; float: left;  width: 18%;}
nav { padding-bottom: 3em;} }
