/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f0f0;
    color: #333;
}

.game-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

/* Game Table */
.game-table {
    position: relative;
    height: 600px;
    background-color: #076324;
    border-radius: 50%;
    border: 15px solid #5d4037;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

/* Player Styles */
.player {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.player-info {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    margin: 10px 0;
    text-align: center;
}

.player-hand {
    display: flex;
    justify-content: center;
}

/* Position the players */
#player0 {
    bottom: 20px;
    width: 100%;
}

#player1 {
    top: 20px;
    width: 100%;
}

#player2 {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

#player3 {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Computer player card backs */
.computer-player .player-hand {
    display: flex;
}

.card-back {
    width: 20px;
    height: 80px;
    background-color: #b71c1c;
    border: 1px solid white;
    border-radius: 5px;
    margin-right: -10px; /* Overlapping cards */
}

/* Human player cards */
.human-player .player-hand {
    display: flex;
    justify-content: center;
}

.card {
    width: 60px;
    height: 90px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-right: -20px; /* Overlapping cards */
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
}

.card.selected {
    transform: translateY(-20px);
}

.card:hover {
    transform: translateY(-10px);
}

.card-value {
    position: absolute;
    top: 5px;
    left: 5px;
    font-size: 16px;
    font-weight: bold;
}

.card-suit {
    position: absolute;
    top: 25px;
    left: 5px;
    font-size: 20px;
}

/* Play Area */
.play-area {
    position: absolute;
    width: 300px;
    height: 150px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.play-info {
    color: white;
    margin-bottom: 10px;
}

.played-cards {
    display: flex;
    justify-content: center;
}

/* Controls */
.player-controls {
    margin-top: 10px;
}

button {
    padding: 8px 16px;
    background-color: #1976d2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 5px;
    font-size: 14px;
}

button:hover {
    background-color: #1565c0;
}

button:disabled {
    background-color: #bbdefb;
    cursor: not-allowed;
}

.game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.turn-indicator {
    font-size: 18px;
    font-weight: bold;
}

/* Suit colors */
.suit-hearts, .suit-diamonds {
    color: red;
}

.suit-clubs, .suit-spades {
    color: black;
} 