.swipe-cards {
    width: 100%;
}

.swipe-cards--container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
    opacity: 0;
    transition: opacity 0.1s ease-in-out, height 0.5s ease;
    min-height: 100px;
    touch-action: none;
    pointer-events: none;
}

.swipe-cards--container.loaded {
    opacity: 1;
}
.swipe-cards--container.ready:not(.delay) {
    pointer-events: auto;
}

.swipe-cards--card {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    max-width: 600px;
    background-color: #FFFFFF;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    position: absolute;
    top: 0;
    transition: transform 0.3s ease-in-out, background-color .5s ease-out, opacity 0.3s ease;
    cursor: grab;
    border: 1px solid #ccc;
    min-height: 100px;
    padding: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
}

.swipe-cards--card.swipe-cards--card-current {
    opacity: 1;
    visibility: visible;
    pointer-events: inherit;
}

.swipe-cards--card--bg {
    pointer-events: none;
    opacity: 0;
    z-index: -1;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
}

.swipe-cards--card.like .swipe-cards--card--bg {
    background-color: #b5ff9d;
}

.swipe-cards--card.dislike .swipe-cards--card--bg {
    background-color: #ff9d9d;
}

.swipe-cards--card.moving {
    transition: none;
    cursor: grabbing;
}

.swipe-cards--card--content {
    padding: 10px;
    pointer-events: none;
    overflow: hidden;
    display: none;
}

.swipe-cards--card.swipe-cards--card-current .swipe-cards--card--content {
    display: block;
}

.swipe-cards--card--content img {
    width: 100%;
    pointer-events: none;
}
.swipe-cards--card--content.fr-view img.fr-dib {
    margin-top: 0;
}

.swipe-cards--card--content p {
    padding: 0;
    pointer-events: none;
    margin: 0 0 5px;
}

/* allows press video controls when card is not moving, and disables when moving. We should disable events on moving to prevent strange behavior*/
.swipe-cards--card:not(.moving) .swipe-cards--card--content video,
.swipe-cards--card:not(.moving) .swipe-cards--card--content iframe {
    pointer-events: auto;
}

.swipe-cards--buttons {
    display: flex;
    align-items: stretch;
    text-align: center;
    justify-content: center;
    width: 100%;
    margin-top: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    transition: all .2s ease-in-out;
}

.swipe-cards--buttons.swipe-cards--buttons--disabled {
    opacity: 0.6;
    pointer-events: none;
}

.swipe-cards--buttons button {
    width: 50%;
    border: none;
    padding: 10px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .2s ease-in-out;
}

.swipe-cards--buttons button.dislike {
    background-color: #FA9C9E;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.swipe-cards--buttons button.dislike:hover {
    background-color: #ee7477;
}

.swipe-cards--buttons button.like {
    background-color: #28A745;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.swipe-cards--buttons button.like:hover {
    background-color: #149732;
}

.swipe-cards--buttons button:focus {
    outline: 0;
}

.swipe-cards--buttons .swipe-cards--btn-icon {
    position: relative;
    padding-top: 6px;
    margin-left: 10px;
    margin-right: 10px;
}

.swipe-cards--buttons .fa-hand-pointer {
    font-size: 24px;
    vertical-align: middle;
}

.swipe-cards--buttons .swipe-cards--icon-arrow {
    position: absolute;
    top: 0;
    font-size: 12px;
}
.swipe-cards--buttons button.dislike {order: 1}
html[dir="rtl"] .swipe-cards--buttons button.dislike {order: 2}
.swipe-cards--buttons button.dislike .fa-hand-pointer {transform: rotate(-45deg)}
.swipe-cards--buttons button.dislike .swipe-cards--icon-arrow {right: 8px;}

.swipe-cards--buttons button.like {order: 2}
html[dir="rtl"] .swipe-cards--buttons button.like {order: 1}
.swipe-cards--buttons button.like .fa-hand-pointer {transform: rotate(45deg)}
.swipe-cards--buttons button.like .swipe-cards--icon-arrow {left: 0}

@keyframes swipe-cards-wobble {
    from {
        transform: translate3d(0, 0, 0);
    }

    15% {
        transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);
    }

    30% {
        transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);
    }

    45% {
        transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
    }

    60% {
        transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
    }

    75% {
        transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
    }

    to {
        transform: translate3d(0, 0, 0);
    }
}

.swipe-cards--wobble {
    pointer-events: none;
    user-select: none;
    animation-duration: 1.5s;
    animation-fill-mode: both;
    animation-name: swipe-cards-wobble;
}
