/* Layout for search container */
.app_info {
	display: table;
	padding: 16px 0;
}

.app_info span {
	font-size: 16px;
	line-height: 1.5;
	color: #9a9a9a;
	padding-left: 16px;
	display: table-cell;
	vertical-align: middle;
}

.overlay-app-info {
	position: relative;
	text-align: center;
}

.overlay-app-info {
	position: fixed;
	z-index: 1000;
	top: 0;
	left: 0;
	overflow: hidden;
	width: 100%;
	height: 100vh;
}

.overlay-app-info::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	background: rgba(0,0,0,0.3);
}

.search__inner {
	position: absolute;
	justify-content: center;
	display: flex;
	width: 100%;
	background: #f0f0f0;
}

.search__inner--up {
	align-items: center;
	height: 40%;
	color: #dce6e6;
	background: #2d3535;
	flex-direction:column;
}

.search__inner--down {
	height: 60%;
	top: 40%;
	overflow-y: scroll;
	padding-top: 16px;
}

.btn--search-close {
	font-size: 2em;
	position: absolute;
	z-index: 100;
	top: 0.50em;
	right: 0.50em;
	display: none;
}

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

.search__form {
	width: 75%;
	max-width: 900px;
	margin: 0 auto;
}

.search__input {
	font-family: inherit;
	font-size: 7vw;
	line-height: 1;
	display: inline-block;
	box-sizing: border-box;
	width: 100%;
	padding: 0 0 0.1em 0;
	color: inherit;
	border-bottom: 4px solid;
}

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

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

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

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

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

.search__info {
	font-size: 90%;
	font-weight: bold;
	display: block;
	width: 100%;
	margin: 0 auto;
	padding: 0.85em 0;
	text-align: right;
}

.search__related {
    width: 90%;
	max-width: 900px;
}

.search__suggestion {
	width: 50%;
	text-align: left;
}

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

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

.search__suggestion p {
	font-size: 1.15em;
	line-height: 1.4;
	margin: 0.75em 0 0 0;
}

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

.main-wrap {
	transition: transform 0.6s, opacity 0.6s;
	transition-timing-function: cubic-bezier(0.2,1,0.3,1);
}

.main-wrap--hide {
	opacity: 0;
	transform: scale3d(0.8,0.8,1);
}

.overlay-app-info {
	pointer-events: none;
}

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

.overlay-app-info::before {
	opacity: 0;
	transition: opacity 0.6s;
	transition-timing-function: cubic-bezier(0.2,1,0.3,1);
}

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

/* Search button */
.btn--search {
	transition: opacity 0s;
}

.main-wrap--hide .btn--search {
	opacity: 0;
	transition-delay: 0s;
}

/* 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: scale3d(1, 1, 1);
}

/* Halfs */
.search__inner {
	transition: transform 0.6s;
	transition-timing-function: cubic-bezier(0.2,1,0.3,1);
}

.search__inner--up {
	transform: translate3d(0,-100%,0);
}

.search__inner--down {
	transform: translate3d(0,100%,0);
}

.search--open .search__inner {
	transform: translate3d(0,0,0);
}

.search__suggestion {
	transform: translate3d(0,150px,0);
	transition: transform 1s;
	transition-timing-function: cubic-bezier(0.2,1,0.3,1);
}

.search--open .search__suggestion {
	transform: translate3d(0,0,0);
	transition-delay: 0.05s;
}

.search--open .search__suggestion:last-child {
	transition-delay: 0.1s;
}

.button-overlay-close {
	font-size: 24pt;
	position: absolute;
	top: 10px;
	right: 10px;
}

.dont-break-out {

	/* These are technically the same, but use both */
	overflow-wrap: break-word;
	word-wrap: break-word;

	-ms-word-break: break-all;
	/* This is the dangerous one in WebKit, as it breaks things wherever */
	word-break: break-all;
	/* Instead use this non-standard one: */
	word-break: break-word;

	/* Adds a hyphen where the word breaks, if supported (No Blink) */
	-ms-hyphens: auto;
	-moz-hyphens: auto;
	-webkit-hyphens: auto;
	hyphens: auto;
}

.navbar-head {
    padding-left: 25px;
    padding-top:25px;
    padding-bottom:25px;
    display: table;
}

.navbar-title {
    vertical-align: middle;
    display: table-cell;
    padding-left: 15px;
    font-size: 18px;
}

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

    .search__suggestion {
        width: 100%;
    }
}

@media only screen and (max-device-width: 480px) {
    .navbar-head {
        padding-left: 5px;
    }
}
