/* Navigation */

header nav {
  background-color: var(--primary-color);
  position: fixed;
  overflow: scroll;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}

header nav ul::before {
  margin: 0 auto 60px auto;
  width: 6em;
  height: 3em;
  display: block;
  content: ' ';
  background-size: 100%;
}

header nav ul::before img {width: auto;}
header nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  position: absolute;
  left: 50%;
  top: 170px;
  transition: all 0.3s ease-in-out;
  transform: translateX(-50%);
}
header nav ul li {
  border-top: solid 1px white;
  transform: translateY(50px);
  opacity: 0;
  list-style-type: none;
  margin-left: 0px;
}

header nav ul li:last-child {border-bottom: solid 1px white;}
header nav ul li:before {display: none;}
header nav ul li a {
  display: block;
  font-size: calc(24px + (40 - 24) * ((100vw - 320px) / (2560 - 320)));
  letter-spacing: 2px;
  text-decoration: none;
  padding: 10px 0;
  text-align: center;
  color: #fff;
  transition: all 0.2s ease-in-out;
}
header nav ul li a:hover {color: var(--secondary-color) !important;}
header nav ul li a {color: white !important;}



.single .toggle-btn {background-color: var(--secondary-color) !important;}
.toggle-btn {
  position: fixed;
  border-bottom-left-radius: 20px;
  box-shadow: 0px 0px 8px 5px rgba(0,0,0,0.5);
  padding: 40px 35px;
  z-index: 99;
  right: 0px;
  top: 0px;
  cursor: pointer;
}
.toggle-btn .bar {
  width: 50px;
  height: 4px;
  margin: 7px auto;
  background-color: #fff !important;
  transition: all 0.3s ease-in-out;
}
#toggle:checked ~ nav {
  opacity: 1;
  visibility: visible;
  z-index: 98;
}
#toggle:checked ~ nav ul {
  top: 70px;
}
#toggle:checked ~ nav ul li {
  transform: translateY(0px);
  opacity: 1;
}
#toggle:checked ~ nav ul li:nth-child(1) {
  transition: all 0.3s cubic-bezier(0.6, 0, 0.8, 1.5) 0.1s;
}
#toggle:checked ~ nav ul li:nth-child(2) {
  transition: all 0.3s cubic-bezier(0.6, 0, 0.8, 1.5) 0.2s;
}
#toggle:checked ~ nav ul li:nth-child(3) {
  transition: all 0.3s cubic-bezier(0.6, 0, 0.8, 1.5) 0.3s;
}
#toggle:checked ~ nav ul li:nth-child(4) {
  transition: all 0.3s cubic-bezier(0.6, 0, 0.8, 1.5) 0.4s;
}
#toggle:checked ~ nav ul li:nth-child(5) {
    transition: all 0.3s cubic-bezier(0.6, 0, 0.8, 1.5) 0.5s;
  }
#toggle:checked ~ nav ul li:nth-child(6) {
    transition: all 0.3s cubic-bezier(0.6, 0, 0.8, 1.5) 0.6s;
  }
  #toggle:checked ~ nav ul li:nth-child(7) {
    transition: all 0.3s cubic-bezier(0.6, 0, 0.8, 1.5) 0.7s;
  }
#toggle:checked + label.toggle-btn .bar {
  background-color: white;
}
#toggle:checked + label.toggle-btn .bar:nth-child(2) {
  transform: translateX(50px);
  opacity: 0;
}
#toggle:checked + label.toggle-btn .bar:nth-child(1) {
  transform: translateY(12px) rotate(45deg);
}
#toggle:checked + label.toggle-btn .bar:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}