// Core variables and mixins
@import "_variables.less";
// Custom for this template
@import "bootstrap_addons/_mixins.less";
//
// Typography
// --------------------------------------------------

// ====== Variables ======

//Link
@linkColor: @globalColor;

//headings
@headingsFontFamily: inherit;
@headingsFontWeight: normal;

p{
  padding-bottom: @baseLineHeight;
}
.lead {
  margin-bottom: @baseLineHeight;
  font-size: @baseFontSize * 1.5;
  line-height: @baseLineHeight * 1.5;
}

a {
  .transition(.5s all ease);
  color: @linkColor;
  &:focus {
    outline: none;
  }
  &:hover,
  &:focus {
    text-decoration: none;
    color: @linkColorHover;
  }
}

b {
  font-size: @fontSizeLarge;
  color: @globalColor;
}

// Headings
// -------------------------

h1,
h2,
h3,
h4,
h5,
h6 {
  color: @headingsColor;
  font-family: @headingsFontFamily;
  font-weight: @headingsFontWeight;
  position: relative;
  margin-top: 0;
  text-transform: uppercase;
  text-rendering: optimizelegibility; // Fix the character spacing for headings
  a {
    color: inherit;
    &:hover {
      color: @globalColor;
    }
  }
  &.heading-style-1 {
    font-size: 46px;
    font-weight: 300;
    line-height: 56px;
    margin-bottom: 20px;
  }
  &.heading-style-2 {
    font-size: 40px;
    font-weight: 300;
    line-height: 50px;
    margin-bottom: 20px;
  }
  &.heading-style-3 {
    font-size: 30px;
    line-height: 40px;
    margin-bottom: 20px;
  }
  &.heading-style-4 {
    font-size: 30px;
    font-weight: 900;
    line-height: 40px;
    margin-bottom: 20px;
  }
  &.heading-style-5 {
    font-size: 24px;
    line-height: 36px;
    margin-bottom: 17px;
    text-transform: none;
  }
  &.heading-style-6 {
    font-size: 20px;
    line-height: 30px;
    margin-bottom: 13px;
  }
  &.left {
    text-align: left;
  }
}

// MISC
// ----

// Horizontal rules
hr {
  margin: @baseLineHeight 0;
  border: none;
  border-top: 1px solid @hrBorder;
}

// Blockquotes
blockquote{
  background: #f4f4f4;
  .box-shadow(1px 1px 0px rgba(0, 0, 0, 0.14));
  .border-radius(2px);
  margin: 0 0 42px;
  padding: 46px 36px 48px;
  position: relative;
  z-index: 1;
  &:after{
    content: ''; 
    position: absolute;
    top: 100%;
    left: 0;
    width: 30px;
    height: 30px;
    background: #f4f4f4; 
    .box-shadow(1px 1px 1px rgba(0, 0, 0, 0.14));
    transform: translate(35px, -20px) skewY(-45deg) rotate(1deg);
    clip: 0, 50px, 100px, auto;
    z-index: -2;
  }  
  &:before{
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f4f4f4;
    z-index: -1;
    .border-radius(2px);  
  }
  p {
    padding-bottom: 0;
  }
  *[class*=material-design] {
    color: @globalColor;
    float: left;
    font-size: 60px;
    line-height: 68px;
    margin-bottom: -4px;
    margin-left: -8px;
    margin-right: 5px;
  }  
}

.item_introtext,
.item_fulltext,
.category_desc {
  p a {
    text-decoration: underline;
  }
  mark {
    color: @white;
    padding: 0px 4px;
    background: @globalColor;
  }
}

// Emphasis & misc
// -------------------------

// Ex: 14px base font * 85% = about 12px
small { font-size: 85%; }

strong { font-weight: bold; }

em { font-style: italic; }

cite { font-style: normal; }

// Utility classes
.muted { color: @grayLight; }

a.muted:hover,
a.muted:focus { color: darken(@grayLight, 10%); }

.text-warning { color: @warningText; }

a.text-warning:hover,
a.text-warning:focus { color: darken(@warningText, 10%); }

.text-error { color: @errorText; }

a.text-error:hover,
a.text-error:focus { color: darken(@errorText, 10%); }

.text-info { color: @infoText; }

a.text-info:hover,
a.text-info:focus { color: darken(@infoText, 10%); }

.text-success { color: @successText; }

a.text-success:hover,
a.text-success:focus { color: darken(@successText, 10%); }

.text-left { text-align: left; }

.text-right { text-align: right; }

.text-center { text-align: center; }

// Quotes
q:before,
q:after {
  content: "";
}

// Addresses
address {
  display: block;
  margin-bottom: @baseLineHeight;
  font-style: normal;
  line-height: @baseLineHeight;
}

// Abbreviations and acronyms
abbr[title],
  // Added data-* attribute to help out our tooltip plugin, per https://github.com/twitter/bootstrap/issues/5257
  abbr[data-original-title] {
    cursor: help;
    border-bottom: 1px dotted @grayLight;
  }

  abbr.initialism {
    font-size: 90%;
    text-transform: uppercase;
  }

// Page header
// -------------------------

.page_header,
.page-header {
  text-align: center;
}