﻿.FlipCard {
    width: 100%;
    margin: 12px 0;
    aspect-ratio: 1;
    color: #fff;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
    backface-visibility: hidden;
    transition: .9s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

    .FlipCard.deactive .overlay {
        backdrop-filter: blur(4px);
        background-color: #000000de;
    }

    .FlipCard:not(.deactive):hover .content-front {
        transform: rotateY(-180deg);
    }

    .FlipCard:not(.deactive):hover .content-back {
        transform: rotateY(0deg);
    }

    .FlipCard .content-front, .FlipCard .content-back {
        position: relative;
        transform-style: preserve-3d;
        perspective: 1000px;
        backface-visibility: hidden;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        border-radius: 3px;
    }

.content-front {
    background: #292929;
}

.FlipCard > * {
    transition: .9s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.FlipCard .cf-inner {
    transform-style: preserve-3d;
    backface-visibility: hidden;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-front .cf-inner:before, .content-front .cf-inner:after {
    content: "";
    position: absolute;
    width: 50px;
    height: 50px;
    z-index: 10;
}

.content-front .cf-inner:before {
    top: 20px;
    left: 20px;
    border-left: 1px dotted;
    border-top: 1px dotted;
    border-color: rgba(255, 255, 255, .6);
}

.content-front .cf-inner:after {
    bottom: 20px;
    right: 20px;
    border-right: 1px dotted;
    border-bottom: 1px dotted;
    border-color: rgba(255, 255, 255, .6);
}

.bg {
    /*background-image: url(https://cdn.pixabay.com/photo/2021/04/20/16/32/woman-6194370_960_720.jpg);*/
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-position: center;
    background-size: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00000085;
    z-index: 3;
    border-radius: 3px;
}

.FlipCard .cf-inner .inner {
    transform-style: preserve-3d;
    perspective: 1000px;
    backface-visibility: hidden;
    transform: translateZ(95px) scale(0.81);
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 4px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .FlipCard .cf-inner .inner h3 {
        position: relative;
        font-size: 18px;
        font-weight: 800;
        color: #fff;
        text-shadow: 1px 1px 2px black;
    }

        .FlipCard .cf-inner .inner h3:before {
            content: "";
            position: absolute;
            left: 50%;
            bottom: 10px;
            width: 20px;
            height: 2px;
            margin-left: -10px;
        }

        .FlipCard .cf-inner .inner h3:after {
            content: "";
            position: absolute;
            top: -30px;
            left: 50%;
            width: 50px;
            height: 2px;
            margin-left: -25px;
            background: var(--Secondary);
        }

    .FlipCard .cf-inner .inner h4 {
        display: inline-block;
        color: #fff;
        text-transform: uppercase;
        font-size: 12px;
        letter-spacing: 2px;
        margin: 0 4px;
    }

.serv-num {
    position: absolute;
    bottom: 20px;
    left: 30px;
    color: #fff;
    z-index: 3;
    font-size: 20px;
}

    .serv-num img {
        height: 20px;
    }

.FlipCard .content-back {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    transform: rotateY(180deg);
    background: #292929;
    border-radius: 3px;
}

.content-back .dec-icon {
    top: 7px;
    left: 30px;
    position: absolute;
}

.dec-icon {
    position: relative;
    display: inline-table;
    width: 80px;
    height: 80px;
}

    .dec-icon:before {
        left: -15px;
        top: 12px;
    }

    .dec-icon:after {
        right: -15px;
        bottom: 12px;
    }

    .dec-icon:before, .dec-icon:after {
        content: "";
        position: absolute;
        width: 60px;
        height: 10px;
        border-radius: 10px;
        background: rgba(255, 255, 255, .1);
    }

    .dec-icon i {
        color: var(--PrimaryLight);
        z-index: 3;
        font-size: 45px;
        position: relative;
        opacity: 0.5;
    }

.content-back:after {
    color: var(--PrimaryLight);
    position: absolute;
    content: "\25CF\25CF\25CF";
    width: 33px;
    left: calc(50% - 20px);
    bottom: 15px;
    font-size: 10px;
    letter-spacing: 4px;
}

.fas {
    font-weight: 300;
    font-family: 'Font Awesome\ 5 Free';
}

.fa-utensils:before {
    content: "\f2e7";
}

.FlipCard .cf-inner .inner p {
    color: #fff;
    font-size: 13px;
    line-height: 24px;
    padding-bottom: 10px;
    font-weight: 400;
    margin: 0;
    padding: 0;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
    text-shadow: 0px 0px 4px black;
}