body {
    background-color: #2c5f2d;
    font-family: Arial, sans-serif;
    color: #fff;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

#game {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    width: 90%;
    max-width: 800px;
}

h1 {
    color: #ffd700;
}

#table {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    margin-top: 20px;
    position: relative;
    padding: 20px;
    border: 3px solid #ffd700;
    border-radius: 10px;
}

#community-cards, #player, #ai, #pot {
    padding: 10px;
    margin: 10px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.3);
}

#community-cards, #player-cards, #ai-cards {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.card {
    width: 70px;
    min-width: 60px;
    max-width: 80px;
    height: 95px;
    border: 1px solid #333 !important;
    border-radius: 8px;
    background-color: #fff !important;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    position: relative;
    display: flex !important;
    flex-direction: column;
    padding: 5px;
    font-family: Arial, sans-serif;
    user-select: none;
    cursor: default;
    margin: 0 5px;
    visibility: visible !important;
}

.card.red {
    color: #f00;
}

.card.black {
    color: #000;
}

.card .rank-top {
    position: absolute;
    top: 5px;
    left: 5px;
    font-size: 1.2em;
    font-weight: bold;
}

.card .suit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5em;
}

.card .rank-bottom {
    position: absolute;
    bottom: 5px;
    right: 5px;
    font-size: 1.2em;
    font-weight: bold;
    transform: rotate(180deg);
}

.card-back {
    background: url('card_backs/back1.png') no-repeat center center;
    background-size: cover;
    color: transparent;
}

#controls {
    margin-top: 20px;
}

#controls div {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

#controls button {
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    background-color: #ffd700;
    border: 1px solid #333;
    color: #000;
}

#controls button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

#status {
    margin-top: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #ff4d4d;
    min-height: 100px;
    padding: 10px;
    line-height: 1.5;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    text-align: center;
}

#card-back-selector {
    margin: 10px;
}

#card-back-selector select {
    padding: 5px;
    font-size: 16px;
    border-radius: 5px;
}