$modal-slide-time: 0.5s;

/* Mobile */
/*@media (max-width: 767px) {
  &.beyond-modal {
    margin-left: 0px;
  }

  md-sidenav.beyond-sidenav.beyond-modal-active {

    md-backdrop.md-sidenav-backdrop {
      z-index: 62;
    }

    md-sidenav {
      z-index: 63;
    }
  }
}*/

/* Tablet+ */
/*@media (min-width: 768px) {
  [ng-view] {
    transform: translate3d(0, 0, 0);
  }

  md-sidenav.beyond-sidenav.beyond-modal-active {
    position: absolute;
    bottom: 0;
    top: 64px;

    & + #content {
      position: absolute;
      top: 64px;
      bottom: 0;
      right: 0;
      left: 0;
      z-index: 59;
    }

    & + #content.sidenav-open {

      [ng-view] {
        margin-left: 180px;

        &.beyond-modal {
          margin-left: 180px;
          //transition: margin-left 0.5s;
          //transition-timing-function: ease-out;
        }
      }
    }

    & + #content:not(.sidenav-open) [ng-view].beyond-modal {
      margin-left: 0px;
      //transition: margin-left 0.33s;
      //transition-timing-function: ease-out;
    }
  }
}

.beyond-modal {
  position: absolute;
  display: flex;
  flex-direction: column;
  z-index: 61;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  transform: translate3d(0, 0, 0);
  height: 100%;
  background-color: $modal-background;
  box-shadow: 9px 0px 79px -5px rgba(0,0,0,0.75);
  overflow: hidden;

  > md-content {
    flex-grow: 1;
  }
}

[ng-view].ng-leave {
  opacity: 0;
  animation-duration: $modal-slide-time;
  animation-fill-mode: both;
  animation-name: fadeOut;
  transform: translate3d(0, 0, -100px);

  position: absolute;
  width: 100%;
}

[ng-view].ng-enter {
  opacity: 1;
  animation-duration: $modal-slide-time;
  animation-fill-mode: both;
  animation-name: fadeIn;
  transform: translate3d(0, 0, 0);

  position: absolute;
  width: 100%;
}

/*[ng-view].beyond-modal.ng-leave {
  top: 0;
  animation-duration: $modal-slide-time;
  animation-fill-mode: both;
  animation-name: downFromTop;
}

[ng-view].beyond-modal.ng-enter {
  top: 0;
  animation-duration: $modal-slide-time;
  animation-fill-mode: both;
  animation-name: upFromBottom;
}*/
