html {
    overflow-x: hidden;
    touch-action: pan-y; 
}
.mdiv{
    display: flex;
}

.mlr{
    width:20rem;
    padding-left: 0.75rem;
}
.mlr>div{
    padding: 0.25rem;
    border: 1px solid #eee;
    border-radius: 4px;
}
.night .mlr>div{
    border:1px solid #444;
}

.mlf{
    width:calc(100% - 20rem);
}

.night .mlf{
  
}

/* ############################## */
.previewBlockdiv{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 13.2rem;
    background-image: linear-gradient(45deg, #e5e7eb 25%, transparent 25%), linear-gradient(-45deg, #e5e7eb 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e5e7eb 75%), linear-gradient(-45deg, transparent 75%, #e5e7eb 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.night .previewBlockdiv{
    border: 1px solid #444;
    background-image: linear-gradient(45deg, #2d2d2d 25%, transparent 25%), linear-gradient(-45deg, #2d2d2d 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #2d2d2d 75%), linear-gradient(-45deg, transparent 75%, #2d2d2d 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

#previewBlock{
    transition: all .15s ease;
    max-width: 100%;
    max-height: 100%;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

#presets{
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin-top: 0.5rem;
    padding: 0.5rem 2rem;
    border: 1px solid #eee;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-radius: 3px;
    overflow: hidden;
}

.night #presets{
    border:1px solid #444;
}

#presets::-webkit-scrollbar{
    display: none;
    width: 0;
    height: 0;
}

#presets .preset-item{
   float: left;
    margin-right: 0.25rem;
    flex: 0 0 auto;
    width: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

#presets .preset-item .swatch{
    width: 100%;
    height: 56px;
    border: 1px solid #e4e8ef;
    border-radius: 10px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.night #presets .preset-item .swatch{
    border: 1px solid #444;
}

.preset-wrap{
    position: relative;
}

.preset-nav{
    position: absolute;
    top: 0;
    width: 1.4rem;
    height: 100%;
    padding: 0;
    border: 1px solid #e4e8ef;
    background: #fff;
    color: #1f2430;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.night .preset-nav{
    border: 1px solid #444;
    background: #181a1b;
    color: #bbb;
}

.preset-nav-left{ 
    left: 0px; 
}

.preset-nav-right{ 
    right: 0px; 
}

.butdivbut{
    height: 1.8rem;
    line-height: 1.8rem;
    display: block;
    background-color: #06b672;
    border: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
}

@media screen and (max-width: 1290px){
    .mdiv {
        display:block;
    }
    .mlf {
        width:100%;
    }
    .mlr {
        width: 100%;
        padding-left:0rem;
        margin-top: 0.75rem;
    }
}

#dashArray{
    width: calc(100% - 38px);
    float: left;
}

#btnRandom{
    width: 38px;
    height: 38px;
    display: inline-block;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #eee;
    border-left: 0;
    cursor: pointer;
}

.night #btnRandom{
    border: 1px solid #444;
    border-left: 0;
}

code[class*=language-], pre[class*=language-]{
    white-space: pre-line !important;
    word-spacing: unset !important;
    word-break: break-all !important;
    word-wrap: normal !important;
}