body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: linear-gradient(120deg, #a1c4fd, #c2e9fb);
}

/* Container کارت‌ها */
#playing-cards {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    width: 90%;
    padding: 20px;
}

/* استایل کارت‌ها */
.card {
    width: 150px;
    height: 220px;
    background-color: white;
    border: 1px solid #333;
    border-radius: 10px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 20px;
    transition: 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 4px 4px 15px rgba(0,0,0,0.3);
}

/* بخش‌ها */
.left { align-self: flex-start; font-weight: bold; line-height: 0.9; }
.middle { 
    align-self: center; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    font-size: 80px;
}
.right { 
    align-self: flex-end; 
    font-weight: bold; 
    line-height: 0.9; 
    transform: rotate(180deg); 
}

/* بخش داخلی middle */
.middle .number { font-size: 50px; font-weight: bold; }
.middle .suit { font-size: 40px; margin-top: 5px; }

/* رنگ خال‌ها */
.card:nth-child(2) .left,
.card:nth-child(2) .right,
.card:nth-child(2) .middle,
.card:nth-child(3) .left,
.card:nth-child(3) .right,
.card:nth-child(3) .middle,
.card:nth-child(5) .left,
.card:nth-child(5) .right,
.card:nth-child(5) .middle {
    color: red;
}
