.searchButton,
.historyButton {
  transition: opacity 0.5s;
  cursor: pointer;
  border: none;
  outline: none;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;

  svg {
    width: 30px;
    height: 30px;
  }

  &-open {
    background: rgba(0, 0, 0, 0.9);
    z-index: 200;
    border-radius: $global-border-radius;
    padding: 5px;

    &:hover {
      background-color: rgba(0, 0, 0, 0.4);
    }

    svg {
      width: 20px;
      height: 20px;
    }
  }

  &-close {
    font-size: 2em;
    position: absolute;
    top: 15px;
    right: 20px;
    display: none;
    width: 30px;
    height: 30px;
    font-size: 32px !important;
    background: transparent;

    @include search-transition;
  }
}

.historyButton {
  div {
    pointer-events: none;
  }

  i {
    display: block;
    width: 22px;
    height: 3px;
    background-color: $white;
    margin: 5px 0;
    transition: 0.4s;
  }

  &.transform .bar1 {
    transform: rotate(-45deg) translate(-6px, 6px);
  }

  &.transform .bar2 {
    opacity: 0;
  }

  &.transform .bar3 {
    transform: rotate(45deg) translate(-5px, -6px);
  }
}

.historyButton-open {
  padding: 0;
}
