/* Style for the modal and overlay*/
.ffb-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 50%;
    max-width: 630px;
    min-width: 320px;
    height: auto;
    z-index: 2000;
    visibility: hidden;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateX(-50%) translateY(-50%);
    -moz-transform: translateX(-50%) translateY(-50%);
    -ms-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
}
.ffb-show {
    visibility: visible;
}
.ffb-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    visibility: hidden;
    top: 0;
    left: 0;
    z-index: 1000;
    opacity: 0;
    background: rgba(143, 27, 15, 0.8);
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
}
.ffb-show ~ .ffb-overlay {
    opacity: 1;
    visibility: visible;
}
.ffb-modal .ffb-close-icon:hover {
    background: url('../images/pop_close_hover.png') no-repeat;
}
.ffb-modal .ffb-close-icon {
    display: block;
    width: 20px;
    height: 20px;
    overflow: hidden;
    background: url('../images/pop_close.png') no-repeat;
    position: absolute;
    top: -30px;
    right: 0px;
    z-index: 999;
    cursor: pointer;
    border: none;
    -webkit-transition: none;
    -moz-transition: none;
    -o-transition: none;
    transition: none;
}
/* Content styles */

.ffb-content button {
    display: block;
    margin: 0 auto;
    font-size: 0.8em;
}


/* Blur background */
.ffb-show.ffb-effect ~ .ffb-overlay {
    background: rgba(0, 0, 0, 0.9);
}
/* Effect: Fade in and scale up */
.ffb-effect .ffb-content {
    -webkit-transform: scale(0.7);
    -moz-transform: scale(0.7);
    -ms-transform: scale(0.7);
    transform: scale(0.7);
    opacity: 0;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
}
.ffb-show.ffb-effect .ffb-content {
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
    opacity: 1;
}
