// mixin for the slanted edges
@mixin angle($pseudo, $flip: false, $angle: 1.5deg) {
  // Possible values for $pseudo are: before, after, both
  @if $pseudo == 'before' or $pseudo == 'after' or $pseudo == 'both' {
    position: relative;
    z-index: 1;
    $selector: if($pseudo == 'both', '&:before,&:after', '&:#{$pseudo}');

    #{$selector} {
      background: inherit;
      content: '';
      display: block;
      height: 100%;
      left: 0;
      position: absolute;
      right: 0;
      z-index: -1;
      -webkit-backface-visibility: hidden; // for Chrome Windows
    }

    @if $pseudo == 'before' {
      #{$selector} {
        top: 0;

        @if $flip {
          transform: skewY($angle * -1);
          transform-origin: 0 0;
        } @else {
          transform: skewY($angle);
          transform-origin: 100% 0;
        }
      }
    }

    @if $pseudo == 'after' {
      #{$selector} {
        bottom: 0;

        @if $flip {
          transform: skewY($angle);
          transform-origin: 0 100%;
        } @else {
          transform: skewY($angle * -1);
          transform-origin: 100%;
        }
      }
    }

    @if $pseudo == 'both' {
      &:before {
        top: 0;

        @if $flip {
          transform: skewY($angle * -1);
          transform-origin: 0 0;
        } @else {
          transform: skewY($angle);
          transform-origin: 100% 0;
        }
      }

      &:after {
        bottom: 0;

        @if $flip {
          transform: skewY($angle);
          transform-origin: 0 0;
        } @else {
          transform: skewY($angle * -1);
          transform-origin: 100%;
        }
      }
    }
  }
}

// slanted edges elements
.navbar-default {
  @include angle(after);
}

.footer {
  @include angle(before, true);
  &:before {
    top: 0;
  }
}

.pageheader {
  overflow: hidden;
  display: inline-block;
  content: "";
  height: 100%;
  margin-bottom: -4.75rem;
}
.pageheader-wrap {
  transform: rotate(1.5deg);
  width: 110%;
  left: -5%;
  top: -1.5rem;
  position: relative;

  &::before {
    width: 110%;
    content: "";
    display: inline-block;
    height: 110%;
    transform: rotate(-1.5deg);
    position: absolute;
    top: 0;
    z-index: -1;
  }
}

.pageheader-content {
    transform: rotate(-1.5deg);
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
    @include media-breakpoint-down(md) {
        .row {
          margin-left: 5%;
        }
    }
}

.last-updated {
  margin-bottom: 3rem;
}
