$items: 6;
$transition-duration: .5s;
$transition-delay: .05s;

/* Container */
.bmenu {
  position: relative;
  margin: 35px auto 0;
  overflow: visible;
  visibility: visible;
}

@media ( min-width: 1100px ) {
.bmenu {
  display: none;
  margin: 0px;
  padding: 0px;
} 

.toggle-bmenu {
  display: none;
  height: 0px;
}

.bbutton-toggle {
  display: none;
  height: 0px;
}

.bnav {
  display: none;
  height: 0px;
}

.bnav-item {
  display: none;
  height: 0px;
} }

/* button */
.bbutton-toggle {
  position: absolute;
  display: inline-block;
  width: 30px;
  height: 30px;
  margin: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 100%;
  transition: .6s;
}

.bbutton-title {
  position: absolute;
  color: white;
  background: transparent;
  height: 30px;
  margin: 30px 75px;
  cursor: default;
  font-size: 18px;
}

.ri-menu-line {
  position: absolute;
  margin: 3px 3px;
  color: white;
  background: transparent;
  font-size: 22px;
}

.bbutton-toggle:hover {
  box-shadow: 0px 0px 0px 8px rgba(0, 0, 0, 0.1), inset 0px 0px 0px 20px rgba(0, 0, 0, 0.1);
  background-color: transparent;
  border: 1px solid white;
}
.bbutton-toggle:before, .bbutton-toggle:after {
  position: absolute;
  content: "";
  top: 50%;
  left: 0px;
  width: 100%;
  height: 2px;
  background-color: light-dark(var(--light-bg), var(--dark-bg));
  border-radius: 5px;
  transition: 0.5s;
}
.bbutton-toggle:before {
  transform: translateY(-50%) rotate(45deg) scale(0);
}
.bbutton-toggle:after {
  transform: translateY(-50%) rotate(-45deg) scale(0);
}

/* toggle functionality */
#toggle {
  position: absolute;
  left: -100%;
  top: -100%;
}

#toggle:focus ~ .toggle-bmenu .bbutton-toggle {
  box-shadow: 0px 0px 0px 8px rgba(0, 0, 0, 0.1), inset 0px 0px 0px 20px rgba(0, 0, 0, 0.1);
}

#toggle:checked:focus ~ .toggle-bmenu .bbutton-toggle {
  box-shadow: 100rem 100rem 100rem 100rem rgba(0, 0, 0, 0.1), inset 0px 0px 0px 20px rgba(0, 0, 0, 0.1), 0px 0px 0px 8px rgba(0, 0, 0, 0.1), inset 0px 0px 0px 20px rgba(0, 0, 0, 0.1);
}
#toggle:checked ~ .bnav {
  margin-bottom: 100px;
  pointer-events: auto;
  transform: translate(50px, 50px);
}
#toggle:checked ~ .bnav .bnav-item {
  color: light-dark(var(--light-color), var(--dark-color));
  letter-spacing: 0;
  height: 40px;
  line-height: 40px;
  margin-top: 0;
  opacity: 1;
  transform: scaleY(1);
  transition: 0.5s, opacity 0.1s;
}

#toggle:checked ~ .bnav .bnav-item-active {
  color: white;
  letter-spacing: 0;
  height: 40px;
  line-height: 40px;
  margin-top: 0;
  opacity: 1;
  transform: scaleY(1);
  transition: 0.5s, opacity 0.1s;
}

#toggle:checked ~ .bnav .bnav-item:nth-child(1) {
  transition-delay: 0.15s;
}
#toggle:checked ~ .bnav .bnav-item:nth-child(1):before {
  transition-delay: 0.15s;
}
#toggle:checked ~ .bnav .bnav-item:nth-child(2) {
  transition-delay: 0.1s;
}
#toggle:checked ~ .bnav .bnav-item:nth-child(2):before {
  transition-delay: 0.1s;
}
#toggle:checked ~ .bnav .bnav-item:nth-child(3) {
  transition-delay: 0.05s;
}
#toggle:checked ~ .bnav .bnav-item:nth-child(3):before {
  transition-delay: 0.05s;
}
#toggle:checked ~ .bnav .bnav-item:nth-child(4) {
  transition-delay: 0s;
}
#toggle:checked ~ .bnav .bnav-item:nth-child(4):before {
  transition-delay: 0s;
}
#toggle:checked ~ .bnav .bnav-item:before {
  opacity: 0;
}

/* menu */
.bnav {
  display: inline-block;
  margin: 25px 25px 20px;
  pointer-events: none;
  transition: 0.5s;
  background-color: transparent;
}

.bnav-item {
  position: relative;
  display: inline-block;
  float: left;
  clear: both;
  color: transparent; 
  font-size: 17px;
  letter-spacing: -6.2px;
  height: 7px;
  line-height: 7px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transform: scaleY(0.2);
  transition: 0.5s, opacity 1s;
}

.bnav-item-active {
  position: relative;
  display: inline-block;
  float: left;
  clear: both;
  color: transparent; 
  font-size: 17px;
  letter-spacing: -6.2px;
  height: 7px;
  line-height: 7px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transform: scaleY(0.2);
  transition: 0.5s, opacity 1s;
}

.bnav-item:nth-child(1) {
  transition-delay: 0s;
}
.bnav-item:nth-child(1):before {
  transition-delay: 0s;
}
.bnav-item:nth-child(2) {
  transition-delay: 0.05s;
}
.bnav-item:nth-child(2):before {
  transition-delay: 0.05s;
}
.bnav-item:nth-child(3) {
  transition-delay: 0.1s;
}
.bnav-item:nth-child(3):before {
  transition-delay: 0.1s;
}
.bnav-item:nth-child(4) {
  transition-delay: 0.15s;
}
.bnav-item:nth-child(4):before {
  transition-delay: 0.15s;
}
.bnav-item:nth-child(1) {
  letter-spacing: -8px;
}
.bnav-item:nth-child(2) {
  letter-spacing: -7px;
}
.bnav-item:nth-child(n+4) {
  letter-spacing: -8px;
  margin-top: -7px;
  opacity: 0;
}
.bnav-item:before {
  position: absolute;
  content: "";
  top: 50%;
  left: 0px;
  width: 100%;
  height: 2px;
  background: light-dark(var(--light-bg), var(--dark-bg);
  transform: translateY(-50%) scaleY(5);
  transition: 0.5s;
}
