.card-container {
    perspective: 1000px;
    position: relative;
    height: 230px;
}

.card {
    width: 350px;
    height: 215px;
    border-radius: 25px;
    color: white;
    font-size: 22px;
    transform-style: preserve-3d;
    transition: transform 0.8s ease-in-out;
    cursor: pointer;
    margin: 5px auto;
    
}

.card:hover {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 350px;
    height: 215px;
    border-radius: 20px;
    color: white;
    backface-visibility: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    padding: 20px;
}

.front {
    background: linear-gradient(500deg, black, #fffde4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.back {
    background: #1c1c1c;
    transform: rotateY(180deg);
}

.chip {
    width: 50px;
    height: 35px;
    background: gold;
    border-radius: 8px;
}

.card-number {
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-top: 20px;
}

.card-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.visa-logo {
    font-size: 2rem;
    text-align: right;
    font-weight: bold;
}

.back .stripe {
    background: #444;
    height: 40px;
    margin-bottom: 20px;
}

.back .cvv {
    text-align: right;
    margin-top: 30px;
    font-size: 0.9rem;
}