#main {
	flex: 0;
}

main form {
	text-align: center;
	display: flex;
}

form button, form select, form input {
	font-size: 1em;
}

#search-fields {
	display: flex;
	flex-direction: column;
	flex-grow: 99;
	margin-right: .5em;
}

#advanced-toggle {
	white-space: nowrap;
}

#advanced-fields > div {
	margin-top: .5em;
}

#text-field, #advanced-options, #date-picker {
	display: flex;
}

#text-field button {
	margin-right: .5em;
}

input[name=search] {
	flex: 1;
}

select[name=path] {
	width: 25em;
}

#advanced-options {
	justify-content: space-between;
}

#advanced-options select {
	margin-right: .5em;
}

#advanced-options select:last-child {
	margin-right: 0;
}

#similar-words {
	text-align: left;
}

form input[type=submit] {
	border-radius: 50%;
}

#date-picker {
	justify-content: space-between;
}

#date-picker input {
	margin-bottom: 0;
}

.field-prefix {
	padding-right: .25em;
}

.results-description {
    color: #f0f;
	text-align: center;
}

.results-description p {
	display: inline;
}

#results {
	margin-top: .5em;
}

#results ul {
	display: block;
	list-style-type: none;
	padding: 0;
}

#results ul li {
	margin-top: .5em;
	padding: .5em;
	background: #8084;
	text-shadow: none;
}

#results ul li:nth-child(even) {
	background: #f0f4;
}

#results ul li:hover {
	background: #f0f8;
}

#results ul li p {
	margin-top: .5em;
	margin-bottom: .5em;
}

#results ul li p strong {
	color: black;
	background: #f0f;
	font-weight: bold;
	text-shadow: none;
	border: 1px solid black;
	border-radius: .25em;
	padding-left: .1em;
	padding-right: .1em;
}

.link-text {
	float: right;
}

.prev-link, .next-link {
	font-weight: bold;
}

.prev-link {
	position: absolute;
	left: 0px;
}

.next-link {
	position: absolute;
	right: 0px;
}

@media only screen and (max-width: 480px) {
	main form, #advanced-options, #date-picker {
		flex-direction: column;
	}

	#text-field {
		flex-direction: column-reverse;
	}

	#advanced-fields > div {
		margin-top: 0;
	}

	#advanced-toggle, #advanced-options > select, #similar-words, #date-picker > div, #find {
		margin-top: .25em !important;
	}

	#search-fields, main form select, main form button {
		width: 100% !important;
		margin-right: 0 !important;
	}

	#date-picker {
		text-align: left;
	}

	form input[type=submit] {
		border-radius: 1em;
	}

}
