﻿/* =========================================
   ADR FLIP KARTICE
   Zadržava originalnu veličinu kartica
========================================= */

.service-flip-card {
    position: relative;
    width: 100%;
    cursor: pointer;
    perspective: 1000px;
}


/* Unutrašnjost kartice */

.service-flip-inner {
    position: relative;
    width: 100%;
    transition: transform 0.7s ease;
    transform-style: preserve-3d;
}


/* Flip */

.service-flip-card.flipped .service-flip-inner {
    transform: rotateY(180deg);
}


/* Prednja i stražnja strana */

.service-front,
.service-back {
    width: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}


/* Prednja strana */

.service-front {
    position: relative;
    z-index: 2;
}


/*
   VAŽNO:
   .image ostaje potpuno pod kontrolom
   originalnog style.css
*/

.service-front .image {
    position: relative;
}


/* Slika ostaje originalne veličine */

.service-front .image img {
    width: 100%;
    height: auto;
    display: block;
}


/* Stražnja strana */

.service-back {
    position: absolute;
    top: 0;
    left: 0;

    height: 100%;

    background: #fff;

    transform: rotateY(180deg);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding: 30px;
    box-sizing: border-box;

    text-align: center;

    border: 1px solid #e5e5e5;
}


/* Naslov na stražnjoj strani */

.service-back h4 {
    margin: 0 0 15px 0;

    color: #222;
    font-size: 21px;
    font-weight: 600;
}


/* Tekst */

.service-back p {
    margin: 0;

    color: #333;
    font-size: 14px;
    line-height: 1.7;
}


/* Mobitel */

@media only screen and (max-width: 767px) {

    .service-back {
        padding: 20px;
    }

    .service-back h4 {
        font-size: 18px;
    }

    .service-back p {
        font-size: 13px;
        line-height: 1.6;
    }
}