body {
    display: flex;
    flex-direction: column;
    background: url('img/background.jpg') no-repeat center center fixed;
    background-size: cover; /* Изображение будет масштабироваться для заполнения экрана */
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    background-color: #f0f8ff;
    font-family: Arial, sans-serif;
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Фон для игрового поля */
.grid {
    display: grid;
    grid-template-columns: repeat(6, 60px);
    grid-gap: 5px;
    background-color: #63872e;
    border-radius: 20px;
    padding: 15px;
    background-position: center;
    background-size: 300%;
    background-repeat: no-repeat;
    overflow: hidden;
    width: fit-content;
    height: fit-content;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
}

.row-anim-enter {
    animation: slide-in 0.5s ease-out forwards;
}

.row-anim-exit {
    animation: slide-out 0.5s ease-in forwards;
}

@keyframes slide-in {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slide-out {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

@keyframes fade-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}

.footprint {
    animation: fade-in 0.5s ease-out;
}

/* Классы для изображения, заменяющего квадраты */
.cell {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
}

.footprint {
    width: 40px;
    height: 40px;
}

.buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
    width: 100%;
}

button {
    padding: 10px 20px;
    font-size: 20px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background-color: #ced742;
    color: #63872e;
    box-shadow: 0 0px 30px rgba(0, 0, 0, 0.5);
    transition: background-color 0.2s ease;
}

button:hover {
    background-color: #ffdd33;
    transform: scale(1.1); /* Увеличение */
    transition: transform 0.2s ease, background-color 0.2s ease;
}

button:active {
    background-color: #ffbb00;
    transform: scale(1.15); /* Большее увеличение при нажатии */
    transition: transform 0.1s ease;
}     

.back-button {
    margin-top: 20px;
    text-align: center;
}

#logo {
    margin-top: -100px;
}

@media screen and (max-width: 768px) {
    #logo {
        margin-top: -50px;
    }
}

@media screen and (max-width: 480px) {
    #logo {
        margin-top: -20px;
    }
}