.paintframe {
    position: absolute;
    z-index: 10000;
    background: url('../assets/pagebkg.png');
    background-size: 100%;
    display: none;
    width: 100vw;
    height: 100vh;
    -moz-user-select: -moz-none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}

.paintframe.appear {display: block;}

.paintframe.disappear {display: none;}

/*name*/

.spriteform {
    margin: 0.65vh auto;
    position: relative;
    top:  0.65vh;
    width: 31.25vh;
    height: 6.51vh;
}

.spriteform input{
    text-align: center;
    color: #929497;
    font-family: Verdana;
    font-size: 2.6vh;
    cursor: default;
    padding: 0.26vh;
    padding-left: 0.65vh;
    border: 0.13vh solid #808080;
    -webkit-border-radius: 32px;
    outline: 0vh;
    background: white;
    width: 31.25vh;
    height: 5.21vh;
}

spriteform.on {visibility: hidden;};
spriteform.off {visibility: hidden; };

/* main canvas */

*.maincanvas {
    position: absolute;
    width: 432px;
    height: 384px;
    z-index: 4;
    top: 0vh;
    left: 0vh;
    cursor: default;
    background: #F5F2F7;
    -webkit-transform-style: preserve-3d;
}

*.active3d {
    -webkit-transform-style: preserve-3d;
}

*.paintop {
    position: absolute;
    padding: 0vh;
    margin: 0vh;
    width: 100vw;
    height: 8.33vh;
}

.paintdone {
    float: right;
    display: block;
    margin: 0.65vh 0.65vh 0vh;
    padding: 0vh;
    width: 8.46vh;
    height: 8.46vh;
    background: url('../assets/paint/ok.svg');
    background-size: 100%;
    -webkit-user-select: none;
    z-index: 1000;
}

.paintdone:active {
    background: url('../assets/paint/okPressed.svg');
    background-size: 100%;
}

/* camera */

.phototopbar {
    position: fixed;
    top: 0;
    left: 0;
    height: 10.29vh;
    width: 100vw;
    overflow: hidden;
    text-shadow: none;
    background: none;
    border: 0vh solid black;
}

.actions .photobuttons {
    float: right;
    display: block;
    margin: 0vh;
    padding: 0vh;
    width: 10.29vh;
    height: 10.29vh;
}

.flipcamera {
    float: right;
    position: relative;
    display: /*block;*/ none;
    margin: 0vh;
    width: 10.29vh;
    height: 10.29vh;
    margin: 0.65vh;
    background: url('../assets/paint/cameraFlip.svg');
    background-size: 100%;
}

.flipcamera:active {
    background: url('../assets/paint/cameraFlipPressed.svg');
    background-size: 100%;
}

.cameraclose {
    float: left;
    display: block;
    margin: 0vh;
    width: 10.29vh;
    height: 10.29vh;
    margin: 0.65vh;
    background: url('../assets/paint/cameraExit.svg');
    background-size: 100%;
}

.cameraclose:active {
    background: url('../assets/paint/cameraExitOn.svg');
    background-size: 100%; }

.snapshot-container {
    position: absolute;
    bottom: 1.3vh;
    height: 10.29vh;
    width: 100%;
    pointer-events: auto;
}

.snapshot {
    width: 10.29vh;
    height: 10.29vh;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    background: url('../assets/paint/cameraSnap.svg');
    background-size: 100%;
}

.snapshot:active {
    background: url('../assets/paint/cameraExitOn.svg');
    background-size: 100%;
}


/* Undo */

.paintundo {
    float: left;
    position: relative;
    margin:  0.78vh 0.65vh 0vh;
    width: 23.44vh;
    height: 8.07vh;
}


.undocircle{
    display: inline-block;
    position: relative;
    margin: 0vh 1.3vh 0vh;
    padding: 0vh;
    width: 8.46vh;
    height: 8.33vh;
}

.undo {
    position: relative;
    width: 8.46vh;
    height: 8.33vh;
    background: url('../assets/paint/undoOff.svg');
    background-size: 100%;
    -webkit-user-select: none;
}

.redo {
    position: relative;
    width: 8.46vh;
    height: 8.33vh;
    background: url('../assets/paint/redoOff.svg');
    background-size: 100%;
    -webkit-user-select: none;
}

.undo.on {
    background: url('../assets/paint/undoOn.svg');
    background-size: 100%;
}

.undo.off {
    background: url('../assets/paint/undoOff.svg');
    background-size: 100%;
}

.redo.on {
    background: url('../assets/paint/redoOn.svg');
    background-size: 100%;
}

.redo.off {
    background: url('../assets/paint/redoOff.svg');
    background-size: 100%;
}

.undo.on:active {
    background: url('../assets/paint/undoOnPressed.svg');
    background-size: 100%;
}

.undo.off:active {
    background: url('../assets/paint/undoOffPressed.svg');
    background-size: 100%;
}

.redo.on:active {
    background: url('../assets/paint/redoOnPressed.svg');
    background-size: 100%;
}

.redo.off:active {
    background: url('../assets/paint/redoOffPressed.svg');
    background-size: 100%;
}


/* inner */

*.innerpaint {
    position: absolute;
    top: 8.33vh;
    padding: 0vh;
    margin: 0vh;
    width: 100vw;
    height: 76.56vh;
}

*.side {
    position: absolute;
    right: 2vw;
    top: 8.25vh;
    margin: 1.56vh 0vh 0;
    padding: 0vh 0.39vh 0vh;
    width: 10.42vh;
    height: 65.18vh;
    overflow: hidden;
    z-index: 100;
}

*.side.up {
    top: 3vh;
    height: 73.18vh;
    left: 2vw;
}

*.paintpalette {
    display: inline-block;
    position: absolute;
    margin: 0vh;
    margin-bottom: 0.65vh;
    padding: 0vh;
    width: 10.42vh;
    overflow: hidden;
    height: 100%;
}

*.paintpalette .section {
    display: inline-block;
    position: absolute;
    top: 0vh;
}

*.paintpalette .section.space {
    margin-top: 3.13vh;
    top: 33vh;
}

*.paintpalette.short {
    display: inline-block;
    position: absolute;
    margin: 0.65vh 0vh 0.65vh;
    height: 16.67vh;
}

*.paintpalette.short#selectortools {
    top: 0vh;
}

*.paintpalette.short#edittools {
    top: 19.4vh;
}

*.paintpalette.short#filltools {
    top: 38.7vh;
}

*.paintpalette.medium {
    display: inline-block;
    position: relative;
    margin: 0.65vh 0vh 0.65vh;
    height: 25vh;
}

*.paintpalette.single {
    display: inline-block;
    position: relative;
    margin: 0.65vh 0vh 0.65vh;
    height: 8.33vh;
}

/* left tools */

*.paintpalette .element{
    margin: 0vh 1.3vh 1vh;
    padding: 0vh;
    width: 7.81vh;
    height: 7.16vh;
}

*.paintpalette .element.first{}

*.paintpalette .element.last{}

*.paintpalette .element.single{}

*.paintpalette .element.off{}

*.paintpalette .element.on {}

*.tool {
    position: absolute;
    width: 8.33vh;
    height: 8.33vh;
}

*.tool.path.on {
    background: url('../assets/paint/pathOn.svg') no-repeat center top;
    background-size: 100%;
}
*.tool.path.off {
    background: url('../assets/paint/pathOff.svg') no-repeat center top;
    background-size: 100%;
}
*.tool.tri.on {
    background: url('../assets/paint/triOn.svg') no-repeat center top;
    background-size: 100%;
}
*.tool.tri.off {
    background: url('../assets/paint/triOff.svg') no-repeat center top;
    background-size: 100%;
}
*.tool.rect.on {
    background: url('../assets/paint/rectOn.svg') no-repeat center top;
    background-size: 100%;
}
*.tool.rect.off {
    background: url('../assets/paint/rectOff.svg') no-repeat center top;
    background-size: 100%;
}
*.tool.ellipse.on {
    background: url('../assets/paint/ellipseOn.svg') no-repeat center top;
    background-size: 100%;
}
*.tool.ellipse.off {
    background: url('../assets/paint/ellipseOff.svg') no-repeat center top;
    background-size: 100%;
}

*.tool.paintbucket.off {
    background: url('../assets/paint/paintbucketOff.svg') no-repeat center top;
    background-size: 100%;
}
*.tool.paintbucket.on {
    background: url('../assets/paint/paintbucketOn.svg') no-repeat center top;
    background-size: 100%;
}
*.tool.select.on {
    background: url('../assets/paint/selectOn.svg') no-repeat center top;
    background-size: 100%;
}
*.tool.select.off {
    background: url('../assets/paint/selectOff.svg') no-repeat center top;
    background-size: 100%;
}
*.tool.rotate.on {
    background: url('../assets/paint/rotateOn.svg') no-repeat center top;
    background-size: 100%;
}
*.tool.rotate.off {
    background: url('../assets/paint/rotateOff.svg') no-repeat center top;
    background-size: 100%;
}
*.tool.stamper.on {
    background: url('../assets/paint/stamperOn.svg')no-repeat center top;
    background-size: 100%;
}
*.tool.stamper.off {
    background: url('../assets/paint/stamperOff.svg') no-repeat center top;
    background-size: 100%;
}
*.tool.scissors.off {
    background: url('../assets/paint/scissorsOff.svg')no-repeat center top;
    background-size: 100%;
}
*.tool.scissors.on {
    background: url('../assets/paint/scissorsOn.svg') no-repeat center top;
    background-size: 100%;
}
*.tool.camera.off {
    background: url('../assets/paint/snapOff.svg') no-repeat center top;
    background-size: 100%;
}
*.tool.camera.on {
    background: url('../assets/paint/snapOn.svg') no-repeat center top;
    background-size: 100%;
}


*.paintpalette   hr{
    position: relative;
    margin: 0 auto;
    height: 0.26vh;
    border: 0;
    box-shadow: inset 0 4px 4px -4px rgba(166, 168, 171, 0.7);
}

*.paintpalette .pensizeholder {
    display: inline-block;
    position: relative;
    margin: 0vh;
    padding: 0vh;
    width: 10.42vh;
    height: 5.86vh;
}

*.paintpalette .pensizeholder.off {background: none;}

*.paintpalette .pensizeholder.on {
    background:  url('../assets/paint/pensizeselect.svg');
    background-size: 100%;
}

*.paintpalette .pensizeholder .line {
    position: absoulte;
    margin: 2.6vh 1.56vh 0vh;
    width: 7.03vh;
    height: 0.13vh;
    background: #080808;
    -webkit-box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

*.paintpalette .pensizeholder .line.t0 {
    margin: 2.6vh 1.56vh 0vh;
    height: 0.26vh;
}

*.paintpalette .pensizeholder .line.t1 {
    margin: 2.6vh 1.56vh 0vh;
    height: 0.26vh;
}

*.paintpalette .pensizeholder .line.t2 {
    margin: 2.47vh 1.56vh 0vh;
    height: 0.52vh;
}

*.paintpalette .pensizeholder .line.t3 {
    margin: 2.08vh 1.56vh 0vh;
    height: 1.04vh;
}

*.paintpalette .pensizeholder .line.t4 {
    margin: 1.82vh 1.56vh 0vh;
    height: 2.08vh;
}

.swatchpalette-container {
    position: absolute;
    top: 84.9vh;
    width: 100%;
    pointer-events: auto;
}

*.swatchpalette {
    margin-left: auto;
    margin-right: auto;
    width: 130.21vh;
    height: 13.54vh;
}

/*swatches */

*.swatchbucket {
    display: inline-block;
    position: relative;
    margin: -0.52vh 0vh 0vh;
    padding: 0vh;
    width: 6.51vh;
    height: 7.03vh;
    -webkit-user-select: none;
}

*.swatchframe {
    position: absolute;
    margin: 5px 5px 0px;
    padding: 0px;
    width: 5.21vh;
    height: 5.21vh;
    background-image: -webkit-linear-gradient(top,#666,#fff);
    -webkit-box-shadow: 0px 3px 5px #333;
    -webkit-border-radius: 3.13vh;
    -webkit-user-select: none;
}

*.splasharea {
    position: absolute;
    margin:  0vh;
    padding: 0vh;
    width: 6.51vh;
    height: 7.03vh;
}

*.splasharea img {
    height: 7.03vh;
}

*.splasharea.off {display: none;}
*.splasharea.on {display: block;}

.swatchcolor {
    position: absolute;
    top: 0.26vh;
    left: 0.26vh;
    width: 4.69vh;
    height: 4.69vh;
    background: yellow;
    -webkit-border-radius: 3.13vh;
}

/* Workspace */

.workspacebkg-container {
    position: absolute;
    top: 0.65vh;
    left: 0vh;
    width: 100%;
    pointer-events: auto;
}

.workspacebkg {
    margin-left: auto;
    margin-right: auto;
    background: #ffffff;
    border: 0.13vh solid #b0b1b1;
    width: 78%;
    height: 74.48vh;
    overflow: hidden;
    -webkit-border-radius: 4px;
    -webkit-box-shadow: inset 0 0 4px #b0b1b1;
}

.canvasbkg {
    width: 62.5vh;
    height: 46.88vh;
    background-color: #F5F2F7;
    position: absolute;
    border: 0.13vh solid #b0b1b1;
}

div.toolbox{
    position: absolute;
    background: #f1f1f2;
    border: 0.26vh groove #B9BBBD;
    opacity: 0.5;
}

div.boxbkg{
    background-color: #f1f1f2;
    display: inline-block;
    vertical-align: top;
    margin: 0.13vh;
    padding: 0vh;
};
