.rba-preview-book {
    background: #fff;
    margin: 50px;
    border-radius: 5px;
    position: relative;
}

.rba-popup-title {
    padding: 15px;
    border-bottom: 1px solid #ebebeb;
    text-align: left;
}

.rba-popup-title h2 {
    font-size: 1em;
    margin: 0;
    font-weight: 400;
}

.rba-popup-title h2 span {
    color: #aaa;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-right: 10px;
}

.rba-popup-content-wrapper {
    overflow-y: scroll;
    overflow-x: hidden;
}

.rba-popup-content {
    width: 600px;
    max-width: 100%;
    margin: 0 auto;
    transition: .3s ease;
}

.rba-popup-content img {
    width: 100%;
    height: auto;
    display: block;
    text-align: center;
    margin: 20px auto;
    border: 1px solid rgba(0, 0, 0, 0.3);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3);
    max-width: 100%;
}

.rba-preview-tools {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 3;
}

.rba-preview-tools button {
    width: 48px;
    height: 48px;
    line-height: 48px;
    padding: 0;
    padding-left: 1px;
    border: solid 1px #ebebeb !important;
    color: #000 !important;
    font-size: 20px;
    margin: 0 5px;
    background-color: white;
    background: linear-gradient(white, #fefefe) !important;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.rba-preview-book button.mfp-close {
    width: 25px;
    height: 25px;
    line-height: 25px;
    font-size: 30px;
    font-weight: 700;
    margin-right: 10px;
    margin-top: 10px;
}

.rba-images {
    perspective: 2000px;
}

.rba-images .rba-flip-wrapper {
    max-width: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(0);
    margin: 0 auto !important;
    transition: transform 0.6s ease !important;
}

.rba-images .rba-flip-wrapper.rba-view {
    transform: rotateY(-180deg);
}

.rtl .rba-images .rba-flip-wrapper.rba-view {
    transform: rotateY(180deg);
}

.rba-images .rba-flip-wrapper:not(.rba-view):hover {
    transform: rotateY(-30deg);
}

.rtl .rba-images .rba-flip-wrapper:not(.rba-view):hover {
    transform: rotateY(30deg);
}

.rba-images .rba-flip-wrapper:not(.rba-view):hover .rba-flip-front {
    transform: rotateY(-20deg);
}

.rtl .rba-images .rba-flip-wrapper:not(.rba-view):hover .rba-flip-front {
    transform: rotateY(20deg);
}

.rba-images .rba-flip-wrapper:not(.rba-view):hover .rba-flip-first-page {
    transform: rotateY(-10deg);
}

.rtl .rba-images .rba-flip-wrapper:not(.rba-view):hover .rba-flip-first-page {
    transform: rotateY(10deg);
}

.rba-images .rba-flip {
    position: absolute;
    left: 0;
    top: 0;
    transform-origin: 0;
    will-change: transform;
    background-image: linear-gradient(45deg, white, #fafafa);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.rba-images .rba-flip img {
    display: block;
    height: auto;
}

.rba-images .rba-flip-side {
    width: 50px;
    bottom: 0;
    background-color: #333;
    transform: rotateY(90deg);
    background-image: linear-gradient(45deg, #333, #111);
}

.rtl .rba-images .rba-flip-side {
    left: 100%;
}

.rba-images .rba-flip-side-paper {
    width: 50px;
    bottom: 0;
    left: 100%;
    transform: rotateY(90deg);
    background-color: #f3f3f3;
    background-image: -webkit-repeating-linear-gradient(left, #fff 0%, #ebebeb 1.3%, #fff 2%, #e2e2e2 3.2%);
    background-image: -o-repeating-linear-gradient(left, #fff 0%, #ebebeb 1.3%, #fff 2%, #e2e2e2 3.2%);
    background-image: repeating-linear-gradient(to right, #fff 0%, #ebebeb 1.3%, #fff 2%, #e2e2e2 3.2%);
}

.rtl .rba-images .rba-flip-side-paper {
    left: 0;
}

.rba-images .rba-flip-front {
    background-color: #333;
    transform: rotateY(-2deg);
}

.rtl .rba-images .rba-flip-front {
    transform-origin: 100%;
    transform: rotateY(2deg);
}

.rba-images .rba-flip-front:after {
    content: " ";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .1) 10px, rgba(0, 0, 0, .1) 15px, transparent, 16px, transparent);
}

.rtl .rba-images .rba-flip-front:after {
    transform: rotate(180deg);
}

.rba-images .rba-flip-back {
    background: #f3f3f3;
    transform: translateZ(-50px) rotateY(180deg);
    transform-origin: center;
    box-shadow: 15px 15px 30px rgba(0, 0, 0, .1);
    width: 100%;
    height: 100%;
}

.rba-images .rba-flip-back:after {
    content: " ";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(-90deg, transparent, rgba(0, 0, 0, .3) 10px, rgba(0, 0, 0, .5) 15px, transparent, 16px, transparent);
}

.rtl .rba-images .rba-flip-back:after {
    transform: rotate(-180deg);
}

.rba-images .rba-flip-first-page, .rba-images .rba-flip-second-page {
    width: 100%;
    height: 100%;
    background-color: white;
}

.rba-images .rba-flip-first-page {
    transform: rotateY(-1deg);
    background-image: linear-gradient(75deg, #aaa, #ccc);
}

.rtl .rba-images .rba-flip-first-page {
    transform-origin: 100% 0;
}

.rba-images .rba-flip-second-page {
    background-color: #fafafa;
    background-image: linear-gradient(45deg, #f3f3f3, #fafafa);
}

.rba-images .rba-btn-action {
    text-align: center;
    padding-top: 50px;
}

.no-preserve3d .rba-images .rba-btn-action .see-back {
    display: none;
}

.rba-btn {
    background-color: transparent;
    padding: 5px 15px;
    color: #000;
    border: 2px solid #ebebeb;
    border-radius: 50px;
    font-size: 15px;
    cursor: pointer;
    line-height: 1;
    display: inline-block;
    margin: 0 5px;
    transition: .3s ease;
    text-decoration: none !important;
}

.rba-btn:hover {
    background-color: #000;
    border-color: #000;
    color: #fff;
    transition: .3s ease;
}

.rba-btn:hover i {
    color: #fff;
    transition: .3s ease;
}

.rba-btn i {
    color: #000;
    margin-right: 10px;
    vertical-align: middle;
    line-height: 1;
    font-size: 13px;
    width: 13px;
    display: inline-block;
    transition: .3s ease;
}

