body {
    font-family: 'Arial', sans-serif;
    background-color: #f7f7f7;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.game-container {
    width: 80%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tableau, .foundation, .deck-and-waste {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.pile, .foundation-pile, .deck, .waste {
    min-height: 150px;
    width: 100px; /* Adjust based on your layout preference */
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-right: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card {
    cursor: pointer;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
    text-align: center;
    margin-bottom: 10px; /* Space between stacked cards */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.hidden {
    visibility: hidden;
}

/* Hover effect for cards */
.card:hover {
    border-color: #888;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .game-container {
        width: 95%;
    }

    .tableau, .foundation, .deck-and-waste {
        flex-direction: column;
        align-items: center;
    }

    .pile, .foundation-pile, .deck, .waste {
        width: 90%;
        margin-bottom: 15px;
    }
}
