.cards{
 margin-top: 200px;
 object-fit: cover;
}

label {
    -webkit-perspective: 1000px;
    perspective: 1000px;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    width: 400px;
    height: 350px;
    position: relative;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    cursor: pointer;
     object-fit: cover;
}

.card { 
    margin-top: 20px;
    position: relative;
    height: 100%;
    width: 100%;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-transition: all 600ms;
    transition: all 600ms;
    z-index: 20;
     object-fit: cover;
}
.card img {
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    height: 350px;
    width: 100%;
    object-fit: cover;
}
.card div {
    position: absolute;
    height: 87%;
    width: 100%;
    background: #FFF;
    text-align: center;
/*    line-height: 200px;*/
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
     object-fit: cover;
}

.card .back {
    background: #222;
    color: #FFF;
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
}
.card .back .desc {
    background-color: #222;
}

label:hover .card {
    -webkit-transform: rotateY(20deg);
    transform: rotateY(20deg);
    box-shadow: 0 20px 20px rgba(50, 50, 50, .2);
}

input {
    display: none;
}

:checked + .card {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
}

label:hover :checked + .card {
    transform: rotateY(160deg);
    -webkit-transform: rotateY(160deg);
    box-shadow: 0 20px 20px rgba(255, 255, 255, .2);
}
.footer-card{
    width: 100%;
    height: 50px;
    background-color: gray;
    color:white;
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
    margin-bottom: 10px
}
.footer-card a{
    margin: auto;
    text-decoration: none;
    text-transform: uppercase;
    color: white;
}
/*
.card-c {
    display:inline-flex;
}*/
