
.game-block:focus {
  outline: none;
}



.game-container {
    background-color: #d9c6e6;
    padding: 10px;
    border-radius: 10px;
    position: relative;
	width: 100%;
    max-width: 450px;
	margin: 0 auto;
	
	
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 100px);
    grid-template-rows: repeat(4, 100px);
    gap: 10px;
    background-color: #ddbded;
}

.grid div {
    background-color: #c6b4cd;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #776e65;
    transition: transform 0.2s ease-in-out; /* Анимация перемещения */
}

/* Увеличение при слиянии */
.grid div.merged {
    animation: scaleUp 0.3s ease-in-out;
}

@keyframes scaleUp {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05); /* Увеличение на 5% */
    }
    100% {
        transform: scale(1);
    }
}

.score-container {
    margin-top: 20px;
    font-size: 20px;
}

/* Стили для текстового поля сообщений */
.message {
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 18px;
    color: #000000;
    height: 12px; /* Фиксированная высота для текстового поля */
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    position: relative;
}

#restart-button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #81668f;
    color: white;
    border: none;
    border-radius: 5px;
    margin-top: 10px;
}

#restart-button:hover {
    background-color: #5e4a6a;
}