/*
* iziModal | v1.6.0
* http://izimodal.marcelodolce.com
* by Marcelo Dolce.
*/
.iziModal {
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    transition: margin-top 0.3s ease, height 0.3s ease;
    transform: translateZ(0);
}

.iziModal .iziModal-wrap{
    width: 100%;
    position: relative;
    overflow-scrolling: touch;
}
.iziModal-overlay{
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}



.iziModal.hasScroll .iziModal-wrap{
    overflow-y: auto;
    overflow-x: hidden;
}

html.iziModal-isOverflow{
    overflow: hidden;
}
html.iziModal-isOverflow body, html.iziModal-isAttached body{
    overflow-y: scroll;
    position: relative;
}
html.iziModal-isAttached{
    overflow: hidden;
}

/* ANIMATIONS */

.iziModal.fadeOut, .iziModal-overlay.fadeOut, .iziModal-navigate.fadeOut, .iziModal .fadeOut{
    -webkit-animation: iziM-fadeOut 0.5s;
    -moz-animation: iziM-fadeOut 0.5s;
    animation: iziM-fadeOut 0.5s;
    animation-fill-mode: forwards;
}
.iziModal.fadeIn, .iziModal-overlay.fadeIn, .iziModal-navigate.fadeIn, .iziModal .fadeIn {
    -webkit-animation: iziM-fadeIn 0.5s;
    -moz-animation: iziM-fadeIn 0.5s;
    animation: iziM-fadeIn 0.5s;
}
.iziModal.comingIn, .iziModal-overlay.comingIn {
    -webkit-animation: iziM-comingIn 0.5s ease;
    -moz-animation: iziM-comingIn 0.5s ease;
    animation: iziM-comingIn 0.5s ease;
}
.iziModal.comingOut, .iziModal-overlay.comingOut {
    -webkit-animation: iziM-comingOut 0.5s cubic-bezier(.16,.81,.32,1);
    -moz-animation: iziM-comingOut 0.5s cubic-bezier(.16,.81,.32,1);
    animation: iziM-comingOut 0.5s cubic-bezier(.16,.81,.32,1);
    animation-fill-mode: forwards;
}
.iziModal.bounceInDown, .iziModal-overlay.bounceInDown {
    -webkit-animation: iziM-bounceInDown 0.7s ease;
    animation: iziM-bounceInDown 0.7s ease;
}
.iziModal.bounceOutDown, .iziModal-overlay.bounceOutDown {
    -webkit-animation: iziM-bounceOutDown 0.7s ease;
    animation: iziM-bounceOutDown 0.7s ease;
}
.iziModal.bounceInUp, .iziModal-overlay.bounceInUp {
    -webkit-animation: iziM-bounceInUp 0.7s ease;
    animation: iziM-bounceInUp 0.7s ease;
}
.iziModal.bounceOutUp, .iziModal-overlay.bounceOutUp {
    -webkit-animation: iziM-bounceOutUp 0.7s ease;
    animation: iziM-bounceOutUp 0.7s ease;
}
.iziModal.fadeInDown, .iziModal-overlay.fadeInDown {
    -webkit-animation: iziM-fadeInDown 0.7s cubic-bezier(.16,.81,.32,1);
    animation: iziM-fadeInDown 0.7s cubic-bezier(.16,.81,.32,1);
}
.iziModal.fadeOutDown, .iziModal-overlay.fadeOutDown {
    -webkit-animation: iziM-fadeOutDown 0.5s ease;
    animation: iziM-fadeOutDown 0.5s ease;
}
.iziModal.fadeInUp, .iziModal-overlay.fadeInUp {
    -webkit-animation: iziM-fadeInUp 0.7s cubic-bezier(.16,.81,.32,1);
    animation: iziM-fadeInUp 0.7s cubic-bezier(.16,.81,.32,1);
}
.iziModal.fadeOutUp, .iziModal-overlay.fadeOutUp {
    -webkit-animation: iziM-fadeOutUp 0.5s ease;
    animation: iziM-fadeOutUp 0.5s ease;
}
.iziModal.fadeInLeft, .iziModal-overlay.fadeInLeft {
    -webkit-animation: iziM-fadeInLeft 0.7s cubic-bezier(.16,.81,.32,1);
    animation: iziM-fadeInLeft 0.7s cubic-bezier(.16,.81,.32,1);
}
.iziModal.fadeOutLeft, .iziModal-overlay.fadeOutLeft {
    -webkit-animation: iziM-fadeOutLeft 0.5s ease;
    animation: iziM-fadeOutLeft 0.5s ease;
}
.iziModal.fadeInRight, .iziModal-overlay.fadeInRight {
    -webkit-animation: iziM-fadeInRight 0.7s cubic-bezier(.16,.81,.32,1);
    animation: iziM-fadeInRight 0.7s cubic-bezier(.16,.81,.32,1);
}
.iziModal.fadeOutRight, .iziModal-overlay.fadeOutRight {
    -webkit-animation: iziM-fadeOutRight 0.5s ease;
    animation: iziM-fadeOutRight 0.5s ease;
}
.iziModal.flipInX, .iziModal-overlay.flipInX {
    -webkit-animation: iziM-flipInX 0.7s ease;
    animation: iziM-flipInX 0.7s ease;
}
.iziModal.flipOutX, .iziModal-overlay.flipOutX {
    -webkit-animation: iziM-flipOutX 0.7s ease;
    animation: iziM-flipOutX 0.7s ease;
}

@-webkit-keyframes iziM-comingIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(-20px) perspective( 600px ) rotateX( 10deg );
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0) perspective( 600px ) rotateX( 0 ); 
    }
}
@-moz-keyframes iziM-comingIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(-20px) perspective( 600px ) rotateX( 10deg );
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0) perspective( 600px ) rotateX( 0 ); 
    }
}
@keyframes iziM-comingIn {
    0% {
        opacity: 0;
        /*transform: translateY(-20px) perspective( 600px ) rotateX( 10deg );*/
        transform: scale(0.9) translateY(-20px) perspective( 600px ) rotateX( 10deg );
    }
    100% {
        opacity: 1;
        /*transform: scale(1) translateY(0) perspective( 600px ) rotateX( 0 ); */
        transform: scale(1) translateY(0) perspective( 600px ) rotateX( 0 ); 
    }
}

@-webkit-keyframes iziM-comingOut {
    0% {
        opacity: 1;
        transform: scale(1); 
    }
    100% {
        opacity: 0;
        transform: scale(0.9); 
    }
}
@-moz-keyframes iziM-comingOut {
    0% {
        opacity: 1;
        transform: scale(1); 
    }
    100% {
        opacity: 0;
        transform: scale(0.9); 
    }
}
@keyframes iziM-comingOut {
    0% {
        opacity: 1;
        transform: scale(1); 
    }
    100% {
        opacity: 0;
        transform: scale(0.9); 
    }
}
@-webkit-keyframes iziM-fadeOut {
    0% {opacity: 1;}
    100% {opacity: 0;}
}
@-moz-keyframes iziM-fadeOut {
    0% {opacity: 1;}
    100% {opacity: 0;}
}
@keyframes iziM-fadeOut {
    0% {opacity: 1;}
    100% {opacity: 0;}
}

@-webkit-keyframes iziM-fadeIn {
    0% {opacity: 0;}
    100% {opacity: 1;}
}
@-moz-keyframes iziM-fadeIn {
    0% {opacity: 0;}
    100% {opacity: 1;}
}
@keyframes iziM-fadeIn {
    0% {opacity: 0;}
    100% {opacity: 1;}
}
