.mirrored {
	display: inline-block;
	transform: scale(-1, 1);
}

.hidden {
	display: none;
}

html, body {
	padding: 0;
	margin: 0;
}

body {
	display: flex;
	flex-direction: column;
	font-family: serif;
	min-height: 100vh;
}

#header {
	user-select: none;
	padding: 10px;
	font-size: 1.5em;
	text-align: center;
	background-color: #fff0de;
	flex: 0;
}

#searchbar {
	padding: 10px;
	background-color: #c7b8a3;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	flex: 0;
	gap: 10px;
}

.inputbox {
	display: flex;
	justify-content: center;
}

.inputbox input {
	box-sizing: border-box;
	border-radius: 2px 0px 0px 2px;
	border: 1px solid black;
	outline: none;
	height: 2em;
	font-size: 1em;
	margin: 0;
}

.inputbox button {
	box-sizing: border-box;
	height: 2em;
	font-size: 1em;
	background-color: #7d6c54;
	color: white;
	border-radius: 0px 2px 2px 0px;
	border: 1px solid black;
	border-left: none;
	outline: none;
	cursor: pointer;
	transition: 0.2s;
	margin: 0;
}

#searchbar button:hover {
	background-color: #5c4e3a;
}

#searchbar button:active {
	color: #555;
}

#output {
	flex: 1;
	padding: 10px;
	font-family: sans-serif;
}

#output h3 {
	background-color: #eee;
	margin: 0px -10px;
	padding: 10px;
	margin-top: 10px;
	cursor: pointer;
}

#footer {
	background-color: #fff0de;
	padding: 5px;
	border-top: 1px solid #aaa;
	flex: 0;
}

a.searchable {
	color: green;
	text-decoration: none;
}

a.information {
	color: magenta;
	text-decoration: none;
}

a.external {
	color: blue;
	text-decoration: none;
}

.NavFrame {
	margin: 1em 0px;
}

#modal-background {
	display: none;
	position: fixed;
	z-index: 1;
	left: 0;
	top: 0;
	width: 100vw;
	height: 100vh;
	overflow: auto;
	background-color: rgb(0,0,0);
	background-color: rgba(0,0,0,0.4);
}

#modal-content {
	position: absolute;
	left: 10%;
	top: 10%;
	bottom: 10%;
	right: 10%;
	background-color: #fefefe;

	border: 1px solid #888;
	display: flex;
	flex-direction: column;
}

#modal-header {
	display: flex;
	justify-content: space-between;
	flex: 0;
}

#modal-title {
	padding: 10px;
}

#modal-close {
	padding-right: 5px;
	display: inline-block;
	color: #aaa;
	font-size: 28px;
	font-weight: bold;
}

#modal-close:hover,
#modal-close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

#modal-main {
	overflow: auto;
	border-top: 1px solid #aaa;
	padding: 10px;
	flex: 1;
}

table {
	border: 1px solid #aaa;
	border-collapse: collapse;
}

th, td {
	background-color: #f8f8ff;
	border: 1px solid #aaa;
	border-collapse: collapse;
	padding: 3px;
}

th {
	background-color: #ccc;
}

.table-hscroll {
	overflow-x: auto;
}

.derivedterms {
	column-count: 1 !important;
}

.toggle-favourite {
	cursor: pointer;
	transition: 0.2s;
}

.toggle-favourite:hover {
	color: #777;
}
