@import url('//fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800,300italic,400italic,600italic,700italic,800italic');
@import url('//fonts.googleapis.com/css?family=Roboto+Slab:400,300,700');

@font-face {
  font-family: 'FontAwesome';
  src: url('../fonts/fontawesome-webfont.eot');
  src: url('../fonts/fontawesome-webfont.eot') format('embedded-opentype'), url('../fonts/fontawesome-webfont.woff?v=4.0.1') format('woff'), url('../fonts/fontawesome-webfont.ttf?v=4.0.1') format('truetype'), url('../fonts/fontawesome-webfont.svg?v=4.0.1#fontawesomeregular') format('svg');
  font-weight: normal;
  font-style: normal;
}

@import "bourbon";

$experimental-support-for-svg: true;
@import "variables.scss";
@import "mixins.scss";

//apprentice feature

.apd {
  border-radius: 9px;
  box-shadow: 0 4px 2px -2px #E0E0E0;
  border: 1px solid #dbdbdb;
  padding: 18px;
  h3 {
    color: $main_color;
    margin-top: 0px;
  }
  p {
    font-size: $normalSize * 1.385;
    line-height: 1em;
    a {
      color: #3a3a3a;
      text-decoration: none;
    }
  }
  .apl {
    border-top: 1px dotted #eeeeee;
    cursor: pointer;
    padding: 15px 0px;
    &:first-of-type {
      border-top: none;
    }
    &:hover {
      .awe, p a {
        color: $main_color;
      }
    }
  }
}

.apc {
  .apl {
    border-bottom: 2px solid #e7e7e7;
    display: block;
    padding: 12px 0px;
    p {
      font-size: $normalSize * 1.385;
      a {
        color: $content_gray;
        text-decoration: none;
      }
    }
    &:hover {
      background: #e7e7e7;
      p {
        a {
          color: $main_color;
        }
      }
      .api, p {
        @include transition(all, 0.3s, ease-in-out);
        margin-left: 10px;
      }
    }
    .api {
      border-radius: 50%;
      background: $main_color;
      .awe {
        color: #fff;
      }
    }
  }
  .apl {
    height: 100%;
    position: relative;
    p {
      display: inline-block;
      padding-left: 70px;
      width: 80%;
      .cnt & {
        margin-bottom: 0px;
      }
    }
  }
}

.api {
  cursor: pointer;
  display: inline-block;
  height: 45px;
  position: absolute;
  left: 0px;
  top: 50%;
  margin-top: -23px;
  text-align: center;
  width: 45px;
  .awe {
    color: #3a3a3a;
    font-size: 25px;
    line-height: 50px;
  }
}

.apw {
  border-radius: 9px;
  background: #fff;
  border: 1px solid #dbdbdb;
  overflow: hidden;
  &.olv {
    .apw-i {
      .ali {
        padding-left: 55px;
      }
    }
  }
  .apw-i {
    .ali {
      padding-left: 30px;
    }
    .apws .ali {
      padding-left: 55px;
      position: relative;
    }
  }
  > div {
    .apws {
      a {
        color: $main_color;
      }
    }
    a {
      border-top: 1px solid #ededed;
      color: #494949;
      display: block;
      font-size: $normalSize;
      padding: 15px;
      &:hover {
        background: #ededed;
        color: $main_color;
        font-weight: 700;
        font-style: italic;
        &:after, &:before {
          font-style: normal;
          font-weight: 400;
        }
      }
      &.ali {
        position: relative;
        z-index: 0;
        &:after {
          color: #cccccc;
          float: right;
        }
        &:before {
          color: $main_color;
          display: block;
          height: 15px;
          position: absolute;
          top: 15px;
          left: 30px;
          width: 15px;
        }
        &:after, &:before {
          font-family: 'FontAwesome';
          font-size: 15px;
        }
//        span {
//          background: red;
//          display: block;
//          float: right;
//          height: 30px;
//          position: relative;
//          width: 30px;
//          z-index: 3;
//        }
      }
      &.opn {
        span {
          display: block;
          height: 30px;
          position: absolute;
          right: 0;
          top: 12px;
          width: 30px;
          &:after {
            color: #ccc;
            content: '\f078';
            line-height: 30px;
            font-family: 'FontAwesome';
            font-style: normal;
          }
        }
      }
      &.cls {
        span {
          &:after {
            color: #ccc;
            content: '\f077';
            display: block;
            height: 30px;
            line-height: 30px;
            font-family: 'FontAwesome';
            font-style: normal;
            margin: auto 0;
            position: absolute;
            right: 0;
            top: 0;
            bottom: 0;
            width: 30px;
          }
        }
      }
      &.ald {
        &:before {
          content: '\f00c';
        }
      }
      &.alp {
        &:before {
          content: '\f040';
        }
      }
      &.alc {
        &:before {
          content: '\f0f6';
        }
      }
      &.spn {
        &:before {
          @include animation-timing-function(linear);
          @include animation-duration(5s);
          @include animation-iteration-count(infinite);
          @include animation-name(spinning-circles);
          border-radius: 50%;
          box-shadow: $main_color 0 -6px 0 0, $main_color 4px -4px 0 0, $main_color 6px 0 0 0, $main_color 4px 4px 0 0, $main_color 0 6px 0 0, $main_color -4px 4px 0 0, $main_color -6px 0 0 0, $main_color -4px -4px 0 0;
          content: '';
          height: 4px;
          margin-top: 8px;
//          margin-right: 20px;
          margin-left: 4px;
          width: 4px;
        }
      }
      &.act {
        background: #f9f9f9;
        font-style: italic;
        font-weight: 700;
        &:after, &:before {
          font-style: normal;
        }
      }
    }
    &:first-child {
      a {
        border-top: 0px;
      }
    }
  }
}

.acl {
  border-radius: 9px;
  box-shadow: 0 4px 2px -2px #E0E0E0;
  background: #ffebb5;
  border: 1px solid #f7df9d;
  margin: 30px 0px;
  padding: 15px;
  input[type="checkbox"] {
    display: none;
  }
  input[type="checkbox"] + label div {
    border-radius: 2px;
    background: #fff;
    border: 1px solid #aeaeae;
    cursor: pointer;
    float: left;
    height: 21px;
    margin-bottom: 2px;
    margin-right: 10px;
    padding: 2px;
    vertical-align: middle;
    position: relative;
    width: 21px;
    a {
      opacity: 0;
      height: 0px;
     // transition: transform 0.2s ease 0s, opacity 0.3s ease 0s;
      &:before {
       // transition: transform 0.2s ease 0s, opacity 0.3s ease 0s;
      }
    }
  }
  input[type="checkbox"]:checked + label {
    a {
      display: block;
      height: 20px;
      opacity: 1;
      transform: scale(0.8);
      &:before {
        content: '\f00c';
        color: $main_color;
        font-family: FontAwesome;
        position: absolute;
        height: 20px;
        font-size: 20px;
        top: 2px;
        left: 3px;
      }
      &:active {
        &:before {
          opacity: 0.1;
          transform: scale(1.2);
          z-index: 100;
        }
      }
    }
  }
  label {
    span {
      color: #181818;
      display: block;
      // float: left;
      font-size: 14px;
      line-height: 27px;
      //margin-left: 25px;
    }
  }
}

.fav {
  margin-top: 10px;
}

.heart {
  border: none;
  cursor: pointer;
  display: block;
  font-size: 30px;
  height: 30px;
  margin-right: 15px;
  position: relative;
  width: 30px;
  &:before {
    content: '\f08a';
    color: #dadada;
    font-family: 'FontAwesome';
    height: 30px;
    padding: 1px;
    position: absolute;
    left: -3px;
    top: 0px;
    transition: transform 0.2s ease 0s, opacity 0.3s ease 0s;
    -moz-transition: transform 0.2s ease 0s, opacity 0.3s ease 0s;
    -webkit-transition: transform 0.2s ease 0s, opacity 0.3s ease 0s;
    -ms-transition: transform 0.2s ease 0s, opacity 0.3s ease 0s;
    width: 30px;
  }
  &:active {
    &:before {
      opacity: 0.1;
      transform: scale(1.3);
      z-index: 100;
    }
  }
  &.fill {
    &:before {
      content: '\f004';
    }
    &:active {
      &:before {
        opacity: 1;
      }
    }
  }
}

@each $color in $appr-bg {
  .apps.#{nth($color, 1)} {
    background: nth($color, 2);
  }
}

.apps {
  padding: 30px 0px;
  &.nop {
    background: #3a3a3a;
  }
  .ap-v {
    min-height: 60px;
    position: relative;
  }
  .scvps {
    height: 100% !important;
    .vwr {
      position: relative !important;
      top: 0 !important;
    }
  }
  .apv {
    background-repeat: no-repeat;
    background-position: center center;
    margin: 0 auto;
    position: relative;
    .scvps {
      min-height: 400px;
      padding: 0;
      .vdc {
        iframe, > div {
          box-shadow: none;
          display: block;
        }
      }
    }
  }
  .scvps .vdc.lv .pvb {
    background: none;
  }
  .pvb {
    height: 263px;
    margin: auto;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100% !important;
  }
  .wp-audio-shortcode {
    border-radius: 10px;
    border: 1px solid #292929;
    background: #3a3a3a;
    height: 50px !important;
    position: absolute;
    bottom: 3px;
    left: 0px;
    .mejs-controls {
      background: none;
      height: 50px !important;
      .mejs-time {
        padding-top: 18px;
      }
      .mejs-volume-button {
        button {
          background: none;
          height: 22px;
          margin: 17px 5px;
          width: 19px;
          &:before {
            color: #fff;
            font-family: 'FontAwesome';
            font-size: 20px;
            text-align: left;
          }
        }
        &.mejs-mute {
          button {
            &:before {
              content: '\f026';
              margin-right: 8px;
            }
          }
        }
        &.mejs-unmute {
          button {
            &:before {
              content: '\f028';
            }
          }
        }
      }
      .mejs-horizontal-volume-slider {
        margin-top: 17px;
        .mejs-horizontal-volume-total {
          border-radius: 10px;
          background: #1e1e1e;
          height: 17px;
          top: 0;
        }
        .mejs-horizontal-volume-current {
          border-radius: 10px;
          background: #9e9e9e;
          height: 17px;
          top: 0;
        }
      }
      .mejs-time-rail {
        padding-top: 12px;
        .mejs-time-total {
          border-radius: 10px;
          background: #1e1e1e;
          height: 17px;
          overflow: hidden;
        }
        .mejs-time-loaded {
          background: #1e1e1e;
          height: 17px;
        }
        .mejs-time-current {
          background: #9e9e9e;
          height: 17px;
        }
      }
      .mejs-playpause-button {
        height: 30px;
        margin-left: 20px;
        margin-top: 10px;
        width: 30px;
        &.mejs-play {
          button {
            &:before {
              content: '\f04b';
            }
          }
        }
        &.mejs-pause {
          button {
            &:before {
              content: '\f04c';
            }
          }
        }
        button {
          background: none;
          height: 30px;
          margin: 4px 0 0 0;
          width: 30px;
          &:before {
            color: #fff;
            font-family: 'FontAwesome';
            font-size: 20px;
          }
        }
      }
    }
  }
  .in {
    padding: 0px;
  }
}

.cnt {
  .ttl.nbr {
    border-bottom: none;
    padding-bottom: 0px;
  }
}

.apt {
  color: $main_color;
  display: inline-block;
}

.lvl-2 {
  padding-left: 20px;
}

.lvl-3 {
  padding-left: 40px;
}

.aut {
  h2 {
    color: $main_color;
    margin-top: 15px;
    margin-bottom: 15px;
  }
}

.amt {
  a {
    color: #949494;
  }
}

.apwl {
  border-radius: 9px;
  .apwl {
    a {
      padding-left: 40px;
    }
  }
}

.pgn {
  @include clearfix();
  .page-numbers {
    @include linear-gradient(#f9f9f9 0%, #ededed 100%);
    box-shadow: 0 1px 0 0 rgba(#fff, .2);
    border: 1px solid #e3e3e3;
    font-size: $normalSize * 1.077;
    height: 36px;
    line-height: 36px;
    position: relative;
    .bSe & {
      color: $main-color;
      .awe {
        color: $main-color;
      }
      &:before, &:after {
        font-family: 'FontAwesome';
      }
    }
    &.nxt {
      &:before {
        content: '\f190' !important;
        margin-right: 10px;
      }
    }
    &.prv {
      float: right;
      &:after {
        content: '\f18e' !important;
        margin-left: 10px;
      }
    }
    &:hover, &.current {
      @include linear-gradient(#f4f4f4 0%, #e6e6e6 100%);
      border: 1px solid $main_color;
    }
  }
}

footer {
  color: #969ba9;
  .cnt {
    p {
      color: #969ba9;
    }
  }
  p {
    color: #969ba9;
  }
  .scn ul li a {
    color: #969ba9;
    &:hover {
      color: #969ba9;
    }
  }
}