*{
    margin: 0;
    padding: 0;
}
.draw_controller{
    margin: 10px 0 0;
    height: 50px;
}

.draw_controller li a{
    display: block;
    width: 30px;
    height: 30px;
}
.draw_controller li{
    float: left;
    width: 30px;
    height: 30px;
    box-shadow:0 0 4px #49a4db;
    margin: 0 8px;
    cursor: pointer;
    list-style: none;
    background-image: url(../resources/draw.png);
    background-color: #FFF;
    background-repeat: no-repeat;
    -webkit-transition: all 0.4s ease-in-out;
}

.draw_controller li:nth-child(1){
    background-position: 0px 0px;
}
.draw_controller li:nth-child(2){
    background-position: -30px 0px;
}
.draw_controller li:nth-child(3){
    background-position: -60px 0px;
}
.draw_controller li:nth-child(4){
    background-position: -90px 0px;
}
.draw_controller li:nth-child(5){
    background-position: -120px 0px;
}
.draw_controller li:nth-child(7){
    background-position: -150px 0px;
}
.draw_controller li:nth-child(8){
    background-position: -180px 0px;
}
.draw_controller li:nth-child(9){
    background-position: -210px 0px;
}
.draw_controller li:nth-child(10){
    background-position: -240px 0px;
}
.draw_controller li:nth-child(12){
    background-position: -270px 0px;
}
.draw_controller li:nth-child(13){
    background-position: -300px 0px;
}
.draw_controller li:nth-child(14){
    background-position: -330px 0px;
}
.draw_controller li:nth-child(15){
    background-position: -360px 0px;
}
.draw_controller li:nth-child(16){
    background-position: -390px 0px;
}

.draw_controller li:hover{
    background-color: #49a4db;
    box-shadow:0 0 4px #99bce2;
}
.draw_controller li.active{
    background-color: #49a4db;
    box-shadow:0 0 4px #99bce2;
}
.draw_controller li:nth-child(1):hover,.draw_controller li:nth-child(1).active{
    background-position: 0px -30px;
}
.draw_controller li:nth-child(2):hover,.draw_controller li:nth-child(2).active{
    background-position: -30px -30px;
}
.draw_controller li:nth-child(3):hover,.draw_controller li:nth-child(3).active{
    background-position: -60px -30px;
}
.draw_controller li:nth-child(4):hover,.draw_controller li:nth-child(4).active{
    background-position: -90px -30px;
}
.draw_controller li:nth-child(5):hover,.draw_controller li:nth-child(5).active{
    background-position: -120px -30px;
}
.draw_controller li:nth-child(7):hover,.draw_controller li:nth-child(7).active{
    background-position: -150px -30px;
}
.draw_controller li:nth-child(8):hover,.draw_controller li:nth-child(8).active{
    background-position: -180px -30px;
}
.draw_controller li:nth-child(9):hover,.draw_controller li:nth-child(9).active{
    background-position: -210px -30px;
}
.draw_controller li:nth-child(10):hover,.draw_controller li:nth-child(10).active{
    background-position: -240px -30px;
}
.draw_controller li:nth-child(12):hover,.draw_controller li:nth-child(12).active{
    background-position: -270px -30px;
}
.draw_controller li:nth-child(13):hover,.draw_controller li:nth-child(13).active{
    background-position: -300px -30px;
}
.draw_controller li:nth-child(14):hover,.draw_controller li:nth-child(14).active{
    background-position: -330px -30px;
}
.draw_controller li:nth-child(15):hover,.draw_controller li:nth-child(15).active{
    background-position: -360px -30px;
}
.draw_controller li:nth-child(16):hover,.draw_controller li:nth-child(16).active{
    background-position: -390px -30px;
}

.draw_controller span{
    float: left;
    width: 4px;
    padding-top:8px;
    color: #ccc;
    margin: 0 10px;
}

.draw_controller .normal {
    border-radius: 50%;
}

.draw_controller .active {
    border-radius: 50%;
}


.cf {display:block;zoom:1;}
* html .cf {height:1%;}
.cf:after {content:" ";display:block;height:0;clear:both;visibility:hidden;}

#draw{
    height: auto;
    margin: 0 auto;
}

.canvas_container{
    position: relative;
    width: 100%;
    height: 600px;
    background: url(../resources/tiny_grid.png) repeat;
}

.canvas_container canvas{
    position: absolute;
    z-index : 0;
    left:0px;
    top:0px;
    cursor: url(../images/cursor.gif) 2 2,crosshair;
} 

.color {
    width : 152px;
    height : auto;
    position: absolute;
    display:none;
    z-index: 111111;
    margin-left: 1px;
    font-size: 14px;
    background: #fff;
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
    border: 1px #bbb solid;
}

.color ul{
    padding: 6px;
}
.color li{
    display: inline-block;
    height: 34px;
    width: 34px;
    margin: 6px 4px;
    list-style:none;
}
.color li button{
    display: block;
    cursor: pointer;
    width: 100%;
    padding: 5px 0;
    font-size: 12px;
    text-decoration: none;
    color: #333;
    display: inline-block!important;
    width: 100%;
    height: 100%;
    padding: 0!important;
    border-radius: 100%;
    box-shadow: 0 0 4px #bbb;
    border: 2px solid #fff;
    -webkit-transition: all .15s ease!important;
    -moz-transition: all .15s ease!important;
    -o-transition: all .15s ease!important;
    transition: all .15s ease!important;
}


.line_size{
    z-index: 999;
    width: 50px;
    display:none;
    position: absolute;
    z-index: 111111;
    margin-left: 1px;
    font-size: 14px;
    background: #fff;
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
    border: 1px #bbb solid;
}
.line_size li{
    list-style: none;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
}
.line_size li button{
    display: block;
    width: 100%;
    padding: 5px 0;
    font-size: 12px;
    text-decoration: none;
    color: #333;
    background: transparent;
    border: 0;
    cursor: pointer;
    -webkit-appearance: none;
}
.line_size li button:hover{
    background: whitesmoke;
}
.line_size li span {
    display: inline-block;
    background: #000;
    border-radius: 100%;
    vertical-align: middle;
}


#showHistory{
    width: 960px;
    height: auto;
    margin-top: 20px;
    margin-bottom: 100px;
}
#showHistory h2{
    font-size: 16px;
    font-family: "Microsoft Yahei";
    font-weight: normal;
    text-align: left;
    border-left: solid 4px #39c;
    text-indent: 10px;
    line-height: 24px;
    margin-bottom: 20px;
}
.item{
    float: left;
    width: 225px;
    margin: 10px 20px 10px 0;
}
.item img{
    width: 225px;
    height: 136px;
    /*border:solid 1px #ccc;*/
    border-style: dashed;    
    border-width:1px; 
    border-color: #ccc;
}
.item a{
    margin-top: 10px;
    display: inline-block;
    width: 100px;
    text-align: center;
    /*margin-right: 20px;*/
    font-size: 14px;
    text-decoration: none;
    font-family: "Microsoft Yahei";
    color: #666;
    -webkit-transition: all 0.4s ease-in-out;
}
.item a:hover{
    color:#39c;
}
.item:nth-child(4n+1){
    margin-right: 0;
}
.tip{
    width: 99%;
    height: 24px;
    line-height: 24px;
    margin-top: 8px;
    text-align: right;
    font-size: 14px;
    color: #999;
}