@charset "utf-8";
/* CSS Document */

@font-face {
	font-family: javatext;
	src: url("/fonts/javatext.ttf");
}

@font-face {
	font-family: opensans;
	src: url("/fonts/OpenSans-Regular.ttf");
}

*, *:before, *:after {
	margin: 0;
	padding: 0;

	-webkit-box-sizing: border-box !important;
	-moz-box-sizing: border-box !important;
	-ms-box-sizing: border-box !important;
	box-sizing: border-box !important;
}

a:link {color: inherit}      /* unvisited link */
a:visited {color: inherit;}   /* visited link */
a:hover {color: inherit;}     /* mouse over link */
a:active {color: inherit;}    /* selected link */
a{text-decoration: none;}    /* selected link */

body{
	font-size: 5vw;
	font-family: opensans, serif;
	color: rgb(40,47,77);
}

#global-container{
	position: relative;
	overflow-x: hidden;
	width: 100vw;
}

header{
	background-color: #e9e6e1;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between;
	position: fixed;
	top:0;
	left: 0;
	z-index: 9999;
	width: 100%;
	box-shadow: 0 0 1em rgba(40,47,77,0.5);
}

header:after{
	content: '';
	width: 100%;
	position: absolute;
	bottom: 0;
	left: 0;
	height: 0.1em;
	background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
}

#logo{
	font-size: 150%;
	padding: 0.7em 0.7em 0 0.7em;
	line-height: 1em;
}

#logo a{
	font-family: javatext, serif;
}

#menu-button{
	padding: 1em;
}

#menu-button svg{
	width: 1.5em;
	height: 1.5em;
}

nav{
	width: 100%;
	height: 0;
	position: fixed;
	top: 3.7em;
	background-color: #07294c;
	color: white;
	overflow: hidden;
	transition: height 0.25s ease-in-out;
}

nav > ul{
	list-style: none;
	display: flex;
	flex-direction: column;
	padding: 0 1em;
}

nav > ul > li > a{
	display: block;
	padding: 0.5em 0 0 0;
	font-family: javatext, sans-serif;
	border-bottom: 0.1em solid #BF953F;
}

#menu-visibility{
	display: none;
}

#menu-visibility:checked + nav{
	height: 100vh;
}

#menu-social{
	display:flex;
	flex-direction: row;
	justify-content: space-evenly;
	list-style: none;
	margin-top: 1.5em;
}

#menu-social svg{
	width: 1.3em;
}

#introduction{
	width: 100%;
	margin-top: 2.9em;
	background-image: url("/images/wood-min.jpg");
	background-size: cover;
	color: #e9e6e1; 
}

#art-image{
	position: relative;
	display: flex;
	justify-content: center;
}

#art-image img{
	display: block;
	width: 105%;
	margin: -2% -2% 0 -2%;
}

#about{
	margin-top: -2px;
	text-align: center;
	padding: 1em;
	display: flex;
	justify-content: center;
}

#about-text{
	/*opacity: 0*/;
}

#wines{
	position: relative;
	background-color: white;
	padding: 1em;			
	box-shadow: 0 0 1em rgba(40,47,77,0.5);
}

.wine-category{
	padding-top: 4em;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between;
	vertical-align: top;
}

.wine-category img{
	width: 35%;
}

.wine-category h2{
	width: 100%;
	font-size: 125%;
	font-family: javatext, sans-serif;
}

.wine-category p{
	display: inline-block;
	width: 60%;
}

.wine-category a{
	display: inline-block;
	padding: 0.5em;
	border: 0.1em solid #282f4d;
	border-radius: 0.5em;
	margin-top: 2em;
	text-align: center;
	cursor: pointer;
}

.wine-category.left h2{
	text-align: right;
	order: 1;
}

.wine-category.left p{
	text-align: right;
	order: 3;
}

.wine-category.left img{
	order: 2;
}

#find{
	padding: 4em 1em;
	background-color: rgb(40,47,77);
	background-image: url("/images/wood-min.jpg");
	background-size: cover;
	background-position: center center;
	color: #e9e6e1;
}

#find h2{
	width: 100%;
	font-size: 125%;
	text-align: center;
	font-family: javatext, sans-serif;
}

#find form{
	max-width: 30em;
	margin: 0 auto;
}

#find-type,
#find-location-type{
	display: flex;
	flex-direction: row;
}

#find-type label,
#find-location-type label{
	flex-grow: 1;
	display: block;
	padding: 0.3em;
	text-align: center;
	cursor: pointer;
	border: 0.1em solid transparent;
	border-radius:0.5em ;
}

#find-type input,
#find-location-type input{
	display: none;
}

#find-type input:checked + label,
#find-location-type input:checked + label{
	border-color: #BF953F;
}

#find-zip-code{
	width: 100%;
	font-family: inherit;
	font-size: inherit;
	padding: 0.4em;
	margin: 0.4em 0;
	border: none;
}

#find-button + label{
	display: block;
	text-align: center;
	width: 10em;
	padding: 0.5em;
	background: #e9e6e1;
	color: #07294c;
	margin: 1em auto 0 auto;
	border-radius: 0.5em;
	cursor: pointer;
}

#contact{
	padding: 4em 1em;
	background-color: #e9e6e1;
	color: #07294c;
}

#contact h2{
	width: 100%;
	font-size: 125%;
	text-align: center;
	font-family: javatext, sans-serif;
}

#contact form{
	max-width: 40em;
	margin: 0 auto;
}

#contact-form-fields input,
#contact-form-fields textarea{
	font-family: inherit;
	font-size:inherit;
	padding:0.4em;
	width:100%;
	border: none;
	margin-top: 1em;
}

#contact-form-fields input:first-child{
	margin-top:0;
}

#contact-form-fields textarea{
	height:12em;
}

#container-subscription{
	margin-top:1rem;
	display:flex;
	flex-direction:row;
}

#container-subscription input{
	display:none; !important;
}

#container-subscription label{
	display:block;
	width:2.5em;
	height:2.5em;
	padding:0.5em;
	color: transparent;
	transition: 0.1s color linear;
	border: 0.1em solid #07294c;
	margin-right: 1em;
}

#container-subscription svg{
	width:100%;
}

#container-subscription input:checked + label{
	color: #07294c;
}

#container-subscription div {
	line-height: 2.5em;
}

#send-contact-form + label{
	display: block;
	text-align: center;
	width: 10em;
	padding: 0.5em;
	border: 0.1em solid #07294c;
	border-radius: 0.5em;
	margin: 1em auto 0 auto;
	cursor: pointer;
}

footer{
	background-color: #07294c;
	background-image: url("/images/wood-min.jpg");
	background-size: cover;			
	color: #e9e6e1;
	padding: 0.5em;
}

footer > div{
	margin: 0.5em;
}

#footer-contact a{
	display: block;
	text-align: right;
	padding-right: 2em;
	position: relative;
}

#footer-contact svg{
	position: absolute;
	top: 0.2em;
	right: 0;
	width: 1em;
}

#footer-social a{
	display: block;
	text-align: left;
	padding-left: 2em;
	position: relative;
}

#footer-social svg{
	position: absolute;
	top: 0.2em;
	left: 0;
	width: 1em;
}

#footer-about > *{
	display: block;
	text-align: center;
}

#arrow_down{
	position: fixed;
	width: 100%;
	bottom: 0;
	left: 0px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}		

@keyframes illuminate {
  0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; }
}

#arrow_down svg{
	height: 2em;
	animation: illuminate 2s infinite;
}

@media screen and (min-width: 768px){
	body{
		font-size: 1.5rem;
	}

	header{
		justify-content: center;
		padding-top: 0.5em;
		padding-bottom: 0.5em;
	}

	#logo {
		font-size: 2.25rem;
		padding-top: 0.4em;
		margin-right: 3em
	}

	#menu-button{
		display: none;
	}

	nav{
		width: auto;
		height: auto;
		position: relative;
		top: 0;
		background-color: initial;
		color: #282f4d;
		overflow: visible;
	}

	nav > ul {
		flex-direction: row;
		padding: 0;
	}

	nav > ul > li > a{
		display: block;
		padding: 1em 0.4em 0 0.4em;
		line-height: 1.2em;
		border: none;
	}

	nav > ul > li > a:hover{
		color: black;
	}

	#menu-social{
		margin-top: 0;
		align-items: center;
	}

	#menu-social svg{
		margin: 0.4em;
	}
	
	#global-container{
		width: auto;
	}

	#introduction{
		align-items: center;
	}

	#art-image{
		padding: 2em 0 0 0;	
	}

	#art-image img{
		width: 20em;
		margin: 0;
	}

	#art-image:after{
		background: none;
	}

	#about{
		background: none;
		display: flex;
		flex-direction: row;
		align-items: center;
	}

	#about p{
		display: block;
		max-width: 40em;
	}


	.wine-category{
		justify-content: center;
	}

	.wine-category h2{
		max-width: 10em;
		order: 3;
	}

	.wine-category p{
		max-width: 25em;
		order: 1;
	}

	.wine-category img{
		order:2;
		width: auto;
		height: 18em;
		margin: -1em 2em 0 2em;
	}

	#contact-form-fields{
		display: flex;
		flex-direction: row;
	}

	#contact-form-fields > div{
		width: 50%;
		margin: 1em;
	}

	#contact-form-fields textarea{
		margin-top: 0;
	}

	footer{
		display: flex;
		flex-direction: row;
		background-image: url("/images/wood-min.jpg");
		background-size: cover;
	}

	#footer-social{
		align-self: flex-start;
		order: 1;
		width: 30%;
		flex-grow: 1;
	}

	#footer-about{
		align-self: flex-end;
		order: 2;
		width: 40%;
		flex-grow: 1;
	}

	#footer-contact{
		align-self: flex-start;
		order: 3;
		width: 30%;
		flex-grow: 1;
	}
}
