.colorpicker-saturation {
    width: 200px;
    height: 200px;
    background-image: url(../img/saturation.png);
    cursor: crosshair;
    float: left;
}
.colorpicker-saturation i {
    display: block;
    height: 5px;
    width: 5px;
    border: 1px solid black;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    position: absolute;
    top: 0;
    left: 0;
    margin: -4px 0 0 -4px;
}
.colorpicker-saturation i b {
    display: block;
    height: 5px;
    width: 5px;
    border: 1px solid white;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}
.colorpicker-hue,
.colorpicker-alpha {
    width: 60px;
    height: 200px;
    float: left;
    cursor: row-resize;
    margin-left: 4px;
    margin-bottom: 4px;
}
.colorpicker-hue i,
.colorpicker-alpha i {
    display: block;
    height: 1px;
    background: #000;
    border-top: 1px solid white;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    margin-top: -1px;
}
.colorpicker-hue {
    background-image: url(../img/hue.png);
}
.colorpicker-alpha {
    background-image: url(../img/alpha.png);
    display: none;
}
.colorpicker {
    position: absolute;
    *zoom: 1;
    top: 0;
    left: 0;
    padding: 4px;
    min-width: 120px;
    margin-top: 1px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    background-color: #969696;
}
.colorpicker div {
    position: relative;
}
.colorpicker.alpha {
    min-width: 140px;
}
.colorpicker.alpha .colorpicker-alpha {
    display: block;
}
.colorpicker-color {
    height: 20px;
    margin-top: 5px;
    clear: both;
    background-image: url(../img/alpha.png);
    background-position: 0 100%;
}
.colorpicker-color div {
    height: 20px;
}
.input-append.color .add-on i,
.input-prepend.color .add-on i {
    display: block;
    cursor: pointer;
    width: 16px;
    height: 16px;
}
.literally {
    position: relative;
    background-color: white;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -ms-touch-action: none;
    user-select: none;
}
.literally canvas {
    position: absolute;
    top: 0;
    left: 0;
    cursor: default;
    width: 100%;
    background-color: #f5f5f5;
    
    border:1px solid #ddd;
    margin:-1px;
}

/* toolbar structure */
.literally {
}
.literally .toolbar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: gainsboro;
}
.literally .toolbar, .literally .toolbar * {
    box-sizing: border-box;
}
.literally .toolbar-row {
    border-top: 1px solid #c8c8c8;
}
.literally .toolbar-row:first-child {
    width: 100%;
    height: 40px; /* 30px */
}
.literally .toolbar-row .toolbar-row-left, .literally .toolbar-row .toolbar-row-right {
    margin-top: 3px; /* 3px */
    margin-bottom: 3px; /* 3px */
    height: 34px; /* 24px */
    line-height: 34px; /* 24px */
}
.literally .toolbar-row .toolbar-row-left {
    float: left;
    padding-left: 3px;
}
.literally .toolbar-row .toolbar-row-right {
    width: 21em;
    float: right;
    text-align: right;
    padding-right: 3px;
}
.literally .toolbar-row .color-square {
    width: 35px; /* 24px */
    height: 35px; /* 24px */
    border-radius: 5px;
    border: 1px solid #c8c8c8;
    margin-right: 3px;
}
.literally .toolbar-row .color-square.primary-picker, .literally .toolbar-row .color-square.secondary-picker {
    float: left;
}
.literally .toolbar-row .color-square.background-picker {
    display: inline-block;
}
.literally .tools {
    float: left;
}
.literally .tools .buttonlit {
    text-align: center;
    width: 40px; /* 30px */
    height: 34px; /* 24px */
    padding: 0;
    position: relative;
}
.literally .tools .buttonlit .tool-image-wrapper {
    height: 34px; /* 24px */
    padding-top: 4.25px; /* 3px */
}
.literally .tools .buttonlit .tool-image-wrapper img {
    width: 24px; /* 18px */
    height: 24px; /* 18px */
    vertical-align: top;
}
.literally .zoom-display {
    text-align: center;
    width: 3.0em; /* 1.5em */
    border-radius: 5px;
    background-color: #333;
    font-weight: bold;
    color: white;
    display: inline-block;
    line-height: 14px;
    padding: 5px 5px 5px 5px; }
.literally .tool-options-container {
    display: inline-block;
}
.literally .buttonlit {
    display: inline-block;
    padding-left: 13px;
    padding-right: 13px;
    text-align: center;
    text-decoration: none;
    text-shadow: 1px 1px 0 white;
    color: #333;
    white-space: nowrap;
    cursor: pointer;
    outline: none;
    background-color: #f4f4f4;
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f4f4f4), to(#ececec));
    background-image: -moz-linear-gradient(#f4f4f4, #ececec);
    background-image: -ms-linear-gradient(#f4f4f4, #ececec);
    background-image: -o-linear-gradient(#f4f4f4, #ececec);
    background-image: linear-gradient(#f4f4f4, #ececec);
    background-color: #ececec;
    -moz-background-clip: padding;
    /* for Firefox 3.6 */
    background-clip: padding-box;
    border-radius: 5px;
    /* IE hacks */
    zoom: 1;
    *display: inline;
}
.literally .buttonlit:hover,
.literally .buttonlit:focus,
.literally .buttonlit:active,
.literally .buttonlit.active {
    text-decoration: none;
    text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.3);
    color: #fff;
    background-color: #599bdc;
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#599bdc), to(#3072b3));
    background-image: -moz-linear-gradient(#599bdc, #3072b3);
    background-image: -ms-linear-gradient(#599bdc, #3072b3);
    background-image: -o-linear-gradient(#599bdc, #3072b3);
    background-image: linear-gradient(#599bdc, #3072b3);
}
.literally .buttonlit:active,
.literally .buttonlit.active {
    background-color: #3072b3;
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#3072b3), to(#599bdc));
    background-image: -moz-linear-gradient(#3072b3, #599bdc);
    background-image: -ms-linear-gradient(#3072b3, #599bdc);
    background-image: -o-linear-gradient(#3072b3, #599bdc);
    background-image: linear-gradient(#3072b3, #599bdc); }
.literally .buttonlit::-moz-focus-inner {
    padding: 0;
    border: 0;
}
.literally .buttonlit.danger {
    color: white;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
    background-color: #f37873;
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f37873), to(#b33630));
    background-image: -moz-linear-gradient(#f37873, #b33630);
    background-image: -ms-linear-gradient(#f37873, #b33630);
    background-image: -o-linear-gradient(#f37873, #b33630);
    background-image: linear-gradient(#f37873, #b33630); }
.literally .buttonlit.danger:hover,
.literally .buttonlit.danger:focus,
.literally .buttonlit.danger:active {
    border-color: #b53f3a;
    border-bottom-color: #a0302a;
    color: #fff;
    background-color: #dc5f59;
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#dc5f59), to(#b33630));
    background-image: -moz-linear-gradient(#dc5f59, #b33630);
    background-image: -ms-linear-gradient(#dc5f59, #b33630);
    background-image: -o-linear-gradient(#dc5f59, #b33630);
    background-image: linear-gradient(#dc5f59, #b33630); }
.literally .buttonlit.danger:active,
.literally .buttonlit.danger.active {
    border-color: #a0302a;
    border-bottom-color: #bf4843;
    background-color: #b33630;
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#b33630), to(#dc5f59));
    background-image: -moz-linear-gradient(#b33630, #dc5f59);
    background-image: -ms-linear-gradient(#b33630, #dc5f59);
    background-image: -o-linear-gradient(#b33630, #dc5f59);
    background-image: linear-gradient(#b33630, #dc5f59);
}
.literally .button-group {
    display: inline-block;
    margin-right:5px;
}
.literally .button-group .buttonlit {
    border-radius: 0;
    border-left: 1px solid #d4d4d4;
}
.literally .button-group .buttonlit:first-child {
    border-radius: 5px 0px 0px 5px;
    border-left: none;
}
.literally .button-group .buttonlit:last-child {
    border-radius: 0px 5px 5px 0px;
}
.tool-options-text {
    font-size: 12px;
}
.tool-options-text .instructions {
    margin-left: 2em;
}
.tool-options-text #font-size {
    width: 30px;
}
.toolbar{
    height:90px;
}
.colorpicker{
    z-index: 1120;   
}
.colorpicker-saturation{
    z-index: 1121;   
}
.colorpicker-hue{
    z-index: 1121;   
}
.colorpicker-alpha{
    z-index: 1121;   
}
.colorpicker-color{
    z-index: 1121;   
}
.color-square{
    cursor: pointer;
}
.clear-button{
    margin-right:5px;
}