.menu-horizontal {
  flex-direction: row;
  box-sizing: border-box;
  display: flex;
  margin: 0 auto;
  width: 100%;
  max-width: 960px;
  align-items: center;
  white-space: nowrap;
  height: 64px;

  & .menu-heading {
    color: white;
    font-weight: 500;
    font-size: 20px;
    letter-spacing: 0.0125em;
    text-transform: lowercase;
    line-height: 32px;
    margin: 0;
    padding: 0.5em 1em;
    display: inline-block;
    vertical-align: middle;
  }

  & .divider-header {
    flex: 1 1 0%;
    box-sizing: border-box;
  }

  & .menu-list {
    list-style: none;
    margin: 0;
    padding: 0;

    & .menu-item {
      display: inline-block;
      vertical-align: middle;
      padding: 0;
      margin: 0;
      height: 100%;
      position: relative;
    }

    & .menu-selected {
      color: white;

      md-icon {
        color: white;

        & .custom-icon {
          color: #ffffff;
        }
      }
    }
  }
}

.tab-link-container {
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  flex-grow: 1;
  position: -webkit-sticky; /* For Safari */
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 0 solid transparent;

  & .tab-link-content {
    display: flex;
    flex-grow: 1;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;

    & .tab-link {
      color: #ffffff;
      opacity: 0.6;
      font-size: 14px;
      font-weight: 500;
      margin: 0 16px;
      padding: 0;
      text-decoration: none;
      transition: all 0.2s ease-out;
      height: 48px;
      line-height: 36px;
      display: flex;
      flex: 1 0 auto;
      justify-content: center;
      box-sizing: border-box;
      border: none;
      outline: none;
      text-align: center;
      white-space: nowrap;
      cursor: pointer;
      z-index: 1;

      &.active {
        opacity: 1;

        & .tab-indicator .underline {
          border-color: #ffffff;
          border-radius: 3px 3px 0 0;
          border-top-width: 3px;
          transition-duration: 0.5s;
          align-self: flex-end;
          box-sizing: border-box;
          width: 100%;
          border-top-style: solid;
        }
      }

      &:hover {
        opacity: 1;
      }

      & .tab-content {
        display: flex;
        align-items: center;
        justify-content: center;
        height: inherit;
        position: relative;
        pointer-events: auto;

        & .text-label {
          color: #ffffff;
          display: inline-flex;
          align-items: center;
          transition: 150ms color linear 100ms;
          line-height: 1;
          z-index: 2;

          & md-icon {
            margin-right: 8px;
          }
        }
      }

      & .tab-indicator {
        display: flex;
        position: absolute;
        top: 0;
        left: 0;
        justify-content: center;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 1;
      }
    }
  }

  & .scroll-up-button {
    display: none;
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 1001; /* Ensure it appears above other elements */
    color: white;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    cursor: pointer;
    transition: background-color 0.2s ease-out;

    &.show {
      display: flex !important;
    }

    & md-icon {
      color: white;
    }
  }
}
