.w-cover {
  width: 100%;
  height: 100%;
}

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

.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;
}

#page_name { 
  font-weight: normal;
  color: black;
}

h2 { 
  padding: 8px;
  margin: 0px;
}

html.ibw-platform-osx-ibooks.vertical { 
  width: 768px;
  height: 1024px;
}

#toolbar-container { 
  position:relative;
  width: 100%;
  height: 42px;
}

#toolbar-container table { 
  width: 100%;
  text-align: center;
}
#toolbar-container td { 
  text-align: center;
  white-space: nowrap;
}
#close-container { 
  position:relative; 
  float:left;
  width:44px;
  height:12px;
}
#pagename-container {
  padding: 14px;
  position:relative; 
  float:left;
  width:120px;
  height:16px;
}

.buttons-container { 
  position: relative; 
  height: 28px;
  display: inline-block;
}

#buttons-container {
}

#width-buttons-container {
}

#colors-container {
}

.button { 
  display: inline-block;
}

#buttons-container .button { 
  margin: 0px 8px 0px 8px;
}


#colors-container input { 
}

#drawing-container { 
  width: 100%;
  height: 100%;
  margin:auto;
  overflow: hidden;
}

#drawingarea { 
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

#info { 
  position: absolute;
  left: 0px;
  top: 0px;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0);
  pointer-events: none;
  padding: 20px;
}

.vertical #info { 
  width: 728px;
}

#textedit { 
  font-size: 110%;
  z-index:30;
  background-color: white;
  position: absolute;
  top: 0px;
  left: 0px;
  display: none;
  border-radius: 3px;
}

.ibw-platform-osx-ibooks #question { 
  min-height: 20px;
}

.hidden {
  display: none;
}

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

#drawingareawrapper {
  position: relative;
  overflow: hidden;
  height: 100%;
}

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

.tool-container { 
  box-shadow: none;
}

.tool-top .tool-item, .tool-top .tool-item:hover { 
  border: none;
}

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

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

.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;
}

[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: 400px) {
  #toolbar-container .bw-toolbar .bw-toolbutton {
    margin: 2px 0px; 
    padding: 2px 0px;
  }

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


/* this is a workaround for a iBooks OSX bug if the widget is used inside an iframe in another widget */
#bottom-container {
  z-index: 1
}

