@import "normalize.css";

@font-face {
  font-family: 'universe';
  src: url('universe.woff') format('woff')
}

html,
body {
	background-color: rgb(240,233,212);
	height: 100%;
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-webkit-flex-direction: column;
	    -ms-flex-direction: column;
	        flex-direction: column;
	color: rgb(46,47,46);
	font-family: universe;
	-webkit-font-smoothing:antialiased;
}

header {
	background-color: rgb(201,208,198);
	height: calc(70% - 1px);
	min-height: 200px;
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-webkit-flex-direction: column;
	    -ms-flex-direction: column;
	        flex-direction: column;
	text-align: center;
	text-transform: uppercase;
	-webkit-transition: height 1.25s .4s cubic-bezier(0.215, 0.865, 0.355, 1.000);
	        transition: height 1.25s .4s cubic-bezier(0.215, 0.865, 0.355, 1.000);
	position: relative;
}

h1, h4 {
	margin: 0;
	position: absolute;
	top: 50%;
	left: 50%;
}

h1 {
	height: 40px;
	text-transform: uppercase;
	color: transparent;
	background: url(cassie-mercantile.svg) no-repeat 50% 100%;
	margin:0 0 0 -45%;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	width: 90%;
	transition: height 1.25s .4s cubic-bezier(0.215, 0.865, 0.355, 1.000), transform 1.25s .4s cubic-bezier(0.215, 0.865, 0.355, 1.000);
}

h4 {
	width: 100%;
	font-size: 14px;
	letter-spacing: 2px;
	margin: 80px 0 90px -50%;
	transition: transform 1.25s .4s cubic-bezier(0.215, 0.865, 0.355, 1.000);
	font-weight: normal;
}

nav {
	position: absolute;
	bottom: 5px;
	left: 20px;
}
nav img {
	height: 13px;
	vertical-align: baseline;
	margin: 0 5px;
	position: relative;
	top: 1px;
}
nav > button#about {
	border: 1px solid transparent;
	border-radius: 4px;
	color: rgb(46,47,46);
	padding: 0;
	font-family: universe;
	height: 30px;
	background-color: transparent;
	padding-top: 4px;
	font-size: 14px;
	outline: none;
	letter-spacing: 2px;
	/* -webkit-transition: opacity .3s 1s cubic-bezier(0.215, 0.865, 0.355, 1.000);
	        transition: opacity .3s 1s cubic-bezier(0.215, 0.865, 0.355, 1.000); */
}

nav > button#about span {
	border-bottom: 1px solid transparent;
	        transition: border-color .3s;
}

nav > button#about:hover span{
	border-color: rgb(46,47,46);
}

section {
	flex: 1;
	position: relative;
	height: 100%;
}

address {
	text-align: center;
	font-style: normal;
	font-size: 14px;
	line-height: 26px;
	padding: 60px 20px;
	opacity: 1;
	transition: opacity .4s 2s;
	letter-spacing: 2px;
}

address a {
	color: rgb(46,47,46);
	text-decoration: none;
}

address a img {
	height: 24px;
}

about-cassie {
	max-width: 600px;
	width: 90%;
	display: block;
	margin: 0 auto;
	font-size: 15px;
	letter-spacing: 0.9pt;
	line-height: 20px;
	position: relative;
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	-webkit-transition: max-height 1s 1s cubic-bezier(0.215, 0.610, 0.355, 1.000), opacity 1s .6s;
	        transition: max-height 1s 1s cubic-bezier(0.215, 0.610, 0.355, 1.000), opacity 1s .6s;
}

.overflow about-cassie {
	overflow: visible;
}

section > button#close-about {
	position: absolute;
	right: 40px;
	top: -4000px;
	z-index: 30;
	background: transparent;
	border: none;
	outline: none;
	opacity: 0;
	-webkit-transition: opacity 1s .6s ease-out, top 0.1s 2s;
	        transition: opacity 1s .6s ease-out, top 0.1s 2s;
}

section > button#close-about img {
	height: 30px;
}

about-cassie > cassie-content {
	padding: 90px 0 0 0;
	display: block;
}

cassie-content > p {
	margin-bottom: 27pt;
}

cassie-content > div#insta {
	height: 30px;
	text-align: center;
	display: none;
}


cassie-content > div#insta img {
	height: 100%;
}

/*  display about page */

.show-about header {
	height: 200px;
}

.show-about header h1,
.show-about header h4 {
	-webkit-transform: translateY(-20px);
	    -ms-transform: translateY(-20px);
	        transform: translateY(-20px);
}

.show-about nav > button#about {
	opacity: .7;
	-webkit-transition: opacity .4s cubic-bezier(0.215, 0.865, 0.355, 1.000);
	        transition: opacity .4s cubic-bezier(0.215, 0.865, 0.355, 1.000);
}

.show-about address {
	opacity: 0;
	-webkit-transition: opacity .4s;
	        transition: opacity .4s;
}
.show-about about-cassie {
	opacity: 1;
	max-height: 100%;
	-webkit-transition: max-height 3s .4s cubic-bezier(0.215, 0.610, 0.355, 1.000), opacity 1s 1.3s;
	        transition: max-height 3s .4s cubic-bezier(0.215, 0.610, 0.355, 1.000), opacity 1s 1.3s;
}

.show-about button#close-about {
	opacity: 1;
	top: 40px;
	-webkit-transition: opacity .75s 1.5s ease-out;
	        transition: opacity .75s 1.5s ease-out;
}

/* responsive */
@media (max-width: 667px) {
	header {
		height: 64%;
		min-height: 270px;
	}

	.show-about header {
		height: 270px;
	}

	header h1, header h4 {
		-webkit-transform: translateY(-133px) !important;
		    -ms-transform: translateY(-133px) !important;
		        transform: translateY(-133px) !important;
	}

	nav {
		width: 100%;
		bottom: 5%;
		left: 0;
	}

	nav a {
		margin-top: 20px;
		display: block;
	}



	nav > button#about {
		border-radius: 4px;
		color: rgb(46,47,46);
		padding: 0;
		font-family: universe;
		height: 35px;
		width: 100px;
		background-color: transparent;
		padding-top: 4px;
		font-size: 14px;
		outline: none;
		-webkit-transition: opacity .3s 1s cubic-bezier(0.215, 0.865, 0.355, 1.000);
		        transition: opacity .3s 1s cubic-bezier(0.215, 0.865, 0.355, 1.000);
	}

	nav > button#about:hover span{
		border-color: transparent;
	}

	cassie-content > div#insta {
		display: block;
		height: 30px;
		padding-bottom: 50px;
	}
}