@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap");

* {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
}

body {
	background-color: white;
	color: black;
	font-family: "Poppins", sans-serif;
}

@media (prefers-color-scheme: dark) {
	body {
		background-color: black;
		color: white;
	}
}

main {
	padding: 50px 0px 0px 0px;
}

/******************* Header ******************/
header a {
	text-decoration: none;
}

header {
	padding: 0 20px;
	background-color: #f8f8f8;
	height: 50px;
	display: flex;
	justify-content: center;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100;
	width: 100%;
}

header nav {
	background-color: white;
	color: black;
}

header .logo {
	vertical-align: bottom;
}

#home-button {
	display: flex;
	align-items: center;
	margin-right: 10px;
}

.logo {
	fill:gray;
}

.logo:hover {
	fill:black;
}

.navbar a {
	color: black;
}

header ul {
	list-style: none;
	align-items: center;
	justify-content: space-around;
	display: flex;
	height: 100%;
}

header ul li {
	padding: 10px;
}

header ul li:hover {
	transform: scale(1.1);
	transition: 0.1s;
}

.quick-links {
	color: gray;
	padding: 20px 0px 10px 0px;
	display: none;
}

.quick-link-list {
	pointer-events:auto;
	list-style: circle;
	align-items: flex-start;
	justify-content: flex-start;
	display: flex;
	flex-direction: column;
	display: none;
}

.quick-link-list li {
	margin-left: 15px;
}

#hamburger-button {
	margin: auto 0;
	display: none;
	cursor: pointer;
	pointer-events: auto;
}

#hamburger-button .bar {
	width: 20px;
	height: 1px;
	background-color: gray;
	margin: 6px 0;
	transition: 0.4s;
	z-index: 103;
	pointer-events: none;
	position: relative;
}

#hamburger-button:hover .bar {
	background-color: black;
}

.search-box {
	display: block;
	align-items: center;
	padding: 60px 80px 20px 80px;
}

.search-input {
	padding: 10px;
	border: none;
	outline: none;
	color: black;
	background-color: white;
	font-size: 16px;
	font-family: "Poppins", sans-serif;
	z-index: 102;
	position: relative;
	pointer-events: auto;
	width: 100%;
}

.search-panel {
	display: none;
	pointer-events: none;
}

.open .search-panel {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	background-color: white;
	color: black;
	position: fixed;
	top: 50px;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 102;
}

.open .mobile-menu-panel {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	background-color: white;
	color: black;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 102;
}

.open .mobile-menu {
	margin-top: 50px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	position: relative;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	pointer-events: auto;
}

.mobile-menu-panel {
	display: none;
	pointer-events: none;
}

.mobile-menu a {
	color: black;
}

@media only screen and (max-width: 600px) {
	header {
		justify-content: space-between;
	}

	header nav {
		display: none;
	}

	#hamburger-button {
		display: block;
		margin-left: 10px;
	}

	.bar {
		pointer-events: none;
	}
	
	.active .bar1 {
		-webkit-transform: rotate(-45deg) translate(-2.5px, 2.5px);
		transform: rotate(-45deg) translate(-2.5px, 2.5px);
	}
	
	.active .bar2 {
		-webkit-transform: rotate(45deg) translate(-2.5px, -2.5px);
		transform: rotate(45deg) translate(-2.5px, -2.5px);
	}

	.open .search-panel {
		top: 0px;
	}

	.quick-links {
		display: block;
	}

	.quick-link-list {
		display: block;
	}
}

#search-button {
	margin-left: 10px;
	display: flex;
	align-items: center;
	cursor: pointer;
	z-index: 101;
	position: relative;
}

.search-icon {
	fill: gray;
	pointer-events: none;
}

.search-form {
	display: flex;
	align-items: center;
	justify-content: center;
}

.clear-search {
	fill: gray;
	cursor: pointer;
	pointer-events: auto;
	margin-left: 10px;
}

.clear-search:hover {
	fill: black;
}

#search-button:hover .search-icon {
	fill: black;
}

@media (prefers-color-scheme: dark) {
	header {
		background-color: #111;
		color: white;
	}

	header nav {
		background-color: #111;
		color: white;
	}

	.logo:hover {
		fill:white;
	}

	.navbar a {
		color: white;
	}

	#hamburger-button:hover .bar {
		background-color: white;
	}

	.search-panel a {
		color: white;
	}

	.open .search-panel {
		background-color: #111;
		color: white;
	}

	.search-input {
		color: white;
		background-color: #111;
	}

	.mobile-menu a {
		color: white;
	}

	.open .mobile-menu-panel {
		background-color: #111;
		color: white;
	}

	#search-button:hover .search-icon {
		fill: white;
	}

	.clear-search:hover {
		fill: white;
	}
}

/******************* Footer ******************/
.footer-content {
	display: flex;
	justify-content: space-between;
	padding: 20px;
	background-color: #f8f8f8;
	font-size: 12px;
}

.footer-left {
	align-items: center;
	display: flex;
}

.footer-right {
	align-items: center;
	display: flex;
}

.footer-links {
	list-style-type: none;
	padding: 0;
}

.footer-links li {
	display: inline;
	margin: 0 10px;
}

.footer-links a {
	color: #222;
	text-decoration: none;
}

/* Styles for dark theme */
@media (prefers-color-scheme: dark) {
	.footer-content {
		background-color: #111;
		color: #f8f8f8;
	}

	.footer-links a {
		color: #f8f8f8;
	}
}
