html {
    overflow-x: hidden;
    touch-action: pan-y; 
}

.idl{
    width: calc(100% - 20rem);
    float: left;
    display: inline-block;    
}

.idl #canvas{
    padding: 1%;
    text-align: center;
    height: 21.6rem;
    position: relative;
    background-color: #f6f7fa;
    border:1px solid #eee;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC);
}

.idl #canvas img{
    width: 100%;
    height: 100%;
    -o-object-fit: contain;
    object-fit: contain;
}

.night .idl #canvas{
    border:1px solid #444;
    background-image: linear-gradient(to right, #333, #333);
}

.idr{
    width: 20rem;
    display: inline-block;
    float: right;
    padding: 0 0 0 0.75rem;
}

.idr>div{
    padding: 0.25rem;
    border: 1px solid #eee;
    margin-bottom: 0.75rem;
    border-radius: 4px;
}

.idr>div:last-child{
    margin-bottom: 0;
}

.idr>div>.layui-form-radio{
    margin-left: 0 !important;
    margin-bottom: 0.5rem !important;
    margin-top: 0.25rem !important;
}

.night .idr>div{
    border: 1px solid #444;
}
.divbuts{
    padding: 0.5rem;
    border: 1px solid #eee;
    border-top: 0;
    border-radius: 0 0 3px 3px;
}

.night .divbuts{
    border:1px solid #444;
    border-top:0;
}

.divbuts button{
    padding: 0.4rem 1rem;
    text-align: center;
    border: 0;
    background-color: #607D8B;
    color: #fff;
    border-radius: 3px;
    cursor: pointer;
}

.divbuts button:nth-child(1) {
    background-color: #009688;
}

.divbuts button:nth-child(2) {
    background-color: #795548;
}

@media screen and (max-width: 390px){
    .divbuts button:nth-child(1){
        width: calc(50% - 0.25rem);
        float: left;
    }
    .divbuts button:nth-child(2){
        width: calc(50% - 0.25rem);
        float: right;
    }
    .divbuts button:nth-child(3){
        width: 100%;
        margin-top: 0.5rem;
    }
}

.color_inp{
    width: calc(100% - 1.9rem);
    float: left;
}
.layui-colorpicker{
    padding: 0.25rem 0.25rem 0.25rem 0.25rem;
    border-left: 0;
}
.night .layui-colorpicker{
    border: 1px solid #444;
    border-left: 0;
    background-color: #181a1b;
}
.colorselect{
    margin-bottom: 0 !important;
    margin-right: 0 !important;
    display: inline-block !important;
    clear: none !important;
    float: left;
}
.repeat_c,.repeat_b{
    display: none;
}

@media screen and (max-width: 1500px){
    .idl{
        width: 100%;
    }
    .idr{
        width: 100%;
        padding: 0 0 0 0;
        margin-top: 0.75rem;
    }
    .idr>div{
        width:calc(50% - 0.375rem);
        display: inline-block;
        float: left;
    }
}
@media screen and (max-width: 1200px){
    .idr>div{
        width:100%;
    }
}