.divbuts{
    text-align: center;
    margin: 0.75rem 0;
    display: none;
}

.divbuts button{
    padding: 0.3rem 0.8rem;
    background-color: #4CAF50;
    border: 1px solid #4caf50;
    color: #fff;
    cursor: pointer;
    border-radius: 3px;
    display: inline-block;
    margin: 0 0.2rem;
}

.divbuts button.demo_buts {
    background-color: #FF9800;
    border: 1px solid #FF9800;
    color: #fff;
}

.night .divbuts button.demo_buts{
    background-color: #030712;
    border: 1px solid #374151;
    color: #8ba0c3;
}

.divbuts button.clear_buts {
    background-color: #fff;
    color: #888;
    border: 1px solid #eee;
}

.night .divbuts button.clear_buts {
    border: 1px solid #374151;
    color: #4c5d78;
    background-color: #141822;
}

#imglist{
    border: 1px solid #e8e8fd;
    padding: 0.25rem;
    margin-top: 0.75rem;
    display: none;
}
.night #imglist{
    border:1px solid #374151;
}
#imglist>div{
    width: calc(100% / 6);
    float: left;
    padding: 0.25rem;
}
#imglist>div>div{
    border: 1px solid #e8e8fd;
}
.night #imglist>div>div{
    border:1px solid #374151;
}
#imglist>div>div>div{
    height: 8rem;
    background-color: #f6f7fa;
}
.night #imglist>div>div>div{
    background-color: #111;
}
#imglist>div>div>div img{
    width: 100%;
    height: 100%;
    -o-object-fit: contain;
    object-fit: contain;
}
#imglist>div>div p{
    height: 1.8rem;
    line-height: 1.8rem;
    text-align: center;
    color: #888;
    border-top: 1px solid #e8e8fd;
}
.night #imglist>div>div p{
    border-top: 1px solid #374151;
}
#imglist>div>div p i{
    cursor: pointer;
    margin: 0 0.5rem;
}

@media screen and (max-width: 500px){
    .divbuts button{
        width: 100%;
        margin: 0 0 0.5rem 0;
    }
    .divbuts button:last-child{
        margin-bottom: 0;
    }
}

@media screen and (max-width: 1300px){
    #imglist>div{
        width: calc(100% / 5);  
    }
}
@media screen and (max-width: 1110px){
    #imglist>div{
        width: calc(100% / 4);  
    }
}
@media screen and (max-width: 900px){
    #imglist>div{
        width: calc(100% / 3);  
    }
}
@media screen and (max-width: 560px){
    #imglist>div{
        width: calc(100% / 2);  
    }
}
@media screen and (max-width: 330px){
    #imglist>div{
        width: calc(100% / 1);  
    }
}