    :root {
      --kolor-glowny:       #d51f57;
      --kolor-czarny:       #252021;
      --kolor-bialy:        #fff;
      --kolor-czerwony:     #d51f57;
      --kolor-szary:        #404549;
      --kolor-jasnoszary:   #797983;

      --kolor-ciemy:        #553137;

      --szary1:             #f6f6f6;
      --szary2:             #ededed;

      --czcionka:  'Poppins', sans-serif;
      --czcionkaArial: 'Arial','Montserrat', sans-serif;
    }


    html {
        height: 100vh;
        font-family: 'Poppins', sans-serif;
        color: #000;
        font-size: 15px;
    }

    body {
        min-height: 100vh;
        margin: 0;
        padding: 0;
    }


    html, body { height: 100%; }

    /*canvas {
        background-color: #f3f3f3;
        -webkit-box-shadow: 3px 3px 3px 0 #e3e3e3;
        -moz-box-shadow: 3px 3px 3px 0 #e3e3e3;
        box-shadow: 3px 3px 3px 0 #e3e3e3;
        border: 1px solid #c3c3c3;
        height: 100px;
        margin: 6px 0 0 6px;
    }*/



    ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    ul li:hover {
        /*border: 1px solid #00F;*/
        /*box-shadow: 0 0 10px rgba(0,0,0,0.3);*/
    }

    .hidden {
        display: none !important;
    }

    .noselect {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }

    .warning {
        color: rgb(239, 160, 0);
    }

    .pulse {
        border-radius: 50%;
        box-shadow: 0 0 0 rgba(239, 0, 0, 0.5);
        animation: pulse 2s infinite;
    }

    @-webkit-keyframes pulse {
        0% {
            -webkit-box-shadow: 0 0 0 0 rgba(239, 0, 0, 0.5);
        }
        70% {
            -webkit-box-shadow: 0 0 0 10px rgba(239, 0, 0, 0);
        }
        100% {
            -webkit-box-shadow: 0 0 0 0 rgba(239, 0, 0, 0);
        }
    }

    @keyframes pulse {
        0% {
            -moz-box-shadow: 0 0 0 0 rgba(239, 0, 0, 0.5);
            box-shadow: 0 0 0 0 rgba(239, 0, 0, 0.5);
        }
        70% {
            -moz-box-shadow: 0 0 0 10px rgba(239, 0, 0, 0);
            box-shadow: 0 0 0 10px rgba(239, 0, 0, 0);
        }
        100% {
            -moz-box-shadow: 0 0 0 0 rgba(239, 0, 0, 0);
            box-shadow: 0 0 0 0 rgba(239, 0, 0, 0);
        }
    }

    @keyframes slow-bg-move {
        from {
            background-position-x: 0;
        }
        to {
            background-position-x: 56px;
        }
    }

    .menu_mobil_dol,
    .menu_mobil {
        display: none;
    }

    /** MAIN **/
        .odbitki {
            height: 100vh;
            width: 100vw;
            overflow: hidden;
            display: grid;
            grid-template-columns: 1fr;
            grid-template-rows: 50px 10px 1fr;
            grid-template-areas: "menu" "zdjecia" "wczytaj_zdjecia";    

        }

        .odbitki.dodano_zdjecia {
            height: 100vh;
            width: 100vw;
            overflow: hidden;
            display: grid;
            grid-template-columns: 1fr;
            grid-template-rows: 50px 1fr 190px;
            grid-template-areas: "menu" "zdjecia" "wczytaj_zdjecia";    

        }

        .odbitki .critical-error-message {
            position: absolute;
            left: 0;
            top: 0;
            width: 100vw;
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10100;
            background: #000000C0;
            color: #fb7272;
            font-size: 20px;
            font-weight: bold;
            padding: 10vh;
            box-sizing: border-box;
            text-align: center;
        }

        .odbitki .loader {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: #00000088;
            color: #fff;
            font-size: 48px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 100;
        }

        div.menu {
            grid-area: menu;
            border-bottom: 1px solid rgba(0,0,0,0.1);
        }

        .odbitki div.zdjecia {
            grid-area: zdjecia;
            overflow: hidden;
            height: 0px;
            text-align: center;
        }
        .odbitki.dodano_zdjecia div.zdjecia {
            overflow: auto;
            height: auto;
            display: grid;
            margin: 0px;
            padding: 15px;
            grid-gap: 15px;
            grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
        }
        div.zdjecia .zdjecie {
            display: block;
            position: relative;
            background-color: #fff;
            text-align: center;
            border-radius: 5px;
            overflow: hidden;
            height: 265px;
            background-color: var(--szary1);
            border: 1px solid rgba(0,0,0,0.05);
        }
        div.zdjecia .zdjecie .usun {    
            position: absolute;
            right: 5px;
            top: 5px;
            background-color: #fff;
            box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
            height: 20px;
            width: 20px;
            padding-top: 0px;
            padding: 5px;
            border-radius: 50%;
            overflow: hidden;
            cursor: pointer;
            font-size: 13px;
            line-height: 20px;
            text-align-last: center;
            opacity: 0;
            pointer-events: none;
            transform: scale(0.1);
            -webkit-transition:0.2s ease-in-out;-moz-transition:0.2s ease-in-out;-o-transition:0.2s ease-in-out;transition:0.2s ease-in-out;
        }
        div.zdjecia .zdjecie:hover .usun {
            opacity: 1;
            pointer-events: auto;
            transform: scale(1);
            -webkit-transition:0.2s ease-in-out;-moz-transition:0.2s ease-in-out;-o-transition:0.2s ease-in-out;transition:0.2s ease-in-out;
        }
        div.zdjecia .zdjecie .usun:hover {
            color: #fff;    
            background-color: #bc3659;
        }
        div.zdjecia .zdjecie .zdjecie_knt {
            width: auto;
            height: 150px;
            padding: 10px;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        div.zdjecia .zdjecie  canvas,
        div.zdjecia .zdjecie  img {
            max-width: 100%;
            max-height: 150px;
            height: auto;
            width: auto;
            border-radius: 0px;
        }
        div.zdjecia .zdjecie .wgrywanie {
            height: 19px;
            overflow: hidden;
        }
        @keyframes blinker {
          50% {
            opacity: 0.5;
          }
        }
        @keyframes blinker_end {
          0% {
            opacity: 0;
          }
          100% {
            opacity: 1;
          }
        }
        .blinking {
            animation: blinker 1s linear infinite;
        }
        div.zdjecia .zdjecie .progress {
            position: relative;
            border: 1px solid #eee;
            margin: 5px 10px 0px 10px;
            height: 5px;
            border-radius: 5px;
            animation: blinker 1s linear infinite;
        }
        div.zdjecia .zdjecie .progress.wgrane {
            /*opacity: 0;*/
        }
        div.zdjecia .zdjecie .wgrane_status {
            position: absolute;
            width: 100%;
            margin-top: -13px;
            background-color: var(--szary1);
            animation: blinker_end 0.5s linear;
        }
        div.zdjecia .zdjecie .progress .progress-bar {
            height: 5px;
            border-radius: 5px;
            background-color: #abc24e;
            -webkit-transition:0.2s ease-in-out;-moz-transition:0.2s ease-in-out;-o-transition:0.2s ease-in-out;transition:0.2s ease-in-out;
        }
        div.zdjecia .zdjecie .opcje {
            padding: 0px;
            margin: 5px 0px 0px 0px;    
            position: relative;
        }
        div.zdjecia .zdjecie .opcje p {
            margin: 0px;
            padding: 5px;
            border-top: 1px solid rgba(0,0,0,0.05);    
        }
        div.zdjecia .zdjecie .opcje .ramka {
            padding: 1px 10px 1px 10px;
            border-radius: 5px;
            border: 1px solid #ddd;
            font-family: "Poppins", sans-serif;
            font-size: 12px;
            width: 100%;
        }
        div.zdjecia .zdjecie .opcje .ilosc {
            width: 50px;
            text-align: center;
            font-weight: bold;
            font-family: "Montserrat", sans-serif;
            font-size: 16px;
            border: none;
            background-color: transparent;
        }
        div.zdjecia .zdjecie .opcje .ilosc_btn {
            color: #666;
            cursor: pointer;
        }
        div.zdjecia .zdjecie .opcje .ilosc_btn:hover {
            color: var(--kolor-czerwony);;
        }   
        div.wczytaj_zdjecia {
            grid-area: wczytaj_zdjecia;
            background-color: #fff;
            background-color: var(--szary2);
            text-align: center;
            padding-top: 30vh;
        }
        .odbitki.dodano_zdjecia div.wczytaj_zdjecia {
            border-top: 1px solid rgba(0,0,0,0.1);
            padding-top: 0px;
        }
        div.wczytaj_zdjecia .zawartoc h3 {
            text-transform: uppercase;
        }
        div.wczytaj_zdjecia .upusc {
            display: inline-block;
        }

        .my-drop-zone {
            border: dotted 3px lightgray; 
            border-radius: 20px;
            padding: 20px;
            height: 60px;
            width: 330px;
            text-align: center;
        }
        .nv-file-over {
            border: dotted 3px var(--kolor-czerwony);;
            background-color: #efeae2;
        }

        div.wczytaj_zdjecia .wybierz {
            display: inline-block;
            border: dotted 3px lightgray; 
            border-radius: 20px;
            padding: 20px;
            cursor: pointer;
            height: 60px;
            width: 330px;
        }
        div.wczytaj_zdjecia .wybierz:hover {
            border: dotted 3px var(--kolor-czerwony);;
            background-color: #fcedf0;
        }
        div.wczytaj_zdjecia .wybierz .wybierz_zdjecia {
            position: absolute;
            border: 1px solid #c00;
            height: 100px;
            width: 371px;
            margin-top: -36px;
            margin-left: -28px;
            cursor: pointer;
            opacity: 0;
        }
        div.menu select {
            background-color: var(--szary2);
            color: var(--kolor-czarny);;
            font-family: 'Poppins', sans-serif;
            border: 0px;
            font-weight: bold;
            box-sizing: border-box;
            cursor: pointer;
            font-size: 14px;
            height: 30px;
            padding-bottom: 0px;
            padding-left: 5px;
            padding-right: 25px;
            appearance: none;
            background-image: url(../img/st_down.png);
            background-repeat: no-repeat;
            background-position: right center;

        }

        div#editor {
            grid-area: editor;
        }

        div.tabs {
            grid-area: tabs;
        }

        div.tool-panel {
            grid-area: tool-panel;
        }

        .cursor-cant {
            cursor: not-allowed !important;
        }

        #menu {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        #editor {
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #efefef;
            position: relative;
        }

        #editor .tips {
            position: absolute;
            left: 4px;
            top: 4px;
            float: left;
            display: none;
            border: 1px solid #bee5eb;
            border-radius: 50px;
            color: #0c5460;
            background-color: #d1ecf1;
            padding: 2px 10px;
        }

        #editor .user-error-box .user-error {
            position: absolute;
            left: 0;
            top: 0;
            width: 0;
            height: 0;
            z-index: 10001;
            background: repeating-linear-gradient(-45deg, #FF0000DD, #FF0000DD 10px, #FFFFFFDD 10px, #FFFFFFDD 20px);
            background-size: 28px 28px;
            background-position-x: 0;
            animation: slow-bg-move 5s infinite linear;
        }

        #editor .user-error-box .user-crop {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            z-index: 10003;
            background: #FFF;
            opacity: 0.4;
            pointer-events: none;
        }

        #editor .book {
            width: 800px;
            height: 400px;
            margin: 30px;
            display: flex;
            flex-direction: row;
            box-shadow: 5px 5px 50px rgba(0, 0, 0, 0.1);
            position: relative;
            background-color: #fff;
        }

        #editor .book * {
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            -khtml-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
        }

        #editor .user-error-box {
            position: absolute;
            background-color: transparent;
            pointer-events: none;
            z-index: 10000;
        }

        #editor .book .helper {
            width: 100%;
            height: 100%;
            position: absolute;
            left: 0;
            top: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            box-sizing: border-box;
            background: #23d6ffcc;
            z-index: 10000;
            font-size: 24px;
            font-weight: bold;
            color: #135a6d;
            text-align: center;
            text-shadow: 1px 1px 0 #fff, -1px -1px 0 #fff, -1px 1px 0 #fff, 1px -1px 0 #fff;
        }

        #editor .book .helper.hover {
            background: #23d6ff;
        }

        #editor .book .helper-background .both {
            height: 50%;
            border-bottom: 1px solid #135a6d;
        }

        #editor .book .helper-background .left {
            top: 50%;
            height: 50%;
            width: 50%;
            border-top: 1px solid #135a6d;
        }

        #editor .book .helper-background .right {
            top: 50%;
            height: 50%;
            left: 50%;
            width: 50%;
            border-left: 1px solid #135a6d;
            border-top: 1px solid #135a6d;
        }

        #editor .book .bleed-mask {
            position: absolute;
            left: 0;
            right: 0;
            top: 0;
            bottom: 0;
            background-color: #FF000040;
            z-index: 1000;
            clip-path: polygon(0 0, 0 0);
            pointer-events: none;
        }

        .book .text {
            padding: 10px !important;
            cursor: move;
            box-sizing: border-box;
        }

        .book .image .photo,
        .book .image .photo-border,
        .book .shape .photo {
            width: 100%;
            height: 100%;
            position: absolute;
            left: 0;
            top: 0;
            background-position: center;
            background-size: cover;
            border: 0 solid;
            background-repeat: no-repeat;
            mask-size: 100% 100%;
            -webkit-mask-size: 100% 100%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .book .image .photo-border {
            box-sizing: border-box;
        }

        .book .image .move-bg {
            background: transparent;
            z-index: 89;
            position: absolute;
            width: 100%;
            height: 100%;
            left: 0;
            top: 0;
        }

        .book .image .move-bg-img {
            position: absolute;
            left: 0;
            top: 0;
            opacity: 0.6;
        }

        .book .image .border,
        .book .shape .border {
            width: 0;
            height: 0;
            position: absolute;
            left: 0;
            top: 0;
            background-size: 0 0;
        }

        .book .text textarea {
            background: transparent;
            border: none;
            white-space: nowrap;
            overflow: hidden;
            width: 100%;
            height: 100%;
            resize: none;
            box-sizing: border-box;
        }

        .book .shadow {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 999;
            background-image: url(../img/tlo_strony.png);
            background-repeat: repeat-y;
            background-position: center;
            pointer-events: none;
        }

        .book .content {
            position: absolute;
            background-position: center;
            background-size: cover;
            overflow: hidden;
            display: flex;
            width: 100%;
            height: 100%;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
        }

        #editor .editor-hoverable:hover {
            background-color: #fff;
            -webkit-box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.7);
            -moz-box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.7);
            box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.7);
        }

        .book .page {
            height: 100%;
            flex: 0 0;
            flex-basis: 50%;
            background-position: center;
            background-size: cover;
        }

        .book .page .image {
            background-position: center;
            background-size: cover;
        }

        .dragging-template,
        .dragging-background,
        .dragging-border,
        .dragging-shape,
        .dragging-mask {
            width: 150px !important;
            height: 110px !important;
        }

        .dragging-image {
            width: 150px !important;
            height: 150px !important;
        }

    /** MAIN **/

    /** TABS **/
    div.tabs {
        background-color: #efefef;
        border-top: 3px solid #efefef;
    }

    div.tabs ul {
        margin: 0;
        padding: 0 20px 0 20px;
    }

    div.tabs ul {
        line-height: 27px;
    }

    div.tabs ul li {
        margin: 0;
        padding: 0 20px 0 20px;
        display: inline-block;
        position: relative;
        cursor: pointer;
        color: #999;
        font-weight: bold;
        white-space: nowrap;
    }

    div.tabs ul li:hover {
        color: #333;
        background-color: rgba(255, 255, 255, 0.5)
    }

    div.tabs ul li.active {
        background-color: #FFF;
        color: #000;
    }

    div.tabs ul li.files .error,
    div.tabs ul li.logs .error {
        color: #ef0000;
    }

    div.tabs ul li.files * {
        position: relative;
        z-index: 1;
    }

    div.tabs ul li.files .progress-bar.show {
        opacity: 0.7;
        transition: opacity 1ms linear, width 200ms linear;
    }

    div.tabs ul li.files .progress-bar {
        height: calc(100% - 2px);
        position: absolute;
        z-index: 0;
        left: 0;
        margin: 2px 2px 0;
        top: 0;
        width: 0;
        opacity: 0;
        transition: opacity 600ms linear, width 1ms linear 1s;
        background-color: #28a745;
        background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
        background-size: 1rem 1rem;
        -webkit-animation: progress-bar-stripes 1s linear infinite;
        animation: progress-bar-stripes 1s linear infinite;
    }

    @keyframes progress-bar-stripes {
        from {
            background-position: 1em 0;
        }
        to {
            background-position: 0 0;
        }
    }

    /** TABS **/

    /** TOOL-PANEL **/
    div.tool-panel {
    }

    div.tool-panel .tool {
        display: none;
        flex-direction: row;
        height: 100%;
        padding: 0 20px 0 20px;
    }

    div.tool-panel .tool.files {
        padding: 0 0 0 20px;
    }

    div.tool-panel .tool.active {
        display: flex;
    }

    div.tool-panel .tool > div {
        display: inline-block;
    }

    div.tool-panel .templates.tool,
    div.tool-panel .backgrounds.tool,
    div.tool-panel .borders.tool,
    div.tool-panel .masks.tool,
    div.tool-panel .shapes.tool,
    div.tool-panel .logs.tool {
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        width: calc(100vw - 290px);
    }

    div.tool-panel .logs.tool {
        flex-direction: column;
    }

    div.tool-panel .logs.tool p {
        margin: 10px 0 0;
        font-weight: bold;
    }

    div.tool-panel .logs.tool ol {
        list-style-position: inside;
        margin: 0;
        padding: 0;
        display: flex;
        flex-wrap: wrap;
    }

    div.tool-panel .logs.tool li {
        padding: 5px;
        cursor: pointer;
        margin: 5px;
        border: 1px solid #bababa;
        flex-grow: 1;
        text-align: center;
    }

    div.tool-panel .logs.tool li:only-child {
        flex-grow: unset;
    }

    div.tool-panel .logs.tool li:hover {
        background-color: #FFFFFF80;
    }

    div.tool-panel .templates.tool {
        width: calc(100vw - 250px);
        padding: 5px 0;
        height: calc(100% - 10px);
    }

    div.tool-panel .templates.tool .template_group {
        display: none;
        position: relative;
        margin-right: 10px;
        width: 100%;
    }

    div.tool-panel .templates.tool .template_group.active {
        display: block;
    }

    div.tool-panel .templates.tool .template,
    div.tool-panel .backgrounds.tool .background,
    div.tool-panel .borders.tool .border,
    div.tool-panel .masks.tool .mask,
    div.tool-panel .shapes.tool .shape {
        display: inline-block;
        width: 150px;
        height: calc(100% - 20px);
        margin: 10px;
        text-align: center;
        font-size: 13px;
        border: 1px solid #efefef;
        cursor: move;
        box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.05);
        background-color: #FFF;
    }

    div.tool-panel .templates.tool .template {
        cursor: pointer;
        height: calc(100% - 10px);
        margin: 5px 10px;
    }

    div.tool-panel .templates.tool .template .caption,
    div.tool-panel .backgrounds.tool .background .caption,
    div.tool-panel .borders.tool .border .caption,
    div.tool-panel .shapes.tool .shape .caption,
    div.tool-panel .masks.tool .mask .caption {
        height: calc(100% - 90px);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    div.tool-panel .templates.tool .template:hover,
    div.tool-panel .backgrounds.tool .background:hover,
    div.tool-panel .borders.tool .border:hover,
    div.tool-panel .shapes.tool .shape:hover,
    div.tool-panel .previous-projects.tool .project:hover,
    div.tool-panel .masks.tool .mask:hover {
        border: 1px solid #999;
        box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.15);
    }

    div.tool-panel .templates.tool .template.active,
    div.tool-panel .backgrounds.tool .background:active,
    div.tool-panel .borders.tool .border:active,
    div.tool-panel .shapes.tool .shape:active,
    div.tool-panel .masks.tool .mask:active {
        border: 1px solid #333;
        box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.05);
        font-weight: bold;
    }

    div.tool-panel .templates.tool .image-box,
    div.tool-panel .backgrounds.tool .image,
    div.tool-panel .borders.tool .image,
    div.tool-panel .masks.tool .image,
    div.tool-panel .shapes.tool .image {
        position: relative;
        width: 150px;
        height: 85px;
        margin-top: 5px;
        overflow: hidden;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    div.tool-panel .templates.tool .image-box:after {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        z-index: 100000;
    }

    div.tool-panel .templates.tool .image {
        position: relative;
        width: 800px;
        height: 400px;
        transform-origin: 0 0;
    }

    div.tool-panel .masks .image {
        background: #000;
        mask-size: contain;
        mask-position: center;
        mask-repeat: no-repeat;
        -webkit-mask-size: contain;
        -webkit-mask-position: center;
        -webkit-mask-repeat: no-repeat;
    }

    div.tool-panel .backgrounds.tool .clear-background,
    div.tool-panel .borders.tool .clear-border,
    div.tool-panel .masks.tool .clear-mask {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 48px;
        background: transparent;
    }

    div.tool-panel .previous-projects.tool {
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        width: calc(100vw - 290px);
    }

    div.tool-panel .previous-projects.tool .project {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 150px;
        position: relative;
        height: calc(100% - 22px);
        margin: 10px;
        background-size: contain;
        background-color: #fff;
        background-repeat: no-repeat;
        background-position: center;
        border: 1px solid #efefef;
        cursor: pointer;
        box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.05);
        padding-left: 10px;
        padding-right: 10px;
    }

    div.tool-panel .previous-projects.tool .project .title {
        font-weight: bold;
    }

    div.tool-panel .previous-projects.tool .project .page-no {
        font-size: 12px;
        text-align: center;
    }

    div.tool-panel .files.tool .upload-form {
        height: 100%;
        width: 150px;
        position: relative;
    }

    div.tool-panel .files.tool .upload-form button {
        background-color: transparent;
        border: none;
        font-family: 'Poppins', sans-serif;
        color: #000;
        font-size: 15px;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        cursor: pointer;
    }

    div.tool-panel .files.tool .images {
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        width: calc(100vw - 420px);
    }

    div.tool-panel .files.tool .image {
        display: inline-block;
        width: 150px;
        position: relative;
        height: calc(100% - 20px);
        margin: 10px;
        background-size: contain;
        background-color: #fff;
        background-repeat: no-repeat;
        background-position: center;
        border: 1px solid #efefef;
        cursor: move;
        box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.05);
    }

    div.tool-panel .files.tool .image .usages {
        position: absolute;
        right: -7px;
        top: -7px;
        background: #ca9c4e;
        border-radius: 50%;
        line-height: 0.7;
        color: #FFF;
        font-size: 12px;
        font-weight: bold;
        padding: 5px;
        min-width: 8px;
        text-align: center;
        box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    }

    div.tool-panel .files.tool .image .usages:empty {
    	display: none;
    }

    div.tool-panel .files.tool .image .icon {
        position: absolute;
        right: 4%;
        bottom: 4%;
        font-size: 40px;
    }

    div.tool-panel .files.tool .image .icon.error {
        color: #ef0000;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.6);
    }

    div.tool-panel .files.tool .image:hover {
        border: 1px solid #999;
        box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.15);
    }

    div.tool-panel .files.tool .image.active {
        border: 1px solid #333;
        box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.15);
    }

    div.tool-panel .texts.tool span {
        display: block;
        margin-top: 40px;
        margin-bottom: 6px;
        font-size: 0.8rem;
        color: #838383;
        text-transform: uppercase;
    }

    div.tool-panel .texts.tool select {
        padding: 10px;
        border: 1px solid #cccccc;
        width: auto;
        height: 43px;
        display: inline-block;
        box-sizing: border-box;
        margin: 0 5px;
    }

    div.tool-panel .texts.tool select:hover {
        border: 1px solid #999;
        box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.15);
    }

    div.tool-panel .texts.tool button {
        padding: 10px;
        border: 1px solid #cccccc;
        width: 43px;
        height: 43px;
        display: inline-block;
        box-sizing: border-box;
        margin: 0 5px;
        cursor: pointer;
    }

    div.tool-panel .texts.tool button:hover {
        box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.15);
        border: 1px solid #999;
    }

    div.tool-panel .texts.tool button.active {
        box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.15);
        border: 1px solid #333;
    }

    div.tool-panel .texts.tool button.add {
        width: 180px;
    }

    div.tool-panel .texts.tool > div {
        padding-right: 20px;
    }

    div.tool-panel .shapes.tool .shape .circle {
        border-radius: 50%;
        background-color: var(--kolor-czerwony);;
        width: 70px;
        height: 70px;
        margin: auto;
        position: relative;
        top: 10px;
    }

    div.tool-panel .shapes.tool .shape .ellipse {
        border-radius: 50%;
        background-color: var(--kolor-czerwony);;
        width: 90px;
        height: 60px;
        margin: auto;
        position: relative;
        top: 15px;
    }

    div.tool-panel .shapes.tool .shape .rectangle {
        background-color: var(--kolor-czerwony);;
        width: 90px;
        height: 45px;
        top: 20px;
        position: relative;
        margin: auto;
    }

    /** TOOL-PANEL **/

    /** PAGE **/
    div.pages li.page.book {
        width: 207px;
        margin: 0;
        display: flex;
        flex-direction: column;
        position: relative;
        background-color: #fff;
    }

    div.pages li.page.book .helper {
        display: none;
    }

    div.pages li.page.book .user-error {
        display: none;
        position: absolute;
        right: 5px;
        bottom: 7px;
        font-size: 24px;
        color: #F00;
    }

    div.pages li.page.book.user-error .user-error {
        display: block;
    }

    div.pages li.page.book .page_preview,
    div.pages li.page.book .content-box {
        position: relative;
        overflow: hidden;
        height: 100%;
    }

    div.pages li.page.book .page_preview:after {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        z-index: 10099;
    }

    div.pages li.page.book .shadow {
        background-size: 10%;
    }

    div.pages li.page.book .content-box {
        transform-origin: left top;
        transform: scale(0.19);
    }

    div.pages {
        border-right: 3px solid #efefef;
        overflow-y: auto;
        overflow-x: hidden;
    }

    div.pages ul {
        margin: 0;
        padding: 20px;
    }

    div.pages li {
        text-align: center;
        font-size: 13px;
        padding: 5px 0 5px 0;
        cursor: pointer;
    }

    div.pages li .page_preview {
        box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.05);
        border: 1px solid #eee;
    }

    div.pages li .page_preview * {
        outline: none;
    }

    div.pages li .page_preview img {
        max-width: 100%;
        height: auto;
    }

    div.pages li:hover .page_preview {
        box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.15);
    }

    div.pages li.active {
        font-weight: bold;
    }

    div.pages li.active .page_preview {
        box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.15);
        border: 1px solid #333;
    }

    div.add-page, div.remove-page {
        text-align: center;
        font-weight: bold;
        font-size: 13px;
        padding: 6px 0;
        margin: 0 0 6px 20px;
        width: 207px;
        box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.05);
        border: 1px solid #eee;
    }

    div.remove-page {
        margin-bottom: 20px;
    }

    div.add-page:not(.disabled):hover, div.remove-page:not(.disabled):hover {
        box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.15);
        cursor: pointer;
    }

    div.add-page.disabled, div.remove-page.disabled {
        cursor: default;
        color: #bbb;
    }

    .konsola {
        position: fixed;
        top: 120px;
        left: 10px;
        width: auto;
        padding: 10px 20px;
        box-shadow: 0px 0px 20px rgba(0,0,0,0.1);
        border-radius: 10px;
        z-index: 400;
        background-color: #fff;
        opacity: 0;
        pointer-events: none;
        max-width: 50%;
        max-height: 300px;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-transition:0.2s ease-in-out;-moz-transition:0.2s ease-in-out;-o-transition:0.2s ease-in-out;transition:0.2s ease-in-out;
    }
    .konsola.pokaz {
        top: 60px;
        opacity: 1;
        -webkit-transition:0.2s ease-in-out;-moz-transition:0.2s ease-in-out;-o-transition:0.2s ease-in-out;transition:0.2s ease-in-out;
    }
    .konsola p {
        font-size: 12px;
        margin-top: 5px;
        margin-bottom: 5px;
    }
    .konsola p i {
        color: var(--kolor-czerwony);
    }

    /** PAGE **/

    /** MENU **/
    div.menu {
        background-color: var(--szary2);
        color: var(--kolor-czarny);
        font-weight: bold;
    }

    div.menu #logo {
        height: 40px;
        padding: 5px 36px 5px 36px;
        float: left;
    }

    div.menu ul {
        padding: 0;
        margin: 0;
        float: right;
    }

    div.menu li {
        padding: 0px 15px 0 0;
        margin: 0;
        /*display: inline-block;*/
        display: block;
        float: left;
        height: 50px;
        line-height: 50px;
        padding: 0 20px 0 20px;
        border-left: 1px solid rgba(0,0,0,0.1);
    }

    div.menu li input {
        background-color: transparent;
        border-top: 1px solid #ccc;
        border-left: 1px solid #ccc;
        border-right: 1px solid #ccc;
        border-bottom: 1px solid #ccc;
        padding: 0 10px 0 10px;
        font-family: 'Poppins', sans-serif;
        color: var(--kolor-czarny);
        width: 170px;
        font-size: 14px;
        border: 1 solid rgba(0,0,0,0.1);
        border-radius: 5px;
    }
    div.menu li input:focus {
        outline: 2px solid var(--kolor-czerwony);
    }

    div.menu li.btn {
        cursor: pointer;
    }

    div.menu li.btn:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }

    div.menu li i {
        color: var(--kolor-czerwony);
    }
    div.menu li.btn.do_koszyka {
        background-color: var(--kolor-czerwony);
        color: #fff;
    }
    div.menu li.btn.do_koszyka i {
        color: #fff;
    }

    div.menu ul.tool-bar {
        float: left;
    }
    div.menu li.btn.do_koszyka:hover {
        background-color: #be0d32;
    }

    div.menu ul.tool-bar li.tool_set_info {
        font-weight: normal;
        font-size: 13px;
        padding: 0 20px 0 20px;
        border-left: 1px solid rgba(0,0,0,0.1);
    }
    div.menu ul.tool-bar li.tool {
        padding: 3px 10px 0 10px;
        opacity: 0.7;
        -webkit-filter: grayscale(100%);
        filter: grayscale(100%);
        cursor: not-allowed;
    }

    div.menu ul.tool-bar li.tool:hover {
        background-color: rgba(0, 0, 0, 0);
    }

    div.menu ul.tool-bar li.tool.active {
        opacity: 1;
        -webkit-filter: grayscale(0%);
        filter: grayscale(0%);
        cursor: pointer;
    }

    div.menu ul.tool-bar li.tool.active:hover {
        background-color: rgba(0, 0, 0, 0.99);
    }

    div.menu ul.tool-bar li.tool.color {
        position: relative;
        width: 32px;
    }

    div.menu ul.tool-bar li.tool.color div {
        width: 22px;
        height: 22px;
        position: absolute;
        left: 10px;
        top: 14px;
        padding: 0;
        margin: 0;
        background: var(--kolor-czerwony); url(../js/colorpicker/images/select.png) center no-repeat;
        border-radius: 3px;
    }

    div.menu ul.tool-bar li.tool.bg-color {
        position: relative;
        width: 32px;
    }

    div.menu ul.tool-bar li.tool.bg-color div {
        width: 22px;
        height: 22px;
        position: absolute;
        left: 10px;
        top: 14px;
        padding: 0;
        margin: 0;
        background: #ffffff url(../js/colorpicker/images/select.png) center no-repeat;
        border-radius: 3px;
    }

    /** MENU **/

    /**/
    .an, .an * {
        -webkit-transition: 0.2s ease-in-out;
        -moz-transition: 0.2s ease-in-out;
        -o-transition: 0.2s ease-in-out;
        transition: 0.2s ease-in-out;
        text-decoration: none;
    }

    .an:hover, .an:hover * {
        -webkit-transition: 0.2s ease-in-out;
        -moz-transition: 0.2s ease-in-out;
        -o-transition: 0.2s ease-in-out;
        transition: 0.2s ease-in-out;
        text-decoration: none;
    }

    /* RESIZABLE */
    .active.ui-resizable {
        border: 1px solid #5a5a5a;
        padding: 2px;
        box-sizing: border-box;
    }

    .active > .ui-resizable-n,
    .active > .ui-resizable-e,
    .active > .ui-resizable-w,
    .active > .ui-resizable-s,
    .active > .ui-resizable-ne,
    .active > .ui-resizable-se,
    .active > .ui-resizable-sw,
    .active > .ui-resizable-nw {
        width: 10px;
        height: 10px;
        background-color: #ffffff;
        border: 1px solid #000000;
    }

    .active > .ui-resizable-nw {
        left: -5px;
        top: -5px;
    }

    .active > .ui-resizable-ne {
        top: -5px;
        right: -5px;
    }

    .active > .ui-resizable-sw {
        bottom: -5px;
        left: -5px;
    }

    .active > .ui-resizable-se {
        bottom: -5px;
        right: -5px;
    }

    .active > .ui-resizable-n {
        top: -5px;
        left: calc(50% - 6px);
    }

    .active > .ui-resizable-s {
        bottom: -5px;
        left: calc(50% - 6px);
    }

    .active > .ui-resizable-w {
        left: -5px;
        top: calc(50% - 6px);
    }

    .active > .ui-resizable-e {
        right: -5px;
        top: calc(50% - 6px);
    }

    .image:not(.active) > .ui-resizable-nw {
        left: 0;
        top: 0;
    }

    .image:not(.active) > .ui-resizable-ne {
        top: 0;
        right: 0;
    }

    .image:not(.active) > .ui-resizable-sw {
        bottom: 0;
        left: 0;
    }

    .image:not(.active) > .ui-resizable-se {
        bottom: 0;
        right: 0;
    }

    .image:not(.active) > .ui-resizable-n {
        top: 0;
    }

    .image:not(.active) > .ui-resizable-s {
        bottom: 0;
    }

    .image:not(.active) > .ui-resizable-w {
        left: 0;
    }

    .image:not(.active) > .ui-resizable-e {
        right: 0;
    }

    /* jquery dialog */
    .ui-dialog .ui-dialog-titlebar {
        display: none;
    }

    .ui-corner-all, .ui-corner-bottom, .ui-corner-right, .ui-corner-br {
        border-radius: 0 !important;
        min-width: 100px;
        text-align: center;
        background: #fff !important;
        border: none !important;
        -webkit-box-shadow: 0 0 25px 3px rgba(0, 0, 0, 0.1);
        box-shadow: 0 0 25px 3px rgba(0, 0, 0, 0.1);
        font-size: 1rem !important;
    }

    .ui-dialog .gnr_button {
        background: #000;
        color: #fff;
        font-weight: bold;
        text-transform: uppercase;
        padding: 8px 20px;
        cursor: pointer;
        margin-left: 5px;
        margin-right: 5px;
        margin-bottom: 10px;
        border: none;
    }

    .ui-dialog .gnr_button_anuluj {
        background: #dfdfdf;
        color: #000;
        text-transform: uppercase;
        padding: 8px 20px;
        margin-left: 5px;
        margin-right: 5px;
        margin-bottom: 10px;
        cursor: pointer;
        border: none;
    }

    .ui-dialog .ui-dialog-content {
        margin-bottom: 20px;
        padding: 20px;
    }

    .ui-dialog {
        z-index: 999;
        outline: none;
    }

    .alertDialog {
        position: absolute;
        /*transform: translateY(-50%);*/
        background-color: #fff;
        width: 500px;
        padding: 25px;
        left: 0px;
        right: 0px;
        left: calc(100%/2 - 250px);
        right: calc(100%/2 + 250px);
        top: 30vh;
    }
    /*.alertDialog {
    }*/

    .ui-dialog:before {
        content: '';
        position: fixed;
        width: 100vw;
        height: 100vh;
        left: 0;
        top: 0;
        background-color: rgba(0, 0, 0, 0.5);
    }

    /*PHOTO MENU*/
    .menu_photo {
        position: absolute;
        top: 250px;
        left: 250px;
        z-index: 10200;
        background-color: #333;
    }

    .menu_photo ul {
        padding: 0;
        margin: 0;
    }

    .menu_photo ul li {
        padding: 5px 8px 5px 8px;
        margin: 0;
        cursor: not-allowed;
        color: var(--kolor-czerwony);;
        font-size: 18px;
        text-align: center;
        filter: grayscale(100%);
        display: inline-block;
    }

    .menu_photo ul li:hover {
        background-color: #000;
    }

    .menu_photo ul li.active {
        color: var(--kolor-czerwony);;
        cursor: pointer;
        filter: grayscale(0%);
    }

    /*END - PHOTO MENU*/

    /*TEMPLATE FILTER*/

    div.tool-panel .templates.tool .template-content {
        width: calc(100% - 206px);
        height: calc(100% + 5px);
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
    }

    .ilosc_okien {
        position: absolute;
        right: 0px;
        text-align: center;
        padding: 4px 8px 6px 8px;
        box-shadow: 0px 0px 75px rgba(0, 0, 0, 0.1);
    }

    .ilosc_okien h3 {
        font-size: 12px;
        line-height: 12px;
        padding: 8px;
        margin: 0px;
        text-transform: uppercase;
    }

    .ilosc_okien .ile {
        width: 30px;
        float: left;
        margin: 4px;
        font-size: 12px;
        line-height: 26px;
        font-weight: bold;
        color: #565656;
        background-color: #e3e3e3;
        cursor: pointer;
    }

    .ilosc_okien .ile:hover {
        background-color: #333333;
        color: #fff;
    }

    .ilosc_okien .ile.active {
        background-color: #c49649;
        color: #fff;
        cursor: auto;
    }

    .ilosc_okien .ile:nth-child(5n+2) {
        clear: left;
    }

    .jakosc_super {
        font-size: 11px;
        text-transform: uppercase;
        color: #3cb31c;
        font-weight: bold;
    }
    .jakosc_srednia {
        font-size: 11px;
        text-transform: uppercase;
        color: #cd9c1a;
        font-weight: bold;
    }
    .jakosc_slaba {
        font-size: 11px;
        text-transform: uppercase;
        color: #cd1a1a;
        font-weight: bold;
    }

    /*TEMPLATE FILTER - END*/


    /*ADDONS */
    .kolor {
        color: var(--kolor-czerwony);;
    }
    .px14 { font-size: 14px; }
    .px15 { font-size: 15px; }
    .px16 { font-size: 16px; }
    .px17 { font-size: 17px; }
    .px18 { font-size: 18px; }
    .px19 { font-size: 19px; }
    .px20 { font-size: 20px; }
    .px22 { font-size: 22px; }
    .px24 { font-size: 24px; }

    /*ADDONS - END*/

/*    @media only screen and (max-width: 1625px) {
        div.menu ul.tool-bar li.tool_set_info {
            font-size: 11px;
            padding: 0 0px 0 10px;
        }

        div.menu ul.tool-bar li.tool {
            padding: 3px 5px 0 5px;
        }

        div.menu li i {
            font-size: 20px;
        }

        div.menu li {
            padding: 3px 10px 0;
        }

        div.menu {
            font-size: 12px;
        }

        div.menu li input {
            padding: 0 5px 0 5px;
            font-size: 13px;
        }
    }

    @media only screen and (max-width: 1300px) {
        div.menu ul.tool-bar li.tool_set_info {
            display: none;
        }

        div.menu ul.tool-bar li.tool {
            padding: 3px 5px 0 10px;
        }
    }*/
