* {
	margin: 0;
	padding: 0;
	border: 0;
	box-sizing: border-box;
	outline: none;
	font-family: Poppins;
	transition: all 0.25s ease;
}

:root {
	--background: white;
	--background-alt: rgb(245, 245, 245);
	--background-dark: rgb(220, 220, 220);
	--hover: rgb(249, 249, 249);
	--hover-alt: rgb(234, 234, 234);
	--icon: rgb(100, 100, 100);
	--text: rgb(20, 20, 20);
	--text-alt: rgb(100, 100, 100);
	--radius: 30px;
	--lightest: 0.025;
	--light: 0.05;
	--dark: 0.0625;
	--darkest: 0.1;
	--close-shadow: 0 2px 6px rgba(0, 0, 0, var(--lightest)), 0 8px 14px rgba(0, 0, 0, var(--light));
	--distant-shadow: 0 2px 6px rgba(0, 0, 0, var(--dark)), 0 12px 20px rgba(0, 0, 0, var(--darkest));
	--top-shadow: 0 -2px 6px rgba(0, 0, 0, var(--lightest)), 0 -8px 14px rgba(0, 0, 0, var(--light));
}

.dark-mode {
	--background: rgb(44, 45, 49);
	--background-alt: rgb(39, 40, 44);
	--background-dark: rgb(30, 31, 35);
	--hover: rgb(41, 42, 46);
	--hover-alt: rgb(34, 35, 39);
	--icon: rgb(200, 200, 200);
	--text: rgb(240, 240, 240);
	--text-alt: rgb(170, 170, 170);
	--lightest: 0.075;
	--light: 0.1;
	--dark: 0.125;
	--darkest: 0.175;
}

.material-icons-round {
	color: var(--icon);
}

body {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100vh;
	background-color: var(--background);
}

button {
	cursor: pointer;
	background-color: var(--background-alt);
	border-radius: var(--radius);
	box-shadow: var(--close-shadow);
}

li,
a {
	text-decoration: none;
}

li a:hover,
li a:focus {
	background-color: var(--hover-alt);
	border-radius: var(--radius);
}

main,
nav,
ul {
	display: flex;
	align-items: center;
}

nav {
	justify-content: space-between;
	padding: 12px 18px;
}

#dark-mode-button {
	padding: 6px;
	border-radius: var(--radius);
}

nav ul {
	flex-wrap: wrap;
	justify-content: right;
	list-style: none;
}

nav ul li {
	margin-left: 6px;
	font-size: 12px;
	font-weight: 500;
}

nav ul .nav-link {
	padding: 6px 12px;
	color: var(--text);
}

#account-icon {
	margin: 4px;
	padding: 2px;
	font-size: 36px;
}

#apps-icon {
	margin-left: 6px;
	padding: 6px;
}

main {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

#google-logo {
	width: 50%;
	max-width: 272px;
	margin-bottom: 20px;
}

#search-bar {
	display: flex;
	width: 85%;
	max-width: 580px;
	padding: 6px 20px;
	margin: 24px 0;
	border-radius: var(--radius);
	background-color: var(--background-alt);
	box-shadow: var(--close-shadow);
}

#search-bar #search-icon {
	position: relative;
	top: 5px;
	font-size: 22px;
}

#search-bar input {
	position: relative;
	top: 0;
	height: 30px;
	width: 100%;
	margin-left: 14px;
	font-size: 16px;
	color: var(--text);
	background-color: transparent;
}

#search-buttons {
	margin: 4px 20px;
	text-align: center;
}

#search-buttons button {
	padding: 10px 20px;
	margin: 10px 8px;
	color: var(--text);
}

#search-bar:hover,
#search-bar:focus-within,
button:hover,
button:focus {
	background-color: var(--hover);
}

#search-bar:focus-within,
button:hover,
button:focus {
	box-shadow: var(--distant-shadow);
}

#search-language {
	margin: 20px;
	text-align: center;
	font-size: 13px;
	color: var(--text);
}

#search-language a:hover,
#search-language a:focus {
	text-decoration: underline;
}

.dark-mode #search-language a {
	color: var(--text-alt);
}

footer {
	display: flex;
	flex-direction: column;
	justify-content: center;
	background-color: var(--background-alt);
	box-shadow: var(--top-shadow);
}

#country-info,
#footer-nav {
	padding: 0 16px 0 40px;
	min-height: 50px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	font-size: 13px;
	color: var(--text-alt);
}

#footer-nav {
	margin-left: -12px;
	border-top: 1px solid var(--background-dark);
}

#footer-nav ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	list-style: none;
}

#footer-nav li {
	padding: 8px 0;
}

#footer-nav ul li a {
	margin-right: 14px;
	padding: 6px 12px;
	text-decoration: none;
	color: var(--text-alt);
}

@media screen and (max-width: 780px) {
	#country-info,
	#footer-nav {
		padding: 0 20px;
		flex-direction: column;
		justify-content: space-evenly;
	}
	#footer-nav {
		margin: 0;
		padding: 10px 20px;
	}
	#footer-nav ul li a {
		margin: 4px;
	}
}

@media screen and (max-width: 460px) {
	.nav-link,
	#search-buttons,
	#footer-nav #left {
		display: none;
	}
	#country-info,
	#footer-nav {
		min-height: 40px;
		padding: 0 20px;
	}
}
