.search--show {
    background: #2f2c2c !important;
    overflow: hidden;
}

.search--show-html {
	overflow: hidden;
}

.search--show .site {
	overflow: hidden;
}

.search--show .site {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	height: 100vh;
	background-color: #F2F2F2;
	/*background-image: url(bg.svg);
	background-repeat: no-repeat;
	background-position: 50% 10em;
	background-size: 75% auto;*/
}

.search--show .slick-track {
	width: 100% !important;
}

/* Reset Search Input */

.search__form .search__input {
	border: 0;
	background: transparent;
	border-radius: 0;
	-webkit-appearance: none;
}

.search__form .search__input:focus {
	outline: none;
}


/* Links */
.hidden {
	position: absolute;
	overflow: hidden;
	width: 0;
	height: 0;
	pointer-events: none;
}

@media screen and (max-width: 40em) {
	.codrops-header {
		display: block;
		padding: 4em 1em 0;
		text-align: center;
	}
	.codrops-header__side {
		margin: 0 auto;
	}
	.codrops-links {
		font-size: 0.85em;
		margin: 0 auto;
	}
	.search-wrap {
		font-size: 0.85em;
		position: absolute;
		top: 2.15em;
		right: 2em;
	}
	.bottom-nav {
		padding: 0.5em;
	}
	.codrops-demos {
		text-align: center;
	}
	.codrops-demos a {
		margin-bottom: 1em;
	}
	.codrops-demos span {
		display: block;
		margin: 0 auto 1em;
		text-align: center;
	}
}


/* Layout for search container */
.search {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
}

.js .search {
	position: fixed;
	z-index: 1000;
	top: 0;
	left: 0;
	overflow: hidden;
	width: 100%;
	height: 50vh;
}

.btn--search-close {
	font-size: 2em;
	position: absolute;
	top: 1.25em;
	right: 1.25em;
	display: none;
}

.js .btn--search-close {
	display: block;
}

.search__form {
	margin: 5em 0;
}

.search__form .search__input {
	font-family: 'Butler';
	font-size: 5vw;
	line-height: 1;
	display: inline-block;
	box-sizing: border-box;
	width: 75%;
	max-width: 900px;
	padding: 0 0 0.1em 0;
	color: #fff !important;
	border-bottom: 1px solid #fff;
}

.search__form .search__input::-webkit-input-placeholder {
	opacity: 0.1;
	/* WebKit, Blink, Edge */
	color: #fff;
}

.search__form .search__input::-moz-placeholder {
	opacity: 0.1;
	/* Mozilla Firefox 19+ */
	color: #fff;
}

.search__form .search__input:-ms-input-placeholder {
	opacity: 0.1;
	/* Internet Explorer 10-11 */
	color: #fff;
}

.search__form .search__input::-webkit-search-cancel-button,
.search__form .search__input::-webkit-search-decoration {
	-webkit-appearance: none;
}

.search__form .search__input::-ms-clear {
	display: none;
}

.search__info {
	font-family: 'Butler';
	font-size: 90%;
	font-weight: bold;
	display: block;
	width: 75%;
	margin: 0 auto;
	padding: 0.85em 0;
	text-align: right;
	color: #fff;
}

/************************/
/* Transitions 			*/
/************************/

/*.js .site {
	transform: perspective(1000px);
	transition: transform 0.6s;
	transition-timing-function: cubic-bezier(0.2,1,0.3,1);
}*/

.js .main-wrap--move {
	transform: perspective(1000px) translate3d(0,50vh,0) rotate3d(1,0,0,30deg);
}

.js .search {
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.6s;
}

.js .search--open {
	pointer-events: auto;
	opacity: 1;
}

/* Close button */
.btn--search-close {
	opacity: 0;
	transform: scale3d(0.8, 0.8, 1);
	transition: opacity 0.6s, transform 0.6s;
	transition-timing-function: cubic-bezier(0.2,1,0.3,1);
}

.search--open .btn--search-close {
	opacity: 1;
	transform: scale(0.4);
	background: transparent;
	border: none;
	cursor: pointer;
}

.search--open .btn--search-close > svg {
	fill: #fff;
}

/* Search form with input and description */
.js .search__form {
	opacity: 0;
	transform: scale3d(0.7, 0.7, 1);
	transition: opacity 0.6s, transform 0.6s;
	transition-timing-function: cubic-bezier(0.2,1,0.3,1);
}

.js .search--open .search__form {
	opacity: 1;
	transform: scale3d(1, 1, 1);
}

@media screen and (max-width: 40em) {
	.btn--search-close {
		font-size: 1.25em;
	}
}
