/*
   ------------------------------------
   Import
   ------------------------------------
*/

@import "fontawesome/font-awesome.scss";
@import "bootstrap/bootstrap.scss";

/*
   ------------------------------------
   Scaffolding
   ------------------------------------
*/

html {
  height: 100%;

  @include media-breakpoint-down(md) {
    font-size: 15px;
  }

  @include media-breakpoint-down(sm) {
    font-size: 14px;
  }
}

body {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  height: 100%;
}

.blurred {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: -2;
  filter: blur(6px);
  opacity: 0;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.body-overlay {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: -1;
}

.site-content {

  :last-child {
    margin-bottom: 0;
  }
}

.site-content-inner {
  background: $content-bg;
  border-radius: $border-radius;
  padding: $spacer*2;

  @include media-breakpoint-down(sm) {
    padding: $spacer;
  }
}

img {
  max-width: 100%;
  height: auto;
  margin-bottom: $spacer;
}

/*
   ------------------------------------
   RW Classes
   ------------------------------------
*/

.image-left {
  float: left;
}

.image-right {
  float: right;
}

/*
   ------------------------------------
   Header
   ------------------------------------
*/

.site-header {
  position: relative;
  padding: $spacer*4 0;
  text-align: center;

  @include media-breakpoint-down(md) {
    padding: $spacer*2 0;
  }
}

.site-branding {
  position: relative;
  z-index: 20;
}

.site-title {
  @extend h1;
  font-family: $font-family-serif;
  text-transform: uppercase;
  margin-bottom: $spacer/4;

  a {

    @include hover-focus {
      opacity: .8;
    }
  }
}

.site-logo {
  margin-bottom: $spacer/4;
}

.site-description {
  font-family: $font-family-sans-serif;
  opacity: .8;
}

/*
   ------------------------------------
   Navigation (desktop)
   ------------------------------------
*/

.site-navigation {
  @extend .container;
}

.site-navigation-inner {
  position: relative;
  text-align: center;
  text-transform: uppercase;
  font-family: $font-family-sans-serif;
  font-weight: 400;
  font-size: $font-size-sm;
  padding: $spacer/2 0 0 0;

  @include media-breakpoint-up(lg) {
    .select {
      display: none !important;
    }
  }

  ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-block;
    vertical-align: top;

    li {
      float: left;
      margin: 0 $spacer/4;
      padding: 0;
      position: relative;
    }
  }

  ul {
    ul {
      position: absolute;
      display: none;
      top: 100%;
      min-width: 180px;
      left: 0;
      padding: $spacer/4 0;
      z-index: 99;
      border-radius: $border-radius;
      box-shadow: 0 1px 4px rgba(0, 0, 0, .3);

      a {
        padding: $spacer/8 $spacer/2;

        @include hover-focus {
          color: $brand-primary;
        }
      }
    }

    > li {
      float: left;
    }

    a {
      display: block;
      position: relative;
    }
  }

  > ul > li > a {

    @include hover-focus {
      opacity: .8;
    }
  }

  .parent {
    margin-top: -1px;

    &:after {
      content: "\f0d7";
      font-family: "FontAwesome";
      margin-left: $spacer/4;
    }
  }
}

/*
   ------------------------------------
   Navigation (mobile)
   ------------------------------------
*/

.site-navigation-inner {
  ul {
    @include media-breakpoint-down(md) {
      display: none;
    }
  }

  .select {
    position: relative;
    display: block;
    color: #fff;

    &:after {
      position: absolute;
      top: 50%;
      right: 1.25rem;
      display: inline-block;
      content: "";
      width: 0;
      height: 0;
      margin-top: -.15rem;
      pointer-events: none;
      border-top: .35rem solid;
      border-right: .35rem solid transparent;
      border-bottom: .35rem solid transparent;
      border-left: .35rem solid transparent;
    }

    select {
      display: inline-block;
      width: 100%;
      margin: 0;
      padding: .5rem 2.25rem .5rem 1rem;
      line-height: 1.5;
      color: #fff;
      background-color: rgba(#000, .7);
      border: 1px solid #000;
      border-radius: .25rem;
      cursor: pointer;
      outline: 0;
      -webkit-appearance: none;
         -moz-appearance: none;
              appearance: none;

      &:focus:-moz-focusring {
        color: transparent;
        text-shadow: 0 0 0 #000;
      }

      &:focus {}

      &:active {}

      &::-ms-expand {
        display: none;
      }
    }
  }

  @-moz-document url-prefix() {
    .select {
      select {
        text-indent: 0.01px;
        text-overflow: '';
        padding-right: 1rem;
      }

      option {
        background-color: #fff;
      }
    }
  }

  @media screen and (min-width:0\0) {
    .select {
      &:after {
        z-index: 5;
      }

      &:before {
        position: absolute;
        top: 0;
        right: 1rem;
        bottom: 0;
        z-index: 2;
        content: "";
        display: block;
        width: 1.5rem;
        background-color: rgba(#000, .7);
      }

      select {
        z-index: 1;
        padding: .5rem 1.5rem .5rem 1rem;

        &:hover,
        &:focus,
        &:active {
          color: #fff;
          background-color: rgba(#000, .7);
        }
      }
    }
  }
}

/*
   ------------------------------------
   Site sidebar
   ------------------------------------
*/

.site-sidebar {
  font-family: $font-family-sans-serif;
  font-size: .833rem;

  @include media-breakpoint-down(sm) {
    margin-top: $spacer;
  }

  &, h1, h2, h3, h4, h5, h6 {
    color: #fff;
  }

  img {
    margin-left: auto;
    margin-right: auto;
    display: block;
    margin-bottom: $spacer/2;
  }
}

.sidebar {
  text-align: center;
  background: rgba(#fff, .2);
  border-radius: $border-radius;
  padding: $spacer/2;
}

/*
   ------------------------------------
   Blog
   ------------------------------------
*/

.blog-entry {
  margin-bottom: $spacer*2;
}

.blog-entry-title {
  @extend h2;
  margin-bottom: $spacer/4;

  a {
    color: $headings-color;

    @include hover-focus {
      color: $brand-primary;
    }
  }
}

.blog-entry-date {
  font-family: $font-family-sans-serif;
  color: $text-muted;
  margin-bottom: $spacer;

  &:before {
    content: "\f017";
    font-family: "FontAwesome";
    margin-right: $spacer/4;
    position: relative;
    top: 1px;
  }
}

.blog-entry-tags {
  font-family: $font-family-sans-serif;

  &:before {
    content: "\f02b";
    font-family: "FontAwesome";
    margin-right: $spacer/4;
    position: relative;
    top: 1px;
  }
}

.blog-archive-month {
  @extend h2;
  margin-bottom: $spacer;
}

.blog-archive-link {
  display: none;
}

/*
   ------------------------------------
   Blog (sidebar)
   ------------------------------------
*/

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

#blog-categories {
  &:before {
    content: "Categories:";
    font-size: $font-size-h6;
    font-weight: $headings-font-weight;
    display: block;
    margin-bottom: $spacer/6;
  }
}

#blog-archives {
  &:before {
    content: "Archives:";
    font-size: $font-size-h6;
    font-weight: $headings-font-weight;
    display: block;
    margin-bottom: $spacer/6;
  }
}

.blog-tag-cloud {
  &:before {
    content: "Tags:";
    font-size: $font-size-h6;
    font-weight: $headings-font-weight;
    display: block;
    margin-bottom: $spacer/6;
  }
}

#blog-rss-feeds {
  margin-top: $spacer;

  &:before {
    content: "\f143";
    font-family: "FontAwesome";
    margin-right: $spacer/4;
    position: relative;
    top: 1px;
  }

  a {
    display: inline-block;
    color: #fff;

    @include hover-focus {
      color: $brand-primary;
    }
  }
}

#blog-categories,
#blog-archives {
  margin-top: $spacer;

  a {
    border-top: 1px solid rgba(#fff, .1);
    display: block;
    padding: $spacer/6 0;
    color: #fff;

    @include hover-focus {
      color: $brand-primary;
    }

    &:last-of-type {
      border-bottom: 1px solid rgba(#fff, .1);
    }
  }

  .blog-archive-link-disabled {
    border-top: 1px solid rgba(#fff, .1);
    display: block;
    padding: $spacer/6 0;
    color: rgba(#fff, .6);
  }
}

.blog-tag-cloud {
  margin: $spacer 0 0 0;
  padding: 0;
  list-style: none;

  li {
      a {
      border-top: 1px solid rgba(#fff, .1);
      display: block;
      padding: $spacer/6 0;
      color: #fff;

      @include hover-focus {
        color: $brand-primary;
      }
    }

    &:last-of-type a {
      border-bottom: 1px solid rgba(#fff, .1);
    }
  }
}

/*
   ------------------------------------
   Gallery
   ------------------------------------
*/

.album-title {
  @extend h2;
}

.album-description {
  margin-bottom: $spacer;
}

.album-wrapper {
  @extend .row;
}

.thumbnail-wrap {
  @extend .col-sm-3;
  @extend .col-xs-6;
  margin-bottom: $spacer;

  img {
    border-radius: $border-radius;
  }
}

.thumbnail-caption {
  @extend figcaption;
}

.photo-title,
.photo-caption {
  display: none;
}

.photo-links {
  display: block;
  text-align: center;
  margin-top: $spacer/2;

  a {
    color: #fff;
    padding: 0 $spacer/4;

    @include hover-focus {
      color: $brand-primary;
    }
  }
}

.photo-frame {
  margin-left: auto;
  margin-right: auto;
  display: block;
  max-width: 90%;
  position: absolute;
  left: 50%;
  top: 50%;
}

/*
   ------------------------------------
   Sitemap
   ------------------------------------
*/

.sitemap-header {
  margin-bottom: $spacer;
  padding-bottom: $spacer;
  border-bottom: 1px solid $hr-border-color;
}

.rw-sitemap {

  ul {
    margin: 0;
    padding: 0;
    list-style: none;

    ul {
      li {
        a:before {
          content: "\f178";
          font-family: "FontAwesome";
          margin-right: $spacer/4;
          position: relative;
          top: 1px;
        }
      }
    }
  }
}

.sitemap-footer {
  margin-top: $spacer;
  padding-top: $spacer;
  border-top: 1px solid $hr-border-color;
}

/*
   ------------------------------------
   File Sharing
   ------------------------------------
*/

.filesharing-item {
  margin-bottom: $spacer;
  padding-bottom: $spacer;
  border-bottom: 1px solid $hr-border-color;

  &:last-of-type {
    padding-bottom: 0;
    border-bottom: none;
  }
}

.filesharing-item-title {
  margin-bottom: $spacer/2;

  a {
    @extend .btn;
    @extend .btn-primary;

    &:before {
      content: "\f019";
      font-family: "FontAwesome";
      margin-right: $spacer/4;
      position: relative;
      top: 1px;
    }
  }
}

.filesharing-description {
  margin-bottom: $spacer;
  padding-bottom: $spacer;
  border-bottom: 1px solid $hr-border-color;
}

/*
   ------------------------------------
   Contact
   ------------------------------------
*/

.message-text {
  margin-bottom: $spacer;
}

.rw-contact-form {

  label {
    font-family: $font-family-sans-serif;
  }
}

.form-input-field {
  @extend .form-control;
  margin-bottom: $spacer/2;
}

input[name="resetButton"] {
  display: none;
}

input[name="submitButton"] {
  @extend .btn;
  @extend .btn-primary;
}

.form-footer {
  margin-top: $spacer;
}

/*
   ------------------------------------
   Contact
   ------------------------------------
*/

.site-footer {
  @extend .container;
  text-align: center;
  padding-top: $spacer;
  padding-bottom: $spacer;
  opacity: .8;
  color: #fff;

  a {
    color: #fff;
    border-bottom: 1px solid #fff;

    @include hover-focus {
      color: #fff;
      border-bottom: none;
    }
  }
}
