@import "~Breakpoints";
@import "~Colors";
@import "~FontSize";
@import "~Type";
@import "~Zindex";

%button {
  z-index: $zindex-dropdown;
  cursor: pointer;
  padding: 1rem 2rem;
  @include media-breakpoint-up(md) {
    padding: 1.1rem 3rem;
  }
  text-transform: capitalize;
  font-weight: 200;
  letter-spacing: .1rem;
  transition: all .5s ease;
  border-radius: 0;

  a {
    text-transform: uppercase;
    color: inherit;
  }
  &:active a, &:active a, &:hover a {
    text-decoration: none;
    color: inherit;
  }
  display: inline-block;
  text-align: center;
  width: auto;
  text-decoration: none;
  border: none;

  margin-top: 1rem;
  margin-bottom: 1rem;
  line-height: 1.5;
  font-family: $font-family-base;
  @include fontSizer(1.8, 1.4);
}

.primary {
  @extend %button;
  background: $brand-primary;
  color: white;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
  &:hover, &:active, &:focus {
    background-color: white;
    color: $brand-primary;
  }
}

.secondary {
  @extend %button;
  color: $brand-primary;
  background-color: white;

  &:hover, &:active, &:focus {
    color: white;
    background-color: $brand-primary;
  }
}