@import '../../scss/colors';
@import '../../scss/typography';

.menu {
  display: flex;
  list-style: none;
  width: 100%;
  padding: 0;
  justify-content: flex-start;
  background-color: $ui-1;
  ul {
    white-space: nowrap;
  }
  li {
    margin:-1px -1px 0 0;
    &:hover > ul {
      opacity: 1;
      display: inline-flex;
      flex-direction: column;
      z-index: 9999;
    };
    &:not(:first-of-type) button {
      border-left: 1px solid $ui-3;
    }
    & > ul {
      display: none;
      opacity: 0;
      -webkit-transiton: opacity 0.3s;
      -moz-transition: opacity 0.3s;
      -ms-transition: opacity 0.3s;
      -o-transition: opacity 0.3s;
      transition: opacity 0.3s;
      position: absolute;
      background-color: transparent;
      & > li {
        button {
          border-right: 1px solid $ui-3;
          text-align: unset;
          padding: 0 10px;
          &:last-of-type {
            border-bottom: 1px solid $ui-3;
          }
        }
      }
    }
    button {
      display:block;
      text-decoration:none;
      @include font-size('11');
      text-align: center;
      @include font-family;
      color: $ui-6;
      background-color: $ui-1;
      width:110px;
      height: 22px;
      line-height: 22px;
      border: none;
      &:hover {
        background-color: $blue-02;
        text-decoration: none;
      }
      &:active, &:focus {
          background-color: $blue-01;
          color: $white;
          outline: 0;
          -webkit-box-shadow: none;
                  box-shadow: none;
      }
    }
  }
}

@media all and (max-width: 600px) {
  .menu {
    flex-wrap: wrap;
    & > li {
      flex-basis: 50%;
    }
  }
}

@media all and (max-width: 400px) {
  .menu > li {
      flex-basis: 100%;
  }
}

