body {
    background: black;
    margin: 0;
    overflow: hidden;
    /* <-- ВАЖЛИВО: Запобігає появі смуг прокрутки */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

#canvas1 {
    background: white;
    /* JS буде керувати шириною та висотою */
    border: 0px solid white;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
    /* Додаємо ці властивості для кращої адаптивності */
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 10px
        /* Допомагає правильному масштабуванню */
}

#playerImage,
#backgroundImage,
#enemyImage,
#purple,
#white,
#green,
#blue,
#yellow,
#cardTshirt,
#tileTexture,
#returnButton,
#startMenu {
    display: none;
}

/* .button-container {
    display: flex;
    gap: 70px;
} */


.button-container {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
}