html {
    background-color: #faf8ef;
    display: flex;
    justify-content: center;
    text-align: center;
}

h1 {
    font-size: 60px;
    color: #34312e;
    margin: 0px;
}

h2 {
    font-size: 16px;
    color: #34312e;
    margin: 0px;
}

.grid {
    display: flex;
    flex-wrap: wrap;
    background-color: #BBADA0;
    border: 5px solid #BBADA0;
    border-radius: 5px;
    margin-top: 10px;
}

.grid div {
    margin: 5px;
    border-radius: 5px;
    background-color: #EEE4DA;
    color: #675e55;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}

#scoreCounter,
#score,
#hiScoreCounter,
#hiScore {
    display: inline-block;
    font-size: 18px;
    margin-top: 10px;
    font-weight: bold;
    color: #34312e;
}

#hiScoreCounter {
    margin-left: 10px;
}

.button-container {
    display: flex;
    justify-content: space-around;
}

.reset-button,
.undo-button {
    width: 100px;
    height: 50px;
    font-size: 24px;
    text-align: center;
    cursor: pointer;
    background-color: #EEE4DA;
    color: #34312e;
    margin-top: 10px;
}

.reset-record-button {
    width: 200px;
    height: 30px;
    font-size: 12px;
    text-align: center;
    cursor: pointer;
    background-color: #f1f184;
    color: #34312e;
    margin-top: 10px;
    font-weight: bold;
}

.lebel-button {
    width: 200px;
    height: 30px;
    font-size: 12px;
    text-align: center;
    cursor: pointer;
    background-color: #EEE4DA;
    color: #34312e;
    margin-top: 10px;
    font-weight: bold;
}

.custom-dialog {
    display: none;
    width: 250px;
    padding: 20px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 13px;
}

.custom-dialog h2 {
    margin-top: 0;
    font-size: 18px;
}

.custom-dialog p {
    margin-top: 10px;
    max-height: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-dialog button {
    margin-top: 10px;
}