/* 基本スタイル */
body {
    font-family: Arial, sans-serif;
    background-color: #006400; /* ポーカーテーブルの緑 */
    color: white;
}

#game-container {
    width: 90vw;
    margin: 0 auto;
    padding: 20px;
}

/* カードスタイル */
.cards-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.card {
    width: 12vw;
    height: 18vw;
    background-color: white;
    border-radius: 5px;
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    position: relative;
    cursor: pointer;
    color: black;
    font-size: 3vw; /* Adjust font size as needed */
}

.card.selected {
    transform: translateY(-10px);
    box-shadow: 0 5px 15px rgba(255, 255, 0, 0.5);
    border: 2px solid yellow;
}

.card.hidden {
    background-image: url('card-back.png');
    background-size: cover;
}

/* スートと数字のスタイル */
.card-top, .card-bottom {
    display: flex;
    justify-content: space-between;
}

.spade, .club {
    color: black;
}

.heart, .diamond {
    color: red;
}

/* ボタンスタイル */
.action-buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
}

#exchange-done-button {
    display: none;
}

button:hover {
    background-color: #45a049;
}

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

/* 結果表示 */
#result-display {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
}

.hidden {
    display: none;
}

#game-result {
    font-size: 24px;
    font-weight: bold;
    margin: 20px 0;
}

#next-game-button {
    background-color: #2196F3;
}

#next-game-button:hover {
    background-color: #0b7dda;
}

/* ゲームメッセージ */
#game-message {
    text-align: center;
    font-size: 18px;
    margin: 10px 0;
    min-height: 30px;
}
