
.mr-user-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
}

.mr-image {
    position: relative;
    margin: auto;
}

.mr-image > div, .mr-image > img {
    position: absolute;
    top: 0;
    left: 0;
}

.mr-image > div[mr-image-selector] {
    z-index: 300;
    cursor: crosshair;
}

.mr-image > div[mr-image-drawer] {
    z-index: 200;
    cursor: crosshair;
}

.mr-image > img {
    z-index: 100;
    border: 1px solid #333;
}

.mr-workspace {
    cursor: crosshair;
}

.mr-shadow {
    position: absolute;
    display: none;
    z-index: 400;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

.mr-shadow .top, .mr-shadow .center, .mr-shadow .left, .mr-shadow .right {
    display: block;
    background: rgba(1, 1, 1, 0.6);
}

.mr-shadow .left, .mr-shadow .right {
    top: 0;
    bottom: 0;
}

.mr-shadow .left {
    left: 0;
}

.mr-shadow .right {
    right: 0;
}

.mr-shadow .center.top {
    top: 0;
}

.mr-shadow .center.bottom {
    bottom: 0;
}

.mr-box {
    position: absolute;
    display: none;
    z-index: 500;
    cursor: move;
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
}

.mr-line {
    position: absolute;
    display: block;
    opacity: 0.4;
    background: #FFF url(data:image/gif;base64,R0lGODlhCAAIAJEAAKqqqv///wAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQJCgAAACwAAAAACAAIAAACDZQFCadrzVRMB9FZ5SwAIfkECQoAAAAsAAAAAAgACAAAAg+ELqCYaudeW9ChyOyltQAAIfkECQoAAAAsAAAAAAgACAAAAg8EhGKXm+rQYtC0WGl9oAAAIfkECQoAAAAsAAAAAAgACAAAAg+EhWKQernaYmjCWLF7qAAAIfkECQoAAAAsAAAAAAgACAAAAg2EISmna81UTAfRWeUsACH5BAkKAAAALAAAAAAIAAgAAAIPFA6imGrnXlvQocjspbUAACH5BAkKAAAALAAAAAAIAAgAAAIPlIBgl5vq0GLQtFhpfaIAACH5BAUKAAAALAAAAAAIAAgAAAIPlIFgknq52mJowlixe6gAADs=);
}

.mr-line.left, .mr-line.right {
    width: 2px;
    height: 100%;
    cursor: e-resize;
}

.mr-line.left {
    left: 0;
}

.mr-line.right {
    right: 0;
}

.mr-line.top, .mr-line.bottom {
    height: 2px;
    width: 100%;
    cursor: n-resize;
}

.mr-line.top {
    top: 0;
}

.mr-line.bottom {
    bottom: 0;
}

.mr-drag-line, .mr-drag-handle {
    position: absolute;
    display: block;
}

.mr-drag-line.n, .mr-drag-line.s {
    height: 7px;
    width: 100%;
}

.mr-drag-line.n {
    cursor: n-resize;
    top: 0;
    margin-top: -4px;
}

.mr-drag-line.s {
    cursor: s-resize;
    bottom: 0;
    margin-bottom: -4px;
}

.mr-drag-line.e, .mr-drag-line.w {
    width: 7px;
    height: 100%;
}

.mr-drag-line.e {
    cursor: e-resize;
    right: 0;
    margin-right: -4px;
}

.mr-drag-line.w {
    cursor: w-resize;
    left: 0;
    margin-left: -4px;
}

.mr-drag-handle {
    z-index: 510;
    opacity: 0.5;
    background-color: #333;
    border: 1px #EEE solid;
    height: 10px;
    width: 10px;
}

.mr-drag-handle.n {
    cursor: n-resize;
    left: 50%;
    top: 0;
    margin-left: -5px;
    margin-top: -5px;
}

.mr-drag-handle.ne {
    cursor: ne-resize;
    right: 0;
    top: 0;
    margin-right: -5px;
    margin-top: -5px;
}

.mr-drag-handle.nw {
    cursor: nw-resize;
    left: 0;
    top: 0;
    margin-left: -5px;
    margin-top: -5px;
}

.mr-drag-handle.e {
    cursor: e-resize;
    right: 0;
    top: 50%;
    margin-right: -5px;
    margin-top: -5px;
}

.mr-drag-handle.w {
    cursor: w-resize;
    left: 0;
    top: 50%;
    margin-left: -5px;
    margin-top: -5px;
}

.mr-drag-handle.s {
    cursor: s-resize;
    bottom: 0;
    left: 50%;
    margin-bottom: -5px;
    margin-left: -5px;
}

.mr-drag-handle.se {
    cursor: se-resize;
    bottom: 0;
    right: 0;
    margin-bottom: -5px;
    margin-right: -5px;
}

.mr-drag-handle.sw {
    cursor: sw-resize;
    bottom: 0;
    left: 0;
    margin-bottom: -5px;
    margin-left: -5px;
}