#new_top {
  .navbar-brand {
    padding: 0;
    height: auto;
    margin-top: 16px;

    span {
      width: 0;
      display: inline-block;
      text-indent: -99999px;
    }

    a {
      float: left;
      display: inline-block;

      img {
        height: 70px;
      }
    }
  }

  > ul {
    float: right;
    margin-top: 2.5rem;

    > li {
      float: left;
      padding: 0 1rem;
      position: relative;
      display: inline-block;

      &:not(:last-of-type):after {
        top: 50%;
        right: 0;
        width: 1px;
        content: "";
        height: 15px;
        position: absolute;
        background-color: #d3d3d3;
        transform: translateY(-50%);
      }

      > a {
        font-size: 0.9375rem;
        color: #363637;
        text-decoration: none;
      }
    }
  }

  .search {
    float: right;
    position: relative;
    margin-top: 2.25rem;

    form {
      position: relative;
      display: inline-block;

      label {
        display: none;
        font-size: 1.0625rem;
        color: #ffffff;
        margin-bottom: 1.5rem;
      }

      input {
        width: 350px;
        border: none;
        outline: none;
        padding-top: .5rem;
        padding-left: 4rem;
        padding-right: 4rem;
        padding-bottom: .5rem;
        box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);

        &::placeholder {
          opacity: 1;
          color: #c6c6c6;
        }
      }

      button {
        left: 1rem;
        padding: 0;
        width: 20px;
        height: 32px;
        border: none;
        margin-top: 3px;
        background: none;
        position: absolute;

        img {
          width: 20px;
          height: 20px;

          &.on-hover {
            display: none;
          }
        }

        &:hover {
          img {
            
            &.no-hover {
              display: none;
            }

            &.on-hover {
              display: inherit !important;
            }
          }
        }
      }
    }

    &:not(.open) {
      form {
        display: none;
      }

      .open-search {
        margin-top: 0rem;
      }

      .close-search {
        display: none;
      }
    }

    &.open {
      margin-left: 2rem;

      .open-search {
        display: none;
      }

      .on-hover {
        margin-top: 4px;
      }
    }

    .search__controls {
      button {
        vertical-align: super;
        margin-left: 10px;
        margin-top: -4px;
        background: none;
        border: none;
        height: 32px;
        width: 20px;
        padding: 0;

        img {
          width: 20px;
          height: 20px;

          &.on-hover {
            display: none;
          }
        }

        &:hover {
          img {
            
            &.no-hover {
              display: none;
            }

            &.on-hover {
              display: inherit !important;
            }
          }
        }

        &.close-search {
          top: 0.75rem;
          right: 1rem;
          position: absolute;
        }
      }
    }
  }
}

@media (max-width: $screen-md-max) {
  #new_top {
    .search {
      margin-right: 6rem;

      &.open {
        top: 0;
        left: 0;
        right: 0;
        margin: 0;
        z-index: 3;
        height: 200px;
        position: absolute;
        background: $blue-light;

        form {
          left: 3rem;
          right: 3rem;
          bottom: 5rem;
          position: absolute;

          input {
            width: 100%;
            padding-left: 2rem;
          }

          button {
            right: 1rem;
            left: unset;
          }

          label {
            display: inherit;
          }
        }

        .close-search {
          top: 5rem !important;
          right: 3rem !important;

          img {
            width: 40px;
            height: 40px;
          }
        }
      }
    }

    .top-menu {
      display: none;
    }

    .navbar-toggle {
      top: 2rem;
      right: 0rem;
      position: absolute;

      .icon-bar {
        background-color: $blue;
      }
    }

    .navbar-toggle.open {
      top: 3rem;
      margin: 0;
      right: 2rem;
      z-index: 101;
      position: fixed;

      .icon-bar {
        background: $blue;
        transform: rotate(45deg);

        &:first-of-type {
          transform: rotate(45deg);
        }

        &:nth-child(2) {
          display: none;
        }

        &:last-of-type {
          margin-top: -2px;
          transform: rotate(-45deg);
        }
      }
    }
  }
}
