//
// Buttons
// --------------------------------------------------


// Base styles
// --------------------------------------------------

.btn {
  display: inline-block;
  margin-bottom: 0; // For input.btn
  font-weight: @btn-font-weight;
  text-align: center;
  vertical-align: middle;
  touch-action: manipulation;
  cursor: pointer;
  background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
  border: 1px solid transparent;
  white-space: nowrap;
  .button-size(@padding-base-vertical; @padding-base-horizontal; @font-size-base; @line-height-base; @border-radius-base);
  .user-select(none);

  &,
  &:active,
  &.active {
    &:focus,
    &.focus {
      .tab-focus();
    }
  }

  &:hover,
  &:focus,
  &.focus {
    color: @btn-default-color;
    text-decoration: none;
  }

  &:active,
  &.active {
    outline: 0;
    background-image: none;
    .box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
  }

  &.disabled,
  &[disabled],
  fieldset[disabled] & {
    cursor: @cursor-disabled;
    pointer-events: none; // Future-proof disabling of clicks
    .opacity(.65);
    .box-shadow(none);
  }
}


// Alternate buttons
// --------------------------------------------------

.btn-default {
  .button-variant(@btn-default-color; @btn-default-bg; @btn-default-border);
}
.btn-primary {
  .button-variant(@btn-primary-color; @btn-primary-bg; @btn-primary-border);
}
// Success appears as green
.btn-success {
  .button-variant(@btn-success-color; @btn-success-bg; @btn-success-border);
}
// Info appears as blue-green
.btn-info {
  .button-variant(@btn-info-color; @btn-info-bg; @btn-info-border);
}
// Warning appears as orange
.btn-warning {
  .button-variant(@btn-warning-color; @btn-warning-bg; @btn-warning-border);
}
// Danger and error appear as red
.btn-danger {
  .button-variant(@btn-danger-color; @btn-danger-bg; @btn-danger-border);
}


// Link buttons
// -------------------------

// Make a button look and behave like a link
.btn-link {
  color: @link-color;
  font-weight: normal;
  border-radius: 0;

  &,
  &:active,
  &.active,
  &[disabled],
  fieldset[disabled] & {
    background-color: transparent;
    .box-shadow(none);
  }
  &,
  &:hover,
  &:focus,
  &:active {
    border-color: transparent;
  }
  &:hover,
  &:focus {
    color: @link-hover-color;
    text-decoration: underline;
    background-color: transparent;
  }
  &[disabled],
  fieldset[disabled] & {
    &:hover,
    &:focus {
      color: @btn-link-disabled-color;
      text-decoration: none;
    }
  }
}


// Button Sizes
// --------------------------------------------------

.btn-lg {
  // line-height: ensure even-numbered height of button next to large input
  .button-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @border-radius-large);
}
.btn-sm {
  // line-height: ensure proper height of button next to small input
  .button-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @border-radius-small);
}
.btn-xs {
  .button-size(@padding-xs-vertical; @padding-xs-horizontal; @font-size-small; @line-height-small; @border-radius-small);
}


// Block button
// --------------------------------------------------

.btn-block {
  display: block;
  width: 100%;
}

// Vertically space out multiple block buttons
.btn-block + .btn-block {
  margin-top: 5px;
}

// Specificity overrides
input[type="submit"],
input[type="reset"],
input[type="button"] {
  &.btn-block {
    width: 100%;
  }
}



/***********************************************************************************************************************************/



















//
// Buttons
// --------------------------------------------------


// Base styles
// --------------------------------------------------

.btn {
  display: inline-block;
  margin-bottom: 0; // For input.btn
  font-weight: @btn-font-weight;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
  border: 1px solid transparent;
  white-space: nowrap;
  .button-size(@padding-base-vertical; @padding-base-horizontal; @font-size-base; @line-height-base; @border-radius-base);
  .user-select(none);

  &,
  &:active,
  &.active {
    &:focus {
      .tab-focus();
    }
  }

  &:hover,
  &:focus {
    color: @btn-default-color;
    text-decoration: none;
  }

  &:active,
  &.active {
    outline: 0;
    background-image: none;
    .box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
  }

  &.disabled,
  &[disabled],
  fieldset[disabled] & {
    cursor: not-allowed;
    pointer-events: none; // Future-proof disabling of clicks
    .opacity(.65);
    .box-shadow(none);
  }
}


// Alternate buttons
// --------------------------------------------------

.btn-default {
  .button-variant(@btn-default-color; @btn-default-bg; @btn-default-border);
}
.btn-primary {
  .button-variant(@btn-primary-color; @btn-primary-bg; @btn-primary-border);
}
// Success appears as green
.btn-success {
  .button-variant(@btn-success-color; @btn-success-bg; @btn-success-border);
}
// Info appears as blue-green
.btn-info {
  .button-variant(@btn-info-color; @btn-info-bg; @btn-info-border);
}
// Warning appears as orange
.btn-warning {
  .button-variant(@btn-warning-color; @btn-warning-bg; @btn-warning-border);
}
// Danger and error appear as red
.btn-danger {
  .button-variant(@btn-danger-color; @btn-danger-bg; @btn-danger-border);
}


// Link buttons
// -------------------------

// Make a button look and behave like a link
.btn-link {
  color: @link-color;
  font-weight: normal;
  cursor: pointer;
  border-radius: 0;

  &,
  &:active,
  &[disabled],
  fieldset[disabled] & {
    background-color: transparent;
    .box-shadow(none);
  }
  &,
  &:hover,
  &:focus,
  &:active {
    border-color: transparent;
  }
  &:hover,
  &:focus {
    color: @link-hover-color;
    text-decoration: underline;
    background-color: transparent;
  }
  &[disabled],
  fieldset[disabled] & {
    &:hover,
    &:focus {
      color: @btn-link-disabled-color;
      text-decoration: none;
    }
  }
}


// Button Sizes
// --------------------------------------------------

.btn-lg {
  // line-height: ensure even-numbered height of button next to large input
  .button-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @border-radius-large);
}
.btn-sm {
  // line-height: ensure proper height of button next to small input
  .button-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @border-radius-small);
}
.btn-xs {
  .button-size(@padding-xs-vertical; @padding-xs-horizontal; @font-size-small; @line-height-small; @border-radius-small);
}


// Block button
// --------------------------------------------------

.btn-block {
  display: block;
  width: 100%;
}

// Vertically space out multiple block buttons
.btn-block + .btn-block {
  margin-top: 5px;
}

// Specificity overrides
input[type="submit"],
input[type="reset"],
input[type="button"] {
  &.btn-block {
    width: 100%;
  }
}


/*Buttons 2nd*/
.btn {
  border-color: #CCCCCC;
  border-radius: 0;
  -webkit-border-radius: 0;
  outline: none;
  margin-bottom: 5px !important;
  margin-left: 4px;
  font-size: 13px;
  padding: 7px 11px;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.12), 1px 1px 0 rgba(255, 255, 255, 0.2) inset;
}
.btn-default,
.btn-default:focus {
  background-color: #FFFFFF;
  border-color: #CCCCCC;
  color: #333333;
  background-image: linear-gradient(to bottom, #ffffff 60%, #f9f9f9 100%);
}
.btn-default i {
  color: #444;
}
.btn-primary,
.btn-primary:focus {
  background-color: @btn-primary-bg;
  border-color: @btn-primary-border;
  color: @btn-primary-color;
}
.btn-primary:hover,
.btn-primary:active,
.btn-primary.active,
.open .dropdown-toggle.btn-primary {
  background-color: @btn-primary-hover;
  border-color: @btn-primary-border;
}
.btn-primary:active {
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.125) inset;
}
.btn-success,
.btn-success:focus {
  background-color: #60C060;
  border-color: #54A754;
}
.btn-success:hover,
.btn-success:active,
.btn-success.active,
.open .dropdown-toggle.btn-success {
  background-color: #65ca65;
  border-color: #54A754;
}
.btn-info,
.btn-info:focus {
  background-color: @btn-info-hover;
  border-color: @btn-info-border;
  color: @btn-info-color;
}
.btn-info:hover,
.btn-info:active,
.btn-info.active,
.open .dropdown-toggle.btn-info {
  background-color: @btn-info-hover;
  border-color: @btn-info-border;
}
.btn-warning,
.btn-warning:focus {
  background-color: #FF9900;
  border-color: #E38800;
}
.btn-warning:hover,
.btn-warning:active,
.btn-warning.active,
.open .dropdown-toggle.btn-warning {
  background-color: #ffa800;
}
.btn-danger,
.btn-danger:focus {
  background-color: #DF4B33;
  border-color: #CA452E;
}
.btn-danger:hover,
.btn-danger:active,
.btn-danger.active,
.open .dropdown-toggle.btn-danger {
  background-color: #e64d35;
}
.btn-rad {
  border-radius: 2px;
  -webkit-border-radius: 2px;
}
.btn i {
  font-size: 14px;
  margin-right: 2px;
  display: inline-block;
  min-width: 10px;
}
.btn-group-vertical {
  margin: 3px 3px;
}
/*Specific icons size*/
.btn-lg {
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 300;
}
.btn-lg i {
  font-size: 18px;
}
.btn-sm {
  padding: 4px 7px;
  font-size: 12px;
}
.btn-sm i {
  font-size: 14px;
}
.btn-xs {
  padding: 2px 6px;
  font-size: 11px;
}
.btn-xs i {
  font-size: 12px;
}
.btn-shadow {
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.12);
}
.btn-shadow.btn-success {
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}
.btn-shadow.btn-primary {
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}
.btn-shadow.btn-warning {
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}
.btn-shadow.btn-danger {
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}
.btn-shadow.btn-info {
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}
.btn-flat,
.btn-flat:focus {
  box-shadow: none;
}
.btn-flat.btn-default {
  background: #fff;
}
.btn-flat:active.btn-default,
.btn-flat.btn-default.active,
.btn-flat.open .dropdown-toggle.btn-default {
  background: #f5f5f5;
}
.btn-flat:active.btn-primary,
.btn-flat.btn-primary.active,
.btn-flat.open .dropdown-toggle.btn-primary {
  background: #4785ea;
}
.btn-flat:active.btn-success,
.btn-flat.btn-success.active,
.btn-flat.open .dropdown-toggle.btn-success {
  background: #5db95d;
}
.btn-flat:active.btn-info,
.btn-flat.btn-info.active,
.btn-flat.open .dropdown-toggle.btn-info {
  background: #56b7d3;
}
.btn-flat:active.btn-warning,
.btn-flat.btn-warning.active,
.btn-flat.open .dropdown-toggle.btn-warning {
  background: #ff9600;
}
.btn-flat:active.btn-danger,
.btn-flat.btn-danger.active,
.btn-flat.open .dropdown-toggle.btn-danger {
  background: #d04630;
}
.btn-group-vertical > .btn {
  margin-bottom: 0 !important;
}
.btn-group-vertical > .btn:first-child {
  margin-left: 0;
  border-radius: 0 !important;
  -webkit-border-radius: 0 !important;
}
.btn-group-vertical > .btn:last-child {
  border-radius: 0 !important;
  -webkit-border-radius: 0 !important;
}
/*Social buttons*/
.btn-facebook i {
  color: #3b5998;
}
.btn-twitter i {
  color: #00aced;
}
.btn-google-plus i {
  color: #dd4b39;
}
.btn-dribbble i {
  color: #ea4c89;
}
.btn-linkedin i {
  color: #0e76a8;
}
.btn-youtube i {
  color: #c4302b;
}
.btn-pinterest i {
  color: #c8232c;
}
.btn-tumblr i {
  color: #34526f;
}
.btn-flickr i {
  color: #ff0084;
}
.btn-facebook.bg {
  background: #3b5998;
  color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.btn-twitter.bg {
  background: #00aced;
  color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.btn-google-plus.bg {
  background: #dd4b39;
  color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.btn-dribbble.bg {
  background: #ea4c89;
  color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.btn-linkedin.bg {
  background: #0e76a8;
  color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.btn-youtube.bg {
  background: #c4302b;
  color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.btn-pinterest.bg {
  background: #c8232c;
  color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.btn-tumblr.bg {
  background: #34526f;
  color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.btn-flickr.bg {
  background: #0063dc;
  color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.btn-github.bg {
  background: #333;
  color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.btn.bg i {
  color: #FFF;
}
.btn:focus {
  outline: none;
}
.btn-group.btn-blurbg {
  background: url("../images/blur_bg.png") no-repeat;
  padding: 40px;
  margin-bottom: 20px;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
}
.btn.btn-transparent {
  border-top: 1px solid #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  border-left: 1px solid rgba(255, 255, 255, 0.4);
  border-right: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}
.btn.btn-transparent:hover {
  background: rgba(255, 255, 255, 0.32);
}

.btn-group .dropdown-menu {
  border-radius: 1px;
}
