﻿/* Define the palettes as maps */
/* Mixin to generate CSS custom properties from a color map */
/* Apply themes as classes */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");
.light-mode {
  --hero-color: rgb(11, 70, 80);
  --hero-contrast: rgb(80, 21, 11);
  --inverse-hero: white;
  --inverse-contrast: #151515;
  --plain-text: black;
  --bg-color: white;
  --inverse-text-color: white;
  --highlight1: rgba(11, 70, 80, 0.2);
  --highlight2: rgba(11, 70, 80, 0.15);
  --highlight3: rgba(11, 70, 80, 0.1);
  --link-hover: rgb(34, 88, 195);
  --cta-block-1-bg: rgba(11, 70, 80, 0.2);
  --cta-block-2-bg: rgba(11, 70, 80, 0.15);
  --cta-block-3-bg: rgba(11, 70, 80, 0.1);
  --tinted-bg: rgba(11, 70, 80, 0.1);
  --tinted-bg-2: rgba(11, 70, 80, 0.1);
  --tinted-bg-3: rgba(11, 70, 80, 0.2);
  --complimentary70: rgb(80, 21, 11);
  --thumbnail-background: rgba(0, 0, 0, 0);
  --sidebar-bg: rgba(255, 255, 255, 0.4);
  --edge-fade-color: #e8ecec;
}

.dark-mode {
  --hero-color: white;
  --hero-contrast: rgba(179, 47, 25, 0.7);
  --inverse-hero: rgb(11, 70, 80);
  --inverse-contrast: rgb(80, 21, 11);
  --plain-text: white;
  --bg-color: rgb(85, 85, 85);
  --inverse-text-color: rgb(11, 70, 80);
  --highlight1: rgba(165, 231, 243, 0.8);
  --highlight2: rgba(165, 231, 243, 0.75);
  --highlight3: rgba(165, 231, 243, 0.7);
  --link-hover: rgb(34, 88, 195);
  --cta-block-1-bg: rgba(165, 231, 243, 0.8);
  --cta-block-2-bg: rgba(165, 231, 243, 0.75);
  --cta-block-3-bg: rgba(165, 231, 243, 0.7);
  --tinted-bg: rgba(11, 70, 80, 0.7);
  --tinted-bg-2: rgb(72, 114, 121);
  --tinted-bg-3: rgb(72, 114, 121);
  --complimentary70: rgba(179, 47, 25, 0.7);
  --thumbnail-background: white;
  --sidebar-bg: rgba(0, 0, 0, 0.5);
  --edge-fade-color: #254951;
}

.header-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  position: initial;
  top: 0;
  left: 0px;
  right: 0;
  z-index: 100;
  background-color: var(--tinted-bg);
  color: var(--plain-text);
  text-shadow: 1px 1px rgba(0, 0, 0, 0.1);
}

.left-section {
  display: inline-block;
  align-items: center;
  justify-content: center;
  max-width: 150px;
  max-height: 100px;
  aspect-ratio: 3/1;
  padding: 15px;
}

.logo-card {
  position: relative;
  inline-size: 100%;
  block-size: 100%;
  max-height: 100px;
  max-width: 150px;
  background: var(--hero-color);
}

.brand-name {
  margin: 16px;
  padding: 0;
}

.navbar-brand-name {
  margin: 0;
  padding: 0;
  font-weight: bolder;
  font-family: "Roboto", sans-serif;
  text-decoration: none;
}

.navbar-brand-name:visited {
  color: var(--hero-color);
}

.header-logo-subtitle {
  margin: 0;
  padding: 0;
  color: var(--hero-color);
  text-shadow: 1px 1px rgba(0, 0, 0, 0.1);
}

.middle-section {
  flex: 1;
  margin-left: 10vw;
  max-width: 34dvw;
  display: flex;
  align-items: center;
  justify-content: center;
  list-style-type: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.top-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  list-style-type: none;
  max-width: 34dvw;
  gap: 1rem;
}

.burger-menu-container {
  margin-right: 10px;
}

.sidebar {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  right: 0;
  width: 250px;
  height: 100dvh;
  z-index: 999;
  background-color: var(--sidebar-bg);
  backdrop-filter: blur(12px);
  box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  place-items: center;
  margin-right: 4px;
  overflow: scroll;
}

.drop-svg {
  flex-shrink: 0;
  fill: var(--hero-color);
  margin: 0;
  padding: 0;
}

.sidebar a span, .sidebar .header-dropdown-span, .sidebar .dropdown-single-item-span {
  flex-grow: 1;
}

.sidebar .nav-item {
  border: solid 1px;
  border-color: var(--hero-color);
  width: 100%;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.sidebar .header-dropdown-menu {
  display: none;
  top: 100%;
  left: 0;
  min-width: fit-content;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 10;
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
  background: none;
}

.sidebar .header-dropdown-menu li {
  padding: 1rem 50%;
  background: none;
  border: solid 1px;
  border-color: var(--hero-color);
  text-align: left;
}

.sidebar .nav-item {
  position: relative;
  margin: 0 15px;
}
.sidebar .nav-item a {
  display: inline-block;
  text-decoration: none;
  color: var(--hero-color);
  font-weight: normal;
  position: relative;
}
.sidebar .nav-item a::before {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -2px;
  left: 50%;
  background-color: var(--hero-color);
  transition: width 0.3s ease, left 0.3s ease;
}
.sidebar .nav-item a:hover::before {
  width: 100%;
  left: 0;
}
.sidebar .nav-item a:hover {
  color: var(--hero-color);
}

.dropdown-toggle-button {
  border: none;
  background: none;
}

.sidebar li {
  width: 100%;
  background: none;
}

.close-sidebar-icon {
  display: flex;
  justify-content: end;
  text-align: end;
  margin: 16px 8px 16px 0;
}

.close-sidebar-icon-style {
  fill: var(--plain-text);
}

.sidebar .darkmode-toggle-container {
  margin-top: 16px;
  place-items: center;
}

.burger-menu-container {
  display: none;
}

.burger-icon-style {
  fill: var(--plain-text);
}

.top-nav .nav-item {
  position: relative;
  margin: 0 15px;
}
.top-nav .nav-item a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--hero-color);
  font-weight: normal;
  position: relative;
}
.top-nav .nav-item a::before {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -2px;
  left: 50%;
  background-color: var(--hero-color);
  transition: width 0.3s ease, left 0.3s ease;
}
.top-nav .nav-item a:hover::before {
  width: 100%;
  left: 0;
}
.top-nav .nav-item a:hover {
  color: var(--hero-color);
}
.top-nav .nav-item:hover > .header-dropdown-menu {
  display: block;
}

.header-dropdown-span {
  color: var(--hero-color);
  content: "";
  font-size: 1rem;
}

.top-nav .header-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 5%;
  min-width: max-content;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0.5rem 0.5rem 0.75rem 0.75rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  padding: 1rem;
  margin: 0;
  list-style: none;
  z-index: 10;
}

.top-nav .header-dropdown-menu li {
  padding: 0.4rem 0;
}

.right-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  z-index: 1;
  padding: 16px;
}

.right-section .search-container {
  position: relative;
  width: 250px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 0px;
  margin-top: 5px;
}

.right-section .search {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  background: var(--hero-color);
  border-radius: 50%;
  transition: all 1s;
  z-index: 2;
  box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.right-section .search::before {
  content: "";
  position: absolute;
  margin: auto;
  top: 15px;
  right: 0;
  bottom: 0;
  left: 15px;
  width: 8px;
  height: 2px;
  background: var(--inverse-hero);
  transform: rotate(45deg);
  transition: all 0.5s;
}

.right-section .search::after {
  content: "";
  position: absolute;
  margin: auto;
  top: -5px;
  right: 0;
  bottom: 0;
  left: -5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid var(--inverse-hero);
  transition: all 0.5s;
}

.right-section .search-container input[type=text] {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  box-sizing: border-box;
  outline: none;
  border: none;
  background: var(--hero-color);
  color: var(--inverse-hero);
  text-shadow: 0 0 10px rgba(11, 70, 80, 0.35);
  padding: 0 16px 0 16px;
  border-radius: 30px;
  box-shadow: 0 0 25px 0 rgba(11, 70, 80, 0.35), 0 20px 25px 0 rgba(0, 0, 0, 0.2);
  transition: width 1s, opacity 1s;
  opacity: 0;
  z-index: 3;
  font-weight: bolder;
  letter-spacing: 0.1rem;
  cursor: pointer;
}

.right-section .search-container input[type=text]:focus {
  width: 250px;
  opacity: 1;
  cursor: text;
  z-index: 4;
  right: 0;
  padding: 0 32px 0 20px;
}

.right-section .search-container input[type=text]:focus ~ .search {
  right: 0px;
  background: var(--plain-text);
  z-index: 6;
}

.right-section .search-container input[type=text]:focus ~ .search::before {
  top: 0;
  left: 0;
  width: 25px;
}

.right-section .search-container input[type=text]:focus ~ .search::after {
  top: 0;
  left: 0;
  width: 25px;
  height: 2px;
  border: none;
  background: var(--inverse-hero);
  border-radius: 0%;
  transform: rotate(-45deg);
}

.right-section .search-container input[type=text]::placeholder {
  color: var(--inverse-hero);
  opacity: 0.8;
  font-weight: bolder;
}

.darkmode-toggle-container {
  position: static;
  z-index: 1;
  margin-top: -8px;
}

@media (max-width: 1050px) {
  .top-nav {
    display: none;
  }
  .burger-menu-container {
    display: flex;
  }
  .right-section .search-container {
    display: none;
  }
}
@media (max-width: 600px) {
  .sidebar {
    width: 100dvw;
  }
  .top-nav {
    display: none;
  }
  .burger-menu-container {
    display: flex;
  }
  .right-section .search-container {
    display: none;
  }
}
