#bottom-container { 
  width: 100%;
  height: 100%;
}

html.processing-in-progress #sendbutton,
html.processing-in-progress #clearbutton,
html.processing-in-progress #sharebutton,
html.processing-in-progress #downloadbutton
{ 
  opacity: 30%;
  pointer-events: none;
  cursor: default;
}

#drawingareawrapper-outer, #textcontainer {
  position: relative;
  box-sizing: border-box;  
}

#drawingareawrapper-outer{ 
  z-index: 50;
}

#toolbar {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  margin:0px;
  padding:0px;
  font-family: 'Helvetica';
  color: white;

  height: 44px;
}


.bw-toolbutton > .bw-icon.bw-icon-fill-drop {
  display: block;
  position: absolute;
  z-index: 0;
  left: 4px;
  top: 4px;
}

.bw-icon.bw-icon-fill-drop-small {
  display: block;
  position: relative;
  z-index: 1;
  left: 0px;
  top: 0px;
}

#drawingarea {
  position: relative;
  z-index: 100;
  overflow: hidden;
}

#canvasdiv { 
  width : 100%;
  height: 100%;
}

#textcontainer {
  overflow-y:auto;
  padding: 0px;
  padding-left: 2px;
  z-index: 100;
}

#textcontainer.allow-copy * {  
  -webkit-touch-callout: text;
  -webkit-user-select: text;
  -khtml-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;  
}

#textdiv { 
  background-color : transparent;
  padding: 6px;
}

#infobutton {
  display:none;	
}

#toolbar { 
  text-align: center;
}

#buttons-container,
#width-buttons-container {
  position: relative; 
  width: 42px;
  height: auto;
  margin-bottom: 3px;
}

body {  
  background-color:#F0F0F0;
}

#textedit { 
  font-size: 110%;
  z-index:100;
  background-color: rgba(0, 0, 0, 0);
  border: none;
  position: absolute;
  display: none;
  border-radius: 3px;
}

.hidden {
  display: none;
}

#photo-buttons-container .tool-button-bar {
  display: inline-block;
}

.w-cover .photo-placer {
  position: absolute;
  z-index: 1000;
}

#drawingareawrapper {
  position: relative;
  overflow: hidden;
}

.tool-items i {
  display: block;
  width: 30px;
  height: 30px;
  margin-left: 7px;  
}

.tool-container.tool-top { 
  box-shadow: none ;
  border: none;
  background: #777777;
}

.tool-container.tool-top .tool-item { 
  border: none;
  color: white;
}

.tool-container.tool-top .tool-item:hover { 
  background: #aaaaaa;
}

.tool-container.tool-top .arrow { 
  border-top-color: #777777;
 }

.tool-container a { 
  text-decoration: none;
}

#widthpopup, #colorpopup, #toolpopup { 
  display: none;
}

.tool-container .bw-icon { 
  font-size: 32px;
  width: 32px;
  height: 32px;
}

[selected-tool=draw] canvas { 
  cursor: crosshair;
}

[selected-tool=eraser] canvas { 
  cursor: crosshair;
}

[selected-tool=pan] canvas { 
  cursor: move;
}

[selected-tool=text] canvas { 
  cursor: text;
}

/* in case color popup goes over 1 line */
.tool-container.tool-top, .tool-container.tool-bottom { 
  height: auto;
}

@media only screen and (max-width: 750px) {
  html #textdiv {
    word-wrap:break-word;
  }

  html #bottom-container { 
    display: block;
  }

  html #bottom-container #drawingareawrapper-outer {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%!important;
    height: 100%;
    box-sizing: border-box;
  }

  html #bottom-container #textcontainer {
    display: none;
    position: absolute;
    left: -100%;
    top: 0px;
    width: 100%!important;
    height: 100%;
    z-index: 1000;
    box-sizing: border-box;
    border: none;
  }

  html #infobutton {
    display: block;
    float:left;    
  }

  html #bottom-container.show-info #textcontainer { 
    display: block;
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%!important
    height: 100%;
    animation-name: slidefromleft;
    animation-duration: 0.5s;
  }

  html #bottom-container.hide-info #textcontainer { 
    display: block;
    animation-name: slidetoleft;
    animation-duration: 0.5s;
  }

  html #bottom-container.show-info #drawingareawrapper-outer { 
    opacity: 0; 
    animation-name: maketransparent;
    animation-duration: 0.5s;
  }

  html #bottom-container.hide-info #drawingareawrapper-outer { 
    opacity: 1;
    animation-name: makeopaque;
    animation-duration: 0.5s;
  }

}

@media only screen and (max-width: 400px) {

  html #toolbar .bw-toolbar .bw-toolbutton {
    margin: 2px 0px; 
    padding: 2px 0px;
  }

  html #toolbar .bw-toolbutton > .bw-icon.bw-icon-fill-drop {
    display: block;
    position: absolute;
    z-index: 0;
    left: 0px;
    top: 4px;
  }
}

@keyframes slidefromleft {
    from {left: -100%;}
    to {left: 0%;}
}

@keyframes slidetoleft {
    from {left: 0%;}
    to {left: -100%;}
}

@keyframes maketransparent {
    from {opacity: 1;}
    to {opacity: 0;}
}

@keyframes makeopaque {
    from {opacity: 0;}
    to {opacity: 1;}
}

