@import url('https://fonts.googleapis.com/css?family=Markazi+Text');
body {
    font-family: 'Alegreya', serif;
    background-color: #cfcfcf;
    background: url('bg.jpg');
    background-size:  cover;
    /* background-size: 200%; */
    color: #222;
}
html,
body {
    height: 100%;
}
h1{
    margin-top: 100px;
    margin-bottom: 80px;
}
.cards-wrapper {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0 5%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.card-wrapper {
    display: block;
    float: left;
    position: relative;
    margin: 0;
    width: 28%;
    height: 0;
    padding: 0 0 28%;
    -webkit-perspective: 700px;
    perspective: 700px;
    cursor: pointer;
}
.card-object:hover{
    -webkit-box-shadow: 0px 0px 29px -2px rgba(255,255,255,1);
    -moz-box-shadow: 0px 0px 29px -2px rgba(255,255,255,1);
    box-shadow: 0px 0px 29px -2px rgba(255,255,255,1);
    transition: all 0.3s linear;
}
.card-object {
    color: #FFF;
    display: block;
    float: left;
    position: absolute;
    top: 6%;
    left: 6%;
    width: 88%;
    height: 88%;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}
.card-object.card-1 .front {
    background: #222 url('dorsa.jpg') 90% 35%;
    background-size: 100%;
}
.card-object.card-2 .front {
    background: #222 url('kleo.jpg') 90% 35%;
    background-size: 100%;
}
.card-object.card-3 .front {
    background: #222 url('femas.jpg') 90% 35%;
    background-size: 100%;
}
.card-object.flip-in.card-1,
.card-object.flip-in.card-3 {
    -webkit-animation: flip-2-hor-top-fwd 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) both;
    animation: flip-2-hor-top-fwd 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) both;
}
.card-object.flip-in.card-2 {
    -webkit-animation: flip-2-hor-bottom-fwd 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) both;
    animation: flip-2-hor-bottom-fwd 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) both;
}
.card-object.flip-out.card-1,
.card-object.flip-out.card-3 {
    animation: flip-2-hor-top-fwd 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) reverse both;
}
.card-object.flip-out.card-2 {
    animation: flip-2-hor-bottom-fwd 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) reverse both;
}
.card-object-hf .back {
    -webkit-transform: rotateX(180deg);
    transform: rotateX(180deg);
}
.face {
    color: #fff;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    flex-wrap: wrap;
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.face.front {
    z-index: 20;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: 50% 50%;
}
.face.front::before {
    position: absolute;
    top: -1px;
    right: -1px;
    bottom: -1px;
    left: -1px;
    content: "";
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 40%, rgba(0, 0, 0, 0.1) 100%) no-repeat;
    opacity: .7;
    z-index: 20;
    transition: opacity .2s ease;
    background: rgba(0,0,0,0);
    background: -moz-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(0,0,0,0.28) 100%);
    background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(0,0,0,0)), color-stop(100%, rgba(0,0,0,0.28)));
    background: -webkit-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(0,0,0,0.28) 100%);
    background: -o-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(0,0,0,0.28) 100%);
    background: -ms-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(0,0,0,0.28) 100%);
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.28) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#000000', endColorstr='#000000', GradientType=0 );
}
.face.front::after {
    position: absolute;
    top: 7%;
    right: 7%;
    bottom: 7%;
    left: 7%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    z-index: 100;
    content: "";
}
.face.front .title-wrapper {
    position: absolute;
    bottom: 3%;
    left: 25%;
    right: 25%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-wrap: wrap;
    z-index: 100;
    -webkit-transform: translateY(0);
    transform: translateY(0);
    transition: -webkit-transform .28s ease;
    transition: transform .28s ease;
    transition: transform .28s ease, -webkit-transform .28s ease;
}
.face.front .title-wrapper .title {
    position: relative;
    font-family: "Markazi Text", Arial, serif;
    width: 100%;
    text-transform: uppercase;
    font-size: 3vw;
    line-height: 1;
    opacity: .8;
    transition: opacity .2s ease;
}
.face.front .title-wrapper .title::after {
    display: block;
    margin: 7% auto 8% auto;
    width: 100%;
    height: 1px;
    content: "";
    background-color: #fff;
    opacity: .5;
    -webkit-transform: scale(0);
    transform: scale(0);
    transition: -webkit-transform .15s;
    transition: transform .15s;
    transition: transform .15s, -webkit-transform .15s;
}
.face.front .title-wrapper .subtitle {
    font-size: .9vw;
    line-height: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity .15s;
}
.face.front:hover::before {
    opacity: .9;
}
.face.front:hover .title-wrapper {
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}
.face.front:hover .title-wrapper .title {
    opacity: 1;
}
.face.front:hover .title-wrapper .title::after {
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: .5;
    transition-delay: .15s;
    transition-duration: .2s;
}
.face.front:hover .title-wrapper .subtitle {
    opacity: .7;
    transition-delay: .2s;
    transition-duration: .2s;
}
.face.back {
    color: #222;
    background: #fff;
    z-index: 10;
}
.info-container {
    position: absolute;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: flex-start;
    top: 6%;
    right: 6%;
    bottom: 6%;
    left: 6%;
    padding: 0;
}
.img-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 38%;
    z-index: 10;
}
.img-wrapper::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(14, 6, 70, 0.6);
    opacity: .7;
}
.avatar {
    position: absolute;
    left: 50%;
    height: 68%;
    width: 25.84%;
    display: block;
    border-radius: 50%;
    margin-top: 25.08%;
    margin-left: -12.92%;
    background-color: #fff;
    border: 3px solid #FFF;
    z-index: 20;
}
.info-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    position: absolute;
    top: 50.92%;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 4% 15% 15%;
}
.info-title {
    font-size: 1.5vw;
    font-family: 'Archivo Black', sans-serif;
    text-align: left;
    padding: 0;
    margin: 0;
    text-align: center;
    display: block;
    width: 100%;
}
.info-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 8% 0 0;
    margin: 8% 0 0;
    border-top: 1px solid #e0e0e0;
}
.info-content-item {
    color: #222;
    font-size: .75vw;
    line-height: 1;
    text-align: center;
    display: inline-block;
    padding: 0;
    margin: 0;
    text-transform: uppercase;
    color: #aaa;
}
.info-content-item span {
    display: block;
    font-weight: bold;
    font-size: 1.1vw;
    margin-top: 7px;
    text-transform: none;
    color: #222;
}
.info {
    position: absolute;
    bottom: 30px;
    left: 5%;
    right: 5%;
    font-size: 1em;
    text-align: center;
    color:  #ffffff;
}
.info a {
    color: #8c0f8c;
    text-decoration: none;
}
.info a:hover {
    text-decoration: underline;
}
/* ----------------------------------------------
 * Generated by Animista on 2017-21-5 2:48:23
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */
/**
 * ----------------------------------------
 * animation flip-2-hor-top-fwd
 * ----------------------------------------
 */
@-webkit-keyframes flip-2-hor-top-fwd {
    0% {
        -webkit-transform: translateY(0) translateZ(0) rotateX(0);
        transform: translateY(0) translateZ(0) rotateX(0);
        -webkit-transform-origin: 50% 0%;
        transform-origin: 50% 0%;
    }
    100% {
        -webkit-transform: translateY(-100%) translateZ(100px) rotateX(-180deg);
        transform: translateY(-100%) translateZ(100px) rotateX(-180deg);
        -webkit-transform-origin: 50% 100%;
        transform-origin: 50% 100%;
    }
}
@keyframes flip-2-hor-top-fwd {
    0% {
        -webkit-transform: translateY(0) translateZ(0) rotateX(0);
        transform: translateY(0) translateZ(0) rotateX(0);
        -webkit-transform-origin: 50% 0%;
        transform-origin: 50% 0%;
    }
    100% {
        -webkit-transform: translateY(-100%) translateZ(100px) rotateX(-180deg);
        transform: translateY(-100%) translateZ(100px) rotateX(-180deg);
        -webkit-transform-origin: 50% 100%;
        transform-origin: 50% 100%;
    }
}
/**
 * ----------------------------------------
 * animation flip-2-hor-bottom-fwd
 * ----------------------------------------
 */
@-webkit-keyframes flip-2-hor-bottom-fwd {
    0% {
        -webkit-transform: translateY(0) translateZ(0) rotateX(0);
        transform: translateY(0) translateZ(0) rotateX(0);
        -webkit-transform-origin: 50% 100%;
        transform-origin: 50% 100%;
    }
    100% {
        -webkit-transform: translateY(100%) translateZ(100px) rotateX(180deg);
        transform: translateY(100%) translateZ(100px) rotateX(180deg);
        -webkit-transform-origin: 50% 0%;
        transform-origin: 50% 0%;
    }
}
@keyframes flip-2-hor-bottom-fwd {
    0% {
        -webkit-transform: translateY(0) translateZ(0) rotateX(0);
        transform: translateY(0) translateZ(0) rotateX(0);
        -webkit-transform-origin: 50% 100%;
        transform-origin: 50% 100%;
    }
    100% {
        -webkit-transform: translateY(100%) translateZ(100px) rotateX(180deg);
        transform: translateY(100%) translateZ(100px) rotateX(180deg);
        -webkit-transform-origin: 50% 0%;
        transform-origin: 50% 0%;
    }
}
