html {
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}

body{
    background-color: silver;
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    font-size: 12px;
}

.clear{
    clear: both;
}


canvas{
    image-rendering: optimizeSpeed;
    image-rendering: optimize-contrast;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: -moz-crisp-edges;
    image-rendering: -o-crisp-edges;
    image-rendering: pixelated;
    -ms-interpolation-mode: nearest-neighbor;
}


#toolbar{
    left: 4px;
    top: 4px;
    right: 4px;
    position: absolute;
}

#toolbar .coloricon{
    height: 24px;
    width: 24px;
    border: 1px solid #c5c5c5;
    background-color: black;
    display: inline-block;
    margin: 2px;
    padding: 0 4px;
    line-height: 24px;
    vertical-align: middle;
}

.group{
    display: inline-block;
    vertical-align: top;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom-color: rgba(0, 0, 0, 0.3);
    border-right-color: rgba(0, 0, 0, 0.3);
}

.label{
    padding: 2px;
    color: white;
    background-color: rgba(0, 0, 0, 0.1);
    height: 18px;
    border-bottom: 1px solid #9e9e9e;
}

.group.selected .label{
    background-color: #e1e2bd;
    color: black;
}

.button{
    border: 1px solid #c5c5c5;
    background-color: #dcdcdc;
    text-align: center;
    padding: 0 4px;
    font-family: Arial,Helvetica,sans-serif;
    margin: 2px;
    display: inline-block;
    font-size: 12px;
    height: 24px;
    line-height: 24px;
    vertical-align: middle;
    user-select: none
}

.button:hover{
    background-color: #f3f3f3;
    cursor: pointer;
}

.panel{
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom-color: rgba(0, 0, 0, 0.3);
    border-right-color: rgba(0, 0, 0, 0.3);
    position: absolute;
    user-select: none
}

.infopanel{
    left:0;
    right: 0;
    top: 20px;
    position: absolute;
}

#toolbar >.group,
.infopanel >.group{
    border: none;
    margin: 0;
}

#toolbar >.group >.group{
    height: 48px;
}


.infopanel >.group >.group{
    position: absolute;
    top: 0;
    left: -1px;
    height: 66px;
}

.infopanel #activeicon{
    left: 49px;
}
.infopanel #palette{
    left: 99px;
    width: 380px;
}

.infopanel #palette .info{
    position: absolute;
    right: 4px;
    top: 3px;
}



.rangepanel{
    display: inline-block;
}

.rangepanel .label{
    position: absolute;
    font-family: sans-serif;
    font-size: 11px;
    pointer-events: none;
}



select{
    background-color: #dcdcdc;
}

.maincontainer{
    position: relative;
    width: auto;
    margin: auto;
}