///
/// Phantom by HTML5 UP
/// html5up.net | @ajlkn
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
///

/* Button */

input[type="submit"],
input[type="reset"],
input[type="button"],
button,
.button {
  @include vendor("appearance", "none");
  @include vendor(
    "transition",
    (
      "background-color #{_duration(transition)} ease-in-out",
      "color #{_duration(transition)} ease-in-out",
      "box-shadow #{_duration(transition)} ease-in-out"
    )
  );
  background-color: _color(purple-color);
  border: 0;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-size: 0.8em;
  height: 3em;
  line-height: 3em;
  overflow: hidden;
  padding: 0 2em;
  text-align: center;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: _font(family);
  margin: 30px 0;
  text-transform: uppercase;
  font-weight: _font(weight-bold);
  letter-spacing: _font(letter-spacing);

  text-transform: none;
  letter-spacing: normal;
  font-family: "Open Sans";
  -webkit-appearance: none;

  &.icon {
    &:before {
      margin-right: 0.5em;
    }
  }

  &.fit {
    display: block;
    margin: 0 0 (_size(element-margin) * 0.5) 0;
    width: 100%;
  }

  &:hover {
    background-color: _color(green-color);
    color: #fff;
  }

  &:active {
    background-color: transparentize(_palette(accent1), 0.9);
  }

  &.small {
    font-size: 0.6em;
  }

  &.big {
    font-size: 1em;
  }

  &.special {
    box-shadow: none;
    background-color: _palette(fg);
    color: _palette(bg) !important;

    &:hover {
      background-color: _palette(accent1);
    }

    &:active {
      background-color: darken(_palette(accent1), 8);
    }
  }

  &.disabled,
  &:disabled {
    @include vendor("pointer-events", "none");
    opacity: 0.25;
  }
}

.button-transparent {
  color: _color(purple-color);
  background-color: #ffffff;
  border: 2px solid _color(purple-color);
  &:hover {
    border: 2px solid _color(green-color);
  }
}
