.main-header {
  width: 100%;
  min-height: 80px;
  color: var(--text-color);
  font-weight: 800;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  z-index: 10;
  top: 0px;
  left: 0px;
  /* position: fixed; */
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0 auto;
  max-width: 1200px;
  padding: 1rem 0;
  height: 3rem;
}

.header-links {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 3;
}

.header-logo {
  width: 50%;
  margin: 1rem 0 0 1rem;
  z-index: 5;
  flex: 1;
}

.header-nav {
  width: 90%;
  display: flex;
  flex-direction: row;
}

.header-nav ul {
  width: 90%;
  display: flex;
  justify-content: space-evenly;
  flex-direction: row;
  align-items: center;
}

.header-nav ul li {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  list-style: none;
  user-select: none;
  border-bottom: none;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

/* city ul in the header */

.menu-container {
  display: flex;
  justify-content: center;
  padding: 1rem;
  position: relative;
}

#menu-button {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--text-color);
  cursor: pointer;
  background-color: transparent;
  font-size: 1.2rem;
  position: relative;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  min-width: 50px;
  min-height: 30px;
}

.mobile-menu-container {
  display: flex;
  justify-content: center;
  padding: 1rem;
  position: relative;
}

#mobile-menu-button {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  color: #212934;
  border: none;
  padding: 0;
  cursor: pointer;
  background-color: transparent;
  transition: none;
  font-size: 1.5rem;
  position: relative;
  font-weight: 600;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

#city-menu {
  position: absolute;
  z-index: 5;
  top: 58px;
  right: 104px;
  width: 100%;
}

#mobile-city-menu {
  position: absolute;
  top: 65px;
  right: 0;
  width: 100%;
  background-color: #c6c5bb;
  min-height: 18rem;
}

#mobile-city-menu ul {
  list-style: none;
  width: 100%;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
  min-height: 17rem;
}

#city-menu ul {
  list-style: none;
  width: 100%;
  margin: 0;
  padding: 0;
  color: white;
  min-width: 15rem;
  border: 1px solid var(--text-color);
  white-space: nowrap;
  overflow-x: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background-color: var(--text-bright-color);
}

.mobile-city-list-item {
  text-align: center;
}

.mobile-city-list-item a {
  display: flex;
  text-decoration: none;
  list-style: none;
  user-select: none;
  border-bottom: none;
  background-color: var(--text-bright-color);
  color: #212934;
  width: 80%;
  justify-content: flex-end;
  align-items: center;
  cursor: pointer;
}

.city-list-item {
  display: flex;
  border-bottom: 1px solid #707070 !important;

  background-color: var(--text-bright-color);
  width: 100%;
  height: 30px;
  justify-content: flex-end;
  align-items: center;
  cursor: pointer;
}

.city-list-item:last-child {
  border-bottom: none !important;
}

.city-list-item:hover {
  background-color: #aaaaa2;
}

.city-list-item a {
  color: #212934;
  text-decoration: none;
  margin-right: 1.8rem;
  font-weight: 600;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  transition: background-color 0.3s;
}

#menu-button::before {
  content: '\2B9F';
  position: absolute;
  right: 53px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--text-color);
}

#mobile-menu-button::before {
  content: '\2B9F';
  position: absolute;
  right: 71px;
  top: 56%;
  transform: translateY(-50%);
  font-size: inherit;
}

.header-nav ul li a,
.header-logo a {
  border-bottom: none;
  text-decoration: none;
  color: inherit;
  font-size: 1.2rem;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

#city-menu ul li a {
  color: #212934;
  font-size: 1rem;
}

.hamburger-line {
  width: 35px;
  height: 4px;
  background-color: var(--text-color);
  margin: 3px 0;
  border-radius: 3px;
}

.menu-wrap {
  position: relative;
}

.menu-wrap .toggler {
  position: absolute;
  top: -25px;
  right: 7px;
  z-index: 2;
  cursor: pointer;
  width: 50px;
  height: 50px;
  opacity: 0;
}

.menu-wrap .hamburger {
  position: absolute;
  top: -43px;
  right: 0px;
  z-index: 1;
  width: 40px;
  height: 60px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hamburger Line */
.menu-wrap .hamburger > div {
  position: relative;
  flex: none;
  width: 100%;
  height: 2px;
  background: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

/* Hamburger Lines - Top & Bottom */
.menu-wrap .hamburger > div::before,
.menu-wrap .hamburger > div::after {
  content: '';
  position: absolute;
  z-index: 1;
  top: -10px;
  width: 100%;
  height: 2px;
  background: inherit;
}

/* Moves Line Down */
.menu-wrap .hamburger > div::after {
  top: 10px;
}

/* Toggler Animation */
.menu-wrap .toggler:checked + .hamburger > div {
  transform: rotate(135deg);
}

/* Turns Lines Into X */
.menu-wrap .toggler:checked + .hamburger > div:before,
.menu-wrap .toggler:checked + .hamburger > div:after {
  top: 0;
  transform: rotate(90deg);
}

/* Rotate On Hover When Checked */
.menu-wrap .toggler:checked:hover + .hamburger > div {
  transform: rotate(225deg);
}

/* Show Menu */
.menu-wrap .toggler:checked ~ .menu {
  visibility: visible;
}

.menu-wrap .toggler:checked ~ .menu > div {
  transform: scale(1.2);
  transition-duration: 0.75s;
}

.menu-wrap .toggler:checked ~ .menu > div > div {
  opacity: 1;
  transition: opacity 0.4s ease 0.4s;
}

.menu-wrap .menu {
  position: fixed;
  top: -264px;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 60rem;
  visibility: hidden;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-wrap .menu > div {
  background: #c6c5bb;
  width: 100%;
  height: auto;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transition: all 0.4s ease;
}

.menu-wrap .menu > div > div {
  text-align: center;
  width: 100%;
  max-height: 100vh;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.menu-wrap .menu > div > div > ul > li {
  list-style: none;
  color: #fff;
  font-size: 1.5rem;
  padding: 1rem;
}

.menu-wrap .menu > div > div > ul > li > a {
  color: #212934;
  text-decoration: none;
  transition: color 0.4s ease;
}

/* ------------------------MEDIA------------------------ */
@media (max-width: 500px) {
  .header-container {
    width: 85%;
  }

  .header-logo {
    flex: none;
  }
  .header-links {
    display: none;
    visibility: hidden;
    position: absolute;
  }
  .menu-wrap {
    position: relative;
    z-index: 4;
  }
}

@media (501px <= width <= 1000px) {
  .header-logo {
    flex: none;
  }
  .header-links {
    display: none;
    visibility: hidden;
    position: absolute;
  }

  .menu-wrap {
    position: relative;
    top: 4px;
    right: 31px;
  }
}

@media (1001px <= width <= 2800px) {
  .header-links {
    display: flex;
  }

  .menu-wrap {
    display: none;
  }
}
