/* ضبط الخطوط والاتجاه */
body {
    font-family: 'Tahoma', sans-serif;
    direction: rtl;
    background: linear-gradient(135deg, #2e8b57, #1e4d2b);
    color: #fff;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

header, footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    text-align: center;
}

h1 {
    margin: 0;
    font-size: 1.5em;
}

button {
    background-color: #ff9800;
    border: none;
    padding: 8px 15px;
    color: white;
    font-size: 1em;
    cursor: pointer;
    border-radius: 5px;
}
button:hover {
    background-color: #e68900;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* منطقة اللعب */
#game-board {
    width: 80%;
    height: 50%;
    border: 2px dashed rgba(255,255,255,0.5);
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

#player-hand {
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* تصميم الكروت */
.card {
    width: 70px;
    height: 100px;
    background-color: white;
    color: black;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2em;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.card:hover {
    transform: scale(1.1);
}

/* Flip Animation */
.card.flip {
    transform: rotateY(180deg);
    transition: transform 0.6s;
}