        /* Stile Minimalista e Monospace */
        body {
            margin: 0;
            padding: 0;
            background-color: #ffffff;
            font-family: 'Courier New', Courier, monospace;
            font-size: 14pt;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            height: 100vh;
            color: #333;
        }

        #game-container {
            position: relative;
            width: 100%;
            max-width: 800px;
            height: 400px;
            border: 2px solid #000;
        }

        canvas {
            display: block;
            background-color: #fff;
            width: 100%;
            height: 100%;
            image-rendering: pixelated; /* Mantiene i bordi netti dei pixel */
            image-rendering: crisp-edges;
        }
        
        .mb-1{
            margin-bottom: 0.25rem;
        }

        .m-1{
            margin: 0.25rem;
        }

        /* Overlay per Menu e Game Over */
        .overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.9);
            /*display: flex;
            flex-direction: column;
            justify-content: center;
            */
            align-items: center;
            text-align: center;
            overflow: hidden;
        }

        .hidden { 
            display: none!important; 
        }

        button {
                background: #ffffff;
                color: #000000;
                border: solid 2px #000;
                padding: 10px 20px;
                margin: 5px;
                font-family: inherit;
                cursor: pointer;
                font-size: 1.2rem;
        }

        button:hover { background: #555; }

        button img {
            display: block;
            margin: 0 auto 5px;
            width: 100px;
            height: auto;
            image-rendering: pixelated;
        }

        footer {
            margin-top: 20px;
            font-size: 0.9rem;
            color: #555;
        }
        footer a {
            color: #000;
            text-decoration: none;
            font-weight: bold;
        }


        .d-flex{
            display: flex;
            flex-direction: row;
            align-items: baseline;
            justify-content: center;
            gap: 1rem;
        
        }

        /* Avviso Orientamento Mobile */
        #orientation-warning {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: #222;
            color: #fff;
            z-index: 10000;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            padding: 20px;
            box-sizing: border-box;
        }

        @media screen and (orientation: portrait) and (max-width: 1024px) {
            #orientation-warning {
                display: flex;
            }
            #game-container, footer {
                display: none;
            }
        }

        #game-controls {
            position: absolute;
            top: 5px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 50;
            display: flex;
            gap: 10px;
        }

        #game-controls button {
            padding: 5px 15px;
            margin: 0;
        }
    
        div#char-selection {
            position: relative;
            margin: 0 2rem;
            display: flex;
            flex-direction: row;
            justify-content: start;
            align-items: center;
            flex-wrap: nowrap;
            gap: 0.5rem;
            overflow-x: auto; /* Abilita scorrimento orizzontale */
            cursor: grab; /* Cursore che indica la possibilità di trascinare */
        }

        div#char-selection:active {
            cursor: grabbing; /* Cursore durante il trascinamento */
        }

        div#char-selection button {
                display: inline-block;
                /* display: flex; 
                flex-direction: column;*/
                min-height: 150px;
                line-height: 1;
                vertical-align: bottom;
        }