  // block element formatting
h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5 {
  margin-top: 0;
  font-weight: bold;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

h1,
.h1 {
  @include font-size(30);
  margin-bottom: $margin-normal;
  line-height: 1.1;
}

h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5 {
  margin-bottom: $margin-half;
  line-height: 1.2;

  p + & {
    margin-top: $margin-double;
  }
}

h2,
.h2 {
  @include font-size(24);
}

h3,
.h3 {
  @include font-size(18);
}

h4,
.h4 {
  @include font-size(16);
}

h5,
.h5 {
  @include font-size(12);
}

.text-2 {
  @include font-size(16);
}

.text-3 {
  @include font-size(14);
}

.text-4 {
  @include font-size(12);
}

p {
  margin-top: 0;
  margin-bottom: $margin-normal;
}

.preamble {
  @include font-size(16);
  font-weight: bold;
}

.lead {
  margin: 0 0 $margin-normal;
  @include font-size(24);
}

blockquote {
  margin: 0 auto;

  h2 {
    font-style: italic;
    font-weight: normal;

    &::before {
      @include font-size(36);
      content: '"';
      margin-right: $margin-normal;
      vertical-align: middle;
    }
  }

  p {
    @include font-size(16);
    font-style: italic;
    font-weight: bold;
    position: relative;
  }

  footer {
    @include font-size(16);
    @extend %flexbox-column;
    justify-content: center;
    align-items: baseline;

    &:before {
      content: '';
    }

    strong {
      @include font-size(34);
      color: $color-link-blue;
      vertical-align: -#{$margin-half};
    }

    .score {
      margin-right: $margin-double;
    }
  }
}

//inline element formatting
b,
strong,
.text-bold,
.bold-text {
  font-weight: bold;
}

// from bootstrap
// Alignment
.text-left {
  text-align: left;
}

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

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

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

.text-nowrap {
  white-space: nowrap;
}

// Transformation
.text-lowercase {
  text-transform: lowercase;
}

.text-uppercase {
  text-transform: uppercase;
}

.text-capitalize {
  text-transform: capitalize;
}

// misc
@keyframes pulsate {
  0% {
    opacity: .5;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: .5;
  }
}

.pulsing-text {
  animation: pulsate 2s ease-out;
  animation-iteration-count: infinite;
  opacity: .5;
}

.country-prefix {
  font-size: .32em;
  display: inline-block;
  text-align: right;
  line-height: 1.3;
  vertical-align: .1em;
  letter-spacing: 0;

  &:empty {
    display: none;
  }
}

@include breakpoint(sm) {
  h1,
  .h1 {
    @include font-size(48);
    letter-spacing: 1;
  }

  h2,
  .h2 {
    @include font-size(34);
  }

  h3,
  .h3 {
    @include font-size(24);
  }

  h4,
  .h4 {
    @include font-size(18);
  }

  h5,
  .h5 {
    @include font-size(14);
  }

  blockquote {
    text-align: center;
    max-width: 520px;

    h2::before {
      content: '';
      margin-right: 0;
    }

    p {
      @include font-size(24);
      font-weight: normal;

      &::before,
      &::after {
        @include font-size(60);
        content: '"';
        position: absolute;
        top: 10%;
        font-weight: bold;
      }

      &::before {
        left: -48px;
      }

      &::after {
        right: -48px;
      }
    }

    footer {
      flex-direction: row;
    }
  }

  .preamble {
    @include font-size(24);
    font-weight: normal;
  }
}

@include breakpoint(md) {
  h1,
  .h1 {
    @include font-size(54);
  }

  blockquote {
    max-width: 690px;
  }
}

@include breakpoint(lg) {
  blockquote {
    max-width: 720px;
  }
}
