.searchBox {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	text-align: center;
	transform: translateY(-100%);
	transition: transform .2s ease-out;
	z-index: -20;
	visibility: hidden;
	opacity: 0;
	background: var(--altColor);
}

.searchBoxIn {
	height: 100%;
	display: flex;
	align-items: center;
	width: 100%;
}

.search--on .searchBox {
	transform: translateY(0);
	visibility: visible;
	opacity: 1;
	z-index: 50;
}

.search__input {
	padding: 20px;
	margin: 0;
	height: 50px;
	padding: 0 15px;
	width: 100%;
	min-height: 0;
	background: transparent;
	color: white;
	border-radius: 0;
	border-width: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.search__fieldset {
	position: relative;
	display: block;
	width: 100%;
	padding-left: 50px;
	padding-right: 50px;
}

.search__btn:hover, .search__btn:focus {
	background: rgba(0, 0, 0, 0.15);
}

.search__btn {
	width: 50px;
	height: 50px;
	line-height: 50px;
	margin: 0;
	border: 0;
	position: absolute;
	right: 0;
	top: 0;
	color: white;
	background: transparent;
	font-size: 1rem;
	padding: 0;
	min-height: 0;
}

.search__close:hover {
	background: rgba(0, 0, 0, 0.15);
}

.search__closeIco {
	display: block;
	margin: 0 auto;
	width: 20px;
	height: 20px;
}

.search__close {
	position: absolute;
	left: 0;
	top: 0;
	color: white;
	height: 100%;
	width: 50px;
	cursor: pointer;
	z-index: 201;
	display: flex;
	align-items: center;
	justify-content: center;
}

.search__input::-webkit-input-placeholder {
	color: rgba(255, 255, 255, 0.6);
}

.search__input::-moz-placeholder {
	color: rgba(255, 255, 255, 0.6);
}

.search__input:-ms-input-placeholder {
	color: rgba(255, 255, 255, 0.6);
}


/* vyhledavani v obsahu */

.searchInContent .btn {
	margin: 0;
	border-radius: 0;
	position: absolute;
	right: 0;
	top: 0;
	padding: 0;
	cursor: pointer;
	line-height: 55px;
	width: 55px;
	display: inline-block;
	text-align: center;
	height: 55px;
}

.searchInContent .btn i {
	min-width: 0;
	text-align: center;
}

.searchInContent input {
	margin: 0;
	height: 55px;
	padding-right: 55px;
}

.searchInContent p, .searchInContent fieldset {
	position: relative;
	margin: 0;
}

.searchInContent {
	margin: 20px auto;
}


/* naseptavac */

.autocomplete {
	position: absolute;
	width: 100%;
	z-index: -10;
	left: 0;
	right: 0;
	visibility: hidden;
	opacity: 0;
	transition: opacity .5s ease-out;
}

header .autocomplete {
	padding-left: 50px;
	padding-right: 50px;
}

.autocompleteIn {
	background: var(--altColor);
	color: white;
	white-space: normal;
	text-align: left;
	box-shadow: 0 10px 15px rgba(0, 0, 0, .1);
	max-width: 900px;
}

.ac__list {
	margin: 0 0 10px 0;
	padding: 0;
	list-style-type: none;
}

.ac__item {
	width: 100%;
}

.autocomplete__hdr {
	margin: 10px 15px 0 15px;
	padding: 10px 0 5px 0;
	font-size: 1rem;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-width: 1px 0 0 0;
	font-weight: var(--fwB);
}

.acLink {
	text-decoration: none;
	display: flex;
	width: 100%;
	color: var(--textColor);
	padding: 8px 15px;
	color: white;
	line-height: 1.2em;
	align-items: center;
}

.acLink:hover {
	background: rgba(0, 0, 0, 0.05);
	color: white;
	text-decoration: none;
}

.acLink__img i {
	opacity: .75;
	font-size: 20px;
}

.acLink__img {
	vertical-align: middle;
	padding: 0;
	min-width: 90px;
	text-align: center;
	flex-shrink: 10;
}

.acLink__img img {
	height: auto;
	display: block;
	margin: 0 auto;
}

.acLink__cont {
	width: 100%;
	text-align: left;
	padding-left: 15px;
	flex: auto;
}

.acLink__hdr {
	font-weight: normal;
}

.autocomplete__hdr:first-child {
	border: 0;
	margin-top: 0;
}

.search--on .autocomplete--on .autocomplete, .content .autocomplete--on .autocomplete {
	opacity: 1;
	visibility: visible;
	z-index: 10;
}

.autocomplete .autocompleteSelected a, .autocomplete .autocompleteSelected a:hover {
	background: rgba(0, 0, 0, 0.05);
}

.acLink__date {
	font-size: .9em;
	line-height: 1.2em;
	font-style: normal;
	display: block;
	padding: 0;
	opacity: .75;
}

.autocompleteAll {
	display: block;
	font-size: .9em;
	margin-top: 10px;
	padding: 5px 10px;
	color: white;
	background: rgba(0, 0, 0, 0.15);
	text-decoration: none;
	line-height: 1.2em;
	text-align: center;
}

.autocompleteAll i {
	margin-right: 5px;
}

.autocompleteAll:hover {
	color: white;
	background: rgba(0, 0, 0, 0.25);
	text-decoration: none;
}

@media (max-width: 960px) {
	.searchBox {
		padding-right: 100px;
	}
}

@media (max-width: 479px) {
	header .autocomplete {
		padding-left: 0;
		padding-right: 0;
		font-size: .9em;
	}
	.search__input {
		padding-left: 5px;
		padding-right: 5px;
	}
	.section.section--search {
		padding: 0;
	}
}

@media (max-width: 374px) {
	.searchBox {
		padding-right: 50px;
	}
}
