@font-face {
	font-family: "AgencyFB";
	src: url("../static/fonts/AgencyFB-Bold.ttf");
}
@font-face {
	font-family: "PremierFont";
	src: url("../static/fonts/Premier2019-rPv9.ttf");
}

/*--------------------
Body
--------------------*/

*::before,
*::after {
	box-sizing: border-box;
}

html {
	margin: 0 auto;
}

body {
	font-size: 14px;
	height: 100vh;
	margin: 0;
	font-family: "AgencyFB";
}

#title {
	font-family: "PremierFont";
}

/*--------------------
Leaderboard
--------------------*/
.leaderboard {
	width: 100%;
	min-height: 308px;
	background: linear-gradient(to bottom, #3a404d, #181c26);
	border-radius: 10px;
	box-shadow: 0 7px 30px rgba(62, 9, 11, 0.3);
}

#cup {
	width: 20px;
	height: 20px;
}

.leaderboard h1 {
	font-size: 18px;
	color: #e1e1e1;
	padding: 12px 13px 18px;
}

.leaderboard h1 svg {
	width: 25px;
	height: 26px;
	position: relative;
	top: 3px;
	margin-right: 6px;
	vertical-align: baseline;
}

.leaderboard h1 .filters span {
	width: 35%;
	cursor: pointer;
}

.leaderboard h1 .filters .active {
	color: white;
	text-decoration: underline;
}

.vl {
	border-left: 4px solid #7ac2ed;
	height: 35px;
}

.leaderboard ol {
	counter-reset: leaderboard;
}

.leaderboard ol li {
	position: relative;
	z-index: 1;
	font-family: "AgencyFB";
	font-size: 12px;
	counter-increment: leaderboard;
	padding: 18px 10px 18px 20px;
	cursor: pointer;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	transform: translateZ(0) scale(1, 1);
	list-style: none;
}

.leaderboard ol li .rank {
	display: inline-block;
	z-index: 2;
	margin-right: 10px;
	top: 15px;
	left: 15px;
	width: 20px;
	height: 20px;
	line-height: 20px;
	color: #7ac2ed;
	background: #fff;
	border-radius: 20px;
	text-align: center;
}

.leaderboard ol li mark {
	position: absolute;
	z-index: 2;
	top: 0;
	left: 0;
	width: 90%;
	height: 100%;
	padding: 18px 12px 18px 12px;
	margin: 0;
	background: none;
	color: #343a40;
}

.leaderboard ol li mark::before,
.leaderboard ol li mark::after {
	content: "";
	position: absolute;
	z-index: 1;
	bottom: -11px;
	left: -9px;
	border-top: 10px solid #7ac2ed;
	border-left: 10px solid transparent;
	transition: all 0.1s ease-in-out;
	opacity: 0;
}

.leaderboard ol li mark::after {
	left: auto;
	right: -9px;
	border-left: none;
	border-right: 10px solid transparent;
}

.leaderboard ol li small {
	position: relative;
	z-index: 2;
	display: block;
	text-align: right;
}

.leaderboard ol li::after {
	content: "";
	position: absolute;
	z-index: 1;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #7ac2ed;
	box-shadow: 0 3px 0 rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease-in-out;
	opacity: 0;
}

.leaderboard ol li:hover {
	z-index: 2;
	overflow: visible;
}

.leaderboard ol li:hover::after {
	opacity: 1;
	transform: scaleX(1.06) scaleY(1.03);
}

.leaderboard ol li:hover mark::before,
.leaderboard ol li:hover mark::after {
	opacity: 1;
	transition: all 0.35s ease-in-out;
}

.the-most {
	position: fixed;
	z-index: 1;
	bottom: 0;
	left: 0;
	width: 50vw;
	max-width: 200px;
	padding: 10px;
}

.the-most img {
	max-width: 100%;
}

#dept {
	font-size: 8px;
}

.b1 {
	list-style-image: url("../static/images/gold-medal.png");
}

.b2 {
	list-style-image: url("../static/images/silver-medal.png");
}

.b3 {
	list-style-image: url("../static/images/bronze-medal.png");
}

#submitScorebtn {
	font-family: "AgencyFB";
	font-size: 14px;
}

.container {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

form {
	color: #343a40;
	background: white;
	padding: 2px;
	border: 1px solid currentColor;
	border-radius: 5px;
	width: 285px;
	justify-content: center;
	display: flex;
}

input[type="search"] {
	border: none;
	background: transparent;
	margin: 0;
	padding: 5px 5px;
	font-size: 12px;
	color: inherit;
	border: 1px solid transparent;
	border-radius: inherit;
}

input[type="search"]::placeholder {
	color: black;
}

button[type="submit"] {
	text-indent: -999px;
	overflow: hidden;
	width: 40px;
	padding: 0;
	margin: 0;
	border: 1px solid transparent;
	border-radius: inherit;
	background: transparent
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' class='bi bi-search' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'%3E%3C/path%3E%3C/svg%3E")
		no-repeat center;
	cursor: pointer;
	opacity: 0.7;
}

button[type="submit"]:hover {
	opacity: 1;
}

button[type="submit"]:focus,
input[type="search"]:focus {
	box-shadow: 0 0 3px 0 #007bff;
	border-color: #007bff;
	outline: none;
}

form.form_search {
	border: none;
	padding: 0;
}

input.search_text {
	border: 1px solid white;
	width: 100%;
	padding: 9px 4px 9px 40px;
	background: transparent
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' class='bi bi-search' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'%3E%3C/path%3E%3C/svg%3E")
		no-repeat 13px center;
}

.filters {
	font-size: 12px;
	width: 80%;
}

#submitScoreContainer {
	width: 100%;
}

#submitScorebtn {
	background-color: #44a4db;
}

@media only screen and (min-width: 768px) {
	.leaderboard {
		width: 285px;
		height: 308px;
		background: linear-gradient(to bottom, #3a404d, #181c26);
		border-radius: 10px;
		box-shadow: 0 7px 30px rgba(62, 9, 11, 0.3);
	}

	#cup {
		width: 25px;
		height: 26px;
	}

	#dept {
		font-size: 10px;
	}

	#submitScorebtn {
		font-family: "AgencyFB";
		font-size: 20px;
	}

	input[type="search"] {
		border: none;
		background: transparent;
		margin: 0;
		padding: 4px 6px;
		font-size: 10px;
		color: inherit;
		border: 1px solid transparent;
		border-radius: inherit;
	}

	.filters {
		font-size: 14px;
		width: 100%;
	}

	.leaderboard ol li {
		position: relative;
		z-index: 1;
		font-family: "AgencyFB";
		font-size: 18px;
		counter-increment: leaderboard;
		padding: 18px 10px 18px 30px;
		cursor: pointer;
		-webkit-backface-visibility: hidden;
		backface-visibility: hidden;
		transform: translateZ(0) scale(1, 1);
		list-style: none;
	}

	.leaderboard h1 .filters span {
		width: 40%;
		cursor: pointer;
	}

	.leaderboard ol li mark {
		position: absolute;
		z-index: 2;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		padding: 18px 12px 18px 18px;
		margin: 0;
		background: none;
		color: #343a40;
	}

	form {
		color: #343a40;
		background: white;
		padding: 2px;
		border: 1px solid currentColor;
		border-radius: 5px;
		width: 285px;
		justify-content: center;
		display: flex;
	}

	input.search_text {
		border: 1px solid white;
		width: 285px;
		padding: 9px 4px 9px 40px;
		background: transparent
			url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' class='bi bi-search' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'%3E%3C/path%3E%3C/svg%3E")
			no-repeat 13px center;
	}

	#submitScoreContainer {
		width: 300px;
	}
}
