/* -- base -- */

/* Logo */
.base-shoelace {
	user-select: none;
	width: 40pt;
	margin: 16pt 0;
	opacity: 0.8;
}

/* Main container */
.base-container {
	background-color: #202020;
	width: 55vw;
	border-radius: 24px;
	box-shadow: inset 0 0 5px black;
	align-items: center;
	justify-items: center;
	flex-direction: column;
	display: flex;
	overflow: hidden;
}

/* Footer */
.base-footer {
	margin: 12pt 0;
	font-size: 11pt;
	opacity: 50%;
}

/* -- meta -- */

/* Body */
body {
	font-family: Arial, Helvetica, sans-serif;
	background-color: #101010;
	color: white;
	left: 100%;
	right: 100%;
	display: flex;
	margin-top: 8pt;
	align-items: center;
	flex-direction: column;
	justify-content: center;
}

/* Links */
a {
	color: lightblue;
	text-decoration: none;
}

a:hover {
	color: aliceblue;
}

/* Vertical separator */
hr {
	width: 100%;
	color: #282828;
	margin: 0;
	border: solid 1px;
}

/* Text separator */
.base-inline-separator {
	user-select: none;
	color: #666;
}

/* Form container */
.search-form {
	display: flex;
	border-radius: 0;
	overflow: hidden;
	align-items: center;
	height: 30pt;
	border-radius: 8pt;
	margin-top: 16pt;
	width: 100%;
	box-shadow: 0 0 12px #111;
}

/* Textbox */
#search-value {
	height: inherit;
	max-height: 100%;
	flex: 8;
	border: none;
	background: #333;
	font-size: 12pt;
	padding: 0 10px;
	color: white;
}

#search-value:focus {
	outline-width: 0;
	outline: none;
}

#search-value::placeholder {
	font-style: italic;
}

/* Go button */
.search-button {
	display: flex;
	align-items: center;
	background-color: #444;
	height: inherit;
	max-height: 100%;
	padding: 0 10px;
	flex: 1;
	color: white;
	border: none;
	font-size: 100%;
	line-height: 0;
	user-select: none;
	cursor: pointer;
	justify-content: center;
}

.search-button:hover {
	background-color: #555;
}

.search-button:active:hover {
	background-color: #4a4a4a;
}


/* Adjustments for smaller screens */
@media (max-width: 1152px) {
	.base-container {
		width: 95vw;
	}
}
@media (max-width: 700px) {
	.search-value {
		flex: 1;
	}
}

/* Light mode adjustments */
@media (prefers-color-scheme: light) {
	body {
		background-color: #CFCFCF;
		color: black;
	}

	.base-container {
		background-color: #DFDFDF;
		box-shadow: 0 0 5px grey;
	}

	a {
		color: darkblue
	}

	a:hover {
		color: royalblue;
	}

	hr {
		color: #ccc;
	}

	#search-title {
		text-shadow: 0 0 4px #666;
	}

	.search-form {
		box-shadow: 0 0 12px #777;
	}

	#search-value {
		background-color: #bbb;
		color: black;
	}

	.search-button {
		background-color: #ccc;
		color: black;
	}

	.search-button:hover {
		background-color: #c8c8c8;
	}
}
