body {
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    background-color: darkslateblue;
}

.game-selection {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1em;
    margin: 2em;
}

.game-selection div {
    box-sizing: border-box;
    width: 15%;
    text-align: center;
    line-height: 4em;
    height: 5em;
    background-color: gold;
    border-radius: 20px;
    border: 0.5em solid #caac00;
}

.game {
    display: none;
}

.game.show {
    display: block;
}

.card {
    box-sizing: border-box;
}

.card-grid {
    display: grid;
    grid-template-columns: 15% 15% 15% 15% 15%;
    place-content: center;
    gap: 1em;
    height: auto;
}

.card-grid div {
    height: 9em;
    text-align: center;
    vertical-align: middle;
    line-height: 9em;
    border-radius: 20px;
    user-select: none;
    justify-content: center;
    align-items: center;
    display: flex;
}

.card-grid div span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    background-color: white;
    width: 75%;
    height: 25%;
    border-radius: 10px;
    opacity: 1;
    transition: opacity 1s ease-out;
}

.hidden {
    background-color: #f4d7b6;
    border: 0.5em solid #928330d2;
}

div.revealed {
    background-color: lightgrey;
    border: 0.5em solid #747474;
}

div.revealed.red {
    background-color: #f26822;
    border: 0.5em solid #b44d19;
}

div.revealed.blue {
    background-color: #009eb9;
    border: 0.5em solid #007185;
}

div.revealed.black {
    background-color: #504f50;
    border: 0.5em solid #3d3c3d;
}

.card-grid div span.revealed {
    display: inline-flex;
    opacity: 0;
    pointer-events: none;
}
