/*
* Copyright 2021 Adam Lawson
* https://www.edapb.org
* css/header.css
*/


* {box-sizing: border-box;}

body {
  margin: 0;
  font-family: 'san_francisco_textlight', sans-serif;
}

.header-container {
  z-index: 300;
  height: 64px;
  margin-right: auto;
  margin-left: auto;
  max-width: 100%;
  min-width: 1000px;
  left: 0;
  top: 0;
  right: 0;
}

.header {
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  height: 64px;
  padding-left: 20px;
  padding-top: 5px;
  left: 0;
  top: 0;
  right: 0;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  display: flex; /* Enable Flexbox on the container */
  justify-content: space-between; /* Distribute space between the items */
  align-items: center; /* Vertically align items in the center */
  padding: 10px 20px; /* Example padding */
}

.header span {
  font-family: 'san_francisco_textlight', sans-serif;
  font-size: 3.5vh;
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
}

.header ion-icon {
  color: #fff;
  font-size: 4vh!important;
  padding: 0px 10px;
  word-wrap: normal;
  display: inline-block;
}

.header ion-icon:hover {
  color: #0071E3;
}

.header img {
  margin: auto;
  height: 100%;
}

.header-left {
  flex-shrink: 0; /* Prevent the logo from shrinking */
}

.header-center {
  flex-grow: 1; /* Allow the center section to grow and take up remaining space */
  text-align: center; /* Center the links horizontally */
}

.header-right {
  flex-shrink: 0; /* Prevent the search bar from shrinking */
}

.nav-container {
  z-index: 1000;
  height: 64px;
  margin-right: auto;
  margin-left: auto;
  max-width: 100%;
  min-width: 1000px;
  position: sticky;
  left: 0;
  top: 0;
  right: 0;
}

.navbar {
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  position: sticky;
  height: 64px;
  padding-left: 20px;
  padding-top: 5px;
  left: 0;
  top: 0;
  right: 0;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  display: flex; /* Enable Flexbox on the container */
  justify-content: space-between; /* Distribute space between the items */
  align-items: center; /* Vertically align items in the center */
  padding: 10px 20px; /* Example padding */
}

.navbar-left {
  flex-shrink: 0; /* Prevent the logo from shrinking */
}

.logo img {
  background: url('../images/nav-bar-icon.png');
  display: block;
  background-position: center;
  background-size: contain;
  height: 44px;
  width: 44px;
  background-repeat: no-repeat;
}

.navbar-center {
  flex-grow: 1; /* Allow the center section to grow and take up remaining space */
  text-align: center; /* Center the links horizontally */
}

.nav-links {
  list-style: none; /* Remove default list styling */
  padding: 0; /* Remove default padding */
  margin: 0; /* Remove default margin */
}

.nav-links li {
  display: inline-block; /* Display links horizontally */
  margin: 0 10px; /* Add some space between links */
}

.nav-links li a {
  font-family: 'san_francisco_textregular', sans-serif;
  color: #fff;
  text-decoration: none;
  opacity: 0.7;
}

.nav-links li a:hover {
  opacity: 1;
}

.navbar-right {
  flex-shrink: 0; /* Prevent the search bar from shrinking */
}

.search-bar input {
  padding: 5px; /* Example padding */
}

.content {
  padding: 16px;
}

form.search input[type=text] {
  font-family: 'san_francisco_textregular', sans-serif;
  height: 44px;
  padding: 10px;
  font-size: 16px;
  border: 0px solid white;
  border-top-left-radius: 5px;
  border-top-right-radius: 0px;
  border-bottom-left-radius:5px;
  border-bottom-right-radius: 0px;
  float: left;
  width: 80%;
  background: #fbfbfb;
  -webkit-appearance: none;
}

.icon-search {
  font-size: 20px!important;
}

form.search button {
  float: left;
  width: 20%;
  padding: 10px;
  background: #fbfbfb;
  color: #000;
  font-size: 16px;
  border: 0px solid white;
  border-top-left-radius: 0px;
  border-top-right-radius: 5px;
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 5px;
  border-left: none;
  cursor: pointer;
  -webkit-appearance: none;
}

form.search::after {
  content: "";
  clear: both;
  display: table;
  -webkit-appearance: none;
}

@media (max-width: 1328px) {
  .nav-container, .header-container {
    display: none;
  }
  form.search input[type=text] {
    height: 40px;
  }
  form.search button {
    height: 40px;
  }
}

@media (max-width: 1328px) {
  .icon-search {
    font-size: 28px;
  }
}

/* Mobile Navbar  */

.mobile-container {
  z-index: 300;
  display: none;
  height: 44px;
  position: sticky;
  left: 0;
  top: 0;
  right: 0;
}

.link-logo {
    background: url('../images/nav-bar-icon.svg');
    display: block;
    background-position: center;
    background-size: contain;
    height: 44px;
    width: 44px;
    background-repeat: no-repeat;
}

.topnav {
  max-height: calc(100vh - 10px); /* Adjust 50px to your header's height */
  overflow-y: auto; /* Or overflow-y: scroll; */
  -webkit-overflow-scrolling: touch; /* For smoother scrolling on iOS */
  background-color: #333;
  position: relative;
}

.topnav #myLinks {
  display: none;
}

.topnav a {
  color: #fff;
  opacity: 0.7;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  display: block;
}

.topnav a.icon {
  height: 44px;
  background-color: inherit;
  display: block;
  position: absolute;
  right: 0;
  top: 0;
}

.topnav a:hover {
  color: #fff;
  opacity: 1;
}

.active {
  background-color: #04AA6D;
  color: white;
}

@media (max-width: 1328px) {
  .mobile-container {
    display: block;
  }
}

/* End Mobile Navbar */
