/* Buttons */

.search-region .btn {
	margin: 0;
	padding: 0;
	cursor: pointer;
	border: none;
	background: none;
}

.search-region .btn:focus {
	outline: none;
}

.search-region .btn--search {
	font-size: 1.5em;
}

.search-region .btn--hidden {
	pointer-events: none;
	opacity: 0;
}


/* Reset Search Input */

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

.search-region .search__input:focus {
	outline: none;
}


/* Links */

.search-region a,
.search-region .btn {
	text-decoration: none;
	color: #d17c78;
	outline: none;
}

.search-region .hidden {
	position: absolute;
	overflow: hidden;
	width: 0;
	height: 0;
	pointer-events: none;
}


/* Icons */

.search-region .icon {
	display: block;
	width: 1.5em;
	height: 1.5em;
	margin: 0 auto;
	fill: currentColor;
}


.search-region .search {
	position: absolute;
	z-index: 999;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none; /* makes other page elements clickable */
}

.search-region .js .search::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	background: rgba(14, 16, 15, 0.7);
}

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

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

.search-region .search__form {
	position: relative;
	width: 80%;
	min-width: 300px;
	margin: 0 auto;
}

.search-region .search__input {
	font-family: inherit;
	font-size: 5em;
	display: inline-block;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	width: 100%;
	padding: 0 1em 0.15em 0;
	pointer-events: auto;
	color: #fff;
    border-bottom: 4px solid #6aabd7;
}

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

.search-region .search__input::-ms-clear {
	display: none;
}

.search-region .btn--search {
	font-size: 3em;
	position: absolute;
	right: 0;
	bottom: 0.5em;
	pointer-events: none;
	color: #6f6f6f;
}

.search--open .btn--search {
	pointer-events: auto;
}

.search-region .search--open .search__suggestion {
	opacity: 1;
	visibility: visible;
}

.search-region .search__suggestion {
	width: 80%;
	min-width: 300px;
	margin-top: 22vh;
	margin-left: auto;
	margin-right: auto;
	height: 50vh;
	text-align: left;
	overflow-x: hidden;
    overflow-y: auto;
	position: relative;
	opacity: 0;
	visibility: hidden;
	transition: opacity 300ms ease-in-out;
}

.search-region .search__suggestion:nth-child(2) {
	margin: 0 3em;
}

.search__suggestion h3 {
	font-size: 1.5em;
	margin: 0;
}

.search-region .search__suggestion h3::before {
	content: '\21FE';
	display: inline-block;
	padding: 0 0.5em 0 0;
}

.search-region .search__suggestion p:before {
	content: '\25CF';
	padding: 0 0.5em 0 0;
}

.search-region .search__suggestion p {
	font-size: 1.25em;
	line-height: 1.4;
	margin: 0.75em 0 0 0;
	color: #e85454;
}

/************************/
/* Transitions 			*/
/************************/
.search-region .js .search::before {
	opacity: 0;
	transition: opacity 0.5s;
	transition-timing-function: cubic-bezier(0.7,0,0.3,1);
}

.search-region .js .search--open::before {
	opacity: 1;
}

.search-region .search--open {
	pointer-events: auto;
}

.search-region .search__form {
	transform: scale3d(0.5,0.5,1);
	transition: transform 0.5s;
	transition-timing-function: cubic-bezier(0.7,0,0.3,1);
}

.search-region .search--open .search__form {
	/* transform: translate3d(0,40vh,0) translate3d(0,-50%,0); */
	transform: translate3d(0,25vh,0) translate3d(0,-50%,0)
}

.search-region .btn--search-close {
	opacity: 0;
	transform: scale3d(0.8, 0.8, 1);
	transition: opacity 0.5s, transform 0.5s;
	transition-timing-function: cubic-bezier(0.7,0,0.3,1);
}

.search-region .search--open .btn--search-close {
	opacity: 1;
	transform: scale3d(1, 1, 1);
	transition-delay: 0.1s;
}

@media screen and (max-width: 40em) {
	.search-region .search__form {
		width: 100%;
		padding: 2em 1em 0;
	}
	.search-region .search__input {
		font-size: 2em;
	}
	.search-region .btn--search {
		font-size: 1.25em;
		right: 1em;
	}
	.search-region .btn--search-close {
		font-size: 1.15em;
	}
	.search-region .search__suggestion {
		font-size: 0.85em;
		width: 100%;
		padding: 0 1em;
	}
}
