        body {
            /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
            min-height: 100vh;
            padding: 0 0;
        }

        #view {
            background: white;
            border-radius: 15px;
            /*box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);*/
            padding: 0px;
            min-height: 75vh;
        }

        #mazeContainer {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .imgNoscriptCanvas{
            width: 100%;
            height: auto;
            z-index: 10000;
        }

        #mazeCanvas {
            border: 5px solid #23b837;
            border-radius: 10px;
            /*box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);*/
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
            /*background: white;*/
            background-image: url("//projektika.org/gamesImg/trainbackground1200x800_green.webp");
            background-repeat: no-repeat;
            background-size: cover;
            touch-action: none;
            cursor: pointer;
            position:relative;
        }
        .mazeEmptyDiv{
            position:absolute;
            top:0;
            left:0;
            width: 100%;
            height: 100%;
            background: #1d9815;
            min-width: 400px;
            min-height: auto;
        }

        #Message-Container {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            visibility: hidden;
            z-index: 1000;
        }

        #Key-Container, #Setting-Container{
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            visibility: hidden;
            z-index: 1000;
        }

        .left{
            text-align: start;
            padding: 0.3rem;
            margin-left: 1rem;
        }

        .victory-card {
            background: white;
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
            text-align: center;
            min-width: 300px;
        }

        .victory-card h2 {
            color: #667eea;
            margin-bottom: 20px;
            font-weight: bold;
        }

        .victory-card p {
            font-size: 1.2rem;
            color: #333;
            margin-bottom: 25px;
        }
        
        .victory-card img{
            max-width: 300px;
            height: auto;
        }

        .controls-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            max-width: 200px;
            margin: 10px auto;
        }

        .controls-grid .btn {
            padding: 12px;
            font-size: 1.3rem;
            border: 2px solid #1d9815;
            background: rgb(175, 243, 168);
            color: #1e761f;
            transition: all 0.3s ease;
        }

        .controls-grid .btn:hover {
            background: #667eea;
            color: white;
            transform: scale(1.05);
        }

        .controls-grid .btn:active {
            transform: scale(0.95);
        }

        .btn-up {
            grid-column: 2;
            grid-row: 1;
        }

        .btn-left {
            grid-column: 1;
            grid-row: 2;
        }

        .btn-down {
            grid-column: 2;
            grid-row: 2;
        }

        .btn-right {
            grid-column: 3;
            grid-row: 2;
        }

        .btn-2hint {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            border: none;
            color: white;
            font-weight: bold;
            padding: 12px 30px;
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .btn-2hint:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(245, 87, 108, 0.4);
        }

        .header-title {
            font-size: 2.2rem;
            color: rgb(18, 55, 21);
            text-align: center;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        }

        .difficulty-select {
            max-width: 300px;
            margin: 0 auto 20px;
        }

        .game-info {
            background: rgba(102, 126, 234, 0.1);
            border-radius: 10px;
            padding: 15px;
            margin-bottom: 20px;
        }

        @media (max-width: 576px) {
            #view {
                padding: 5px;
            }

            .header-title {
                font-size: 1.2rem;
                margin-bottom: 0.5rem !important;
            }

            .controls-grid {
                max-width: 180px;
                gap: 8px;
            }

            .controls-grid .btn {
                padding: 10px;
                font-size: 1rem;
            }
        }

        /* obrazek w texti*/
.train-logo{
    width: 40%;
    height: auto;
    float: inline-end;
    padding: .5rem;
}