body {
	background-color: #f3f3f3;
	display: flex;
	flex-flow: column;
	margin: 0;
	min-height: 100vh;
}

main {
	flex: 1;
}

main, header, footer {
	padding: 0.5em;
}

header {
	background-color: white;
	background-image: url(/img/2decanters_g.jpg);
	background-position: top center;
	background-repeat: repeat no-repeat;
	background-size: contain;
	height: 20vh;
}

nav, footer {
	background: hsla(350,71%,19%,1) linear-gradient(hsla(3,59%,80%,.8), hsla(347,89%,47%,.1));
	font-family: Helvetica, Arial, sans-serif;
	color: #f3f3f3;
	min-height: 2em;
	position: relative;
}

/* menu */

nav.main {
	font-weight: bold;
	padding: 0 0.5em;
	text-align: center;
}

nav.main ul {
	margin: 0.4em 0 0 0;
	padding: 0;
}

nav.main ul li {
	border-color: #eee;
	border-style: solid;
	border-width: 1px 1px 0 1px;
	border-radius: 0.5em 0.5em 0 0;
        display: inline-block;
        list-style-type: none;
        margin: 0.2em 0.2em 0 0.2em;
        padding: 0.5em 0.5em 0.6em;
}

nav.main ul li.active, nav.main ul li:hover {
	background-color: #eee;
	color: #61222d;
}


nav.main ul li a {
	color: white;
	text-decoration: none;
}

nav.main ul li:hover a, nav.main ul li:hover a:hover { color: #61222d; }

nav.main ul li.active a { color: #61222d; }

nav.main ul li.active:hover, nav.main ul li.active:hover a,
nav.main li.active:hover a:hover {
	color: white;
	background-color: transparent;
}

/* contact details */

footer nav { color: #ddd; }

nav.contact {
	background: transparent;
	float: left;
	z-index: 1;
}

nav.contact p {
	margin: 0;
	padding: 0;
}

nav.contact span, nav.legal span { font-weight: bold; }
nav.contact span.contact, nav.legal p:first-child span { color: white; }

nav.contact span.icon {
	display: inline-block;
	text-align: center;
	width: 2em;
}

nav.contact a, nav.contact a:hover, nav.contact a:visited,
nav.legal a, nav.legal a:hover, nav.legal a:visited {
	color: #ddd;
	text-decoration: none;
}

nav.contact a:hover, nav.legal a:hover {
	color: white;
}

nav.legal {
	background: transparent;
	position: absolute;
	bottom: 0;
	right: 0;
	margin: 0;
	padding: 0 1em 0.5em 0;
	text-align: right;
	z-index: 0;
}

nav.legal p {
	font-size: 80%;
	margin: 0;
}
nav.legal p:first-child {
	font-size: 90%;
	padding-bottom: 1em;
}

/* avoid overlapping footers */
@media (max-width: 844px) {
	nav.legal {
		clear: both;
		float: right;
		position: relative;
		z-index: 1;
	}
}

/* headings */

h1, h2, h3 { color: #61222d; }

h2 { margin: 0 auto 0.1em; }

/* quotes */

blockquote {
	background-color: beige;
	border-radius: 1em;
	font-family: Palatino,"Palatino Linotype","Palatino LT STD","Book Antiqua",Georgia,serif;
	margin: 0;
	padding: 1em;
	text-align: justify;
}

blockquote footer {
	background: beige;
	color: grey;
	font-family: Palatino,"Palatino Linotype","Palatino LT STD","Book Antiqua",Georgia,serif;
	min-height: auto;
	text-align: right;
}

blockquote footer cite a,
blockquote footer cite a:visited {
	color: #61222d;
	text-decoration: none;
}

blockquote footer cite a:hover { color: #d8222d; }

/* paypal tracking */

img.paypalobj { border: 0; }
