/*
Copyright (c) 2017 Creative Tim

Original Author: Creative Tim 
Edits made by  : Ballard Glenn Blair 

*/

/* entire container, keeps perspective */
.card-container {
	  -webkit-perspective: 800px;
   -moz-perspective: 800px;
     -o-perspective: 800px;
        perspective: 800px;
        margin-bottom: 30px;
}
/* flip the pane when hovered */
.card-container:not(.manual-flip):hover .card,
.card-container.hover.manual-flip .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;
}
/* flip speed goes here */
.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;
}



/*        Style       */

#services2 {
    padding-left: 4%;
    padding-right: 2%;
}

.col-md-6 {
    padding-left: 7%;
    padding-right: 9%;
    padding-bottom: 50px;
}

/* Fixes issue w/bio pic not fitting right on mobile */


@media (max-width: 320px){
    #coverimg{
    overflow: hidden;
    border-radius: 4px 4px 0 0;
    height: 150px;
}
#AlexmCard {
    margin-bottom: 0px;
}
}
@media (min-width: 321px) and (max-width: 420px){
    #coverimg{
    overflow: hidden;
    border-radius: 4px 4px 0 0;
    height: 185px;
}
#AlexmCard {
    margin-bottom: 0px;
}
}

@media (min-width: 420px) and (max-width: 800px){
    #coverimg{
    overflow: hidden;
    border-radius: 4px 4px 0 0;
    height: 375px;
}
#AlexmCard {
    margin-bottom: 0px;

}
}

.card .cover{
    height: 223px;
    overflow: hidden;
    border-radius: 4px 4px 0 0;
}

@media only screen and (max-width : 767px) {
  .box {
    height: auto !important;
  } 
}

#portfolio {
    z-index: 0;
}

.card{
    background: none repeat scroll 0 0 #F8EFD5;
    border-radius: 4px;
    color: #444444;
}
.card-container, .front, .back {
	width: 100%;
	height: 420px;
	border-radius: 4px;
}

.card .cover img{
    width: 100%;
}
.card .user{
    border-radius: 50%;
    display: block;
    height: 130px;
    margin: -55px auto 0;
    overflow: hidden;
    width: 120px;
    background-color: #F8EFD5;
}
.card .user img{
    background: none repeat scroll 0 0 #F8EFD5;
    border: 9px solid #F8EFD5;
    width: 100%;
}

.card .content{
    background-color: #F8EFD5;
    box-shadow: none;
    padding: 10px 20px 20px;
}
.card .content .main {
    min-height: 160px;
}
.card .back .content .main {
    height: 215px;
}
.card .name {
    font-size: 22px;
    line-height: 28px;
    margin: 10px 0 0;
    text-align: center;
    text-transform: capitalize;
}
.card h5{
    margin: 5px 0;
    font-weight: 400;
    line-height: 20px;
}
.card .profession{
    color: #999999;
    text-align: center;
    margin-bottom: 20px;
}
.card .footer {
    border-top: 1px solid #EEEEEE;
    color: #999999;
    margin: 30px 0 0;
    padding: 10px 0 0;
    text-align: center;
}
.card .footer .social-links{
    font-size: 18px;
}
.card .footer .social-links a{
    margin: 0 7px;
}
.card .footer .btn-simple{
    margin-top: -6px;
}
.card .header {
    padding: 15px 20px;
    height: 90px;
}
.card .motto{
    border-bottom: 1px solid #EEEEEE;
    color: #999999;
    font-size: 14px;
    font-weight: 400;
    padding-bottom: 10px;
    text-align: center;
}

.card .stats-container{
	width: 100%;
	margin-top: 50px;
}
.card .stats{
	display: block;
	float: left;
	width: 33.333333%;
	text-align: center;
}

.card .stats:first-child{
	border-right: 1px solid #EEEEEE;

}
.card .stats:last-child{
	border-left: 1px solid #EEEEEE;
}
.card .stats h4{
	font-weight: 300;
	margin-bottom: 5px;
}
.card .stats p{
	color: #777777;
}

/*       Fix bug for IE      */

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .front, .back{
        -ms-backface-visibility: visible;
        backface-visibility: visible;
    }

    .back {
        visibility: hidden;
        -ms-transition: all 0.2s cubic-bezier(.92,.01,.83,.67);
    }
    .front{
        z-index: 4;
    }
    .card-container:not(.manual-flip):hover .back,
    .card-container.manual-flip.hover .back{
        z-index: 5;
        visibility: visible;
    }
}
