@font-face {
  font-family: 'Avenir Next Condensed Bold';
  src: url('/src/fonts/Avenir-Next-Condensed-Bold.ttf') format('truetype');
  font-weight: bold;
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu4WxKOzY.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

@keyframes animatetop { /* Thx W3 again */
	from {
		opacity: 0;
		top: 0px;
	}

	to {
		opacity: 1;
		top: calc(100% + -9px);
	}
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  width: 100%;
  background-color: #2D3035;
}

main {
  min-height: 100vh;
}

header {
  background-color: #2B2D31;
  display: flex;
  padding: 5px 20px;
  align-items: center;
  box-shadow: rgba(255, 255, 255, 0.1) 0px 1px 2px 0px;
  justify-content: space-between;
  height: 60px;
  z-index: 999;
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

#header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.img-logo {
  height: 54px;
  margin-right: 10px;
}

.nav-dropdown {
  display: none;
  position: absolute;
  width: 195px;
  left: 0;
  background-color: #1a1a1c;
  border-radius: 6px;
  padding: 10px 0;
  z-index: 1000;
  opacity: 0;
  transform: translateY(-13px);
  visibility: hidden;
  animation: animatetop 0.2s ease-in; /* Thx W3 */
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.nav-dropdown-anchor-outer {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 2;
}

.nav-dropdown-blog {
  position: relative;
}

.nav-dropdown-blog:hover .nav-dropdown,
.nav-dropdown:hover,
.nav-dropdown-blog:hover .nav-dropdown-anchor,
.nav-dropdown:hover .nav-dropdown-anchor-outer,
.nav-dropdown-blog:hover .nav-dropdown-anchor-outer {
  display: block;
  opacity: 1;
  visibility: visible;
}

.nav-dropdown li {
  list-style: none;
}

.nav-dropdown-link {
  color: #fff;
  border-radius: 9px;
  text-decoration: none;
  padding: 10px 20px;
  display: block;
  font-size: 1.3em;
  transition: background-color 0.3s ease;
}

.nav-dropdown-link:hover {
  background-color: #373A40;
}

.nav-link {
  color: #fff;
  text-decoration: none;
}

.nav-dropdown-anchor {
  color: #fff;
  text-decoration: none;
  z-index: 3;
}

.nav-link,
.nav-dropdown-anchor,
.donate,
.theme-changer,
.github {
  font-size: 1.8em;
  transition: color 0.3s ease;
  margin-right: 8px;
  margin-left: 8px;
}

.nav-link:hover,
.nav-dropdown-anchor:hover,
.donate:hover,
.theme-changer:hover, 
.github:hover {
  color: #e81607;
}

.donate {
  color: #fff;
  text-decoration: none;
}

.theme-changer,
.github {
  background-color: transparent;
  font-size: 1.8em;
  border: none;
  cursor: pointer;
  color: #fff;
}

form {
  align-items: center;
  justify-content: space-between;
  position: relative;
  display: flex;
  margin-bottom: 0;
}

.contain {
  display: flex;
  align-items: center;
  position: relative;
  width: 300px;
  margin-right: 8px;
  margin-left: 8px;
}

.search-bar {
  color: #ffffff;
  font-size: 1.7em;
  width: 100%;
  height: 56px;
  border-radius: 0 10px 10px 0;
  background-color: #373A40;
  border: none;
  padding-left: 10px;
  font-family: 'Roboto', sans-serif;
  box-sizing: border-box;
}

.search-bar::placeholder {
  color: #fff;
}

.search-bar:focus {
  outline: none;
  border-color: transparent;
}

.search-enter {
  width: 56px;
  height: 56px;
  background-color: #373A40;
  border: none;
  color: #fff;
  font-weight: bold;
  transition: color 0.2s ease;
  font-size: 1.5em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px 0 0 10px;
}

.search-enter:hover {
  color: #e81607;
}

body.light-mode {
  background-color: #FFFFFF;
  color: #000000;
}

body.light-mode header {
  background-color: #fff;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 2px 0px;
}

body.light-mode .nav-link,
body.light-mode .nav-dropdown-anchor,
body.light-mode .donate,
body.light-mode .theme-changer,
body.light-mode .github {
  transition: color 0.2s ease;
  color: #000000;
}

body.light-mode .search-bar {
  background-color: #F0F0F0;
  color: #000000;
}

body.light-mode .search-enter {
  background-color: #F0F0F0;
  color: #000000;
  transition: color 0.2s ease;
}

body.light-mode .search-bar::placeholder {
  color: #000000;
}

body.light-mode .search-enter:hover {
  color: #e81607;
}

body.light-mode .nav-link:hover,
body.light-mode .nav-dropdown-anchor:hover,
body.light-mode .donate:hover,
body.light-mode .theme-changer:hover, 
body.light-mode .github:hover {
  color: #e81607;
}

body.light-mode .nav-dropdown {
  background-color: #E5E5E3;
  color: #000;
}

body.light-mode .nav-dropdown-link:hover {
  background-color: #C8C5BF;
}

body.light-mode .nav-dropdown-link {
  color: #000;
}
