:root {
    --bradio: 5px;
    --color_1: rgb(255, 255, 255);
    --color_2: rgb(236, 236, 236);
    --color_3: rgb(255, 255, 255);
}
.carta {
    position: relative;
    width: 160px;
    height: 100px;
    margin:10px;
}

.carta .face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--bradio);
    overflow: hidden;
    transition: .5s;
    
}

.carta .front {
    transform: perspective(600px) rotateY(0deg);
    box-shadow: 0 2px 2px rgb(121, 121, 121);
}

.carta .front img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit:fill;
    opacity: 0.9;
    filter: alpha(opacity=90); /* For IE8 and earlier */
}

.carta .front h4 {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 30px;
    line-height: 30px;
    color: #fff;
    background: rgba(19, 57, 128, 0.87);
    text-align: center;
    text-transform: uppercase;
}

.carta .back {
    transform: perspective(600px) rotateY(180deg);
    background: rgb(8, 68, 11);
    padding: 5px;
    color: #3bb323;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    box-shadow: 0 2px 2px rgb(121, 121, 121);
}

.carta .back .link {
    border-top: solid 1px #1b8b0c;
    height: 35px;
    line-height: 40px;
}

.carta .back .link a {
    color: #f3f3f3;
}

.carta .back h4 {
    font-size: 18px;
    margin-top: 0;
}

.carta .back p {
    letter-spacing: 1px;
} 

.carta:hover .front {
    transform: perspective(600px) rotateY(180deg);
}

.carta:hover .back {
    transform: perspective(600px) rotateY(360deg);
}

.texto_grupo {
    font-size: 12px;
    
    color: white;
    margin-bottom: 0;
    background-color: #1b1dc45e;
}