/* Primary styling for the site: */

/* All duplicate properties following an !important marker are for backwards layout compatibility with really old browsers, such as IE 6. */

body {
	background-color: #404A54;
	font-family: Verdana, Arial;
	font-size: 12px;
	margin: 0;
	margin-bottom: 2em;
	text-align: center;
}

h1, h2, h3, h4, h5, h6 {
	margin: 1em 0em;
	padding: 0;
	line-height: 1.2em;
}

img {
	border: 0;
}

ul, ol {
	padding: 0;
	margin: 1em 2em;
	text-align: left;
}

blockquote {
	margin-top: 0.5em;
	background-color: white;
	background-color: rgba(255,255,255,0.7);
	border-radius: 4px;
	box-shadow: inset 0px 0px 3px rgba(0,0,0,0.3);
	padding: 1em;
}

pre {
	margin-top: 0.5em;
	background-color: white;
	background-color: rgba(255,255,255,0.7);
	border-radius: 4px;
	box-shadow: inset 0px 0px 3px rgba(0,0,0,0.3);
	padding: 1em;
	overflow: scroll;
	text-align: left;
}

iframe, object, embed {
	max-width: 100%;
}

hr {
	border: 0;
	border-top: 1px solid #c6ced7;
	margin: 1.5em;
}

header, section, aside, article, figure {
	display: block;
}

footer {
	display: block;
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	padding-bottom: 0.6em;
	padding-top: 0.4em;
	font-size: 0.8em;
	color: #707b86;
	text-align: center;
	text-shadow: 0px -1px 1px #323b44;
	background-color: #404A54;
	border-top: 1px solid #3f464c;
}

nav {
	display: block;
	margin-top: 2em;
	margin-bottom: 1.7em;
	text-align: center;
	white-space: nowrap;
}

nav a {
	display: inline-block;
	color: white;
	font-size: 1.2em;
	text-decoration: none;
	padding: 0.9em;
	background-color: #5d6872;
	background: linear-gradient(#75808a 0%, #5d6872 80%);
	border-top: 1px solid #a1aab1;
	border-bottom: 1px solid #3f464c;
	opacity: 0.8;
	text-shadow: 0px -1px 1px #323b44;
}

nav a:hover, #sendbutton:hover {
	background-color: #7b858f;
	background: linear-gradient(#8f99a3 0%, #7b858f 80%);
	border-top: 1px solid #b8bfc4;
	border-bottom: 1px solid #3f464c;
	opacity: 1;
	transition: opacity 0.2s;
}

nav a:active, #sendbutton:active, .current {
	background-color: #4d5660;
	background: linear-gradient(#656f79 0%, #4d5660 80%);
	border-top: 1px solid #7e8990;
	border-bottom: 1px solid #3f464c;
	opacity: 0.8;
}

.startnav {
	border-radius: 13px 0px 0px 13px;
	padding-left: 1.2em;
}

.endnav {
	border-radius: 0px 13px 13px 0px;
	padding-right: 1.2em;
}

#social {
	position: absolute;
	top: 0;
	right: 0;
	margin-top: 2em;
	margin-right: 3em;
	z-index: 4;
	white-space: nowrap;
}

#social a {
	display: inline-block;
	padding: 0.5em 0.3em 0.3em 0.3em;
}

#social a:hover {
	background-color: #7b858f;
	border-radius: 13px;
}

#underlay {
	display: block !important;
	display: none;
	width: 100%;
	height: 100%;
	position: fixed;
	top: 0;
	left: 0;
	background-image: url('');
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	opacity: 0.3;
	z-index: -1;
}

#projects {
	display: block;
	position: relative;
	font-size: 2.9em;
	line-height: 1.5em;
}

#projects div {
	display: inline-block;
	position: relative;
	max-width: 500px;
	width: 100% !important;
	width: 500px;
	background-color: #495460;
	background-position: top left;
	background-repeat: no-repeat;
	background-size: cover;
	border-radius: 4px;
	box-shadow: 0px 1px 2px #31363c;
}

#projects a {
	display: block;
	position: relative;
	width: 100%;
	padding-top: 30%;
	border-radius: 4px;
	text-decoration: none;
}

#projects span {
	display: inline-block;
	position: absolute !important;
	position: relative;
	bottom: 0;
	left: 0;
	width: 100%;
	font-size: 0.4em;
	background-color: black;
	line-height: 2em;
	color: white;
	border-radius: 0px 0px 4px 4px;
	opacity: 0.6;
	transition: opacity 0.5s;
}

#products {
	display: inline-block;
	margin: auto;
	margin-bottom: 1em;
	border: 1px solid #37404a;
	border-top: 1px solid #363f49;
	border-bottom: 1px solid #3a424d;
	border-radius: 13px;
	background-color: #495460;
	cursor: pointer;
}

#products div {
	display: inline-block;
	border-radius: 13px;
	*display: inline;
	zoom: 1;
}

#productinfo {
	display: inline-block;
	border: 1px solid #37404a;
	border-top: 1px solid #363f49;
	border-bottom: 1px solid #3a424d;
	border-radius: 13px;
	background-color: #7b858f;
	margin: auto;
	margin-bottom: 1em;
	overflow: hidden;
	-webkit-transition: max-height 0.3s;
	-moz-transition: max-height 0.3s;
	-o-transition: max-height 0.3s;
	transition: max-height 0.3s;
}

#productinfo .info {
	display: inline-block;
	margin: 0em 0.5em 0.5em 0.5em;
	width: 19em;
	*display: inline;
	zoom: 1;
	vertical-align: top;
}

#productinfo .title {
	font-weight: bold;
	color: #181f24;
	text-shadow: 0px 1px 0px #98a1aa;
}

#productinfo .desc {
	color: #181f24;
	text-shadow: 0px 1px 0px #98a1aa;
	margin-left: 0.4em;
	margin-right: 0.4em;
}

#productinfo .link {
	display: block;
	margin: 0.5em;
	font-weight: bold;
	color: #181f24;
	text-shadow: 0px 1px 0px #98a1aa;
	border-radius: 13px;
	padding: 0.6em 0em;
	background-color: #89929a;
}

#productinfo .link:hover {
	background-color: #a2aab0;
}

article {
	display: block;
	max-width: 52.5em;
	margin: auto;
	border-radius: 4px 30px 4px 30px;
	background-color: rgba(255,255,255,0.9) !important;
	background-color: #ffffff;
	text-align: left;
	line-height: 1.5em;
	text-shadow: 0px -1px 0px rgba(255,255,255,0.5);
	color: #292929;
	padding: 0.5em;
	text-align: center;
	margin-bottom: 1em;
}

article .column {
	display: inline-block;
	position: relative;
	max-width: 24em;
	width: 100% !important;
	width: 24em;
	margin: 0em 1em;
	vertical-align: middle;
	text-align: left;
}

article .blurb {
	margin: 0em 1em;
	text-align: center;
}

article .quote {
	background: url('images/quotea.png') top left no-repeat, url('images/quoteb.png') bottom right no-repeat;
	padding: 2em 1em;
	text-align: left;
}

.illustration {
	margin-top: 0.5em;
	background-color: white;
	background-color: rgba(255,255,255,0.7);
	background-image: url('images/loading.gif');
	background-position: center center;
	background-repeat: no-repeat;
	border-radius: 4px;
	box-shadow: inset 0px 0px 3px rgba(0,0,0,0.3);
	max-width: 100%;
	height: auto;
}

.signature {
	text-align: center;
	margin-top: 0em;
}

.feature {
	background-color: #ffffec !important;
	background: #ffffec !important;
}

article a {
	color: #3a3a3a;
	text-decoration: underline;
}

a.content {
	font-weight: bold;
}

article a:hover {
	color: #666666;
}

#bottomspacer {
	margin-bottom: 3em;
}

.question {
	font-weight: bold;
}

textarea {
	display: block;
	width: 21.8em;
	height: 10em;
	border: 1px solid #bbbdc0;
	border-radius: 4px;
	background-color: white;
	padding: 0.5em;
	margin: auto;
	margin-top: 1em;
	margin-bottom: 0.5em;
	box-shadow: inset 0px 1px 2px #cccccc;
	font-family: inherit;
	font-size: inherit;
	color: #3f464c;
	resize: vertical;
}

input {
	display: block;
	width: 21.8em;
	height: 2em;
	border: 1px solid #bbbdc0;
	border-radius: 4px;
	background-color: white;
	padding: 0.2em 0.5em;
	margin: auto;
	margin-top: 0.5em;
	margin-bottom: 0.5em;
	box-shadow: inset 0px 1px 2px #cccccc;
	font-family: inherit;
	font-size: inherit;
	color: #3f464c;
}

select {
	margin: 0em;
	margin-bottom: 1em;
	font-family: inherit;
	font-size: inherit;
}

label {
	display: inline-block;
	margin: 0em;
	margin-bottom: 0.5em;
	margin-right: 0.1em;
}

#sendbutton {
	display: block;
	color: white;
	font-size: 1em;
	padding: 0.7em 1em;
	padding-top: 0.8em;
	background-color: #5d6872;
	background: linear-gradient(#75808a 0%, #5d6872 80%);
	border-top: 1px solid #a1aab1;
	border-bottom: 1px solid #3f464c;
	border-radius: 13px;
	opacity: 0.8;
	text-shadow: 0px -1px 1px #323b44;
	cursor: pointer;
	float: right;
	text-align: center;
}

.applied {
	background-color: #fffed6 !important;
	-webkit-transition: background-color 0.2s ease;
	-moz-transition: background-color 0.2s ease;
	-o-transition: background-color 0.2s ease;
	transition: background-color 0.2s ease;
}

.metamain {
	color: #687889;
	margin: 1.6em;
}

.meta {
	border-bottom: 1px dashed #c6ced7;
	padding-bottom: 1.2em;
	color: #687889;
}

#scrollup {
	display: block;
	position: fixed;
	bottom: 2.8em;
	right: 1em;
	width: 50px;
	height: 50px;
	background-color: #687889;
	background-color: rgba(105,121,138,0.4);
	background-image: url('images/up.png');
	background-position: center center;
	background-repeat: no-repeat;
	border-radius: 8px;
	cursor: pointer;
}

#errorbubble {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 280px;
	height: auto;
	margin-left: -160px;
	margin-top: -120px;
	border-radius: 4px;
	padding: 20px;
	padding-top: 10px;
}
