﻿/*css*/


.info-card-wrap {
    margin: 0 auto;
    text-align: center;
    display: block;
}



.info-card {
    display: inline-block;
}

    .info-card h2 {
        color: #cc3f3f;
        font-size: 25px;
        margin: 0px;
        text-align: center;
        line-height: 1.5;
    }

    .info-card p {
        font-size: 16px;
        line-height: 30px;
        margin: 15px 0px;
    }

    .info-card img {
        max-width: 70%;
        /* min-height: 250px; */
        display: block;
        text-align: center;
        padding: 15px;
        margin: 0 auto;
    }


.front, .back {
    background: #FFF;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    -moz-transition: -webkit-transform 1s;
    -o-transition: -webkit-transform 1s;
    -webkit-transition: -webkit-transform 1s;
    transition: -webkit-transform 1s;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    border: 1px solid #ccc;
}

.front {
    /* overflow: hidden; */
    padding: 20px;
    width: 250px;
    height: 300px;
    position: absolute;
    z-index: 1;
}

.back {
    padding: 20px;
    /* padding-top: 0px; */
    width: 250px;
    height: 300px;
    -webkit-transform: rotateY(-180deg);
    -moz-transform: rotateY(-180deg);
    -ms-transform: rotateY(-180deg);
    -o-transform: rotateY(-180deg);
    transform: rotateY(-180deg);
    /* position: absolute; */
    /* overflow: scroll; */
}

    .back h2 {
        padding-top: 40%;
        font-size: 3em;
    }

.info-card:hover .back {
    -webkit-transform: rotateY(0);
    -moz-transform: rotateY(0);
    -ms-transform: rotateY(0);
    -o-transform: rotateY(0);
    transform: rotateY(0);
}

.info-card:hover .front {
    -webkit-transform: rotateY(180deg);
    -moz-transform: rotateY(180deg);
    -ms-transform: rotateY(180deg);
    -o-transform: rotateY(180deg);
    transform: rotateY(180deg);
}

.card-image {
    width: 100%;
    height: 100%;
}


/* Social buttons */
.social {
    list-style: none;
    padding: 0px;
    margin-top: 25px;
    text-align: center;
}

    .social a {
        position: relative;
        display: inline-block;
        min-width: 40px;
        padding: 10px 0px;
        margin: 0px 5px;
        overflow: hidden;
        text-align: center;
        background-color: rgb(215, 215, 215);
        -moz-border-radius: 40px;
        -webkit-border-radius: 40px;
        border-radius: 40px;
    }


a.social-icon {
    text-decoration: none !important;
    -moz-box-shadow: 0px 0px 1px rgb(51, 51, 51);
    -webkit-box-shadow: 0px 0px 1px rgb(51, 51, 51);
    box-shadow: 0px 0px 1px rgb(51, 51, 51);
    box-shadow: 0px 0px 1px rgba(51, 51, 51, 0.7);
}

    a.social-icon:hover {
        color: rgb(255, 255, 255) !important;
    }

a.facebook {
    color: rgb(59, 90, 154) !important;
}

    a.facebook:hover {
        background-color: rgb(59, 90, 154) !important;
    }

a.twitter {
    color: rgb(45, 168, 225) !important;
}

    a.twitter:hover {
        background-color: rgb(45, 168, 225) !important;
    }

a.github {
    color: rgb(51, 51, 51) !important;
}

    a.github:hover {
        background-color: rgb(51, 51, 51) !important;
    }


@media only screen and (max-width: 767px) {
    .info-card:active .back, .info-card:hover .back {
        -webkit-transform: rotateY(0);
        -moz-transform: rotateY(0);
        -ms-transform: rotateY(0);
        -o-transform: rotateY(0);
        transform: rotateY(0);
    }

    .info-card:active .front, .info-card:hover .front {
        -webkit-transform: rotateY(180deg);
        -moz-transform: rotateY(180deg);
        -ms-transform: rotateY(180deg);
        -o-transform: rotateY(180deg);
        transform: rotateY(180deg);
    }

    .info-card-wrap {
        margin: 0 auto;
        text-align: left;
        display: block;
    }


}


@media only screen and ( min-width:321px) and (max-width :480px) {
    .info-card {
        padding-bottom: 20px;
        position: relative;
        left: 18%;
    }
}

@media only screen and ( max-width:320px) {
    .info-card {
        padding-bottom: 20px;
        position: relative;
        left: 15%;
    }
}