img.logo {
  margin: 50px auto 50px auto;
  width: 275px;
}


div[role=main] section.demo {
  padding-top: 30px;
}

.footer {
  text-align: center;
  padding: 30px 0;
  margin-top: 70px;
  border-top: 1px solid #e5e5e5;
  background-color: #f5f5f5;
}

.code pre, .code code {
  border: none;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.tabs dd.active a {
  background-color: #FFF;
}

.code .tabs-content>.content {
  padding: 0;
  width: 100%;
}

// /* Not enough room on mobile for markup tab, js tab, and plunk btn.
// And no one cares about plunk button on a phone anyway */
@media only screen and (max-device-width: 480px) {
  #plunk-btn {
    display: none;
  }
}


$motion-ui-classes: (
  chain: true,
  prefix: 'ng-',
  active: '-active',
);

@import 'motion-ui';
@import 'foundation';

.tooltip {
    @include mui-fade(
      $state: in,
      $duration: 0.25s,
      $delay: 0s
    );
    @include mui-fade(
        $state: out,
        $from: 1,
        $to: 0,
        $duration: 0.25s,
        $delay: 0s
    );
}

// class="accordion-item ng-scope ng-isolate-scope ng-animate is-active-add is-active is-active-add-active"

.accordion-content {

  max-height: 499px;
  transition: 0.3s all ease-in-out;

  &.ng-hide {
    max-height: 0;
  }

  &.ng-hide-add,
  &.ng-hide-remove {
    display: block !important;
  }
}

.reveal-overlay {
    @include mui-fade($state: in);
    @include mui-fade(
        $state: out,
        $from: 1,
        $to: 0
    );
}

.reveal {
    @include mui-slide(
        $state: in, // Specify in or out
        $direction: down, // Can be top, right, bottom, or left
        $fade: true, // If true, the element fades simultaneously
        $duration: 0.25s,
        $timing: cubic-bezier,
        $delay: 0s
    );

    @include mui-zoom(
        $state: out,
        $from: 1,
        $to: 0,
        $duration: 0.25s
    );
}

// .reveal {
//     // @include mui-hinge(
//     //     $state: out,
//     //     $duration: 0.5s
//     // );
//     @include mui-zoom(
//         $state: out,
//         $from: 1,
//         $to: 0,
//         $duration: 0.25s
//     );
// }

// .reveal {
//   @include mui-slide(
//     $state: out, // Specify in or out
//     $direction: down, // Can be up, right, down, or left
//     $fade: true, // If true, the element fades simultaneously
//     $duration: 0.25s,
//     $timing: cubic-bezier,
//     $delay: 0s
//   );
// }


// .is-dropdown-submenu{
//   @include mui-slide(
//         $state: in, // Specify in or out
//         $direction: down, // Can be top, right, bottom, or left
//         $fade: true, // If true, the element fades simultaneously
//         $duration: 0.25s,
//         $timing: cubic-bezier,
//         $delay: 0s
//     );
// }

.alert-box {
  background-color: #5592BB;
}



// ABIDE

.ng-submitted .ng-invalid, .ng-touched.ng-invalid {
  @include form-input-error();
}



// stolen from foundation docs
$topbar-background: #121212;
$topbar-hover-color: darken($topbar-background, 20%);

.marketing-topbar {
  background: $topbar-background;
  font-size: rem-calc(13);
  font-weight: bold;
  z-index: 2;
  position: relative;

  @include clearfix;

  ul:first-child { float: left; }
  ul:last-child  { float: right; }

  .topbar-title > a {
    font-size: rem-calc(16);
    opacity: 0.9;

    > img {
      position: relative;
      top: -1px;
    }
  }

  .menu a {
    height: 45px;
    line-height: 45px !important;
    color: $light-gray;
    padding-top: 0 !important;
    padding-bottom: 0 !important;

    &:hover:not(.button),
    &:focus {
      background: darken($topbar-background, 20%);
    }

    &.button {
      border-radius: 0;
      box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
  }

  .title {
    color: $dark-gray;
    padding: 10px;
    padding-left: 15px;
    font-size: 0.8em;
    background: lighten($topbar-background, 10%);
  }

  .is-active a {
    background: darken($topbar-background, 20%);
  }

  // ZURB logo
  .menu img {
    position: relative;
    top: -2px;
  }

  .menu:last-child {
    border-left: 1px solid #4e4e4e;
  }

  .menu {
    li:not(:last-child) {
      border-right: 1px solid #4e4e4e;
    }
  }

  .dropdown.menu .submenu {
    border: 0;
  }

  .opens-right a {
    padding-right: 1rem !important;
  }

  .opens-right a::after {
    display: none !important;
  }
}

.mobile-ofc {
  background: $topbar-background;
  font-size: rem-calc(13);
  font-weight: bold;

  .menu a {
    height: 45px;
    line-height: 45px;
    color: $light-gray;
    padding-top: 0;
    padding-bottom: 0;

    &:hover:not(.button),
    &:focus {
      background: darken($topbar-background, 20%);
    }

    &.button {
      border-radius: 0;
      box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
  }

  .title {
    color: $dark-gray;
    padding: 10px;
    padding-left: 15px;
    font-size: 0.8em;
    background: lighten($topbar-background, 10%);
  }
}

.off-canvas {
  a.close-button {
    color: $light-gray;
  }
  .close-button:hover, .close-button:focus {
    color: $light-gray;
  }
}

.orbit-container {
  transition: all 0.5s cubic-bezier(0.65, 0.05, 0.36, 1);
}