.container {
    text-align: center;
    max-width: 320px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

#grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 5px;
    background-color: #bbada0;
    padding: 10px;
    border-radius: 5px;
}

.grid-cell {
    width: 70px;
    height: 70px;
    background-color: #cdc1b4;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    line-height: 70px;
    border-radius: 5px;
    transition: transform 0.15s ease, background-color 0.2s;
}

.appear {
    transform: scale(1.15);
}

#score {
    font-size: 20px;
    margin-top: 10px;
}

#restart-button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 18px;
    background-color: #8f7a66;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#restart-button:hover {
    background-color: #6f5b4f;
}

#global-score-container {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 18px;
    color: #333;
    font-weight: bold;
}

.modal {
    display: none; 
    position: fixed; 
    z-index: 10;
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center; 
    align-items: center;
}

.modal-content {
    background-color: #f9f6f2;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 300px;
}

.modal-content input {
    width: 80px;
    font-size: 20px;
    text-transform: uppercase;
    text-align: center;
    margin: 10px 0;
}

.modal-content button {
    margin: 5px;
    padding: 8px 15px;
    border: none;
    background-color: #8f7a66;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.modal-content button:hover {
    background-color: #6f5b4f;
}
