		/* -- Kai Pakotai Cafe --
	Main style sheet for all pages */


/* RESETS AND GENERAL FORMATTING >>>>>>>>>>>>>>>>>>>>>>>> */

	/*	Adapted from Eric Meyer's CSS Reset.
		Original: 	http://meyerweb.com/eric/tools/css/reset/ 
					v2.0 | 20110126
					License: none (public domain)
	*/

html, body, div, h1, h2, h3, p, a, em, img, ul, li, caption, article, aside, footer, header, main, menu, nav, section, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
	box-sizing: border-box;
	list-style: none;
	font-family: "Verdana", sans-serif;
}
	/* Eric Meyer: HTML5 display-role reset for older browsers */
article, aside, figcaption, figure, footer, header, menu, nav, section {
	display: block;
}

/* Text formatting*/

h1, h2, h3 {
	font-family: "Georgia", serif;
	font-style: italic;
	margin: 0;
	padding: 0;
	vertical-align: middle;
}

p {
	font-size: 1.4rem;
	margin: 0.2em 0;
}

h1{
	font-size: 3.5rem;
}

h2 {
	font-size: 2.75rem;
}

h3 {
	font-size: 2rem;
	font-weight: bold;
	font-stretch: extra-expanded;
	line-height: 1.8;
}

/* Font specs for breadcrumbs and legal policies*/
.smallPrint {
	font-size: 1rem
}

.emphasis {
	font-weight: bold;
	font-size: 1.5rem;
	line-height: 1.75;
	margin-bottom: 1.25rem;
}

.emphasis.first {
	margin-top: 2rem;
}

/*  BACKGROUND >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> */

body {
	background-repeat: no-repeat;
	background-attachment: fixed;
}

	/*large portrait*/
@media (max-aspect-ratio: 1/1) and (min-width: 600px) {
	body {
		background-size: cover;
		background-image: url("images/backGndLargePortrait.jpg");
	}
}

	/*small portrait*/
@media (max-aspect-ratio: 1/1) and (max-width: 600px) {
	body {
		background-size: cover;
		background-image: url("images/backGndSmallPortrait.jpg");
	}
}

	/*large landscape*/
@media (min-aspect-ratio: 1/1) /*and (min-width: 1000px) */{
	body {
		background-size: cover;
		background-image: url("images/backGndLargeLandscape.jpg");
	}
}

	/*small landscape*/
@media (min-aspect-ratio: 1/1) /*and (max-width: 1000px) */{
	body {
		background-size: cover;
		background-image: url("images/backGndSmallLandscape.jpg");
	}
}

/* HEADER >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> */

header {
	position: relative;
}

	/* <<<<<<<<<<< Banner >>>>>>>>>>>>> */

	/* standard banner settings */
#banner {
	position: relative;
	width:  100%;
	background-repeat: no-repeat;
	background-image: url("images/banner.png");
}

#bannerTextLeft h1 {
	position: relative;
	color: #DFFFF0;
	float: left;
	text-shadow: 2px 3px 2px black, -1px -1px black;
}

#bannerTextRight {
	position: relative;
	
}

	/* Large widescreen */
@media (min-width: 1375px) {
	
	#banner {
		height: 12.5vw;
		background-size: cover;
	}
	
	#bannerTextLeft h1 {
		left: 11vw;
		top: 6vw;
		font-size: 3vw;
	}
	
	#bannerTextRight {
		bottom: -1.6vw;
		right: 4vw;
		padding: 1em 6em;
		background-image: radial-gradient(rgba(196, 196, 196, .5), rgba(196, 196, 196, .3), rgba(196, 196, 196, .5), transparent, transparent);
		float: right;		
	}
	
	#bannerTextRight h3 {
		font-size: 1.7vw;
		text-align: right;
	}
}
	/* Grow the banner to fit extra text */
@media (min-width: 1300px) and (max-width: 1375px) {
	
	#banner {
		height: calc(162.5px + (1375px - 100vw));
		background-size: cover;
		background-position: calc(100vw - 1375px) 0;
	}
	
	#bannerTextLeft h1 {
		left: 11vw;
		top: 80px;
		font-size: 40px;
	}
	
	#bannerTextRight {
		bottom: -1.6vw;
		right: calc(100vw - 1370px);
		padding: 1em 6em;
		background-image: radial-gradient(rgba(196, 196, 196, .5), rgba(196, 196, 196, .3), rgba(196, 196, 196, .5), transparent, transparent);
		float: right;
		
	}
	#bannerTextRight h3 {
		font-size: 23.4px;
		text-align: right;
	}
}
	
	/* Shift the motto sideways */
@media (min-width: 1275px) and (max-width: 1300px) {
	#banner {
		height: calc(237.5px + (1300px - 100vw));
		background-size: cover;
		background-position: -75px 0;
	}
	
	#bannerTextLeft h1 {
		left: 145px;
		top: 80px;
		font-size: 40px;
	}
	
	#bannerTextRight {
		top: 100px;
		left: 58px;
		padding: 0 0;
		float: left;
		clear: left;		
	}
	
	#bannerTextRight h3 {
		font-size: 23.4px;
	}
}

	/*New style for the mobile layout motto */
	
@media (max-width: 1300px) {
	#bannerTextRight h3 {
		text-align: center;
		color: #DFFFF0;
		text-shadow: 2px 3px 2px black, -1px -1px black;
	}
}

	/* Cover extra width */
@media (min-width: 575px) and (max-width: 1275px) {
	#banner {
		height: 265px;
		background-size: cover;
		background-position: -75px 0;
	}
	
	#bannerTextLeft h1 {
		left: 145px;
		top: 80px;
		font-size: 40px;
	}
	
	#bannerTextRight {
		top: 100px;
		left: 58px;
		padding: 0 0;
		float: left;
		clear: left;		
	}
	
	#bannerTextRight h3 {
		font-size: 23.4px;
	}
}

	/* Shrink proportionally */
@media (max-width: 625px) {
	
	#banner {
		height: 42.5vw;
		background-size: cover;
		background-position: -75px 0;
	}
	
	#bannerTextLeft h1 {
		left: 23.2vw;
		top: 12.8vw;
		font-size: 6.4vw;
	}
	
	#bannerTextRight {
		clear: both;
		top: 16vw;
	}
	
	#bannerTextRight h3 {
		font-size: 3.74vw;
	}
	
}

/* NAVIGATION MENU >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> */

.frame {
	position: relative;
	z-index:1;
}

.menu {
	left: 0.2vw;
	width: 100%;
	height: 100%;
	position: relative;
	font-variant: small-caps;
	color: #DFFFF0;
	text-decoration: none;
	text-shadow: 0 -4px 4px black;
	z-index: 2;
	padding: 0;
	margin:0;
	line-height: 1.5;
}

.mainNav {
	clear: both;
	border-top: 3px solid #A18FD1;
	border-bottom: 3px solid #A18FD1;
	overflow: hidden;
	padding: 0;
}


/* Mouseover effects */

@media (hover: hover) {
	.navLink:hover .marquise, .navLink:hover p, #breadcrumbs a {
		opacity: 1;
		text-decoration: underline;
	}
	
	a:hover {
		text-decoration: underline;
	}
}

	/* PNG for the black background shape */
.marquise {
	width: 100%;
	height: 100%;
	position: relative;
	opacity: 0;
	z-index: 1;
}

	/* Desktop menu */
@media (min-width: 1000px) {
	
	.menu {
		top: -5.7vw;
		font-size: 1.2vw;
	}
	
	.navButton {
		float: left;
		clear: right;
		position: relative;
		text-align: center;
		width: 20%;
		height: 7.6vw;
		background-image: url("images/menuButton_desktop.png");
		background-size: 100% 100%;
		z-index: 0;
	}
	
		/* The bookend images used on mobile are tucked away for a desktop */
	.navFiller {
		position: absolute;
		opacity: 0;
		left: -160px;
		z-index: -1;
	}
}

	/* Tweaks for small desktop */
@media (min-width: 1000px) and (max-width: 1250px) {
	.menu {
		top: -5.95vw;
		font-size: 1.3vw;
	}
}

	/* Mobiles or tablets */
@media (max-width: 1000px) {
	
	.mainNav {
		width: 100%;
		height: 19.1vw;
	}
		/* Reposition the text */
	.menu {
		top: -9.6vw;
		font-size: 1.95vw;
	}
	
		/* Float the top 3 buttons */
	.navButton.top {
		float: left;
		clear: right;
		position: relative;
		text-align: center;
		width: 33.3333333%;
		height: 12.6vw;
		background-image: url("images/menuButton_mobile_top.png");
		background-size: 100% 100%;
		z-index: 0;
	}
	
		/* Position the bottom 2 buttons */
	.navButton.bottom {
		float: left;
		position: relative;
		right: 0vw;
		bottom: 6.5vw;
		text-align: center;
		width: 33.333%;
		height: 12.6vw;
		background-image: url("images/menuButton_mobile_bottom.png");
		background-size: 100% 100%;
		z-index: 0;
	}
		
		/* Extra pattern blocks to fill space */
	.navFiller {
		position: relative;
		bottom: 6.5vw;
		opacity: 1;
		float: left;
		width: 16.66%;
		height: 12.6vw;
		margin: 0;
		z-index: -1;
	}

	.navFiller img {
		clear: right;
		width: 100%;
		height: 100%;
	}
}

	/* Bolden text for readability */
@media (min-width: 650px) and (max-width: 850px) {
	.menu {
		top: -10vw;
		font-weight: bold;
		font-size: 2vw;
	}
}
@media (max-width: 650px) {
	.menu {
		top: -10.5vw;
		font-weight: bold;
		font-size: 2.25vw;
		text-shadow: -4px -4px 4px black, 4px 4px 4px black;
	}
}

.selected .marquise{
	opacity: 1;
}

.selected p, .selected li {
	text-decoration: underline;
}

/* MAIN PAGE >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> */

/* Small stuff at top */
#breadCrumbs {
	float: left;
	padding: 0;
	margin: 0;
}

#breadCrumbs a {
	padding: 0;
	margin-top: 0.75em;
	color: black;
}

#socialMedia {
	float: right;
}

.socialIcons {
	height: 2em;
	margin-left: 1em;
	margin-top: 0.6em;
}

.fb-share-button {
	top: -3px;
}

	/* Page title */
.title {
	margin-top: 5rem;
	text-align: center;
	float: initial;
	clear: both;
	text-shadow: 2px 0px #A18FD1, 3px 1px #A18FD1;
}

	/*Main green background section*/
main {
	overflow: auto;
	clear: both;
	box-sizing: border-box;
	margin-left: auto;
	margin-right: auto;
	background: rgb(223, 255, 240);
	background: rgba(223, 255, 240, .8);
	padding: 0.75em 5vw 5vw;
	border-left: 3px solid #A18FD1;
	border-right: 3px solid #A18FD1;
}

	/*Sub-heading effects */
main h3 {
	text-shadow: 1px 1px #A18FD1, 2px 1px #A18FD1;
	text-align: center;
	margin-bottom: 2vw;
}

	/* Justify parallel items with a gap */
.contentFlex .listLeft {
	float: left;
	clear: both;
	margin-left: 2vw;
}

.contentFlex .listRight {
	float: right;
	clear: right;
	margin-right: 2vw;
}

	/* Margin settings for display sizes */
@media (min-width: 1300px) {
	main {
		width: 80%;
	}
}
	
@media (min-width: 1000px) and (max-width: 1300px) {
	main {
		width: 90%;
	}
}

@media (min-width: 750px) and (max-width: 1000px) {
	main {
		width: 80%;
	}
}

@media (max-width: 750px) {
	main {
		width: 90%;
	}
}

/*flex containers, one per row to control whitespace*/
.contentFlex {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	clear: both;
	margin-top: 4em;
}

p.contentText {
	text-align: center;
	margin-top: 1.25vw;
}

.contentImage {
	width: 100%;
	height: 100%;
	border: 3px solid #A18FD1;
}

/* needs a position to allow the captions to be positioned */
.contentLeft.image, .contentRight.image {
	position: relative;
}

	/* Put the accreditation on an image */
.caption {
	float: left;
	position: absolute;
	left: 3px;
	bottom: 0;
	font-style: italic;
	line-height: 1.5;
	background: rgb(223, 255, 240);
	background: rgba(223, 255, 240, .8);
	
}


	/* Desktop layout */
@media (min-width: 1000px) {
	
	.contentLeft {
		padding-right: 2.5vw;
		flex: 50%;
	}

	.contentRight {
		padding-left: 2.5vw;
		flex: 50%;
	}
	
	.contentImage {
		width: 100%;
	}
}

	/* Mobile layout */
@media (max-width: 1000px) {
	
	.contentLeft {
		height: auto;
		flex: 100%;
		}

	.contentRight {
		height: auto;
		flex: 100%;
	}
	
	.contentImage {
		width: 100%;
	}
	
	main h3 {
		margin-top: 4rem;
	}
	
	
}

/* FOOTER >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> */


	/* Kowhaiwhai rafter pattern */
.kowhaiwhaiBar {
	background-image: url("images/kowhaiwhai.png");
	background-size: contain;
	width: 100%;
	height: 6em;
	border-top: 3px solid #A18FD1;
	border-bottom: 3px solid #A18FD1;
	clear: both;
}

	/* Shrink the kowhaiwhai for small landscape displays*/
@media (max-width: 900px) and (max-height: 650px) {
	.kowhaiwhaiBar {
		height: 4em;
	}
}

	/* Footer text */
footer, .footerNav {
	color: #DFFFF0;
	text-decoration: none;
	line-height: 2;
}

	/* Whole footer background */
#footerBlock {
	width: 100%;
	height: auto;
	background-image: url("images/footer.png");
	background-size: cover;
	padding-top: 1vw;
	overflow: auto;
}

/* Text sections */
.footerTextLeft {
	float: left;
	margin-top: 1.5em;
	margin-bottom: 1.5em;
}

.footerTextRight {
	float: right;
	text-align: right;
	margin-top: 1.5em;
	margin-bottom: 1.5em;
}

	/*legal and fine print etc */
#copyright {
	margin-top: 3.25em;
	float: left;
	clear: left;
}

.privacy {
	margin-top: 2em;
	position: relative;
	float: right;
	clear: right;
}

#privacyPolicy {
	position: absolute;
	z-index: 2;
	right: 0;
	bottom: 2em;
	width: 80vw;
	height: 11rem;
	background-color: #1F1F1F;
	text-align: justify;
	font-size: 1em;
	border-radius: 5px;
	border: 3px solid #A18FD1;
	padding: 1em;
	color: #DFFFF0;
	overflow: auto;

}

	/* Responsive tweaks for footer */
@media (min-width: 1200px) {
	.footerTextLeft {
		margin-left: 10%;
	}
	
	.footerTextRight {
		margin-right: 10%;
	}
}

@media (min-width: 1000px) and (max-width: 1200px) {
	.footerTextLeft {
		margin-left: 5%;
	}
	
	.footerTextRight {
		margin-right: 5%;
	}
}

@media (min-width: 750px) and (max-width: 1000px) {
	.footerTextLeft {
		margin-left: 10%;
	}
	
	.footerTextRight {
		margin-right: 10%;
	}
}

@media (min-width: 600px) and (max-width: 750px) {
	.footerTextLeft {
		margin-left: 5%;
	}
	
	.footerTextLeft h2 {
		font-size: 5vw;
	}
	
	.footerTextRight {
		margin-right: 5%;
	}
}

@media (max-width: 600px) {
	.footerTextLeft {
		margin-left: 5%;
	}
	
	.footerTextLeft h2 {
		font-size: 5vw;
	}
	
	.footerTextRight {
		margin-right: 5%;
		margin-top: calc(600px - 100vw);
	}
}
@media (max-width: 550px) {
	
	.footerTextRight {
		float: left;
		clear: left;
		margin: 0 0 1em 5%;
		text-align: left;
	}
	
	.privacy {
		left: -0.7em;
	}
	
	#privacyPolicy {
		left: 0;
		bottom: -5rem;
		height: 25rem;
	}
	
}

	/* Hover state for privacy link */
@media (hover: hover) {
		
	.privacy:hover {
		text-decoration: underline;
		cursor: pointer;
	}
}

	/* Popup container */
.privacy {
	position: relative;
	cursor: pointer;
}

.privacy .hidden {
	visibility: hidden;
	position: relative;
}

/* Toggle this class to hide and show the popup*/
.privacy .show {
    visibility: visible;
}