@import url('https://fonts.googleapis.com/css?family=Crimson+Text|Macondo|Shrikhand|Oswald');

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box; 
}

html, body{
	height: 100%; /* allows you to use percentages for other elements */
}

/* === NAV INFO ===*/

nav{
	background: rgba(255, 255, 255, .9);
	text-align:center;
	position: relative;
	top:0;
	left:0;
	z-index: 888;
	width:100%;
	/*padding: 10px 20px;*/
}

nav img{
	width:80px;
	margin: auto;
}

nav a:link{
	font-family: 'Crimson Text',cursive;
	/*padding-bottom: 30px;*/
	line-height: 100px;
	font-size: 24px;
	text-align: center;
	text-decoration: none;
	color: green;
	display: none;
}

nav a:visited{
	color: green;
}

nav a:hover{
	color: black;
}

header, section {
	position: relative; /* set to relative so that other elements can be absolute. If you want something to be absolute you must make its parent relative */
	text-align: center;
}

header {
	position: relative;
	width: 100%;
	height: 100%;
	background: url(../images/matcha.jpg) no-repeat center center;
	background-size: cover;
}

header h1{
	font-family: 'Macondo',cursive;
	font-weight: normal;
	color: #fff;
	font-size: 28px;
	text-transform: capitalize;
	text-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
}

hgroup {
	width: 50%;
	/*border:solid 1px red;*/
	position:absolute;
	top:50%;
	left:50%;
	text-align: center;
	transform: translate(-50%, -50%);
}

#product_title{
	position: relative; 
	width:100%;
	height: 40%;
	background: url(../images/matcha-banner.jpg) no-repeat left center;
	background-color: #F4F6F3;
	border: solid 2px;
}

.product {
	position: relative; /* set to relative so that other elements can be absolute. If you want something to be absolute you must make its parent relative */
	text-align: center;
	width: 100%;
	height: 60%;
	overflow: hidden; /* hide anything outside the section e.g. the p is set to bottom: -100px */
	float:left;
	transition:all 1.5s;
}

.product:hover{
	background: green;
	box-shadow: inset 150px 150px 150px 150px rgba(0 ,128, 0, 0.6);
}


.product#b1 {
	background: url(../images/pic1.jpg) no-repeat center center;
}

.product#b1:hover {
	background: url(../images/pic1.jpg) no-repeat center right;
}

.product#b2 {
	background: url(../images/pic2.jpg) no-repeat center center;
}

.product#b2:hover {
	background: url(../images/pic2.jpg) no-repeat center right;
}

.product#b3 {
	background: url(../images/pic3.jpg) no-repeat center center;
}

.product#b3:hover {
	background: url(../images/pic3.jpg) no-repeat center right;
}

.product#b4 {
	background: url(../images/pic4.jpg) no-repeat center center;
}

.product#b4:hover {
	background: url(../images/pic4.jpg) no-repeat center right;
}

.product#b5 {
	background: url(../images/pic5.jpg) no-repeat center center;
}

.product#b5:hover {
	background: url(../images/pic5.jpg) no-repeat center right;
}

.product#b6 {
	background: url(../images/pic6.jpg) no-repeat center center;
}

.product#b6:hover {
	background: url(../images/pic6.jpg) no-repeat center right;
}

.product#b7 {
	background: url(../images/pic7.jpg) no-repeat center center;
}

.product#b7:hover {
	background: url(../images/pic7.jpg) no-repeat center right;
}

.product#b8 {
	background: url(../images/pic8.jpg) no-repeat center center;
}

.product#b8:hover {
	background: url(../images/pic8.jpg) no-repeat center right;
}

.product h3 {
	position:absolute;
	font-family: 'Crimson Text',cursive;
	font-weight: normal;
	top: 100px;
	width: 100%;
	color: #fff;
	font-size: 28px;
	text-transform: capitalize;
	/*text-shadow: 0px 0px 0px rgba(0, 0, 0, 0);*/
	text-shadow: 0px 0px 40px rgba(0, 0, 0, .75);
	opacity: 1;
	transition: all 0.5s;
}

.product:hover h3{
	top:100px;
	opacity: 1;
	text-shadow: 0px 0px 40px rgba(0, 0, 0, .75);
}

.product p {
	text-align: center;
	position: absolute;
	bottom: 0px;
	color: #fff;
	background: rgba(0,0,0,.75);
	/*background-size: rgba(0,0,0,1);*/
	width: 100%;
	padding: 20px 40px;
	font-family: georgia, serif;
	font-size: 16px;
	font-style: italic;
	transition: all 0.35s ease-out .2s;
}

.product:hover p {
	bottom: 0px;
	background: rgba(0,0,0,.75);
}

/* Shopping popup */

.modalDialog {
	position: fixed;
	font-family: 'Macondo',cursive;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(0,0,0,0.8);
	z-index: 99999;
	opacity:0;
	-webkit-transition: opacity 400ms ease-in;
	-moz-transition: opacity 400ms ease-in;
	transition: opacity 400ms ease-in;
	pointer-events: none;
}

.modalDialog:target {
	opacity:1;
	pointer-events: auto;
}

.modalDialog > div {
	width: 80%;
	position: relative;
	margin: 10% auto;
	padding: 5px 20px 13px 20px;
	border-radius: 10px;
	background: #fff;
	background: -moz-linear-gradient(#fff, #999);
	background: -webkit-linear-gradient(#fff, #999);
	background: -o-linear-gradient(#fff, #999);
}

.modalDialog p{
	padding-top: 15px;
	padding-bottom: 15px;
	text-align: center;
	font-family: 'Macondo',cursive;
}

.modalDialog h1{
	padding: 5px;
	font-family: 'Shrikhand',cursive;
}

.modalDialog figure img{
	width:90px;
	height: auto;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.close {
	background: #606061;
	color: #FFFFFF;
	line-height: 25px;
	position: absolute;
	right: -12px;
	text-align: center;
	top: -10px;
	width: 24px;
	text-decoration: none;
	font-weight: bold;
	-webkit-border-radius: 12px;
	-moz-border-radius: 12px;
	border-radius: 12px;
	-moz-box-shadow: 1px 1px 3px #000;
	-webkit-box-shadow: 1px 1px 3px #000;
	box-shadow: 1px 1px 3px #000;
}

.close:hover { background: #00d9ff; }


/* The Overlay (background) */

#trigger {
	font-size: 20px;
	cursor:pointer;
	position:fixed;
	top:20px;
	right:20px;
	z-index: 999;
	color:#333;
	font-weight:bold;
}

.overlay {
    /* Height & width depends on how you want to reveal the overlay (see JS below) */    
    height: 100%;
    width: 0;
    position: fixed; /* Stay in place */
    z-index: 999; /* Sit on top */
    left: 0;
    top: 0;
    background-color: rgb(0,0,0); /* Black fallback color */
    background-color: rgba(0,0,0, 0.9); /* Black w/opacity */
    overflow-x: hidden; /* Disable horizontal scroll */
    transition: 0.5s; /* 0.5 second transition effect to slide in or slide down the overlay (height or width, depending on reveal) */
}

/* Position the content inside the overlay */
.overlay-content {
    position: relative;
    top: 25%; /* 25% from the top */
    width: 100%; /* 100% width */
    text-align: center; /* Centered text/links */
    margin-top: 30px; /* 30px top margin to avoid conflict with the close button on smaller screens */
}

/* The navigation links inside the overlay */
.overlay a {
    padding: 8px;
    text-decoration: none;
    font-size: 36px;
    color: #818181;
    display: block; /* Display block instead of inline */
    transition: 0.3s; /* Transition effects on hover (color) */
}

/* When you mouse over the navigation links, change their color */
.overlay a:hover, .overlay a:focus {
    color: #f1f1f1;
}

.overlay a.current{
	color:#CFF;
	font-style: italic;
}

/* Position the close button (top right corner) */
.closebtn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px !important;
    line-height: 0px;
}

/* How to page */

video#bgvid {
	position: fixed;
	right: 0;
	bottom: 0;
	min-width: 100%;
	min-height: 100%;
	width: auto;
	height: auto;
	z-index: -100;
	background-size: cover;
}

#ht1, #ht2{
	width:100%;
	height:30%;
	position:relative;
}

#ht1{
	float: right;
	padding:2%;
	margin: 10px;
	border-radius: 10px;
	/*background: rgba(255, 255, 255, .7);*/
}

#ht1 h1 {
	font-family: 'Macondo', sans-serif;
	font-weight: normal;
	font-size: 38px;
	color:#eee;
	text-shadow: 2px 2px 2px #333;
	line-height: 80px;
}

#ht2{
	width: 90%;
	height: auto;
	float: right;
	padding:2%;
	margin: 10px;
	border-radius: 10px;
	background: rgba(255, 255, 255, .7);
}

#ht2 article {
	-webkit-column-count: 1; 
	-webkit-column-gap: 10px; 
    -moz-column-fill: auto; 

    column-count: 1; 
	column-gap: 5px; 
    column-fill: auto; 
    -moz-column-count: 1;
}

#ht2 article figure {
	background: #fefefe;
	border: 2px solid #fcfcfc;
	box-shadow: 0 1px 2px rgba(34, 25, 25, 0.4);
	margin: 0 5px 15px;
	padding: 5px;
	width:280px;
	height: 180px;
	transition: all .4s ease-in-out;
	-webkit-backface-visibility:hidden;
	-webkit-column-break-inside: avoid;
	-moz-column-break-inside: avoid;
	column-break-inside: avoid;
	display:inline-block;

}

#ht2 article figure img{
	width:100px;
	height: auto;
}

#ht2 article h1 {
	font-family: 'Shrikhand',cursive;
	text-align: left;
	-webkit-column-span: all;
	-moz-column-span: all;
	column-span: all;
	margin-bottom: 40px;
}

#ht2 p{
	padding-bottom: 30px;
	margin: 5px;
	font-family: 'Lato', sans-serif;
	text-align: justify;
	column-span: all;
	-webkit-column-span: all;
	-moz-column-span: all;
}

/* contact */

#contactBG {
	width: 100%;
	height: 100%;
	background: url(../images/matcha.jpg) no-repeat center center;
	background-size: cover;
}

#wrapper {
	/*background: #eee;*/
	background: rgba(255, 255, 255, .8);
	margin: 20px auto;
	width: 100%;
	padding: 20px;
}

#wrapper input[type=text], input[type=email] {
	width: 60%;
	padding: 10px;
	margin: 4px 0 20px;
	display: block;
	border: none;
	border-bottom: 1px dotted #000;
	font-size: 16px;
	font-family: 'Lato', sans-serif;
	color: #333;
	background: #fff;
	transition:all .3s;
}

#wrapper input[type=text]:focus, input[type=email]:focus {
	width: 65%;
	background: #333;
	color:#fff;
	outline: none;
	border-bottom: 1px solid red;
}

#wrapper input[type=submit], input[type=reset] {
	display: block;
	width: 20%;
	background: #99F;
	color: #333;
	padding: 10px;
	margin: 14px 0;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 16px;
	font-family: 'Lato', sans-serif;
	transition:all .3s;
}

#wrapper input[type=submit]:hover, input[type=reset]:hover {
	background-color: #333;
	color:#eee;
}

#wrapper textarea{
	display: block;
	width: 100%;
	height: 150px;
	padding: 10px;
	border-radius: 4px;
	border: 1px solid #000;
	background-color: #f8f8f8;
	font-size: 16px;
	resize:none;
	color: #333;
	margin-bottom: 24px;
	transition:all .3s;
}

#wrapper textarea:focus{
	background-color: #333;
	color: #fff;
	outline:none;
}

#wrapper label {
	font-family: 'Oswald', sans-serif;
	font-style: bold;
	font-size: 24px;
	text-transform: uppercase;
}

/* Media queries */

/* When the height of the screen is less than 450 pixels, change the font-size of the links and position the close button again, so they don't overlap */
@media screen and (max-height: 450px) {
    .overlay a {font-size: 20px}
    .overlay .closebtn {
        font-size: 40px;
        top: 15px;
        right: 35px;
    }
	
}


/* ==== TABLET LAYOUT ==== */
/* 481px to 768px. Inherits styles from mobile layout */

@media only screen and (min-width: 700px) {
	
	nav img{
		width:100px;
		margin: auto;
	}

	#product_title{
		height: 25%;
	}
	
	.product {
		width: 50%;
		height: 35%;
	}
	.product p {
		bottom: -100px;
		background-size: rgba(0,0,0,1);
	}
	
	.product h3{
		top:30px;
		opacity: 0;
		text-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
	}
	
	header h1{
		font-size: 48px;
	}
	
	.modalDialog > div {
		width: 50%;
	}
	
	#ht1 h1 {
		font-size: 78px;
	}
	
	#ht2{
		width: 75%;
	}
	
	#ht2 article {
		-webkit-column-count: 1; 
	    column-count: 1; 
	    -moz-column-count: 1;
	}

	#ht2 article figure {
		width:300px;
	}
	
	#wrapper {
		width: 80%;
	}

}

@media only screen and (min-width: 900px) {
	#ht2{
		width: 70%;
	}
	
	#ht2 article {
		-webkit-column-count: 2; 
	    column-count: 2; 
	    -moz-column-count: 2;
	}
}

/* ==== DESKTOP LAYOUT ==== */
/* 769px to max of 1100px. Inherits styles from mobile layout and Tablet Layout */

@media only screen and (min-width: 1100px) {

	nav img{
		width:140px;
		margin: auto;
	}
	
	nav a:link{
		line-height: 100px;
		font-size: 24px;
		width: 100%;
		height: 100%;
		margin-left: 70px;
		margin-right: 70px;
		display: inline;
	}
	
	header h1{
		font-size: 64px;
	}
	
	.product {
		width: 25%;
		height: 35%;
	}
	
	.modalDialog > div {
		width: 25%;
	}
	
	#ht1 h1 {
		font-size: 118px;
	}
	
	#ht2{
		width: 65%;
	}

	#ht2 article {
		-webkit-column-count: 2; 
	    column-count: 2; 
	    -moz-column-count: 2;
	}
	
	#wrapper {
		width: 65%;
	}
	
}


@media only screen and (min-width: 1300px) {

	#ht2{
			width: 60%;
		}
}
