@import 'variables';

.pagination {
  margin-top: 50px;

  &__buttons {
    display: flex;
    align-items: center;
    justify-content: center;

    // @media (max-width: $phone-max-width) {
    //   flex-direction: column;
    // }

    a {
        text-decoration: none;
    }
  }
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border-radius: 8px;
  max-width: 40%;
  padding: 0;
  cursor: pointer;
  appearance: none;

  + .button {
      margin-left: 10px;
  }

  // @media (max-width: $phone-max-width) {
  //   max-width: 80%;
  // }

  a {
    display: flex;
    padding: 8px 16px;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }

  &__text {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }

  &.next .button__icon {
    margin-left: 8px;
  }

  &.previous .button__icon {
    margin-right: 8px;
  }
}
