
.clear {
  clear: both;
}

body.demo {
  header .container, footer .container {
    @include breakpoint($max-width) {
      margin-left: auto;
      margin-right: auto;
    }
  }

  .content {
    margin: 0 auto 0 auto;
    max-width: 100%;
  }
}

body.demo .header-block {
  @include container;
  padding-top: 6rem;
  padding-bottom: 2rem;
  margin: 0 1rem;
  position: relative;

  @include breakpoint($break-tablet) {
    @include container(14 of 16);
    width: span(14 of 16);
    max-width: $max-width;
  }

  h1 {
    color: black;
    font-size: 46px;
    font-weight: 500;
    margin: 2rem 0 0.5rem 0;
  }

  h2 {
    color: black;
    font-size: 28px;
    font-weight: 400;
  }
}

.demo-content {
  @include container;
  margin: 0 1rem;

  @include breakpoint($break-tablet) {
    @include container(14 of 16);
    width: span(14 of 16);
    max-width: $max-width;
  }

  .action-buttons {
    animation-delay: 1.2s;
    margin: 0;

    .button-main {
      margin-left: .5rem;
    }

    .button-action:hover, .button-main:hover {
      background-color: #fff;
      border-color: $dark-gray;
      color: $dark-gray;
    }
  }
}

.video-content {
  @include container;
  margin: 2rem 1rem;

  @include breakpoint($break-tablet) {
    @include container(14 of 16);
    width: span(14 of 16);
    max-width: $max-width;
  }

  .video-player {
    @include container;
    width: 100%;

    h4 {
      margin-top: 1.2rem;
    }

    @include breakpoint($max-width) {
      height: 30vw;
      max-height: 415px;
    }
  }

  .section-block {
    @include container;

    @include breakpoint($break-tablet) {
      float: left;
      width: span(12 of 32);
    }

    width: span(14 of 16);

    &:first-of-type {
      width: 100%;
      margin-bottom: 1rem;
      @include breakpoint($max-width) {
        margin-left: span(0 of 32);
        margin-right: span(1 of 32);
        width: 60%;
      }
    }

    &:last-of-type {
      width: 100%;
      height: 35vw;
      margin-bottom: 1rem;
      @include breakpoint($max-width) {
        margin-right: span(0 of 32);
        width: 35%;
        height: 100%;
      }
    }
  }

  .h_iframe {
    position: relative;

    .ratio {
      display: block;
      width: 100%;
      background: $dark-gray;
      opacity: 0;
      height: 100%;
    }

    iframe {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
    }
  }

  .info-title {
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 0.5rem 0;
  }

  .video-list {
    height: 100%;
    overflow-y: scroll;
    
    @include breakpoint($break-tablet) {
      height: 88%;
    }

    &::-webkit-scrollbar {
      width: 16px;
    }
    &::-webkit-scrollbar-thumb {
      background: $medium-gray;
      border-radius: 10px;
      -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    }
    &::-webkit-scrollbar-thumb:hover {
      background: $dark-gray;
      border: 1px solid $light-gray;
    }
    &::-webkit-scrollbar-thumb:active {
      background: $dark-gray;
      border: 1px solid $light-gray;
    }
    &::-webkit-scrollbar-track {
      border: 1px $medium-gray solid;
      border-radius: 10px;
      -webkit-box-shadow:0 0 10px $medium-gray inset;
    } 

    li {
      margin-right: 0.5rem;
    }

    .video-list-item {
      padding: 5px;
      display: inline-block;
      width: 100%;
      min-height: 100px;
      border: 1px solid $dark-gray;
    }

    .active-item, .video-list-item:hover {
      background-color: $lighter-blue;
      cursor: pointer;
    }

    .thumb {
      min-width: 100px;
      height: 75px;
      max-width: 30%;
      float: left;
    }

    .video-list-item-desc {
      padding: 0 0 5px 1rem;
      width: 65%;
      float: left;
      line-height: 0.8 * $base-line-height;

      .video-title {
        font-size: 0.9rem;
        font-weight: 500;
        word-wrap: break-word;
      }

      .user-name {
        font-size: 0.8rem;
        word-wrap: break-word;
      }
    }
  }

  .title {
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 2.8rem;
    @include breakpoint($break-tablet) {
      margin-top: 0;
    }
  }

  .description {
    font-size: 1rem;
    font-weight: 300;
  }
}
