/* Clearfix */
.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}
.clearfix:after {
    clear: both;
}
.clearfix {
    *zoom: 1;
}

/* Basic Styles */
body {
	background-color: #A3ACB4;
	font-family:"Lucida Sans Unicode", "Lucida Grande", sans-serif;  }

.wrapper {
	width: 100%;
	margin: 0 auto;
	background-color: #efece3;
	overflow: hidden; 
	max-width: 780px;}
	
#main-content { padding: 20px; }

#main-content a, #sidebar a, #header a, .form-wrapper a {
	color: black;
	font-weight: bold;
	text-decoration: none; }

#main-content a:hover, #sidebar a:hover, #header a:hover, #footer a:hover, .form-wrapper a:hover {
color: green;  }

#nav {
	height: auto;
	background: #455868;
	font-size: 15px;
	font-family: 'PT Sans', Arial, sans-serif;
	font-weight: bold;
	position: relative;
	border-bottom: 2px solid #283744; }
	
#nav ul {
	padding: 0;
	margin: 0 auto;
	width: 600px;
	height: 40px; 
	display: block; }
	
#nav li {
	width: 120px;
	float: left; 
	position: relative;
	list-style-type: none; }

#nav a {
	color: #fff;
	display: inline-block;
	width: 100%;
  	text-decoration: none;
	line-height: 40px;
	text-shadow: 1px 1px 0px #283744; text-indent: 0;}

#nav li a {
	border-right: 1px solid #576979;
	box-sizing:border-box;
	-moz-box-sizing:border-box;
	-webkit-box-sizing:border-box; 
	text-align: center;}
	
#nav li:first-child a { border-left: 1px solid #576979; }

#nav a:hover, #nav a:active { 
	background-color: #8c99a4; 
	color: white; }

#nav a#pull { display: none; }

#header {
	background-color: #cccc99;
	height: auto;
	border-bottom: 1px solid #283744; }

#header h1 {
	font-family: 'Open Sans', sans-serif;
	font-weight: 400;
	font-size: 32px;
	margin: 5px 0 10px 0;
	letter-spacing: 2px;
	padding: 0 10px 0 10px; }

#header h2 {
	font-family: 'Open Sans', sans-serif;
	font-weight: 300;
	font-size: 15px;
	margin: -12px 0 0 0;
	padding: 0 10px 0 10px;
	color: #000; }

#header p {
	font-size: 14px;
	margin-top: 5px;
	padding: 0 10px 10px 10px; }

h1 { font-size: 17px; 
	margin-top: 0px; }
	
h2 {
	font-size: 16px;
	color: #7a2e40; 
	margin-bottom: -10px; }

h3 { font-size: 14px; }

p {
	font-size: 15px;
	line-height: 1.5em; }

#sidebar {
	width: 200px;
	float: right;
	margin: 20px 20px 10px 30px; }

#sidebar h3 {
	line-height: 1.4em;
	margin-bottom:-5px; padding-top: 5px; }
	
#sidebar p { font-size: 14px; line-height: 1.5em; }

.contact {
	font-size: 15px;
	line-height: 1.7em; }

/* quotes */
.quote {
	font-size: 14px;
	line-height: 1.4em;
	color: #333; }

.quote cite {
	display:block;
	float:right;
	font-size: 11px;
	line-height: 1.7em;
	margin: 5px 10px 20px 0;
	color: #990033; }

.curly {
	color: #888;
	font-family:georgia, serif;
	font-size: 20px; }

img.logo {
	display: inline;
	float: left;
	margin: 0 10px 0 15px;
	padding: 0 15px; }

img { max-width: 100%; }

img.photo { 
	border: #000 solid 1px;
	float: left;
	margin: 0 10px 10px 0; }

.maroon { color: #7a2e40; }

.bold { font-weight: bold; }

#normal { font-weight: normal; }

#footer {
	color: #333;
	font-size: 11px;
	padding: 50px 0 12px 0;
	clear: both;
	text-align: center;
	width: 90%;
	margin: 0 auto; }
	
#footer a {
	color: black;
	text-decoration: underline; }

#firstname, #email, #phone, #comments {
	background-color: #fff;
	font-family: Helvetica, sans-serif;
	float: right;
	font-size: 14px;
	width: 75%;
	border: #ccc solid 1px; }
	
.form-wrapper a {
	color: black;
	font-weight: bold;
	text-decoration: none; }

/* Styles for screen 600px and smaller */
@media screen and (max-width: 600px) {
	
	#nav { height: auto; }
  	
	#nav ul {
		display: none;
		height: auto; 
		width: 100%;}
		
	#nav a#pull {
		display: block;
		background-color: #283744;
		width: 100%;
		position: relative; }
	
	#nav a#pull:after {
		content:"";
		background: url('nav-icon.png') no-repeat;
		width: 30px;
		height: 30px;
		display: inline-block;
		position: absolute;
		right: 15px;
		top: 10px; }
		
  	#nav li {
  		width: 50%;
  		float: left;
  		position: relative; }
		
  	#nav li a {
		border-bottom: 1px solid #576979;
		border-right: 1px solid #576979; text-align: left;}
  	
	#nav a {
	  	text-align: left;
	  	width: 100%;
	  	text-indent: 25px; }
		
	#nav { border-bottom: 0; }
		
	h1 { margin-top: -18px;  }
	p { font-size: 15px; }
	
	#header h1 { font-family: Arial, Helvetica, sans-serif; font-size: 18px; font-weight: bold; }
	#header h2 { font-family: Arial, Helvetica, sans-serif; font-size: 16px; }
	#header p { font-size: 14px; }
	
	#sidebar { margin: 10px 15px 0 15px; width: 92%; float: left; }
	#sidebar h3 { margin-top: 0px; }
	#sidebar p { line-height: 1.8em; }
	
	.quote, .quote cite, .curly { display: none; }
	
	.contact {
	font-size: 15px;
	line-height: 1.8em; }
	
	img {
	width: 120px; /*changed from max-width: 30%;*/
	height: auto; }
	
	img.logo { display: none; }
	
	img.photo { margin: 0 10px 5px 0; }
	
	.form-wrapper p { line-height: 1.7em; }
	
}

/*Smartphone*/
@media only screen and (max-width: 320px) {
	
	img { width: 80px; } /*added*/
	
	.name { margin: -10px 0; }
	
	#nav li {
		display: block;
		float: none;
		width: 100%; }
		
	#nav li a { border-bottom: 1px solid #576979; }
}