body {
	background-color: rgb(8, 8, 20);
}
.top-section {
	position: relative;
	height: 1000px;
}

.top-section > h1 {
	color: #eff1ed;
	position: absolute;
	top: 40%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 80%;
	text-align: center;
	font-size: 8rem;
}

.top-section > #search-container {
	position: absolute;
	bottom: 15%;
	transform: translate(-50%, -50%);
	left: 50%;
}

.top-section .search-input-form {
	position: relative;
}
.top-section .search-input-wrapper {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
}

.top-section .search-input-form > ul {
	border-radius: 15px;
	all: unset;
	position: absolute;
	background-color: #131616;
	color: #eff1ed;
	top: 1px;
	transform: translate(0, -100%);
	width: 360px;
	text-align: center;
	font-size: 1rem;
	display: none;
	flex-direction: column;
	gap: 15px;
	padding: 0.3rem;
	box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.5);
}

#search-city-bar {
	all: unset;
	transition: all 0.15s ease-in-out;
	width: 360px;
	color: #eff1ed;
	background-color: #252c2c;
	border-bottom: lightgrey solid 1px;
	font-size: 1.2rem;
	padding: 0.3rem;
}
#search-city-bar:focus {
	transition: all 0.15s ease-in-out;
	outline: none;
	background-color: #384343;
	color: #b4b8b1;
}

li {
	list-style-type: none;
	cursor: pointer;
}
li:hover {
	color: lightgrey;
}
.search-city-button {
	all: unset;
	cursor: pointer;
	background-color: #131616;
	border-bottom: lightgrey solid 1px;
	font-size: 1.2rem;
	padding: 0.3rem;
	padding-left: 1rem;
	padding-right: 1rem;
	color: #eff1ed;
}
.search-city-button:hover {
	background-color: #191d1d;
	transition: all 0.15s ease-in-out;
}

/* Container that wraps everything */
.leaderboard-container {
	max-width: 500px;
	margin: 2rem auto;
	padding: 1rem;
	background-color: #252c2c;
	border: 1px solid #6a8d92;
	border-radius: 8px;
	font-family: "Helvetica Neue", Arial, sans-serif;
	color: #eff1ed;
}

/* Title */
.leaderboard-container h2 {
	text-align: center;
	margin-bottom: 1rem;
	font-size: 2rem;
	font-weight: bold;
	letter-spacing: 1px;
	color: #eff1ed;
}

/* The list container */
.leaderboard-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Each row/item in the leaderboard */
.leaderboard-list li {
	display: flex;
	align-items: center;
	padding: 0.75rem 0;
	border-top: 1px solid #6a8d92;
}

.leaderboard-list li:first-child {
	border-top: none; /* Remove top border on the first item */
}

/* Rank number on the left */
.rank {
	flex: 0 0 2em;
	font-weight: bold;
	color: #eff1ed;
	text-align: right;
	margin-right: 1rem;
}

/* Avatar image */
.avatar {
	width: 40px;
	height: 40px;
	object-fit: cover;
	border-radius: 50%; /* Make it circular */
	margin-right: 1rem;
}

/* Wrapper for name + location */
.info {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

.name {
	font-weight: 600;
	color: #eff1ed;
}

.location {
	font-size: 0.9rem;
	color: hsl(90, 8%, 80%);
}

/* Score on the far right */
.score {
	flex: 0 0 auto;
	font-weight: 600;
	color: #eff1ed;
	margin-left: 1rem;
}
