﻿
.front, .back {
    position: relative;
    width: 30%;
    padding: 1em 1.5em;
    margin: 2em auto;
    color: #fff;
    background: #c2c2c2;
    overflow: hidden;
}

    .front:before, .back:before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        border-width: 0 16px 16px 0;
        border-style: solid;
        border-color: #fff #fff #ff0000 #ff0000;
        background: #c2c2c2;
        -webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.3), -1px 1px 1px rgba(0,0,0,0.2);
        -moz-box-shadow: 0 1px 1px rgba(0,0,0,0.3), -1px 1px 1px rgba(0,0,0,0.2);
        box-shadow: 0 1px 1px rgba(0,0,0,0.3), -1px 1px 1px rgba(0,0,0,0.2);       
        /*display: block;*/
        display:none;
        width: 0;
    }
    .pt-content{
        font-size:18px!important;
        margin-bottom: 0rem!important;
    }

    .front.roundish, .back.roundish {
        -moz-border-radius: 5px 0 5px 5px;
        border-radius: 5px 0 5px 5px;
        width:100%;    
        opacity:0.75;
        margin-top:5px;
    }

    .front.roundish:before, .back.roundish:before {
        border-width: 16px;
        border-color: #fff #fff transparent transparent;
        -moz-border-radius: 0 0 0 5px;
        border-radius: 0 0 0 5px;
    }

.flip-container {
    perspective: 1000px;
    transform-style: preserve-3d;
}
    /*  UPDATED! flip the pane when hovered */
    .flip-container.hover .back {
        transform: rotateY(0deg);
    }

    .flip-container.hover .front {
        transform: rotateY(180deg);
    }

.flipper {
    transition: 0.6s;
    transform-style: preserve-3d;
    position: relative;    
}

.front, .back {
    backface-visibility: hidden;
    transition: 0.6s;
    transform-style: preserve-3d;
    position: absolute;
    top: 0;
    left: 0;
    /*background-color: #A1A3A1;*/
    background-color:#808280;
}

/*  UPDATED! front pane, placed above back */
.front {
    z-index: 2;
    transform: rotateY(0deg);
}

/* back, initially hidden pane */
.back {
    transform: rotateY(-180deg);
}

/* 
	Some vertical flip updates 
*/
.vertical.flip-container {
    position: relative;
   
}

.vertical .back {
    transform: rotateX(180deg);
}

.vertical.flip-container.hover .back {
    transform: rotateX(0deg);
}

.vertical.flip-container.hover .front {
    transform: rotateX(180deg);
}
/* this to commadate with the shortest height of the div*/
.flip-container, .front, .back {
        height: 315px !important;
}

/*@media screen and (max-width: 767px) {
    .flip-container, .front, .back {   
        height: 325px!important;          
    }    
}*/
.content-img{
    position: absolute;
    bottom:5px;
    left:50%;
    transform: translateX(-50%);
    width:40%!important;
}
/*.mt-1{
    margin-top: -15px!important;
}*/


