/* sprite library panel */
#library_paintme {
    display: none;
}

#projectinfo {
    display: none;
}

.spritethumb .brush {
    display: none;
}

.flipme {
    /* display: none; */
    position: absolute;
    margin: 0px;
    padding: 0px;
    top: 0.13vh;
    left: 1.69vh;
    background:  url('../assets/ui/fliplogo.svg');
    background-size: 100.5%; /* webview pixelates the image unless we do this */
    background-size: 150% 100%;
    pointer-events: none;
    width: 29.95vh;
    height: 8.2vh;
}

.flipme:active {
    background:  url('../assets/ui/fliplogoPressed.svg');
    background-size: 100.5%;  /* webview pixelates the image unless we do this */
}

.scrollbar {
    position: absolute;
    display: inline-block;
    margin: 0px;
    padding: 0px;
    top: 0px;
    left: 32.29vh;
    width: 1.04vh;
    height: 40.63vh;
    background: rgba(255,255,255,0.5);
}

.scrollbar .sbthumb {
    position: absolute;
    margin: 0px;
    padding: 0px;
    width: 1.04vh;
    height: 0px;
    background: #C9C9C9;
}

.scrollbar.off { display: none;}

.scrollbar.on {display: inline-block;}

#library {
    position: absolute;
    display: inline-block;
    margin: 0px;
    padding: 0px;
    top: 9.38vh;
    width: 33.85vh;
    overflow-x: hidden;
}

#library .spritethumbs {
    position: relative;
    margin: 0px;
    padding: 0px;
    display: block;
    overflow-y: scroll;
    overflow-x: hidden;
    width: 33.85vh;
    max-height: 40.63vh;
}

.spritethumbs::-webkit-scrollbar {
    width: 0 !important;
}

#library .spritethumbs .spritecc{
    position: relative;
    margin: 0px 2.34vh 0px;
    padding: 0px;
    width:  29.95vh;
}

#library .addsprite {
    position: relative;
    display: inline-block;
    background:  url('../assets/ui/newsprite2.png') no-repeat left top;
    background-size: 100%;
    width:  23.18vh;
    height: 10.29vh;
    margin: 0px 2.34vh 0px;
}


/* sprites thumbnails */
.spritethumb {
    background: none;
    position: relative;
    display: inline-block;
    word-spacing: -1;
    width: 29.95vh;
    height: 10.16vh;
    margin: 0px;
    margin-bottom: -0.39vh;
    padding: 0px;
}

.spritethumb .thumbcanvas{
    position: absolute;
    margin: 0.65vh 0.65vh 0px;
    padding: 0px;
}

.spritethumb.off {
    background: url('../assets/ui/viewOff.png') no-repeat left top;
    background-size: 23.18vh;
}

.spritethumb.off.target {
    background: url('../assets/ui/viewOffTarget.png') no-repeat left top;
    background-size: 23.18vh;
}

.spritethumb.on.target {
    background: url('../assets/ui/viewOnTarget.png') no-repeat left top;
    background-size: 100%;
    width: 29.95vh;
}

.spritethumb.on {
    background: url('../assets/ui/viewOn.png') no-repeat left top;
    background-size: 100%;
    width: 29.95vh;
}

.spritethumb.noneditable {
    background: url('../assets/ui/viewOffTarget.png') no-repeat left top;
    background-size: 100% 100%;
}

.spritethumb.on .deletespritethumb {
    position: absolute;
    margin: 0px 0px 0px;
    left: 0px;
    width: 5.86vh;
    height: 5.73vh;
    background: url('../assets/ui/closeit.svg');
    background-size: 100.5%; /* webview pixelates the image unless we do this */
    z-index: 5;
    -webkit-user-select: none;
}

.spritethumb.off .deletespritethumb {
    position: absolute;
    margin: 0px 0px 0px;
    left: 0px;
    width: 5.86vh;
    height: 5.73vh;
    background: url('../assets/ui/closeit.svg');
    background-size: 100.5%; /* webview pixelates the image unless we do this */
    z-index: 5;
    -webkit-user-select: none;
}

.spritethumb .icon{
    position: absolute;
    top: 0.65vh;
    left: 1.04vh;
    width: 8.33vh;
    height: 8.33vh;
    margin: 0vh;
    padding: 0vh;
    overflow: hidden;
}

.spritethumb .sname{
    position: absolute;
    text-align: center;
    top: 3.52vh;
    left: 9.89vh;
    margin: 0px;
    padding: 0px;
    line-height: 2.6vh;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    font-family: Roboto;
    font-weight: bold;
    font-size:  1.69vh;
    width: 11.97vh;
    cursor: default;
    color: #999999;
}

.spritethumb.off .sname{
    color: #999999;
    top: 3.52vh;
    left: 9.89vh;
    width: 11.97vh;
}

.spritethumb.on .sname{
    color: #F9A737;
    top: 3.91vh;
    left: 9.24vh;
    width: 11.97vh;
}
.spritethumb.noneditable .sname{
    color: #999;
    top: 3.91vh;
    left: 9.24vh;
    width: 11.97vh;
}

.spritethumb .brush {
    position: absolute;
    background:  url('../assets/paint/paintbrush.svg');
    background-size: 7.03vh 7.03vh;
    width: 7.03vh;
    height: 7.03vh;
    top: 1.3vh;
    left: 21.75vh;
    margin: 0px;
    padding: 0px;
}

.spritethumb .brush:active { background:  url('../assets/paint/paintbrushPressed.svg'); background-size: 100%; }
.spritethumb.off .brush{ display: none;}
.spritethumb.noneditable .brush{ display: none;}
