body {
  font-family: var(--font-helvetica-neue);
}

.navbar {
  li {
    list-style: none;
  }

  .navbar-brand {
    img {
      height: 46px;
    }
  }

  .hamburger-icon {
    width: 40px;
    height: 40px;
  }

  .menu {
    ul {
      margin: 0;
    }

    .menu-item {
      text-transform: uppercase;
      font-weight: 500;
      text-align: left;

      a {
        color: white;
        font-family: var(--font-helvetica-neue);
        font-size: 16px;
        font-style: normal;
        font-weight: 500;
        line-height: 26px;
        letter-spacing: 3px;
        margin-left: 20px;
        display: block;

        &:hover {
          color: white;
        }
      }
    }
  }

  &.opened {
    .menu-item-last {
      height: 100vh;
      display: block;
    }
  }
}

.navbar-onsite {
  li {
    list-style: none;
  }
}

div.custom-menu-class {
  ul {
    margin: 0;
  }

  li {
    display: inline-block;

    &:last-child {
      a {
        border: 2px solid #3332ff;
        background: #3332ff;
        border-color: #3332ff;
        padding: 10px 30px;
        height: 3rem;
        border-radius: 64px;
        display: inline-flex;
        align-items: center;
        font-weight: 700;

        &:hover {
          background: rgba(0, 111, 234, 0);
          border-color: #3332ff !important;
          opacity: 1;
          color: white;
        }
      }
    }

    a {
      color: white;
      text-decoration: none;
      font-size: 16px;
      font-weight: 500;
      line-height: 26px;
      letter-spacing: 3px;
      margin-left: 20px;
      display: block;
    }
  }
}

div.custom-menu-toggle {
  ul {
    li {
      &:last-child {
        a {
          border: 2px solid #3332ff;
          background: #3332ff;
          border-color: #3332ff;
          padding: 10px 30px;
          height: 3rem;
          border-radius: 64px;
          display: inline-flex;
          align-items: center;
          font-weight: 700;

          &:hover {
            background: rgba(0, 111, 234, 0);
            border-color: #3332ff !important;
            opacity: 1;
            color: white;
          }
        }
      }
    }
  }
}

/* Desktop: menu always visible */
@media (min-width: 992px) {
  .navbar {
    .menu {
      display: block !important;
      max-height: none !important;
      opacity: 1 !important;
      visibility: visible !important;
    }
  }
}

@media (max-width: 991px) {
  .navbar {
    &.opened {
      .menu {
        padding-top: 2.25rem;
        background: rgba(0, 0, 0) !important;
        margin-top: 10px;
        max-height: 1000px;
        opacity: 1;
        visibility: visible;
        transition: max-height 0.3s ease, opacity 0.3s ease,
          visibility 0.3s ease;
        padding: 0;
        display: flex;
        align-items: center;
      }
    }

    &.closed {
      .menu {
        max-height: 0;
        opacity: 0;
        visibility: hidden;
      }
    }

    .menu {
      width: 100%;
      overflow: hidden;
      flex-direction: column;
      text-align: center;
      max-height: 0;
      opacity: 0;
      visibility: hidden;
      transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;

      .menu-item {
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 40px;

        &:first-child {
          margin-top: 20px;
        }

        &:last-child {
          margin-bottom: 20px;
          margin-top: 40px;
        }

        a {
          margin: 0;
          text-decoration: none;
        }
      }
    }

    .ml-auto {
      margin-left: 0 !important;
      width: 100%;
    }

    .navbar-toggler {
      line-height: 2.875rem;
      height: auto;
      padding: 0;
    }

    .hamburger-box {
      top: 3px;
      margin-left: 5px;
    }

    .navbar-brand {
      img {
        width: 190px;
        height: 35px !important;
      }
    }
  }

  .nav-container {
    flex-wrap: wrap;
  }

  .ham-menu {
    margin-top: 20px;
    margin-bottom: 20px;
    display: block;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;

    img {
      width: 100%;
      height: 100%;
    }
  }
}
