#draw-container {
    border-radius: 10px;
    cursor: crosshair;
    background-image: url('/img/paint/paintboard.png');
    background-repeat: no-repeat;
    background-position: center top;
    height: 100%;
    padding: 100px 40px 380px 40px;
    margin: 0 auto;
}

#current-pen {
    padding: 5px 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eed9ae;
}
#current-pen p, .pen-size p{
    color: #604c3f;
    font-size: 15px;
    margin-bottom: 0;
}
.current-pen-block {
    height: 45px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
#current-pen-style {
    background: #000;
    border-radius: 50%;
    border: solid 2px #fff;
    box-sizing: content-box;
    display: inline-block;
    height: 10px;
    width: 10px;
}


#output-image {
    height: 150px;
    position: relative;
}

#output-image img {
    bottom: 0;
    height : auto;
    left: 0;
    margin: auto;
    max-height: 100%;
    max-width: 100%;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}

#canvas-div #canvas {box-shadow: 1px 1px 5px #9E9E9E;}
#canvas-div #canvas {cursor: crosshair;}

#draw-head{
    position: relative;
    font-size: 16px;
    min-height: 600px;
    background-color: #fdf8f1;
    box-shadow: 5px 5px #59697f;
    border-radius: 10px;
    padding: 20px 5px;
    background-image: url('/img/paint/paintbrush.png');
    background-size: 100px;
    background-repeat: no-repeat;
    background-position: right bottom;
}
.marker-tool{padding: 0 5px;}
.color{
    width: 38px;
    height: 38px;
    max-width: 50%;
    border-radius: 50%;
    display: inline-block;
    margin-bottom: 4px;
    background-color: #fff;
    border: 2px solid #59697f;
    box-shadow: 1px 1px 1px #9fa9b7;
}

.color:hover, .color:focus {
    border: 2px solid #fff;
    box-shadow: none;
}

.pen-size {
    margin-bottom: 20px;
    border-bottom: 2px solid #eed9ae;
}
.size{
    display: block;
    color: #333;
    padding: 10px;
    margin: 5px 0;
}
.size span{
    vertical-align: middle;
}
.size .line{
    display: inline-block;
    vertical-align: middle;
    width: 20px;
    margin-left: 5px;
}

.size.active{
    box-shadow: inset 0 0 4px #bbb;
}
.size:hover, .size:focus{
    color: #666;
}

img.paintbrush{
    width: 120px;
    position: absolute;
    bottom: -5%;
    left: -40px;
}
a.eraser, a.clear, .save{
    color: #fff;
    background-color: #a38f7b;
    border: 0;
    margin: 5px 0;
    border-radius: 15px;
    line-height: 1.8;
}

@media screen and (min-width: 992px) and (max-width: 1200px){
    .marker-tool{
        padding: 0;
    }
}
@media screen and (min-width: 768px) and (max-width: 991px){
    .image { padding: 0 10px; }
    #current-pen, .pen-size{
        margin-bottom: 10px;
        display: inline-block;
        border-bottom: 0;
        padding: 0px 5%;
    }
    .size{
        display: inline-block;
    }
    #current-pen{ border-right: 2px solid #eed9ae;}
    #current-pen p, .pen-size p {
        display: inline-block;
        vertical-align: middle;
        margin-bottom: 0;
    }
    .current-pen-block{
        display: inline-flex;
        vertical-align: middle;
        width: initial;
        height: 25px;
    }
    .marker-tool{padding: 0 10px; text-align: left;}
    #draw-container{
        background-image: none;
        border: 20px solid #e7c082;
        padding: 0;
        border-radius: 20px;
        background-color: #fdf8f1;
        padding: 5px;
        box-shadow: 5px 5px #9c6d4c inset, -5px -5px #9c6d4c inset;
        margin: 10px auto;
    }
    #draw-head{
        display: block;
        height: auto;
        min-height: 165px;
        background-size: 75px;
        padding: 5px 25px;
        background-position: right bottom;
    }
    .btn-block{ text-align: right; position: absolute; bottom: -95px; z-index: 999; }

}

@media screen and (max-width: 767px){
    .image { padding: 0 10px; }
    #current-pen, .pen-size{
        margin-bottom: 10px;
    }
    #current-pen p {
        display: inline-block;
        vertical-align: middle;
    }
    .current-pen-block{
        display: inline-flex;
        vertical-align: middle;
        width: initial;
        height: 25px;
    }
    .marker-tool{padding: 0;}
    .color{ width: 30px; height: 30px; }
    #draw-container{
        background-image: none;
        border: 20px solid #e7c082;
        padding: 0;
        border-radius: 20px;
        background-color: #fdf8f1;
        padding: 5px;
        box-shadow: 5px 5px #9c6d4c inset, -5px -5px #9c6d4c inset;
        margin: 10px auto;
        max-width: 100%;
        height: auto;
    }
    #draw-head{
        display: block;
        height: auto;
        min-height: 290px;
        padding: 10px 8px;
        background-size: 75px;
        padding: 0 5px;
        background-position: left bottom;
    }
    .btn-block{ text-align: right; position: absolute; bottom: -168px; padding: 0 5px; }
    a.size{ display: inline-block; padding: 5px 8px;}    
}