#ouibounce-modal { font-family: 'Open Sans', sans-serif; display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 999999; }
#close_button { background: url(../images/close_modal.png) no-repeat; background-color: transparent; width: 30px !important; height: 30px !important; display: block; cursor: pointer; float: right; position: absolute; top: -15px; right: -15px; z-index: 10; }
#ouibounce-modal .underlay { width: 100%; height: 100%; position: absolute; z-index: 10; top: 0; left: 0; cursor: pointer; -webkit-animation: fadein 0.5s; animation: fadein 0.5s; }
#ouibounce-modal .modal-title { font-size: 18px; background-color: #252525; color: #fff; padding: 10px; margin: 0; border-radius: 4px 4px 0 0; text-align: center; }
#ouibounce-modal h3:not(.cmpopfly-layout *) { color: #fff; font-size: 1em; margin: 0.2em; text-transform: uppercase; font-weight: 500; }
#ouibounce-modal .modal-body { font-size: 0.9em; overflow: auto; display: flex; width: 100%; align-items: center; flex-flow: wrap; flex-direction: column; position:static; }
#ouibounce-modal .modal-body a:not(.cmpopfly-layout *) { display: flex; align-items: flex-start; }
#ouibounce-modal p:not(.cmpopfly-layout *) { margin: 0; padding: 0; }
#ouibounce-modal form:not(.cmpopfly-layout *) .mailpoet_paragraph { margin: 0 0 20px; }
#ouibounce-modal .modal .modal-body .mailpoet_form { width: 100%; }
#ouibounce-modal form:not(.cmpopfly-layout *) { text-align: center; margin-top: 35px; }
#ouibounce-modal form input[type="text"]:not(.cmpopfly-layout *) { padding: 12px; font-size: 1.2em; width: 300px; border-radius: 4px; border: 1px solid #ccc; -webkit-font-smoothing: antialiased; }
#ouibounce-modal form input[type="submit"]:not(.cmpopfly-layout *) { text-transform: uppercase; font-weight: bold; padding: 12px; font-size: 1.1em; border-radius: 4px; color: #fff; background-color: #4ab471; border: none; cursor: pointer; -webkit-font-smoothing: antialiased; }
#ouibounce-modal form p:not(.cmpopfly-layout *) { text-align: left; opacity: 0.8; margin-top: 1px; padding-top: 1px; font-size: 0.9em; }
#ouibounce-modal .modal-footer { position: absolute; bottom: 20px; text-align: center; width: 100%; }
#ouibounce-modal .modal-footer p { text-transform: capitalize; cursor: pointer; display: inline; border-bottom: 1px solid #344a5f; }
#flyingBottomAd .flyingBottomAdClose { -webkit-transition: -webkit-transform .5s ease .2s,opacity .5s ease,top .5s ease .2s; transition: transform .5s ease .2s,opacity .5s ease,top .5s ease .2s; content: ''; display: block; z-index: 2; cursor: pointer; width: 30px !important; height: 30px !important; margin: 0; padding: 0; background: url(../images/close_modal.png) no-repeat; position: absolute; top: -15px; left: -15px; }
@-webkit-keyframes fadein {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
@-ms-keyframes fadein {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes fadein {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
@-webkit-keyframes popin {
    0% { -webkit-transform: scale(0); transform: scale(0); opacity: 0; }
    85% { -webkit-transform: scale(1.05); transform: scale(1.05); opacity: 1; }
    100% { -webkit-transform: scale(1); transform: scale(1); opacity: 1; }
}
@-ms-keyframes popin {
    0% { -ms-transform: scale(0); transform: scale(0); opacity: 0; }
    85% { -ms-transform: scale(1.05); transform: scale(1.05); opacity: 1; }
    100% { -ms-transform: scale(1); transform: scale(1); opacity: 1; }
}
@keyframes popin {
    0% { -webkit-transform: scale(0); -ms-transform: scale(0); transform: scale(0); opacity: 0; }
    85% { -webkit-transform: scale(1.05); -ms-transform: scale(1.05); transform: scale(1.05); opacity: 1; }
    100% { -webkit-transform: scale(1); -ms-transform: scale(1); transform: scale(1); opacity: 1; }
}
@-webkit-keyframes bounce {
    0%, 20%, 50%, 80%, 100% {-webkit-transform: translateY(0);}
    40% {-webkit-transform: translateY(-30px);}
    60% {-webkit-transform: translateY(-15px);}
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-30px);}
    60% {transform: translateY(-15px);}
}
@-webkit-keyframes shake {
    0%, 100% {-webkit-transform: translateX(0);}
    10%, 30%, 50%, 70%, 90% {-webkit-transform: translateX(-10px);}
    20%, 40%, 60%, 80% {-webkit-transform: translateX(10px);}
}
@keyframes shake {
    0%, 100% {transform: translateX(0);}
    10%, 30%, 50%, 70%, 90% {transform: translateX(-10px);}
    20%, 40%, 60%, 80% {transform: translateX(10px);}
}
@-webkit-keyframes flash {
    0%, 50%, 100% {opacity: 1;}
    25%, 75% {opacity: 0;}
}
@keyframes flash {
    0%, 50%, 100% {opacity: 1;}
    25%, 75% {opacity: 0;}
}
@-webkit-keyframes tada {
    0% {-webkit-transform: scale(1);}
    10%, 20% {-webkit-transform: scale(0.9) rotate(-3deg);}
    30%, 50%, 70%, 90% {-webkit-transform: scale(1.1) rotate(3deg);}
    40%, 60%, 80% {-webkit-transform: scale(1.1) rotate(-3deg);}
    100% {-webkit-transform: scale(1) rotate(0);}
}
@keyframes tada {
    0% {transform: scale(1);}
    10%, 20% {transform: scale(0.9) rotate(-3deg);}
    30%, 50%, 70%, 90% {transform: scale(1.1) rotate(3deg);}
    40%, 60%, 80% {transform: scale(1.1) rotate(-3deg);}
    100% {transform: scale(1) rotate(0);}
}
@-webkit-keyframes rotateIn {
    0% { -webkit-transform-origin: center center; -webkit-transform: rotate(-200deg); opacity: 0; }
    100% { -webkit-transform-origin: center center; -webkit-transform: rotate(0); opacity: 1; }
}
@keyframes rotateIn {
    0% { transform-origin: center center; transform: rotate(-200deg); opacity: 0; }
    100% { transform-origin: center center; transform: rotate(0); opacity: 1; }
}
@-webkit-keyframes swing {
    20%, 40%, 60%, 80%, 100% { -webkit-transform-origin: top center; }
    20% { -webkit-transform: rotate(15deg); }
    40% { -webkit-transform: rotate(-10deg); }
    60% { -webkit-transform: rotate(5deg); }
    80% { -webkit-transform: rotate(-5deg); }
    100% { -webkit-transform: rotate(0deg); }
}
@keyframes swing {
    20% { transform: rotate(15deg); }
    40% { transform: rotate(-10deg); }
    60% { transform: rotate(5deg); }
    80% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}
/* ---- Media & rich content support (videos, embeds, forms, etc.) ---- */
#ouibounce-modal .modal { box-sizing: border-box; max-width: 95vw; max-height: 95vh; }
#ouibounce-modal .modal-body,
#flyingBottomAd .popupflyin-clicks-area { box-sizing: border-box; max-height: 100%; overflow: auto; -webkit-overflow-scrolling: touch; }
#ouibounce-modal .modal-body > *,
#flyingBottomAd .popupflyin-clicks-area > * { max-width: 100%; box-sizing: border-box; }
#ouibounce-modal .modal-body img,
#ouibounce-modal .modal-body video,
#ouibounce-modal .modal-body iframe,
#ouibounce-modal .modal-body embed,
#ouibounce-modal .modal-body object,
#ouibounce-modal .modal-body svg,
#ouibounce-modal .modal-body picture,
#flyingBottomAd .popupflyin-clicks-area img,
#flyingBottomAd .popupflyin-clicks-area video,
#flyingBottomAd .popupflyin-clicks-area iframe,
#flyingBottomAd .popupflyin-clicks-area embed,
#flyingBottomAd .popupflyin-clicks-area object,
#flyingBottomAd .popupflyin-clicks-area svg { max-width: 100%; }
#ouibounce-modal .modal-body img:not(.cmpopfly-layout *),
#ouibounce-modal .modal-body video:not(.cmpopfly-layout *),
#flyingBottomAd .popupflyin-clicks-area img:not(.cmpopfly-layout *),
#flyingBottomAd .popupflyin-clicks-area video:not(.cmpopfly-layout *) { height: auto; }
#ouibounce-modal .modal-body video:not(.cmpopfly-layout *),
#flyingBottomAd .popupflyin-clicks-area video:not(.cmpopfly-layout *) { display: block; width: 100%; background: #000; }
#ouibounce-modal .modal-body audio,
#flyingBottomAd .popupflyin-clicks-area audio { width: 100%; max-width: 100%; }

/* Responsive 16:9 wrapper for YouTube / Vimeo / oEmbed iframes */
#ouibounce-modal .modal-body .cmpopfly-embed,
#flyingBottomAd .popupflyin-clicks-area .cmpopfly-embed { position: relative; width: 100%; min-width: 280px; max-width: 100%; height: 0; padding-bottom: 56.25%; overflow: hidden; }
#ouibounce-modal .modal-body .cmpopfly-embed iframe,
#flyingBottomAd .popupflyin-clicks-area .cmpopfly-embed iframe { position: absolute; top: 0; left: 0; width: 100% !important; height: 100% !important; border: 0; }

/* WordPress [video] / [audio] shortcode players */
#ouibounce-modal .modal-body .wp-video,
#flyingBottomAd .popupflyin-clicks-area .wp-video { width: 100% !important; max-width: 100%; }
#ouibounce-modal .modal-body .wp-video-shortcode,
#flyingBottomAd .popupflyin-clicks-area .wp-video-shortcode { width: 100% !important; height: auto !important; }

/* Generic elements */
#ouibounce-modal .modal-body figure { margin: 0; }
#ouibounce-modal .modal-body table { border-collapse: collapse; max-width: 100%; }
#ouibounce-modal form input[type="text"],
#ouibounce-modal form input[type="email"] { max-width: 100%; box-sizing: border-box; }

/* Popup Layouts built with a page builder */
#ouibounce-modal .modal-body > .cmpopfly-layout,
#flyingBottomAd .popupflyin-clicks-area > .cmpopfly-layout { width: 100%; align-self: stretch; text-align: initial; }
