/*
** General Styles for HTML tags
*/
html {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: visible;
}

::selection {
  color: $lightColor;
  background-color: $colorMain;
}

::-moz-selection {
  color: $lightColor;
  background-color: $colorMain;
}

body {
  font-family: 'poppins', sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 24px;
  background-color: $lightColor;
  overflow: visible;
  overflow-x: hidden;
  overflow-y: scroll;
  position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: 1px;
  font-weight: 700;
  line-height: 1.2;
  word-break: break-word;
}

h1 {
  font-size: 60px;
  margin-top: 1.13em;
  margin-bottom: 0.08em;
}

h2 {
  font-size: 50px;
  margin-top: 1.33em;
  margin-bottom: 0.1em;
}

h3 {
  font-size: 40px;
  margin-top: 1.7em;
  margin-bottom: 0.28em;
}

h4 {
  font-size: 30px;
  font-weight: 500;
  margin-top: 2.1em;
  margin-bottom: 0.4em;
}

h5 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0;
  margin-top: 2.9em;
  margin-bottom: 0.5em;
}

h6 {
  font-size: 20px;
  letter-spacing: 0;
  font-weight: 500;
  margin-top: 4.5em;
  margin-bottom: 0.9em;
}

@media (max-width: 992px) {
  h1 {
    font-size: 3.2rem
  }
  h2 {
    font-size: 2.8rem
  }
  h3 {
    font-size: 2.4rem
  }
  h4 {
    font-size: 2rem
  }
  h5 {
    font-size: 1.7rem
  }
  h6 {
    font-size: 1.3rem
  }
}

h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child {
  margin-top: 0;
}

h1:last-child,
h2:last-child,
h3:last-child,
h4:last-child,
h5:last-child,
h6:last-child {
  margin-bottom: 0;
}

p {
  margin-bottom: 23px;
}

ul:last-child,
ol:last-child,
p:last-child {
  margin-bottom: 0;
}

p:last-child {
  &:after {
    content: '';
    display: block;
    clear: both;
  }
}

img, figure {
  max-width: 100%;
  height: auto;
}

figcaption {
  p {
    margin-bottom: 0;
  }
  font-size: 0.95em;
  line-height: 1.4;
  padding: 10px 0 7px;
}

.ls, .ls.ms {
  b, strong {
    color: $darkColor;
  }
}

b, strong {
  font-weight: 500;
}

label {
  color: $darkgreyColor;
}

a {
  text-decoration: none;
  transition: all 0.2s ease-in-out 0s;
  color: $darkgreyColor;
  &:hover {
    color: $colorMain;
    text-decoration: none;
    transition: all 0.15s linear 0s;
  }
}

.ds {
  blockquote footer {
    color: $lightColor;
  }
}

blockquote {
  max-width: 83%;
  padding: 1px 0 17px 68px;
  font-style: italic;
  margin: 25px 0 25px;
  @media (max-width: 767px) {
    max-width: 100%;
    padding: 0;
  }
  .quote-mark {
    position: relative;
    margin-right: 11px;
    bottom: 15px;
    margin-bottom: -7px;
  }
  .blockquote-avatar {
    float: left;
    border-radius: 50%;
    margin-right: 33px;
   @media (max-width: 767px) {
      float: none;
      display: flex;
      margin: auto;
    }
  }
  footer {
    font-style: normal;
      font-size: 20px;
      font-weight: 700;
      margin-top: 29px;
      color: $darkColor;
      @media (max-width: 767px) {
        margin-top: 0;
      }
      cite {
      color: $fontColor;
      font-size: 16px;
      font-weight: 300;
      font-style: normal;
      &:before {
        content: "|";
        font-size: 16px;
        font-weight: 400;
        margin: 0 20px 0 25px;
        @media (max-width: 767px) {
          margin: 0 10px 0 15px;
        }
      }
    }
  }
}

input:focus,
button:focus,
select:focus,
textarea:focus,
a:focus {
  outline: medium none;
  text-decoration: none;
}

a > img {
  transition: all 0.15s ease-in-out 0s;
}

a:hover > img {
  opacity: 0.8;
}

a.btn:active,
a.button:active,
button:active,
input[type="submit"]:active {
  position: relative;
  top: 1px !important;
}

hr {
  border-color: rgba($borderColor, 0.2);
  border-width: 2px;
  margin-left: 0;
  margin-right: 0;
  margin-top: 27px;
  margin-bottom: 30px;
}

iframe {
  border: none;
  max-width: 100%;
}

.page.type-page {
  table {
    td, th {
      border: 1px solid rgba($fontColor, 0.2);
    }
  }
}

.post {
  table {
    td, th {
      border: 1px solid rgba($fontColor, 0.2);
    }
  }
}

table {
  width: 100%;
  max-width: 100%;
  margin: 10px 0;
  td, th {
    padding: 13px 8px;
    line-height: 1.42857143;
    vertical-align: top;
  }
  th {
    color: $darkgreyColor;
    font-weight: normal;
    vertical-align: middle;
  }
}

canvas {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

pre {
  line-height: 1.5;
  background-color: $universalBackgroundColor;
  padding: 0.5em 1em;
}
.big {
  margin: 0.85em 0 1.3em;
  font-size: 20px;
  line-height: 1.2;
  em {
    display: inline-block;
    margin: 0.3em 0 0;
    @media (min-width:768px) {
      margin: 1em 0 0.5em;

    }
  }
}

.media {
  h3 {
    text-transform: uppercase;
  }
  .dropcap {
    margin-right: 0;
  }
}

.small-text {
  @include small-text();
  &.extra-letter-spacing {
    @media (min-width: 768px) {
      letter-spacing: 1em;
    }
  }
}


