/*------------------------------------------------------------------
[2. View Ports]
*/
.view-port {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  white-space: nowrap;
  word-spacing: 0;
  font-size: 0;
  overflow: hidden;
  & > * {
    font-size: initial;
  }
  .navbar {
    border-radius: 0;
    @include padding-left( 0 );
    margin-bottom: 0;
    @include border-left( 0 );
    display: table;
    width: 100%;
    top: 0;
    border-top: 0;
    padding: 0;
    border-bottom: 1px solid $color-contrast-low;
    .navbar-inner {
      display: table-cell;
      height: 50px;
      vertical-align: middle;
    }
    .action {
      position: absolute;
      top: 0;
      z-index: 1;
      display: flex;
      align-items: center;
      height: 100%;
      &.pull-right {
        @include right(0);
      }
    }
    .view-heading {
      font-size: 15px;
      text-align: center;
    }
    & > p {
      line-height: 12px;
      font-size: 12px;
      margin: 0;
    }
    &.navbar-sm {
      min-height: 35px;
      .navbar-inner {
        height: 35px;
      }
      .action {
        line-height: 35px;
      }
    }
  }
  .view {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    height: 100%;
    vertical-align: top;
    @include backface-visibility(hidden);
    -webkit-perspective: 1000;
    @include transition(all 0.4s ease);
    &:first-child {
      &:before {
        position: absolute;
        content: "";
        width: 100%;
        height: 100%;
        background-color: #000;
        opacity: 0;
        @include transition(opacity 0.2s linear);
        z-index: -1;
      }
    }
    &:only-child {
      margin: 0;
    }
  }
  &.from-top {
    & > .view {
      &:last-child {
        @include translate3d(-100%, 0, 0);
      }
    }
  }
  &.push {
    & > .view {
      &:first-child {
        @include translate3d(-100%, 0, 0);
      }
      &:last-child {
        @include translate3d(-100%, 0, 0);
      }
    }
  }
  &.push-parrallax {
    & > .view {
      &:first-child {
        @include transition(all 400ms cubic-bezier(0.1, 0.7, 0.1, 1));
        @include translate3d(-25%, 0, 0);
        &:before {
          opacity: 0;
          z-index: 100;
        }
      }
      &:last-child {
        @include transition(all 400ms cubic-bezier(0.1, 0.7, 0.1, 1));
        @include translate3d(-100%, 0, 0);
        box-shadow: 0 0 9px rgba(191, 191, 191, 0.36);
      }
    }
  }
}
