/*=====================
  4.2  Nav CSS start
=======================*/
.navbar-menu {
  position: fixed;
  width: 100%;
  max-width: 600px;
  bottom: 0;
  left: 50%;
  padding: 15px 30px;
  transform: translateX(-50%);
  border: 1px solid rgba(var(--line-color), 1);
  border-radius: 20px 20px 0px 0px;
  box-shadow: 0px 4px 22px 0px rgba(23, 28, 38, 0.12);
  background-color: rgba(var(--white), 1);
  z-index: 2;

  @media (max-width: 600px) {
    padding: 15px calc(20px + (30 - 20) * ((100vw - 320px) / (600 - 320)));
    width: 100%;
  }

  ul {
    display: flex;
    align-items: center;
    justify-content: space-between;

    li {
      position: relative;
      color: rgba(var(--content-color), 1);
      text-align: center;

      a {
        color: rgba(var(--content-color), 1);

        .icon {
          width: 20px;
          font-size: 26px;
          margin-inline: auto;
          display: flex;
          justify-content: center;

          .active {
            display: none;
          }

          .unactive {
            display: block;
          }
        }

        span {
          font-size: 14px;
          font-weight: 500;
          color: rgba(var(--content-color), 1);
        }
      }

      &.active {
        &::after {
          content: "";
          position: absolute;
          bottom: -20px;
          left: 50%;
          width: 60px;
          height: 8px;
          background: rgba(var(--theme-color), 1);
          transform: translate(-50%, -50%);
          border-radius: 10px 10px 0 0;

          @media (max-width: 600px) {
            width: calc(40px + (60 - 40) * ((100vw - 320px) / (600 - 320)));
          }
        }

        .icon {
          color: rgba(var(--title-color), 1);
          display: flex;
          justify-content: center;

          .active {
            display: block;
          }

          .unactive {
            display: none;
          }
        }

        span {
          color: rgba(var(--theme-color), 1);
          font-weight: 500;
        }
      }
    }
  }
}