/*****************************************
Table Of Contents:

01. General Styles
02. Navigation
03. Media Queries
******************************************/


/******************************/
/*     01. General Styles     */
/******************************/
#div_toolsDrag, #div_propsDrag, #div_layersDrag {
    z-index: 9;
    background-color: #f1f1f1;
    border: 1px solid #d3d3d3;
    border-radius: 5px;
}

#div_layers .layer-btn {

}

#div_toolsDragHeader, #div_propsDragHeader, #div_layersDragHeader {
    cursor: move;
    z-index: 10;
    background-color: #d3d3d3;
    color: #000;
}

.selectableToolBtn.checked, .selectableLayerBtn.checked {
    border: 2px solid black;
    border-radius: 2px;
    background: gray;
    color: #f5f5f5;
}

.tool-btn, .prop-btn, .layer-btn {
    width: fit-content;
    padding: .2rem;
}

.tool-btn input, .prop-btn input, .layer-btn button {
    width: 100%;
    border-radius: 5px;
}

.layer-btn button img {
    position: absolute;
    left: 5px;
    top: calc(50% - 10px);
}

.layer-btn:hover {
    color: #dddddd;
    background-color: #5f5f5f;
}

.layer-btn button img {
    padding: 3px;
    width: 20px;
}

.selectableLayerBtn {
    padding-left: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.layer-btn.over .selectableLayerBtn {
    border-style: dotted;
}

#div_props input[type=range] {
    padding: 0 !important;
}

.dragLeft {
    float: left;
    width: 196px;
}

.dragRight {
    float: right;
    width: 196px;
}

.dragLeft #div_tools, .dragRight #div_tools,
.dragLeft #div_props, .dragRight #div_props,
.dragLeft #div_layers, .dragRight #div_layers {
    flex-direction: column;
}

.dragLeft .tool-btn, .dragRight .tool-btn,
.dragLeft .prop-btn, .dragRight .prop-btn,
.dragLeft .layer-btn, .dragRight .layer-btn {
    width: 100%;
}

#div_addText[type="free"] #code-text,
#div_addText[type="barcode-fixed"] #div_selAlign,
#div_addText[type="barcode-fixed"] #div_selDecoration,
#div_addText[type="barcode-fixed"] #div_txtLineHeight,
#div_addText[type="barcode-fixed"] #div_txtStrokeWidth,
#div_addText[type="barcode-fixed"] #div_txtStrokeColor,
#div_addText[type="barcode-dynamic"] #code-text,
#div_addText[type="barcode-dynamic"] #div_selAlign,
#div_addText[type="barcode-dynamic"] #div_selDecoration,
#div_addText[type="barcode-dynamic"] #div_txtLineHeight,
#div_addText[type="barcode-dynamic"] #div_txtStrokeWidth,
#div_addText[type="barcode-dynamic"] #div_txtStrokeColor,
#div_addText[type="qrcode-fixed"] #div_txtFont,
#div_addText[type="qrcode-fixed"] #div_selAlign,
#div_addText[type="qrcode-fixed"] #div_selDecoration,
#div_addText[type="qrcode-fixed"] #div_txtLineHeight,
#div_addText[type="qrcode-fixed"] #div_txtStrokeWidth,
#div_addText[type="qrcode-fixed"] #div_txtStrokeColor,
#div_addText[type="qrcode-dynamic"] #code-text,
#div_addText[type="qrcode-dynamic"] #div_txtFont,
#div_addText[type="qrcode-dynamic"] #div_selAlign,
#div_addText[type="qrcode-dynamic"] #div_selDecoration,
#div_addText[type="qrcode-dynamic"] #div_txtLineHeight,
#div_addText[type="qrcode-dynamic"] #div_txtStrokeWidth,
#div_addText[type="qrcode-dynamic"] #div_txtStrokeColor {
    display: none;
}

datalist {
    position: absolute;
    background-color: white;
    border-radius: .25rem;
    border: 1px solid #ced4da;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    font-size: .8rem;
    max-height: 300px;
    overflow: auto;
    z-index: 9;
}

datalist option {
    padding: .3rem;
    cursor: pointer;
}

datalist option:hover {
    background-color: #ced4da;
}

input[type=color] {
    min-width: 40px !important;
}

canvas {
    box-shadow: 0 0 10px 5px #0001;
}

.d-grid {
    display: grid;
}

.clearInputBtn {
    font-size: 16px;
    position: absolute;
    right: 5px;
    top: calc(50% - 10px);
    font-weight: bold;
    color: #222;
    cursor: pointer;
}

/*****************************/
/*     03. Media Queries     */
/*****************************/
/* Max-width width 991px */
@media (max-width: 991px) {
    #div_toolsDrag, #div_propsDrag, #div_layersDrag {
        max-width: 100vw !important;
        width: 100%;
    }

    #div_toolsDragHeader, #div_propsDragHeader, #div_layersDragHeader {
        cursor: initial !important;
    }

    #div_tools, #div_props, #div_layers {
        flex-direction: initial !important;
    }

    .tool-btn, .prop-btn, .layer-btn {
        width: fit-content !important;
    }
}


/* Min-width width 992px */
@media (min-width: 992px) {
    .d-grid {
        display: block;
    }
}


.graphic_btn img {
    pointer-events: none;
}

.graphic_btn.active {
    background-color: gray;
}
/* end of min-width width 992px */