/**************************\
  Basic Modal Styles
\**************************/

.modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
}


.micromodal.first-level {
    z-index: 1050;
}

.micromodal.second-level {
    z-index: 1051;
}

.micromodal.third-level {
    z-index: 1052;
}

.modal__container {
    background-color: #fff;
    margin: 0 10px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    border-radius: 4px;
    box-sizing: border-box;
}

.micromodal.micromodal-nano .modal__container {
    max-width: 300px
}

.micromodal.micromodal-mini .modal__container {
    max-width: 450px
}

.micromodal.micromodal-small .modal__container {
    max-width: 600px
}

.micromodal.micromodal-medium .modal__container {
    max-width: 900px
}

.micromodal.micromodal-large .modal__container {
    max-width: 1200px
}

.micromodal.micromodal-x-large .modal__container {
    max-width: 1500px
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

.modal__title {
    margin: 0;
    font-weight: 600;
    font-size: 1.6rem;
    line-height: 1.25;
    color: #101c2a;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.modal__close {
  background: transparent;
  border: 0;
  cursor: pointer;
}

.modal__header .modal__close:before { content: "\2715"; }

.modal__content {
    padding: 0 10px;
    max-height: calc(90vh - 88px);
    line-height: 1.5;
    color: rgba(0,0,0,.8);
}


.modal__footer {
    display: flex;
    justify-content: flex-end;
    padding: 10px;
}


@media only screen and (max-height: 600px) {

    .modal__container {
        max-height: 98vh;
    }

    .modal__content {
        max-height: calc(98vh - 88px);
    }

}



/**************************\
  Demo Animation Style
\**************************/
@keyframes mmfadeIn {
    from { opacity: 0; }
      to { opacity: 1; }
}

@keyframes mmfadeOut {
    from { opacity: 1; }
      to { opacity: 0; }
}

@keyframes mmslideIn {
  from { transform: translateY(15%); }
    to { transform: translateY(0); }
}

@keyframes mmslideOut {
    from { transform: translateY(0); }
    to { transform: translateY(-10%); }
}

.micromodal-slide {
  display: none;
}

.micromodal-slide.is-open {
  display: block;
}

.micromodal-slide[aria-hidden="false"] .modal__overlay {
  animation: mmfadeIn .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.micromodal-slide[aria-hidden="false"] .modal__container {
  animation: mmslideIn .3s cubic-bezier(0, 0, .2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__overlay {
  animation: mmfadeOut .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__container {
  animation: mmslideOut .3s cubic-bezier(0, 0, .2, 1);
}

/*
.micromodal-slide .modal__container,
.micromodal-slide .modal__overlay {
  will-change: transform;
}

*/