﻿label {
    display: block;
    position: relative;
    top:110px;
    left: 50%;
    width: 430px;
    height:450px;
    perspective: 800px;
    transform-style: preserve-3d;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

#label2 {
    display: block;
    position: relative;
    top: 110px;
    left: 50%;
    width: 380px;
    height: 420px;
    perspective: 800px;
    transform-style: preserve-3d;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.flip-card {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: all 0.5s ease-in-out;
    z-index: 1;
}

    .flip-card .front,
    .flip-card .back {
        position: absolute;
        width: 100%;
        height: 100%;
        text-align: center;
        /*background: radial-gradient( #e9d7d7 , rgb(0,104,19));*/
        background: rgb(83, 81, 85, 0.10);
        backface-visibility: hidden;
        border-radius: 15px 15px 15px 15px;
        border-top: 1.5px solid rgba(255,255,255,0.7);
        border-left: 1.5px solid rgba(255,255,255,0.7);
        justify-content: center;
        align-items: center;
        padding:5px;
    }


    .flip-card .back {
        transform: rotateX(180deg);
        color: #FFlF;
        /*background: radial-gradient( #e9d7d7, rgb(0,104,19));*/
       /* background: rgba(255, 255, 255, 0.08);*/
    }

label:hover .flip-card {
    transform: rotateX(8deg);
    box-shadow: 0 20px 20px rgba(50, 60, 60, 0.9);
}

#label2:hover .flip-card {
    transform: rotateX(8deg);
    box-shadow: 0 20px 20px rgba(50, 60, 60, 0.9);
}

input {
    display: none;
}

:checked + .flip-card {
    transform: rotateX(180deg);
}

label:hover :checked + .flip-card {
    transform: rotateX(175deg);
    box-shadow: 0 10px 20px rgba(50, 60, 60, 0.9);
}

#label2:hover :checked + .flip-card {
    transform: rotateX(175deg);
    box-shadow: 0 10px 20px rgba(50, 60, 60, 0.9);
}

.front img {
    width: 150px;
    height: 150px;
    margin: 30px 0 20px 0;
    border-radius: 50%;
    box-shadow: 5px 10px 10px rgba(50, 60, 60, 0.9);
}

.front h1 {
    font-size: 30px;
    color: rgba(0,104,19,0.8);
    margin: 0;
}

.front h2 {
    font-size: 18px;
    color: black;
    margin: 12px 0 12px 0;
}

.front b {
    font-size: 14px;
    color: #424752;
    margin: 0 0 35px 0;
    display: block;
}

.front p,
.back .click {
    font-size: 18px;
    font-weight: 600;
}

.back h1 {
    color: #424752;
    margin: 0px 0 0 0;
    font-size: 22px;
    font-weight: 700;
}

hr {
    width: 180px;
    margin: 15px auto 10px auto;
}

.back h4 {
    font-size: 12px;
    color: #fff;
    font-weight:400;
    padding: 0 0px;
    line-height: 25px;    
    margin:0px 5px 0px 5px;
}
