/* Desktop */
#desktopmenu {
  padding-top: 20px;
  padding-bottom: 20px;
  background: repeating-linear-gradient(135deg, #131516, #131516 5px, rgba(0, 0, 0, 0.7) 5px, rgba(0, 0, 0, 0.7) 10px);
  box-shadow: 0 0 200px #131516 inset;
  /* background-color: #131516; */
  position: fixed;
  width: 100%;
  z-index: 5;
}

.desktopmenuinner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
}

.navbarlinks {
  display: flex;
  flex-wrap: nowrap;
  gap: 40px;
  padding-right: 32px;
}

.navbarparent {
  cursor: default;
}

.navbarnest {
  display: none;
  position: absolute;
  padding: 16px;
  transition: 0.5s;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid #6aaf08;
  box-shadow: 0 0 12px #333;
  list-style-type: disc;
}

.navbarparent:hover .navbarnest {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.navbarnest:hover {
	background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.9) 100%);
}

.navbarnest li {
  padding: 4px 0;
}

.navbarleft {
  padding-left: 30px;
}

.navbarleft a {
  font-size: 32px;
  font-weight: 700;
  line-height: 32px;
  transition: 0.25s;
  color: #6aaf08;
}

.navbarleft a:hover,
.navbarleft a:active {
  color: #ffffff;
}

.navbarright {
  padding-right: 30px;
}

.navbarright a {
  font-size: 20px;
  font-weight: 600;
  line-height: 20px;
  transition: 0.25s;
  color: #6aaf08;
}

.navbarright a:hover,
.navbarright a:active {
  color: #ffffff;
}

/* Mobile */
.page {
  display: none;
  width: 100%;
  font-weight: 600;
  letter-spacing: .03em;
  z-index: 5;
}

#nav-container {
  width: 100%;
  pointer-events: none;
}

.page header {
  display: flex;
  position: absolute;
  width: 100%;
  height: 70px;
  background: #212121;
  color: #6aaf08;
  justify-content: center;
  align-items: center;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  font-size: 25px;
  font-weight: 700;
  line-height: 32px;
  transition: 0.25s;
}

#nav-container .bg {
  position: absolute;
  top: 70px;
  left: 0;
  width: 100%;
  height: calc(100% - 70px);
  visibility: hidden;
  opacity: 0;
  transition: .5s;
  background: #000;
}

#nav-container:focus-within .bg {
  visibility: visible;
  opacity: .6;
}

#nav-container * {
  visibility: visible;
}

.button {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1;
  border: 0;
  background: transparent;
  border-radius: 0;
  height: 70px;
  width: 30px;
  cursor: pointer;
  pointer-events: auto;
  margin-left: 25px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.icon-bar {
  display: block;
  width: 100%;
  height: 3px;
  background: #a0a0a0;
  transition: .25s;
}

.icon-bar+.icon-bar {
  margin-top: 5px;
}

#nav-container:focus-within .button {
  pointer-events: none;
}

#nav-container:focus-within .icon-bar:nth-of-type(1) {
  transform: translate3d(0, 8px, 0) rotate(45deg);
}

#nav-container:focus-within .icon-bar:nth-of-type(2) {
  opacity: 0;
}

#nav-container:focus-within .icon-bar:nth-of-type(3) {
  transform: translate3d(0, -8px, 0) rotate(-45deg);
}

#nav-content {
  margin-top: 70px;
  padding: 20px;
  width: 90%;
  max-width: 250px;
  position: fixed;
  top: 0;
  left: 0;
  height: calc(100% - 70px);
  background: #e0e0e0;
  pointer-events: auto;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  transform: translateX(-100%);
  transition: transform .25s;
  will-change: transform;
  contain: paint;
  z-index: 5;
  box-shadow: 2px 2px 10px #333;
}

#nav-content ul {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#nav-content li a {
  padding: 10px 5px;
  display: block;
  text-transform: uppercase;
  transition: color .25s;
}

#nav-content li a:hover,
#nav-content li a:active {
  color: #ffffff;
}

#nav-content li:not(.small)+.small {
  margin-top: auto;
}


/* Nav Switch */
@media (max-width: 875px) {
  #desktopmenu {
    display: none;
  }

  .page {
    display: block;
    position: fixed;
  }
}