/*Basically the base.css has all widths taken out, and margin too from container.*/
/*Helper rule to let older browsers know to treat new HTML5 elements like block elements - same as in styles.css.*/
header,
nav,
article,
footer {
	display: block;
}

/**Page Layout**/
body {   /*Same as in styles.css*/
	font-family: 'Source Sans Pro', sans-serif;
	font-size: 14px; /*This gives the text a measurement to take 'em' from. Defaults to 16 if not given a size*/
	background-color: #ffccb3; /*This is the apricot body colour that shows outside of the container*/
}

img {
	max-width: 100%; /*this rule is added in base.css*/	
}

#container {  /*width and margin taken out*/
	padding: 4px; /*This provides the tiny 'border' effect. The color will be the same as container (not body) background color*/
	background-color: #fff; /*white*/
}

header {
	padding: 10px 20px; /*10 refers to top and bottom; 20 refers to left and right*/
	background-color: #ddddbb; /*greeny-grey color*/
}

header h1 {
	font-family: 'Source Sans Pro', sans-serif;
	font-weight: bold;
	font-size: 2em;
	color: #191919;
}

header h2 {
	font-family: 'Source Sans Pro', sans-serif;
	font-weight: bold;
	font-size: 1.2em;
	color: #191919;
}
	
nav {  /*width taken out*/
	padding: 10px 20px;
	background-color: #b8b894;
	overflow: hidden; /*this rule makes sure nav wraps around the floated list*/
}

nav ul {
	list-style: none; /*This removes the bullet from the list items*/
	margin: 0;
	padding: 0; /*These collapse the margin and padding*/
	float: left; /*This goes left and collapses the width to fit the links inside it*/
}

nav ul li{
	list-style: none;
	margin: 0 4em 0 0; /*adds space between links in nav*/
	padding: 0;
	text-align: left;
	float: left; /*The float: left puts the elements side by side and is a technique for laying out horizontal elements.*/
}	

nav ul li a{
	color: #000;
	text-decoration: none; /*Takes off underline*/
	font-size: 1em;
	font-family: 'Source Sans Pro', sans-serif;
	padding: 10px 0;
	display: inline-block; /*this makes it easy to fill the browser width and wrap nicely when the browser is resized*/
}

article{
	padding: 20px;
	background: #ebebe0;
}

article h1 {
	font-family: 'Source Sans Pro', sans-serif;
	font-weight: bold;
	font-size: 1.6em;
	color: #191919;
}

article h2 {
	font-size: 1.2em;
	color: #191919;
}

article p {
	font-family: 'Source Sans Pro', sans-serif;
	font-size: 1em;
}

footer {
	padding: 0px 10px;
	overflow: hidden; /* this makes sure footer wraps around the footer elements*/ 
	text-align: center;
	background-color: #ddddbb;
}

a:link, a:visited {
  background-color: #64ff00;
  color: black;
  padding: 14px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

a:hover, a:active {
  background-color: #64ff00;
}










