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

.mdiv{

}

.mlf{
    width:calc(100% - 20rem);
    float: left;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
}

.mlf>h2{
    font-size: 1.2rem;
    text-align: center;
    color: #fff;
    padding: 0.75rem 0;
    border-bottom: 1px solid #8268de;
    margin-bottom: 0.25rem;
}

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

.tcardfull{
    height: calc(100vh - 6rem);
    display: flex;
    justify-content: center;
    align-items: center;
}

.tcarddivcent{
    max-height: calc(100vh - 6rem);
    width: 100%;
    max-width: 40rem;
    margin: 0 auto;
    overflow-y: auto;
    padding: 0.25rem;
}

.tcarddivcent::-webkit-scrollbar {
    width: 2px;
    height: 2px
}


:root{
    --thbgcolor:#7183e4;
}

.tcarddivcent::-webkit-scrollbar-thumb {
    border: 1px solid transparent;
    background-clip: padding-box;
    border-radius: 7px;
    background: var(--thbgcolor);
}

.tcard{
    width: calc(100% / 4);
    padding: 0.25rem;
    display: inline-block;
    float: left;
}

.tcard>div{
    background-color: #2196F3;
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    position: relative;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    overflow: hidden;
}

.tcard>div.flipped {
    transform: rotateY(180deg);
}

.tcard>div>i {
    position: absolute;
    left: 0.4rem;
    top: 0.2rem;
    color: #ddd;
    font-style: unset;
}

.tcard>div.flipped>i{
    transform: rotateY(180deg);
}

.tcard>div::before{
    content: '';
    padding-top: 100%;
    display: block;
}

.cardnum{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    color: #fff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.cardnum div{

}

.cardnum span{
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
}

.cardnum p{
    font-size: 0.8rem;
}

.carddata{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    color: #fff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: rotateY(180deg);
    display: none;
}

.carddata div{

}

.carddata span{
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
}

.carddata p{
    font-size: 0.8rem;
}





.mlr{
    width:20rem;
    padding-left: 0.75rem;
    float:right;
}

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

.night .mlr>div{
    border:1px solid #444;
}

.addguize{
    height: 1.4rem;
    line-height: 1.4rem;
    display: block;
    background-color: #FF9800;
    text-align: center;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 0.25rem;
}

.guizesetup{
    padding: 0.5rem;
    margin: 0.5rem;
    border: 1px solid #f0f0f0;
}

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

.guizesetup .layui-form-item{
    margin-bottom: 0.5rem;
}

.guizesetupbuts{
    text-align: right;
}

.guizesetupbuts span{
    height: 1.4rem;
    line-height: 1.4rem;
    display: inline-block;
    background-color: #03A9F4;
    border: 1px solid #03a9f4;
    color: #fff;
    padding: 0 1rem;
    margin-left: 0.5rem;
    border-radius: 3px;
    cursor: pointer;
    user-select: none;
}

.guizesetupbuts span.claers{
    background-color: #fff;
    color: #666;
    border: 1px solid #eee;
}

.night .guizesetupbuts span.claers{
    background-color: #222;
    border: 1px solid #222;
    color: #aaa;
}

.zhidingguize,.randguize{
    border: 1px solid #e8e8fd;
    margin-top: 0.25rem;
    border-radius: 3px;
    padding: 0.25rem 0.25rem 0 0.25rem;
}

.night .zhidingguize,.night .randguize{
    border: 1px solid #444;
}

.randguize{
    display: none;
}

.zhidingguize>div,.randguize>div{
    border-bottom: 1px solid #e8e8fd;
    padding: 0.25rem;
    position: relative;
}

.night .zhidingguize>div,.night .randguize>div{
    border-bottom: 1px solid #444;
}

.zhidingguize>div:last-child{
    border-bottom: 0;
}

.randguize>div:last-child{
    border-bottom: 0;
}

.night .zhidingguize>div:last-child{
    border-bottom: 0;
}

.night .randguize>div:last-child{
    border-bottom: 0;
}

.zhidingguize>div p,.randguize>div p{
    height: 1.2rem;
    line-height: 1.2rem;
}

.zhidingguize>div i,.randguize>div i{
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    cursor: pointer;
    color: #FF9800;
}

.zhidingguize_tip,.randguize_tip{
    text-align: center;
    padding: 2rem 0 !important;
    font-size: 1rem;
    color: #cacae3;
}

.night .zhidingguize_tip,.night .randguize_tip{
    color: #555;
}

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

.butdivbut.demodata,.butdivbut.savesetup{
    background-color: #2196F3;
    width: calc(50% - 0.125rem);
    margin-bottom: 0;
    float: left;
}

.butdivbut.quanping,.butdivbut.clearsetup{
    background-color: #8BC34A;
    margin-bottom: 0;
    width: calc(50% - 0.125rem);
    float: right;
}

.butdivbut.savesetup{
    background-color: #009688;
}

.butdivbut.clearsetup{
    background-color: #e8e8fd;
    color: #666;
}


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