//Definitions
%button {
  font-weight: 400;
  border-radius: 1.5em;
  border: 2px solid $ma-color-primary;
  text-align: center;
  padding: 0.5em 0;
  font-size: 1em;
  width: 100%;
}

%link {
  text-decoration: underline;
  font-size: 1em;
  font-weight: 500;
  cursor: pointer;
}

.ma {
  //Elements
  &__primary-button {
    @extend %button;
    background-color: $ma-color-primary;
    color: white;

    &:hover {
      background-color: $ma-color-primary-400;
      border-color: $ma-color-primary-400;
      color: white;
    }

    &--upper {
      @extend .ma__primary-button;
      text-transform: uppercase;
    }

    &--bold {
      @extend .ma__primary-button;
      font-weight: 600;
    }
  }

  &__secondary-button {
    @extend %button;
    background-color: white;
    color: $ma-color-primary;

    &:hover {
      border-color: $ma-color-primary-400;
      color: $ma-color-primary-400;
    }

    &--upper {
      @extend .ma__secondary-button;
      text-transform: uppercase;
    }

    &--bold {
      @extend .ma__secondary-button;
      font-weight: 600;
    }
  }

  &__primary-link {
    color: $ma-color-primary;
    @extend %link;

    &:hover {
      color: $ma-color-primary-400;
    }

    &--light {
      @extend .ma__primary-link;
      font-weight: 400;
    }

    &--bold {
      @extend .ma__primary-link;
      font-weight: 600;
    }

    &--light-nonunderline {
      @extend .ma__primary-link;
      font-weight: 400;
      text-decoration: none;
    }

    &--bold-nonunderline {
      @extend .ma__primary-link;
      font-weight: 600;
      text-decoration: none;
    }
  }

  &__secondary-link {
    @extend %link;
    color: $ma-color-secondary;

    &:hover {
      color: $ma-color-secondary-400;
    }

    &--light {
      @extend .ma__secondary-link;
      font-weight: 400;
    }

    &--bold {
      @extend .ma__secondary-link;
      font-weight: 600;
    }
  }
}
