body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: rgb(0, 0, 0);
    font-family: Arial, sans-serif;
}

.carta {
    width: 150px;
    height: 210px;
    background-color: white;
    border-radius: 10px;
    border: 2px solid black;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.numero {
    font-size: 20px;
    font-weight: bold;
    color: red;
    position: absolute;
    z-index: 2; 
}

.top {
    top: 5px;
    left: 8px;
}

.bottom {
    bottom: 5px;
    right: 8px;
    transform: rotate(180deg);
}

.naipe {
    font-size: 25px;
    color: red;
    position: absolute;
}

/* .naipe.top, .naipe.bottom { 
    font-size: 15px;
}
*/

.naipe.top {
    top: 8px;
    left: 10px;
}

.naipe.bottom {
    bottom: 8px;
    right: 10px;
    transform: rotate(180deg);
}

.naipe1 { top: 30px; left: 50%; transform: translateX(-50%); }
.naipe2 { top: 60px; left: 25%; transform: translateX(-50%); }
.naipe3 { top: 60px; right: 25%; transform: translateX(50%); }
.naipe4 { top: 90px; left: 50%; transform: translateX(-50%); }
.naipe5 { bottom: 60px; left: 25%; transform: translateX(-50%); }
.naipe6 { bottom: 60px; right: 25%; transform: translateX(50%); }
.naipe7 { bottom: 30px; left: 50%; transform: translateX(-50%); }

.carta-container {
    perspective: 1000px;
}

.carta {
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.carta-container:hover .carta {
    transform: rotateY(180deg);
}

.carta .frente, .carta .verso {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.verso {
    background-image: url('../imagem-verso/verso2.jpg');
    background-size: cover;
    background-position: center;
    transform: rotateY(180deg);
        
}
