* {
    user-select: none;
}
body,
html {
    margin: 0;
    padding: 0;
    font-family: monospace;
    font-size: 16px;
}

.game-container {
    padding: 20px;
    text-align: center;
    width: 400px;
    position: relative;
    margin: 0 auto;
    max-width: 88vw;
}

.hand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.hand {
    padding: 10px;
    border: 2px solid black;
    width: 120px;
    text-align: center;
    transition: transform 0.2s ease-in-out;
}

.buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.buttons button,
#restart-button,
#clear-button {
    margin: 5px;
    padding: 10px;
    font-size: 24px;
    border: none;
    background-color: #f4f4f4;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#clear-button {
    font-family: monospace;
    font-size: unset;
    margin-left: 10px;
}

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

button:hover:not(:disabled) {
    background-color: #ddd;
}

.log {
    margin-top: 20px;
    border: 1px solid #ccc;
    height: 150px;
    overflow-y: auto;
    background-color: #f9f9f9;
    padding: 10px;
    font-family: monospace;
    font-size: medium;
}

.stats-container {
    font-size: smaller;
    padding: 20px;
    text-align: center;
    width: 400px;
    position: relative;
    margin: 0 auto;
    margin-top: 40px;
    max-width: 88vw;
}

.stats-container h2 {
    font-family: monospace;
}

#game-stats,
#rankings-list {
    margin-top: 10px;
}

#game-stats p {
    margin: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: small;
}

th,
td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

th {
    background-color: #f2f2f2;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

::-webkit-scrollbar {
    width: 0px;
    height: 0px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    -webkit-box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.row {
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
}