
body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* height: 100vh;
    margin: 0; */
    background-color: #2b2b2b;
    color: #fff;
}
.bold {
    font-weight: bold;
}
.game-board {
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 1200px;
}
.players-top {
    display: flex;
    justify-content: space-around;
    padding: 20px;
}
.player {
    text-align: center;
}
.center-pile {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}
.player-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    width: 100%;
}
.deck, .player-hand, .player-pile {
    flex: 1; /* Allow containers to expand equally */
    display: flex;
    flex-wrap: wrap; /* Wrap cards within containers */
    justify-content: flex-start; /* Align cards to start of container */
    align-items: flex-start; /* Align cards to top of container */
    gap: 10px; /* Adjust gap between cards */
    padding: 10px; /* Optional padding around cards */
}
.player-hand {
    justify-content: flex-start;
}
.value{
    display: none;
}
.suit{
    display: none;
}
.showing{
    display: none;
}
.card {
    width: 60px;
    height: 90px;
    border: 1px solid #000;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    /* padding: 5px; */
    margin-right: -40px;
    background-color: white;
    color: black;
    cursor: grab;
}
.card:active {
    cursor: grabbing;
}
/* .card:nth-child(n+11) {
    margin-right: 0;
} */
.card.red {
    color: red;
}
.card.black {
    color: black;
}
.card.back {
    background-color: grey;
    color: white;
}
.shuffle-button {
    margin-top: 10px;
    padding: 5px 10px;
    border: none;
    background-color: #444;
    color: #fff;
    cursor: pointer;
}
#game-error {
    color: red;
}
.deck, .player-hand, .player-pile, .center-pile {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #ccc;
    min-width: 60px;
    min-height: 90px;
    position: relative;
}
.dragover {
    background-color: #f0f0f0; /* Example: highlight drop zone */
}
.container-label {
    position: absolute;
    top: -20px;
    left: 10px;
    padding: 2px 5px;
    font-size: 12px;
}
#big-box{
    width: 100%;
    height: 80%;
    display: flex;
}
#chat{
    width: 25%;
    height: 50%;
    padding: 10px;
}
#chat-area{
    height: 100%;
    overflow-y: auto;
}
#game-board{
    flex: 1;
    padding: 10px;
}
.menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 2px solid black;
    padding: 20px;
    z-index: 1000;
    display: none;
}

.menu.hidden {
    display: none;
}

.menu.visible {
    display: block;
}

.toggle-button {
    appearance: none;
    width: 50px;
    height: 25px;
    background-color: #ccc;
    border-radius: 25px;
    position: relative;
    outline: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.toggle-button:checked {
    background-color: #4caf50;
}

.toggle-button::before {
    content: '';
    position: absolute;
    width: 21px;
    height: 21px;
    background-color: #fff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

.toggle-button:checked::before {
    transform: translateX(25px);
}
.icon {
    width: 20px;
    height: 20px;
    position: relative;
    bottom: -2px;
    left: -24px;
}

.selected {
    border: 2px solid blue;
    background-color: lightblue;
    z-index: 100;
}
#box {
    position: absolute;
    border: 1px solid #000;
    background-color: rgba(0, 0, 255, 0.2);
    display: none;
}
.game-board{
    user-select: none;
}