:root {
  --matc: var(--color2);
  --mabc: var(--color1);
}

.header {
  background: var(--color2);
  /*
  background: linear-gradient(220deg, rgba(0, 0, 0, 1) 35%, rgba(46, 46, 46, 1) 51%, rgba(42, 42, 42, 1) 56%, rgba(38, 38, 38, 1) 61%, rgba(0, 0, 0, 1) 86%);
  */
  padding-bottom: 0.83em;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000000;
  box-shadow: 0 2px 7px #00000077;
  background: var(--color2);
  border-bottom: 1px solid #3E3E3E;
}
  /*
  background: radial-gradient(circle at 0% 0%, #ff7a7a40 0%, transparent 40%),
    radial-gradient(circle at 100% 0%, #ffd57a40 0%, transparent 40%),
    radial-gradient(circle at 100% 100%, #7afcff40 0%, transparent 40%),
    radial-gradient(circle at 0% 100%, #9b7aff40 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, #000, #111 40%, #000 100%);
  background-size: 200% 200%;
  animation: tacticalFlow 7s ease-in-out infinite;
}
*/
@keyframes tacticalFlow {
  0% {
    background-position: 0% 0%, 100% 0%, 100% 100%, 0% 100%, center;
  }
  25% {
    background-position: 100% 0%, 100% 100%, 0% 100%, 0% 0%, center;
  }
  50% {
    background-position: 100% 100%, 0% 100%, 0% 0%, 100% 0%, center;
  }
  75% {
    background-position: 0% 100%, 0% 0%, 100% 0%, 100% 100%, center;
  }
  100% {
    background-position: 0% 0%, 100% 0%, 100% 100%, 0% 100%, center;
  }
}
.container {
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.logo {
  color: var(--color1);
  font-size: 28px;
  text-shadow: 0px 2px 1px #777;
  letter-spacing: 0.7px;
}

nav {
  display: flex;
  align-items: center;
  gap: 25px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

nav a {
  color: var(--color1);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

nav a svg {
  margin-right: 5px;
  transform: translateY(10%);
}

#hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  height: 24px;
  justify-content: center;
  user-select: none;
  transition: transform 0.3s ease;
}

#hamburger div {
  width: 100%;
  height: 3px;
  background-color: var(--color1);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

#hamburger.active div:nth-child(1) {
  transform: rotate(45deg) translate(5.75px, 5.75px);
}

#hamburger.active div:nth-child(2) {
  transform: rotate(-45deg);
}

#hamburger.active div:nth-child(3) {
  transform: rotate(-45deg) translate(5.75px, -5.75px);
}

.hide {
  display: none;
}

nav .hide svg {
  margin-right: 8px;
  transform: translateY(0%);
}

#nav-menu {
  transform: translateX(100%);
  transition: transform 0.25s ease;
  will-change: transform;
}

#nav-menu.active {
  transform: translateX(0);
}

@media (max-width: 900px) {
  :root {
    --matc: var(--color1);
    --mabc: var(--color2);
  }
  
  nav {
    position: fixed;
    top: 60px;
    right: 0;
    background: var(--color1);
    height: calc(100% - 70px);
    width: 220px;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    gap: 15px;
    z-index: 998;
    border-top-left-radius: 10px;
    overflow: hidden;
  }
  
  nav.active {
    transform: translateX(0);
  }
  
  nav a {
    width: 100%;
    color: var(--color2);
  }

  .container {
    height: 50px;
  }
  
  #hamburger,
  .hide {
    display: flex;
  }
  nav {
    width: 220px;
    transition: transform 0.3s ease;
  }
  
}

.s_bar {
  background: var(--color1);
  width: cale(100% - 48px);
  border-radius: 4px;
  display: flex;
  margin: 0 24px;
  align-items: center;
}

.s_bar input[type=search] {
  padding: 7px 0px 7px 12px;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
  width: 100%;
}

.s_bar input[type=search]:focus {
  outline: none;
}

.s_bar input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.s_bar button {
  background: #00000011;
  border-radius: 50%;
  border: none;
  height: 1.8rem;
  width: 1.8rem;
  margin: 0 3px 0 3px;
}

.s_bar svg {
  transform: translate(-6%, 5%);
}

.s_bar input:focus~button {
  box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.6);
}

#nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 998;
  display: none;
  transition: opacity 0.3s ease;
}

#nav-overlay.active {
  display: block;
  opacity: 1;
}
