/*

Animated message (from ajax example)

*/

/* Default styling */

#message {
    top: -200px;
    transition: all .5s;
}

/* When inside current slide */

.fancybox-slide--current #message {
    top: 0;
}

/* Different effect when fanyBox is closing; optional */

.fancybox-is-closing #message {
    top: 0;
    transform: scale(1.5);
}



/*

Advanced example - Morphing modal window

https://codepen.io/fancyapps/pen/rmwyXN

*/

.morphing-btn-wrap {
    display: inline-block;
    position: relative;
    text-align: center;
}

.morphing-btn {
    box-sizing: border-box;
    -webkit-transition: background .3s, color .2s .2s, width .2s 0s;
    -moz-transition: background .3s, color .2s .2s, width .2s 0s;
    -o-transition: background .3s, color .2s .2s, width .2s 0s;
    transition: color .3s .2s, width .2s 0s;
    white-space: nowrap;
}

.morphing-btn_circle {
    color: transparent !important;
    padding-left: 0;
    padding-right: 0;

    /* Override inline style rule */
    -webkit-transition: color .2s 0s, width .3s .2s;
    -moz-transition: color .2s 0s, width .3s .2s;
    -o-transition: color .2s 0s, width .3s .2s;
    transition: color .2s 0s, width .3s .2s;
    width: 35.6px !important;
}

.morphing-btn-clone {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background: #EAE500;
    border-radius: 50%;
    position: fixed;
    -webkit-transition: all .5s cubic-bezier(.65, .05, .36, 1);
    -moz-transition: all .5s cubic-bezier(.65, .05, .36, 1);
    -o-transition: all .5s cubic-bezier(.65, .05, .36, 1);
    transition: all .5s cubic-bezier(.65, .05, .36, 1);
    z-index: 3;
}

.morphing-btn-clone_visible {
    display: block;
    -webkit-transform: scale(1) !important;
    -moz-transform: scale(1) !important;
    -ms-transform: scale(1) !important;
    -o-transform: scale(1) !important;
    transform: scale(1) !important;
}

.fancybox-morphing .fancybox-bg {
    background: #EAE500;
    opacity: 1;
}

.fancybox-morphing .fancybox-toolbar {
    right: 40px;
    top: 20px;
}

.fancybox-morphing .fancybox-button--close {
    background: rgba(0, 0, 0, .2);
    border-radius: 50%;
    color: #fff;
}

.fancybox-morphing .fancybox-button--close:hover {
    background: rgba(0, 0, 0, .25);
}

/* Styling for element used in example */

#morphing-content {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background: transparent;
    line-height: 2;
    margin: 0;
    padding: 6em 10vw;
    position: relative;
    z-index: 3;
}

#morphing-content * {
    color: #252A24;
}

/*
// End of examples
*/