/* Font */
html {
	overflow-y: scroll;
}
html,
body {
	font-size: 100%;
	font-family: Verdana, Geneva, sans-serif;
}
body {
	color: #261f0c;
	background-color: #261f0c;
}
img {
	-ms-interpolation-mode: bicubic;
	max-width: 100%;
	margin: 0 auto;
}
.smaller {
	font-size: smaller;
}
.center {
	text-align:center;
}
.spacer {
	clear:both;
	height:1px;
}
li a.btn,
.btn {
	-webkit-border-radius: 0.3125em;
	-moz-border-radius: 0.3125em;
	border-radius: 0.3125em;
	background-image: url("btn.svg"/*tpa=http://papaintellivision.com/css/btn.svg*/);
	background-image: -webkit-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2));
	background-image:    -moz-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2));
	background-image:     -ms-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2));
	background-image:      -o-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2));
	background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2));
	background-repeat: repeat-x;
}
.btn:active {
	background-image: url("btn_active.svg"/*tpa=http://papaintellivision.com/css/btn_active.svg*/);
	background-image: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
	background-image:    -moz-linear-gradient(top, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
	background-image:     -ms-linear-gradient(top, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
	background-image:      -o-linear-gradient(top, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
	background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
}
#page a[href^="http://"],
#page a[href^="https://"] {
	background: url("icons/icon_external.gif"/*tpa=http://papaintellivision.com/css/icons/icon_external.gif*/) center right no-repeat;
	padding-right: 17px;
}
#bottom a[href^="http://"],
#bottom a[href^="https://"],
a[href^="http://papaintellivision.com"]  {
	background: none;
	padding-right: 0;
}
a[href^="mailto:"] {
	background: url("icons/icon_mailto.gif"/*tpa=http://papaintellivision.com/css/icons/icon_mailto.gif*/) center right no-repeat;
	padding-right: 17px;
}
a[href^="tel:"] {
	background: url("icons/icon_call.gif"/*tpa=http://papaintellivision.com/css/icons/icon_call.gif*/) center right no-repeat;
	padding-right: 17px;
}
a[href$=".pdf"] {
	background: url("icons/icon_pdf.gif"/*tpa=http://papaintellivision.com/css/icons/icon_pdf.gif*/) center right no-repeat;
	padding-right: 17px;
}
#wrapper {
	max-width: 55em;
	margin: 0 auto;
	overflow:hidden;
}
.ie5 #wrapper,
.ie6 #wrapper,
.ie7 #wrapper,
.ie8 #wrapper {
	width: 55em;
}
#top {
	margin: 3px;
	padding: 5px;
	background-color: #c5a852;
	background-image: url("banner.svg"/*tpa=http://papaintellivision.com/css/banner.svg*/);
	background-image: -webkit-linear-gradient(left, #e0bf5d, #c5a852, #e0bf5d);
	background-image:    -moz-linear-gradient(left, #e0bf5d, #c5a852, #e0bf5d);
	background-image:     -ms-linear-gradient(left, #e0bf5d, #c5a852, #e0bf5d);
	background-image:      -o-linear-gradient(left, #e0bf5d, #c5a852, #e0bf5d);
	background-image: linear-gradient(to right, #e0bf5d, #c5a852, #e0bf5d);
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
}
#bottom {
	margin: 3px;
	padding: 5px;
	background-color: #d2bc79;
	background-image: url("footer.svg"/*tpa=http://papaintellivision.com/css/footer.svg*/);
	background-image: -webkit-linear-gradient(left, #ffe493, #d2bc79, #ffe493);
	background-image:    -moz-linear-gradient(left, #ffe493, #d2bc79, #ffe493);
	background-image:     -ms-linear-gradient(left, #ffe493, #d2bc79, #ffe493);
	background-image:      -o-linear-gradient(left, #ffe493, #d2bc79, #ffe493);
	background-image: linear-gradient(to right, #ffe493, #d2bc79, #ffe493);
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
}
#top h1,
#top p {
	text-align: center;
	margin: 0;
	padding: 0;
}
#top p {
	font-size: 80%;
}
#bottom p {
	font-size: 80%;
}
#page {
	/*max-width: 48em;*/
	margin: 3px;
	padding: 5px;
	background-color: #fff;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
}
#page a {
	display: inline-block;
	padding-top: 0.3125em;
	padding-bottom: 0.3125em;
}
#page img {
	display: block;
	margin: 0 auto;
	padding: 10px;
	max-width: 94%;
}
@media all and (min-width: 40em) {
	#page img {
		float: right;
		padding: 0 10px;
	}
}
.ie5 #page img,
.ie6 #page img,
.ie7 #page img,
.ie8 #page img {
	float: right;
	padding: 0 10px;
}
ul.navlist {
	list-style-type: none;
	margin:0;
	padding: 0;
}
.navlist li {
	margin: 0;
	padding: 0;
	width: 17em;
}
.navlist li a {
	display: inline-block;
	margin: 0;
	padding: 0.875em;
	width: 100%;
	background-color: #ddd;
	text-decoration: none;
	color: #261f0c;
}

#nav {
	width: 100%;
	position: static;
	top: 25%;
	left: 50%;
	margin: 3px 0;
	padding: 0;
	font-size: 80%;
}
#nav ul {
	list-style-type: none;
	margin: 0 3px;
	padding: 0 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
}
#nav > a {
	display: none;
}
#nav li {
	position: relative;
}
#nav li a {
	color: #000;
	display: block;
	text-decoration: none;
}
#nav span:after { /* "more" arrow */
	width: 0;
	height: 0;
	border: 0.313em solid transparent;
	border-bottom: none;
	border-top-color: #807553;
	content: '';
	vertical-align: middle;
	display: inline-block;
	position: relative;
	right: -0.313em;
}

/* first level */
#nav > ul {
	height: 2em;
	background-color: #d8c58c;
}
#nav > ul > li {
	width: 11.11%;
	height: 100%;
	float: left;
}
#nav > ul > li > a {
	height: 100%;
	line-height: 2em;
	text-align: center;
}
#nav > ul > li:not( :last-child ) > a {
	border-right: 1px solid #d8c58c;
}

/* second level */
#nav li ul {
	background-color: #b2a374;
	display: none;
	position: absolute;
	top: 100%;
}
#nav li:hover ul {
	display: block;
	left: 0;
	right: 0;
}
#nav li:not(:first-child):hover ul {
	left: -1px;
}
#nav li ul a {
	border-top: 1px solid #b2a374;
	padding: 0.5em;
}

@media only screen and ( max-width: 49em ) {
	/*#wrapper { position: absolute; }*/
	#nav {
		position: relative;
		top: auto;
		left: auto;
	}
	#nav > a { /* menu icon */
		width: 2em;
		height: 2em;
		text-align: left;
		text-indent: -9999px;
		background-color: #d8c58c;
		position: relative;
		margin: 3px;
	}
	#nav > a:before,
	#nav > a:after {
		position: absolute;
		border: 2px solid #000;
		top: 35%;
		left: 25%;
		right: 25%;
		content: '';
	}
	#nav > a:after {
		top: 60%;
	}
	#nav:not( :target ) > a:first-of-type,
	#nav:target > a:last-of-type {
		display: block;
	}

	/* first level */
	#nav > ul {
		height: auto;
		display: none;
		position: absolute;
		left: 0;
		right: 0;
	}
	#nav:target > ul {
		display: block;
	}
	#nav > ul > li {
		width: 100%;
		float: none;
	}
	#nav > ul > li > a {
		height: auto;
		text-align: left;
		padding: 0 0.833em;
	}
	#nav > ul > li:not( :last-child ) > a {
		border-right: none;
		border-bottom: 1px solid #d8c58c;
	}

	/* second level */
	#nav li ul {
		position: static;
		padding: 1.25em;
		padding-top: 0;
	}
}
