.layui-tab-content {
    padding: 0.5rem;
}

.CodeMirror {
    height: 15rem;
    border-radius: 3px 3px 0 0;
    border: 1px solid #eee;
    padding: 0.2rem 0.3rem;
}

.night .cm-s-default.CodeMirror {
    background: #181a1b;
    background-color: #181a1b;
    color: #eee;
}

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

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

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

.canvas-area {
    flex: 1;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 0.75rem;
    padding: 0.5rem;
    position: relative;
    border-radius: 3px;
    border:1px solid #eee;
    background: repeating-conic-gradient(#ffffff 0% 25%, #dddddd 0% 50%) 50% / 14px 14px;
}

.night .canvas-area {
    border:1px solid #444;
    background: repeating-conic-gradient(#061015 0% 25%, #181a1b 0% 50%) 50% / 14px 14px;
}

#render-iframe {
    width: 100%;
    overflow: hidden;
}

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

.demodatas{
    border: 1px solid #eee;
    padding: 0.5rem;
    border-radius: 4px;
    margin-top: 0.75rem;
}

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

.demodatas .tits{
    margin-bottom: 0.5rem;
    font-size: 0.6rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.night .demodatas .tits{
    border-bottom: 1px solid #444;
}

.demodatalist{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.demodatalist>div{
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
}

.night .demodatalist>div {
    background-color: #444;
}

.demodatalist>div>div:first-child{
    font-weight: 600;
    color: #3498db;
    margin-bottom: 8px;
    font-size: 0.6rem;
}

.demodatalist>div>div:last-child{
    font-size: 0.6rem;
    word-wrap: break-word;
}

@media screen and (max-width: 1048px){
    .demodatalist{
        grid-template-columns: repeat(2, 1fr);
    }
}

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

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

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

@media screen and (max-width: 490px){
    .demodatalist{
        grid-template-columns: repeat(1, 1fr);
    }
}

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

.upfilebut{
    float: left;
    border: 1px solid #eee;
    height: 38px;
    line-height: 38px;
    text-align: center;
    cursor: pointer;
    color: #bbb;
    width: 100%;
    font-size: 0.6rem;
}

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