body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

body.fullscreen-active {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#game-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Assicura che il canvas non esca dallo schermo */
}

canvas {
    background-color: transparent;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: contain; /* Mantiene le proporzioni e si adatta alla finestra */
    image-rendering: pixelated; /* Mantiene la nitidezza delle immagini */
}


#install-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
}

#install-card {
    background: #96ee9c;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

#install-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: space-around;
}

#install-buttons button {
    flex: 1;
    margin: 0 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    box-sizing: border-box;
}

#install-button {
    background-color: #29912d;
    color: white;
}

#online-button {
    background-color: #543fd2;
    color: white;
}