﻿.card-flip {
    perspective: 1000px;
}

    .card-flip.hover .flip, .card-flip:hover .flip {
        transform: rotateY(180deg);
    }

.back, .card-flip, .front {
    width: 100%;
    height: 270px;
    padding: 18px;
}

.flip {
    transition: .6s;
    transform-style: preserve-3d;
}

.front {
    transform: rotateY(0);
}

.card-container {
    -webkit-perspective: 800px;
    -moz-perspective: 800px;
    -o-perspective: 800px;
    perspective: 800px;
    margin-bottom: 30px;
}

    .card-container.hover.manual-flip .card, .card-container:not(.manual-flip):hover .card {
        -webkit-transform: rotateY(180deg);
        -moz-transform: rotateY(180deg);
        -o-transform: rotateY(180deg);
        transform: rotateY(180deg);
    }

    .card-container.static.hover .card, .card-container.static:hover .card {
        -webkit-transform: none;
        -moz-transform: none;
        -o-transform: none;
        transform: none;
    }

.card {
    -webkit-transition: -webkit-transform .5s;
    -moz-transition: -moz-transform .5s;
    -o-transition: -o-transform .5s;
    transition: transform .5s;
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    -o-transform-style: preserve-3d;
    transform-style: preserve-3d;
    position: relative;
    background: #FFF;
    color: #444;
    margin-top: 10px;
}

    .card .footer, .card .motto, .card .profession {
        color: #999;
        text-align: center;
    }

.back, .front {
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -o-backface-visibility: hidden;
    backface-visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #FFF;
}

.front {
    z-index: 2;
}

.back {
    -webkit-transform: rotateY(180deg);
    -moz-transform: rotateY(180deg);
    -o-transform: rotateY(180deg);
    transform: rotateY(180deg);
    z-index: 3;
}

    .back .btn-simple {
        position: absolute;
        left: 0;
        bottom: 4px;
    }

.back, .card-container, .front {
    width: 100%;
    height: 150px;
}

.card .cover {
    height: 110px;
    overflow: hidden;
}

    .card .cover img {
        width: 240px;
        height: auto;
        display: block;
        margin: auto;
    }

.card .user {
    display: block;
    height: 120px;
    margin: -55px auto 0;
    overflow: hidden;
    width: 120px;
}

    .card .user img {
        background: #FFF;
        width: 100%;
    }

.card .content {
    background-color: rgba(0,0,0,0);
    box-shadow: none;
    padding: 10px 20px 20px;
}

    .card .content .main {
        min-height: 160px;
    }

.card .back .content .main {
    height: 215px;
}

.card .name {
    line-height: 20px;
    margin: 10px 0 0;
    text-align: center;
    text-transform: capitalize;
}

.card h5 {
    margin: 5px 0;
    font-weight: 400;
    line-height: 20px;
}

.card .profession {
    margin-bottom: 5px;
}

.card .footer {
    margin: 30px 0 0;
    padding: 10px 0 0;
}

    .card .footer .social-links a {
        margin: 0 7px;
    }

    .card .footer .btn-simple {
        margin-top: -6px;
    }

.card .header {
    height: auto;
}

.card .motto {
    font-size: 20px;
    font-weight: 400;
    padding-bottom: 10px;
    margin-top: 0;
}

.card .stats-container {
    width: 100%;
    margin-top: 50px;
}

.card .stats {
    display: block;
    float: left;
    width: 33.333333%;
    text-align: center;
}



    .card .stats h4 {
        font-weight: 300;
        margin-bottom: 5px;
    }

    .card .stats p {
        color: #777;
    }

p {
    margin-bottom: 20px;
    font-size: small;
    text-align: justify;
    max-height: 135px;
    overflow: hidden;
}

@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none) {
    .back, .front {
        -ms-backface-visibility: visible;
        backface-visibility: visible;
    }

    .back {
        visibility: hidden;
        -ms-transition: all .2s cubic-bezier(.92,.01,.83,.67);
    }

    .front {
        z-index: 4;
    }

    .card-container.manual-flip.hover .back, .card-container:not(.manual-flip):hover .back {
        z-index: 5;
        visibility: visible;
    }
}

@media (max-width:500px) {
    h4.text-center {
        font-size: 14px !important;
        line-height: 25px !important;
    }

    .card .cover img {
        width: 200px;
    }
}

@media (min-width:1200px) {
    h4.text-center {
        font-size: 14px;
        color: #2d3033;
        font-weight: 400;
        line-height: 24px;
    }
}

@media (max-width:1200px) {
    h4.text-center {
        font-size: 17px;
        color: #2d3033;
        font-weight: 400;
        line-height: 20px;
    }
}

@media screen and (max-width:1199px) and (min-width:768px) {
    .back, .card-container, .front {
        height: 320px;
    }
}

@media screen and (max-width:767px) and (min-width:400px) {
    .back, .card-container, .front {
        height: 300px;
    }
}

@media screen and (max-width:399px) and (min-width:300px) {
    .back, .card-container, .front {
        height: 360px;
    }
}
