.setupdivs{
    margin-top: 0;
}

.setupdivs>div{
    width: 50%;
    float: left;
}

@media screen and (max-width: 1062px){
    .setupdivs>div{
        width: 100%;
    }
}

@media screen and (max-width: 886px){
    .setupdivs>div{
        width: 50%;
    }
}

@media screen and (max-width: 772px){
    .setupdivs>div{
        width: 100%;
    }
}

/**********************************/


@media screen and (max-width: 600px){
    .action-bar button:nth-child(1){
        width: calc(50% - 0.25rem);
        float: left;
    }
    .action-bar button:nth-child(2){
        width: calc(50% - 0.25rem);
        float: right;
    }
    .action-bar button:nth-child(3){
        width: calc(50% - 0.25rem);
        float: left;
        margin-top: 0.5rem;
    }
    .action-bar button:nth-child(4){
        width: calc(50% - 0.25rem);
        margin-top: 0.5rem;
        float: right;
    }
    .action-bar button:nth-child(5){
        width: calc(50% - 0.25rem);
        float: left;
        margin-top: 0.5rem;
    }
    .action-bar button:nth-child(6){
        width: calc(50% - 0.25rem);
        margin-top: 0.5rem;
        float: right;
    }
}

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

/**********************************/

.lotresdivres{
    margin: 0.75rem 0;
    border-radius: 3px;
    overflow: hidden;
    display: none;
}

/**********************************/

.lotresdiv{
    width:100%;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
}

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

.night .lotresdiv{
    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 span{
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
}

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

/**************************************/

.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 #eee;
    margin-top: 0.75rem;
    border-radius: 3px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 0.5rem;
    display: none;
}

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

.randguize{
    display: none;
}

.zhidingguize>div,.randguize>div{
    border: 1px solid #eee;
    padding: 0.25rem 0.5rem;
    position: relative;
    border-radius: 3px;
}

.night .zhidingguize>div,.night .randguize>div{
    border: 1px solid #444;
    background-color: #181a1b;
    color: #ddd;
}

.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: 480px){
    .zhidingguize,.randguize{
        grid-template-columns: repeat(1, 1fr);
    }
}
