* {
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
    font-family: arial, helvetica, sans-serif;
}

body>div {
    position: fixed;
    border: solid 1px gray;
    left: 2px;
    right: 2px;
}

/* TOOLBAR --------------------------------------------------------------- */

#toolbar {
    top: 2px;
    height: 50px;
    padding: 13px 0 0 13px;
}

#zoom {
    width: 500px;
    vertical-align: middle;
}

#zoom-value {
    display: inline-block;
    padding-left: 20px;
    vertical-align: text-top;
}

#crop-image {
    float: right;
    margin: -14px 50px -14px 0;
    height: 50px;
    min-width: 150px;
}

/* IMAGE AREA ------------------------------------------------------------ */

#image-area {
    top: 56px;
    bottom: 2px;
    overflow: hidden;
}

#original-image {
    position: absolute;
}

#crop-frame {
    position: absolute;
    width: 640px;
    height: 480px;
    border: solid 3px red;
    box-sizing: content-box;
}

#drag-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

#canvas {
    display: none;
}

/* ORIGIN BUTTONS -------------------------------------------------------- */

#origin-container {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 50px;
    border-left: solid 1px gray;
}

#origin-frame {
    position: absolute;
    top: 9px;
    right: 9px;
    bottom: 9px;
    left: 9px;
    border: solid 1px gray;
}

.origin-button {
    position: absolute;
    width: 8px;
    height: 8px;
    padding: 0;
    margin: 0;
    font-size: 0;
    background-color: gray;
    border: none;
    cursor: pointer;
    outline: none;
}

.origin-button:hover {
    background-color: red;
}

.origin-button.active {
    background-color: red;
}

#lt {
    top: 5px;
    left: 5px;
}

#ct {
    top: 5px;
    left: 21px;
}

#rt {
    top: 5px;
    right: 5px;
}

#lm {
    top: 20px;
    left: 5px;
}

#cm {
    top: 20px;
    left: 21px;
}

#rm {
    top: 20px;
    right: 5px;
}

#lb {
    bottom: 5px;
    left: 5px;
}

#cb {
    bottom: 5px;
    left: 21px;
}

#rb {
    bottom: 5px;
    right: 5px;
}

/* SAVE IMAGE ------------------------------------------------------------ */

#save-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.5);
    text-align: center;
    display: none;
}

#save-modal {
    background-color: white;
    border: solid 3px gainsboro;
    /* border-radius: 20px; */
    margin-left: auto;
    margin-right: auto;
    display: inline-block;
    visibility: hidden;
}

#save-image-placeholder {
    padding: 20px;
}

#save-image-buttons {
    text-align: right;
    padding: 0 20px 20px 20px;
    margin: 0;
}

#save-image-buttons a {
    display: inline-block;
    padding: 7px 20px;
    min-width: 180px;
    text-align: center;
    border: solid 3px orangered;
    border-radius: 50px;
    color: orangered;
    background-color: white;
    text-decoration: none;
    font-weight: bold;
    margin-left: 15px;
}

#save-image-buttons a:hover {
    color: white;
    background-color: orangered;
}