/* ==========================================================
   Demo Bonsai
   mobile.css
   Editor Mobile (<=900px)
==========================================================*/

@media screen and (max-width:900px){

/*==========================================================
    SCREEN
==========================================================*/

.screen{

    padding:10px;

}


/*==========================================================
    EDITOR
==========================================================*/

.editor{

    display:flex;

    flex-direction:column;

    gap:10px;

    margin-top:8px;

}


/*==========================================================
    TOOLBAR
==========================================================*/

.toolbar{

    display:flex;

    justify-content:space-between;

    align-items:center;

    height:60px;

    padding:6px 8px;

    background:#242424;

    border-radius:18px;

    overflow:hidden;

    border:1px solid rgba(255,255,255,.06);

    margin-bottom:10px;

}

.tool{

    flex:1;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    gap:2px;

    background:none;

    border:none;

    color:#fff;

    text-decoration:none;

    padding:0;

}

.tool-icon{

    width:24px;

    height:24px;

    object-fit:contain;

}

.tool-icon-big{

    width:28px;

    height:28px;

    font-size:30px;

    display:flex;

    justify-content:center;

    align-items:center;

}

.tool-text{

    margin-top:2px;

    font-size:11px;

    line-height:1;

    font-weight:500;

}


/*==========================================================
    CANVAS
==========================================================*/

.canvas-wrap{

    position:relative;

    background:#171717;

    padding:5px;

    border-radius:20px;

    display:flex;

    justify-content:center;

    align-items:center;

    overflow:hidden;

}

#canvas{

    display:block;

    width:100%;

    height:auto;

    max-width:100%;

    border-radius:16px;

}


/*==========================================================
    SIDEBAR
==========================================================*/

.sidebar{

    background:#ffffff;

    border-radius:18px;

    padding:6px;

}

.sidebar-head{

    margin-bottom:8px;

}


/*==========================================================
    TABS
==========================================================*/

.tabs{

    display:grid;

    grid-template-columns:repeat(4,minmax(0,1fr));

    gap:8px;

}

.tab{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:4px;

    height:52px;

    padding:0 2px;

    border-radius:16px;

    border:2px solid #ececec;

    background:#ffffff;

    font-size:13px;

    font-weight:700;

    white-space:nowrap;

    overflow:hidden;

    text-overflow:ellipsis;

}

.tab img{

    width:22px;

    height:22px;

    object-fit:contain;

}


/*==========================================================
    THUMBNAIL
==========================================================*/

.thumbs{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:8px;

    padding:8px;

    overflow-y:auto;

    overflow-x:hidden;

    align-content:start;

    max-height:55vh;

    scrollbar-width:thin;

}

.thumbs::-webkit-scrollbar{

    display:none;

}

.thumb{

    width:100%;

    aspect-ratio:1;

    display:flex;

    justify-content:center;

    align-items:center;

    border-radius:12px;

    border:1px solid #ddd;

    background:#f6f6f6;

}

.thumb img{

    max-width:90%;

    max-height:90%;

    object-fit:contain;

}


/*==========================================================
    HINT
==========================================================*/

.hint{

    margin-top:8px;

    padding:8px;

    font-size:11px;

    color:#666;

    background:#f8f8f8;

    border-top:1px solid #e6e6e6;

}

}
.thumbs::-webkit-scrollbar{

    width:24px;

}

.thumbs::-webkit-scrollbar-thumb{

    background:#9e9e9e;

    border-radius:20px;

    border:2px solid transparent;

    background-clip:padding-box;

}

.thumbs::-webkit-scrollbar-track{

    background:transparent;

}
.thumbs::-webkit-scrollbar-track{

    background:#eeeeee;

    border-radius:20px;

}