html,
body {
    background-color: black;
    color: white;
}

.cards {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
}

.cards-row {
    align-items: flex-start;
    display: flex;
    flex-direction: row;
    gap: 0.25rem;
    justify-content: center;
}

.card {
    align-items: stretch;
    background-color: hsl(0deg 0% 90%);
    border-radius: 0.5rem;
    border: none;
    color: black;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    font-size: 1rem;
    font-weight: bold;
    justify-content: center;
    height: 3rem;
    margin: 0;
    outline: none;
    width: 2.5rem;
}

.card:hover {
    background-color: hsl(0deg 0% 100%);
}

.card--red {
    color: hsl(0deg 90% 50%);
}

.card--out {
    opacity: 0.5;
    pointer-events: none;
}

.card__suit {
    display: inline-block;
    font-size: 1.25rem;
    line-height: 1;
    text-align: left;
}

.card__rank {
    display: inline-block;
    font-size: 1.5rem;
    line-height: 1;
    text-align: right;
}

.cards-table {
    background-color: hsl(145deg 30% 40%);
    border-radius: 0.5rem;
    padding: 0.5rem;
}

.cards-table:empty {
    display: none;
}

.buttons {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    margin: 1rem 0;
}

.buttons button {
    background-color: hsl(0deg 0% 10%);
    border: 1px solid hsl(0deg 0% 50%);
    color: white;
    cursor: pointer;
}

.buttons button:hover {
    background-color: hsl(0deg 0% 20%);
}
