:root {
  --primary-color: navy;
  --bg-color: #f4f7f6;
  --text-color: #333;
  --card-bg: #fff;
  --light-blue: #4362debd;
}

#header {
  background: var(--primary-color);
  color: white;
  font-size: 1.5rem;
  padding: 2rem 1rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/*Nav bar elements*/

/*three lines button*/
.menu-button {
  width: 3rem;
  height: 3rem;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  background: none;
  border: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  margin-right: auto;
}

.menu-button span {
  width: 100%;
  height: 0.2rem;
  border-radius: 100rem;
  background: white;

  transition:
    transform 0.35s ease,
    opacity 0.25s ease;
}
.menu-button.active span:nth-child(1) {
  /*animation inside of the button*/
  transform: translateY(0.6rem) rotate(45deg);
}

.menu-button.active span:nth-child(2) {
  opacity: 0;
}

.menu-button.active span:nth-child(3) {
  transform: translateY(-0.6rem) rotate(-45deg);
}

/*whole contaier*/

.nav-bar {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition:
    max-height 0.4s ease,
    opacity 0.3s ease,
    visibility 0.3s;
}

.nav-list a {
  text-decoration: none;
  color: white;
}

.nav-bar.active {
  max-height: 30rem;
  opacity: 1;
  visibility: visible;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  display: flex;
  gap: 4rem;
  margin-bottom: 0.5rem;
}

.nav-list li {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.nav-list li::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 0.125rem;
  background: currentColor;
  transition: width 0.3s ease;
}

.nav-list li:hover::after {
  width: 100%;
}

.language-switch {
  background: white;
  color: var(--primary-color);
  gap: 1rem;
  border-radius: 5rem;
  padding: 0.5rem;
  font-size: 1.5rem;
  display: none;
  max-width: fit-content;
  margin-left: auto;
}

.language-switch a {
  padding: 0.5rem;
  border-radius: 5rem;
  text-decoration: none;
  cursor: pointer;
  color: #333;
}

.language-switch.active {
  display: block;
}

.globe {
  height: 2rem;
  width: 2rem;
  color: white;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  margin-left: auto;
}

.nav-bar-icon {
  color: #fff;
  border-radius: 0.5rem;
  color: #fff;
  height: 2rem;
  width: 2rem;
}

.menu-sign:active {
  background: var(--bg-color);
}

.first-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 1rem;
}

.first-line h1 {
  margin: 0;
  position: relative;
  justify-self: center;
}

.first-line a {
  text-decoration: none;
  color: white;
  cursor: pointer;
}

@media (max-width: 48rem) {
  .nav-list,
  .search-bar {
    display: flex;
    flex-direction: column;
  }
  .search-bar input,
  .search-bar select,
  .search-bar button {
    left: 50%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
  }
}