@import "template.scss";

.nav {
  display: flex;
  gap: 20px;
  color: $base-color;
  padding: 15px 45px;
  background: rgba(245, 245, 245, 0.65);
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 1;
  backdrop-filter: blur(8px);
  font-size: 18px;
  align-items: baseline;
}

.navMobile {
  display: none;
}

.itemsLeft {
  display: flex;
  gap: 30px;
  flex-grow: 1;
}

.menuLink {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 100ms ease-in;
  cursor: pointer;
}

.menuLink:hover {
  opacity: 0.7;
}

.itemsRight {
  display: flex;
  gap: 20px;
  align-items: baseline;
}

.button {
  padding: 10px;
  border-radius: 10px;
  border: none;
  color: inherit;
  text-decoration: none;
  background-color: #eeeeee;
  transition: background-color 0.1s ease-in-out;
  font-family: inherit;
  font-weight: 600;
}

.button:hover {
  background-color: #fff318;
  cursor: pointer;
}

.megaMenu {
  position: fixed;
  top: 62px;
  left: 0;
  width: 100%;
  z-index: 8;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}

.megaMenuActive {
  max-height: 1000px;
}

@media screen and (max-width: 800px) {
  .nav {
    flex-direction: column;
    padding: 15px 15px;
    align-items: inherit;
  }

  .megaMenu {
    position: inherit;
  }

  .navMobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .itemsLeft {
    padding-bottom: 15px;
    border-bottom: 1px solid #d0d0d0;
  }

  .itemsLeft, .itemsRight {
    gap: 10px;
    flex-direction: column;
  }

  .hide {
    display: none;
  }

  .full {
    height: 100vh;
    overflow: scroll;
  }
}
