:root {
	--navbar-height: 52px;

	--well-color: #f6f6f6;
	--well-trim-color: #e7e7e7;
	--background-color: white;
	--link-color: #337ab7;
	--link-color-hover: #23527c;
	--text-color: black;
	--input-background-color: white;
	--input-text-color: var(--text-color);
	--row-hover-color: rgba(0, 0, 0, 0.15);
	--progress-bar-empty: rgb(220, 220, 220);
	--progress-bar-filled: rgb(160, 180, 230);

	/* TODO use explicit colors for search icon, sorting icons on /player, GitHub icon, and :focus-visible on textbox inputs? */
}

* {
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	color: var(--text-color);
}

body {
	margin: var(--navbar-height) 0 0 0;
	background-color: var(--background-color);
}

#navbar {
	position: fixed;
	display: flex;
	z-index: 100;
	justify-content: flex-start;
	align-items: center;
	background-color: var(--well-color);
	border-bottom: 2px solid var(--well-trim-color);
	width: 100%;
	padding: 0px 1%;
	height: var(--navbar-height);
	top: 0;
	left: 0;
	box-sizing: border-box;
}

#navbar-logo {
	display: flex;
}

#toggle-search-button {
	display: none;
	width: 30px;
	height: 30px;
	background-color: var(--background-color);
	border-radius: 5px;
	border: 2px solid var(--well-trim-color);
}

#navbar-lookup {
	margin-left: auto;
	display: flex;
	align-items: center;
}

.summoner-lookup button {
	background-color: var(--background-color);
}

.summoner-form {
	display: flex;
	align-items: stretch;
	margin: 0;
}

.summoner-form>input {
	line-height: 33px;
}

.summoner-form>* {
	margin: 0 2px;
	border-radius: 5px;
	border: 2px solid var(--well-trim-color);
	padding: 0 7px;
}

#announcement {
	padding: 5px 5%;
	color: #0c5460;
	background-color: #d1ecf1;
	border: solid 2px #bee5eb;
	width: 100%;
	box-sizing: border-box;
}

#content {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0 auto;
	width: 90%;
}

#footer {
	justify-content: center;
	text-align: center;
	padding-top: 60px;
	padding-bottom: 15px;
}

#footer span {
	padding-left: 7px;
	padding-right: 7px;
}

a {
	color: var(--link-color);
	text-decoration: none;
}

a:hover {
	color: var(--link-color-hover);
	text-decoration: underline;
}

.well {
	background-color: var(--well-color);
	border: 2px solid var(--well-trim-color);
	border-radius: 5px;
}

table {
	--table-border-color: var(--well-trim-color);
	width: 100%;
	border-collapse: collapse;
}

th {
	padding: 10px;
	border-bottom: 3px solid var(--table-border-color);
	text-align: left;
}

td {
	border-bottom: 1px solid var(--table-border-color);
	padding: 8px 8px;
}

tr:not(thead>tr):hover {
	background-color: var(--row-hover-color);
}

tfoot td {
	font-weight: bold;
}

h1, h2 {
	font-weight: normal;
}

button {
	cursor: pointer;
}

input {
	background-color: var(--input-background-color);
	color: var(--input-text-color);
}

select {
	background-color: var(--input-background-color);
	color: var(--input-text-color);
}

/** Wrap and hide the lookup form */
@media (max-width:650px) {
	#navbar {
		justify-content: center;
		flex-wrap: wrap;
	}

	#toggle-search-button {
		display: block;
	}

	#navbar-lookup {
		display: none;
		justify-content: center;
		flex-basis: 100%;
	}

	#navbar[data-collapsed="expanded"] {
		height: 92px;
	}

	#navbar[data-collapsed="expanded"] #navbar-lookup {
		display: flex;
	}
}

/** Remove title from header */
@media (max-width:875px) {
	#navbar-logo-title {
		display: none;
	}
}

.responsiveAd {
	width: 100%;
	margin-top: 20px;
	margin-bottom: 20px;
	text-align: center;
	min-height: 100px;
}

.beta {
	display: none;
}
