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

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

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

.night .idl-canvas{
    border: 1px solid #444;
    background-image: unset;
    background-color: #181a1b;
}

.idl canvas{
    max-width: 15rem;
    width: 100%;
    height: 100%;
    -o-object-fit: contain;
    object-fit: contain;
}

.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;
}

.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;
    }
}

input[type="range"]{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0.5rem;
    width: calc(100% - 1rem);
}

.idr>div .spanbut>div{
    width: calc(100% / 3);
    float: left;
    display: inline-block;
    text-align: center;
    padding: 0.2rem;
}

.idr>div .spanbut>div span{
    display: inline-block;
    padding: 0.3rem 0;
    border: 1px solid #eee;
    width: 100%;
    cursor: pointer;
    font-size: 0.6rem;
}

.night .idr>div .spanbut>div span{
    border: 1px solid #444;
    color: #ddd;
}

.layui-form-pane .layui-form-checkbox{
    margin: 0;
    vertical-align: super;
    border-radius: 4px;
}

.cropper_buts{
    padding: 10px 5px;
}

.cropper_buts span{
    height: 1.4rem;
    line-height: 1.4rem;
    width: 1.8rem;
    display: inline-block;
    text-align: center;
    border: 1px solid #eee;
    font-weight: bold;
    font-size: 0.7rem;
    margin: 0 0 0 0.2rem;
    border-radius: 4px;
    cursor: pointer;
}

.night .cropper_buts span{
    border: 1px solid #555;
    color: #ccc;
}

.cropper_buts span.act{
    background-color: #2196f3;
    border: 1px solid #2196f3;
    color: #fff;
}

.cropper_buts span.lr{
    font-weight: unset;
    font-size: 0.6rem;
    margin-right: 0.25rem;
}

@media screen and (max-width: 1160px){
    .idl{
        width: 100%;
    }
    .idl canvas{
        max-width: 12rem;
    }
    .idr{
        width: 100%;
        padding: 0 0 0 0;
        margin-top: 0.75rem;
    }
    .idl-canvas {
        height: 15rem;
    }
}

@media screen and (max-width: 1024px){
    .idl canvas{
        max-width: 10rem;
    }
}

@media screen and (max-width: 750px){
    .idl{
        width: 100%;
    }
    .idl canvas{
        max-width: 12rem;
    }
    .idr{
        width: 100%;
        padding: 0 0 0 0;
        margin-top: 0.75rem;
    }
}

@media screen and (max-width: 410px){
    .idr>div .spanbut>div {
        width: calc(100% / 2);
    }
}

@media screen and (max-width: 360px){
    .idl {
        padding: 1rem 0;
    }
}

@media screen and (max-width: 280px){
    .idl canvas{
        max-width: 95%;
    }
}

@media screen and (max-width: 246px){
    .idr>div .spanbut>div {
        width: 100%;
    }
}

.night .layui-form-checkbox>div{
    color: #ccc;
    background-color: #444;
}

.night .layui-form-pane .layui-form-checkbox{
    background-color: #555;
}

.night .layui-form-checkbox>i{
    border: 1px solid #444;
    border-left: 0;
}

.night .layui-form-checked, .night .layui-form-checked:hover {
    border-color: #16b777;
}

.night .layui-form-checked:hover>div, .night .layui-form-checked>div{
    background-color: #16b777;
    color: #fff;
}