﻿card, .card {
    /* Add shadows to create the "card" effect */
    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.25);
    transition: 0.3s;
    padding: 20px;
    background-color: #FFFFFF;
    display: block;
    overflow: hidden;
    margin-bottom: 10px;
}

    card.fill,
    card-body.fill,
    form.fill {
        display: flex;
        flex-flow: column;
        height: 100%;
    }

    card.map {
        padding: unset;
    }

    card .icon {
        max-height: 56px;
        max-width: 100%;
    }

    /* On mouse-over, add a deeper shadow */
    card:hover {
        box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
    }

    card h3 {
        color: #333333;
        font-weight: bold;
        margin-left: 10px;
    }


card-header {
    display: table;
    flex: 0 1 auto;
    width: 100%;
    border-bottom: 1px solid #E7E7E7;
    margin-bottom: 10px;
    padding-bottom: 5px;
    z-index: 99;
}

card-body {
    flex: 1 1 auto;
    width: 100%;
    z-index: 99;
}

    card-body.fill div.flex {
        flex: 1 1 auto;
        width: 100%;
    }

card-footer {
    flex: 0 1 auto;
    width: 100%;
    margin-top: 15px;
    z-index: 99;
}

    card-footer .btn {
        width: 100%;
    }

card-counter {
    font-size: 4em;
    text-align: center;
    display: table;
    margin: 0 auto;
}

@media (max-width: 992px) {
    card-footer .btn:first-of-type {
        margin-bottom: 5px;
    }
}



.flip-card {
    background-color: transparent;
    perspective: 2000px; /* Remove this if you don't want the 3D effect */
}

/* This container is needed to position the front and back side */
.flip-card-inner {
    position: relative;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

/* Do an horizontal flip when you move the mouse over the flip box container */
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

/* Position the front and back side */
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
}

/* Style the front side (fallback if image is missing) */
.flip-card-front {
}

/* Style the back side */
.flip-card-back {
    -webkit-transform: rotateY(180deg);
    -moz-transform: rotateY(180deg);
    -o-transform: rotateY(180deg);
    transform: rotateY(180deg);
}

card-header .btn-close {
    background-color: transparent;
    position: absolute;
    float: right;
    right: 10px;
    top: 10px;
    font-size: 1.3em;
    color: #B8B8B8;
    z-index: 1;
}

card .btn-close:hover {
    cursor: pointer;
    color: #808080;
}

card.contextmenu {
    overflow: unset;
}

    card.contextmenu card-footer {
        z-index: 98;
    }
