/* <- NAV STYLES -> 393a3a */
#burger {
  display: none;
}
#nav {
  width: 100vw;
  min-height: 3rem;
  height: 8vh;
  background: var(--nav-gradient);
  border-radius: 8px;
}
#nav-links {
  min-width: 18rem;
  width: 45%;
  min-height: inherit;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  position: relative;
}
#nav-links .nav-item {
  font-size: 0.9rem;
  opacity: 0.9;
  min-height: 8vh;
  height: inherit;
  min-width: 7rem;
  width: 100%;
}
#nav-links .nav-item:not(:last-child) {
  border-right: 1px solid black;
  display: flex;
  align-items: center;
  justify-content: center;
}
#nav-links .nav-item:last-child {
  display: none;
}
#nav-links .nav-item a {
  color: var(--text-color);
}
#nav-links .nav-item:hover:not(.dropdown, .active) {
  cursor: pointer;
  -webkit-animation-timing-function: linear;
  animation-timing-function: linear;
  animation: nav-bg-animation 1s;
  background: var(--nav-gradient-active);
}
#nav-links .nav-item:hover:not(.dropdown, .active) li {
  animation: text-anim 1s ease;
  color: var(--active-text-color);
  opacity: 0.75;
}
.dropdown {
  position: relative;
  z-index: 2;
}
.dropdown-a {
  cursor: default;
}
.dropdown .sub-menu {
  display: none;
  background: black;
  min-width: 10rem;
  width: 15vw;
  border-radius: 10px;
  position: absolute;
  bottom: -7.3rem;
}
.dropdown .sub-menu2 {
  bottom: -5rem;
  min-width: 13rem;
  width: 22vw;
}
.dropdown .sub-menu3 {
  min-width: 7rem;
}
.dropdown .sub-menu .sub-menu-item {
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.3rem;
}
.dropdown .sub-menu .sub-menu-item:first-child {
  border-radius: 10px;
}
.dropdown .sub-menu .sub-menu-item:last-child {
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 1opx;
}
.dropdown .sub-menu2 .sub-menu-item {
  height: 50%;
}
.dropdown .sub-menu .sub-menu-item:hover:not(.active) {
  -webkit-animation-timing-function: linear;
  animation-timing-function: linear;
  animation: nav-bg-animation 1s ease;
  background: var(--nav-gradient);
}
.dropdown .sub-menu .sub-menu-item:hover:not(.active) li {
  animation: text-anim 1s ease;
  color: var(--active-text-color);
  opacity: 0.7;
}
.dropdown:hover .sub-menu,
.hover-helper:hover .sub-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
}
#nav #nav-links .burger-item {
  display: none;
}
#nav #nav-links .item {
  display: flex;
}
.hover-helper {
  position: absolute;
  width: 10vw;
  height: 5vh;
  background: rgba(0, 0, 0, 0);
  bottom: -1.5rem;
}
.check-box {
  display: none;
}

/* Animations */

@keyframes nav-bg-animation {
  from {
    background: var(--nav-gradient);
  }
  to {
    background: var(--nav-gradient-active);
  }
}
@keyframes text-anim {
  from {
    opacity: 1;
    color: var(--text-color);
  }
  to {
    opacity: 0.75;
    color: var(--active-text-color);
  }
}

/* MEDIA QUERIES */

@media screen and (max-width: 740px) {
  body {
    overflow-x: hidden;
  }
  #nav-links {
    width: 100%;
    height: 73vh;
    position: absolute;
    top: 10.5rem;
    left: 100%;
    background: rgb(82, 82, 82);
    display: block;
    flex-direction: column;
    z-index: 101;
    transition: all 1s ease;
  }
  .active {
    background: inherit;
    font-weight: bold;
    text-decoration: underline;
    color: var(--active-text-color);
  }
  #nav-links .nav-item {
    border: none;
    font-size: 1.2rem;
  }
  #burger {
    position: absolute;
    right: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.2rem 0.3rem;
    z-index: 200;
  }
  #burger span {
    padding: 0.18rem 1.3rem;
    background: var(--text-color);
    margin: 0.2rem 0;
    transition: all 0.5s ease;
  }
  #nav #nav-links .dropdown {
    display: none;
  }
  #nav #nav-links .burger-item {
    display: flex;
    border: none;
    height: 2rem;
  }
  .check-box {
    display: block;
    position: absolute;
    right: 1rem;
    width: 3rem;
    height: 2.8rem;
    opacity: 0;
    cursor: pointer;
    z-index: 201;
  }
  .check-box:checked + #nav-links {
    transform: translate(-100%);
  }
  .check-box:checked ~ #burger span {
    background: white;
  }
  .check-box:checked ~ #burger span:nth-child(1) {
    transform: rotateZ(45deg) translateY(100%);
  }
  .check-box:checked ~ #burger span:nth-child(3) {
    transform: rotateZ(-45deg) translateY(-180%);
  }
  .check-box:checked ~ #burger span:nth-child(2) {
    display: none;
  }
}
