@import "../../../styles/mixins.scss";

.main-nav,
.links,
.pages,
.login-registration {
  @include box-center;
}

.main-nav {
  width: 100%;
  height: 4rem;
  position: fixed;
  top: 0;
  left: 0;
  justify-content: space-between;
  gap: 2.5rem;
  background: $dark-blue;
  z-index: 20;
  .links {
    width: 100%;
    justify-content: space-between;
    a {
      font-size: 1.1rem;
    }
    * {
      color: #fff;
    }
    .pages {
      gap: 2.5rem;
    }
  }
  .login-registration {
    gap: 2.5rem;
    button {
      background: none;
      border: none;
      outline: none;
      font-size: 1.1rem;
      cursor: pointer;
      transition: all ease-in-out 0.15s;
      &:hover {
        transform: scale(1.05);
      }
      &:nth-child(1) {
        border: 2px solid $pink;
        padding: 0.2rem 1.2rem;
        border-radius: 0.5rem;
      }
    }
  }

  .hamburger-menu {
    @include box-center($direction: column, $justify: space-between);
    display: none;
    z-index: 100;
    height: 1rem;
    cursor: pointer;
    background: initial;
    padding: initial;
    &:hover,
    &:active {
      transform: initial;
    }
    .line {
      width: 1.8rem;
      height: 0.2rem;
      border-radius: 0.2rem;
      background-color: #fff;
    }
  }
}

@media screen and (max-width: 600px) {
  .main-nav {
    .hamburger-menu {
      display: flex;
    }
    .links {
      height: 15rem;
      position: absolute;
      top: -15rem;
      left: 0;
      background: $dark-blue;
      justify-content: center;
      flex-direction: column;
      gap: 1.5rem;
      transition: all ease-in-out 0.2s;
      .pages {
        gap: 1.5rem;
        flex-direction: column;
      }
      &.active {
        top: 0;
      }
    }
  }
}
