html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    position: relative;
}

.workspace {
    width: 100%;
    height: 100%;
    background: #fff;
    
}

.pixel {
    width: 1%;
    height: 1%;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    float: left;
}

body.editing .pixel {
    cursor: pointer;
}

.pixel.border {    
    border: 1px solid #eaeaea;
}

.pixel.fill {
    background: #000;
}

.pixel.edit {
    cursor: pointer;
}

.pixel.contact {
    cursor: pointer;
}

.toolbox {
    position: absolute;
    top: 1%;
    right: 1%;
    background: #fff;
    padding: 10px 5px;
    -webkit-box-shadow: 0px 0px 8px 2px rgba(120,120,120,1);
    -moz-box-shadow: 0px 0px 8px 2px rgba(120,120,120,1);
    box-shadow: 0px 0px 8px 2px rgba(120,120,120,1);
	display: none;
}

.toolbox .option {
    width: 30px;
    height: 30px;
    cursor: pointer;
    border: 1px solid #4f4f4f;
    margin: 10px;
    display: block;
    position: relative;
}

.toolbox .option i {
    margin: 8px 0 0 4px;
    color: #4f4f4f;
}

.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  transition: opacity 500ms;
  visibility: hidden;
  opacity: 0;
}

.overlay:target {
  visibility: visible;
  opacity: 1;
}

.popup {
  margin: 70px auto;
  padding: 20px;
  background: #fff;  
  width: 30%;
  position: relative;
  transition: all 5s ease-in-out;
}

.popup .close {
  position: absolute;
  top: -4px;
  right: 3px;
  transition: all 200ms;
  font-size: 30px;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}

.popup .close:hover {
  color: #06D85F;
}

.popup textarea {
  width: 100%;
  height: 200px;
}

#colorpicker {
    display: none;
    position: absolute;
    z-index: 10000;
    right: 0;
    top: 0;
    width: 120px;
    margin-right: 40px;
}

.processing {
    position: fixed;
    z-index: 1000000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: none;
}