/*!
 * Image Cropper Tool Styling

 * This file contains vendor styles from both Cropper and animatedModal libraries,
 * Which have been heavily modified to suit the needs of the POPSUGAR Drupal CMS.

 * The Cropper.js and animatedModal libraries can be found below:

 * Cropper v2.3.3: https://github.com/fengyuanchen/cropper
 * animatedModal (1.0): http://joaopereirawd.github.io/animatedModal.js/
 */
.cropper-container {
    font-size: 0;
    line-height: 0;

    position: relative;

    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

    direction: ltr !important;
}

.cropper-container img {
    display: block;

    width: 100%;
    min-width: 0 !important;
    max-width: none !important;
    height: 100%;
    min-height: 0 !important;
    max-height: none !important;

    image-orientation: 0deg !important;
}

.cropper-wrap-box,
.cropper-canvas,
.cropper-drag-box,
.cropper-crop-box,
.cropper-modal {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.cropper-wrap-box {
    overflow: hidden;
}

.cropper-drag-box {
    opacity: 0;
    background-color: #fff;

    filter: alpha(opacity=0);
}

.cropper-modal {
    opacity: .5;
    background-color: #000;

    filter: alpha(opacity=50);
}

.cropper-view-box {
    display: block;
    overflow: hidden;

    width: 100%;
    height: 100%;

    outline: 1px solid #39f;
    outline-color: rgba(51, 153, 255, .75);
}

.cropper-dashed {
    position: absolute;

    display: block;

    opacity: .5;
    border: 0 dashed #eee;

    filter: alpha(opacity=50);
}

.cropper-dashed.dashed-h {
    top: 33.33333%;
    left: 0;

    width: 100%;
    height: 33.33333%;

    border-top-width: 1px;
    border-bottom-width: 1px;
}

.cropper-dashed.dashed-v {
    top: 0;
    left: 33.33333%;

    width: 33.33333%;
    height: 100%;

    border-right-width: 1px;
    border-left-width: 1px;
}

.cropper-center {
    position: absolute;
    top: 50%;
    left: 50%;

    display: block;

    width: 0;
    height: 0;

    opacity: .75;

    filter: alpha(opacity=75);
}

.cropper-center:before,
.cropper-center:after {
    position: absolute;

    display: block;

    content: ' ';

    background-color: #eee;
}

.cropper-center:before {
    top: 0;
    left: -3px;

    width: 7px;
    height: 1px;
}

.cropper-center:after {
    top: -3px;
    left: 0;

    width: 1px;
    height: 7px;
}

.cropper-face,
.cropper-line,
.cropper-point {
    position: absolute;

    display: block;

    width: 100%;
    height: 100%;

    opacity: .1;

    filter: alpha(opacity=10);
}

.cropper-face {
    top: 0;
    left: 0;

    background-color: #fff;
}

.cropper-line {
    background-color: #39f;
}

.cropper-line.line-e {
    top: 0;
    right: -3px;

    width: 5px;

    cursor: e-resize;
}

.cropper-line.line-n {
    top: -3px;
    left: 0;

    height: 5px;

    cursor: n-resize;
}

.cropper-line.line-w {
    top: 0;
    left: -3px;

    width: 5px;

    cursor: w-resize;
}

.cropper-line.line-s {
    bottom: -3px;
    left: 0;

    height: 5px;

    cursor: s-resize;
}

.cropper-point {
    width: 5px;
    height: 5px;

    opacity: .75;
    background-color: #39f;

    filter: alpha(opacity=75);
}

.cropper-point.point-e {
    top: 50%;
    right: -3px;

    margin-top: -3px;

    cursor: e-resize;
}

.cropper-point.point-n {
    top: -3px;
    left: 50%;

    margin-left: -3px;

    cursor: n-resize;
}

.cropper-point.point-w {
    top: 50%;
    left: -3px;

    margin-top: -3px;

    cursor: w-resize;
}

.cropper-point.point-s {
    bottom: -3px;
    left: 50%;

    margin-left: -3px;

    cursor: s-resize;
}

.cropper-point.point-ne {
    top: -3px;
    right: -3px;

    cursor: ne-resize;
}

.cropper-point.point-nw {
    top: -3px;
    left: -3px;

    cursor: nw-resize;
}

.cropper-point.point-sw {
    bottom: -3px;
    left: -3px;

    cursor: sw-resize;
}

.cropper-point.point-se {
    right: -3px;
    bottom: -3px;

    width: 20px;
    height: 20px;

    cursor: se-resize;

    opacity: 1;

    filter: alpha(opacity=100);
}

.cropper-point.point-se:before {
    position: absolute;
    right: -50%;
    bottom: -50%;

    display: block;

    width: 200%;
    height: 200%;

    content: ' ';

    opacity: 0;
    background-color: #39f;

    filter: alpha(opacity=0);
}

@media (min-width: 768px) {
    .cropper-point.point-se {
        width: 15px;
        height: 15px;
    }
}

@media (min-width: 992px) {
    .cropper-point.point-se {
        width: 10px;
        height: 10px;
    }
}

@media (min-width: 1200px) {
    .cropper-point.point-se {
        width: 5px;
        height: 5px;

        opacity: .75;

        filter: alpha(opacity=75);
    }
}

.cropper-invisible {
    opacity: 0;

    filter: alpha(opacity=0);
}

.cropper-bg {
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC');
}

.cropper-hide {
    position: absolute;

    display: block;

    width: 0;
    height: 0;
}

.cropper-hidden {
    display: none !important;
}

.cropper-move {
    cursor: move;
}

.cropper-crop {
    cursor: crosshair;
}

.cropper-disabled .cropper-drag-box,
.cropper-disabled .cropper-face,
.cropper-disabled .cropper-line,
.cropper-disabled .cropper-point {
    cursor: not-allowed;
}

.img-container {
    width: 100%;
    position: relative;
}

.img-container img {
    width: 100%;
}

.image-stats {
    float: right;
    text-align: center;
    color: grey;
    font-style: italic;
}

.image-stats-smaller {
    color: red;
    font-weight: bold;
    font-style: normal;
}

.flex-container {
    display: -webkit-flex; /* Safari */
    display: flex;
    -webkit-flex-direction: row; /* Safari */
    flex-direction: row;
    -webkit-flex-wrap: wrap; /* Safari */
    flex-wrap: wrap;
    -webkit-justify-content: space-between; /* Safari */
    justify-content: space-between;
    -webkit-align-content: stretch; /* Safari */
    align-content: stretch;
}

.flex-item {
    width: 45%;
    margin: 10px auto 40px auto;
}

@media (max-width: 610px) {
    .flex-item {
        width: 95%;
    }
}

.cropper-header {
    color: white;
    margin: 5px 0;
}

.cropper-disabled {
    -webkit-filter: contrast(33%);
}

#animatedModal {
    border: 3px solid black;
    border-bottom: 0;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
    width: 95% !important;
    height: 95% !important;
    left: 2% !important;
    bottom: 0 !important;
    position: fixed;
    visibility: hidden; /* hidden property is programatically removed, but here initially to prevent from showing before page load */
}

.animated-2up {
     border: 3px solid black;
     border-bottom: 0;
     border-top-right-radius: 5px;
     border-top-left-radius: 5px;
     width: 70%;
     height: 95%;
     left: 15%;
     bottom: 5%;
     position: fixed;
     visibility: hidden; /* hidden property is programatically removed, but here initially to prevent from showing before page load */
 }

#animated-modal-btn, .animated-modal-btn-2up {
    display: none;
}

.cropper-point {
    width: 10px !important;
    height: 10px !important;
}

#stats-popover {
    position: absolute;
    background-color: black;
    color: white;
    border: 1px solid white;
    z-index: 1001;
    margin: 0;
    overflow: hidden;
}

/* Main Classes */
.cropper-checkbox[type="checkbox"] {
    margin-left: -6px;
}

.cropper-checkbox[type="checkbox"]:before {
    position: relative;
    display: block;
    width: 11px;
    height: 11px;
    border: 1px solid #808080;
    content: "";
    background: #FFF;
}

.cropper-checkbox[type="checkbox"]:after {
    position: relative;
    display: block;
    left: 2px;
    top: -11px;
    width: 7px;
    height: 7px;
    border-width: 1px;
    border-style: solid;
    border-color: #B3B3B3 #dcddde #dcddde #B3B3B3;
    content: "";
    background-image: linear-gradient(135deg, #B1B6BE 0%, #FFF 100%);
    background-repeat: no-repeat;
    background-position: center;
}

.cropper-checkbox[type="checkbox"]:checked:after {
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAQAAABuW59YAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAB2SURBVHjaAGkAlv8A3QDyAP0A/QD+Dam3W+kCAAD8APYAAgTVZaZCGwwA5wr0AvcA+Dh+7UX/x24AqK3Wg/8nt6w4/5q71wAAVP9g/7rTXf9n/+9N+AAAtpJa/zf/S//DhP8H/wAA4gzWj2P4lsf0JP0A/wADAHB0Ngka6UmKAAAAAElFTkSuQmCC'), linear-gradient(135deg, #B1B6BE 0%, #FFF 100%);
}

.cropper-checkbox[type="checkbox"]:disabled:after {
    -webkit-filter: opacity(0.4);
}

.cropper-checkbox[type="checkbox"]:not(:disabled):checked:hover:after {
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAQAAABuW59YAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAB2SURBVHjaAGkAlv8A3QDyAP0A/QD+Dam3W+kCAAD8APYAAgTVZaZCGwwA5wr0AvcA+Dh+7UX/x24AqK3Wg/8nt6w4/5q71wAAVP9g/7rTXf9n/+9N+AAAtpJa/zf/S//DhP8H/wAA4gzWj2P4lsf0JP0A/wADAHB0Ngka6UmKAAAAAElFTkSuQmCC'), linear-gradient(135deg, #8BB0C2 0%, #FFF 100%);
}

.cropper-checkbox[type="checkbox"]:not(:disabled):hover:after {
    background-image: linear-gradient(135deg, #8BB0C2 0%, #FFF 100%);
    border-color: #85A9BB #92C2DA #92C2DA #85A9BB;
}

.cropper-checkbox[type="checkbox"]:not(:disabled):hover:before {
    border-color: #3D7591;
}

/* Large checkboxes */
.cropper-checkbox.large {
    height: 22px;
    width: 22px;
}

.cropper-checkbox.large[type="checkbox"]:before {
    width: 20px;
    height: 20px;
}

.cropper-checkbox.large[type="checkbox"]:after {
    top: -20px;
    width: 16px;
    height: 16px;
}

/* Custom checkbox */
.cropper-checkbox.large.custom[type="checkbox"]:checked:after {
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGHRFWHRBdXRob3IAbWluZWNyYWZ0aW5mby5jb23fZidLAAAAk0lEQVQ4y2P4//8/AyUYwcAD+OzN/oMwshjRBoA0Gr8+DcbIhhBlAEyz+qZZ/7WPryHNAGTNMOxpJvo/w0/uP0kGgGwGaZbrKgfTGnLc/0nyAgiDbEY2BCRGdCDCnA2yGeYVog0Aae5MV4c7Gzk6CRqAbDM2w/EaQEgzXgPQnU2SAcTYjNMAYm3GaQCxNuM0gFwMAPUKd8XyBVDcAAAAAElFTkSuQmCC'), linear-gradient(135deg, #B1B6BE 0%, #FFF 100%);
}

.cropper-checkbox.large.custom[type="checkbox"]:not(:disabled):checked:hover:after {
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGHRFWHRBdXRob3IAbWluZWNyYWZ0aW5mby5jb23fZidLAAAAk0lEQVQ4y2P4//8/AyUYwcAD+OzN/oMwshjRBoA0Gr8+DcbIhhBlAEyz+qZZ/7WPryHNAGTNMOxpJvo/w0/uP0kGgGwGaZbrKgfTGnLc/0nyAgiDbEY2BCRGdCDCnA2yGeYVog0Aae5MV4c7Gzk6CRqAbDM2w/EaQEgzXgPQnU2SAcTYjNMAYm3GaQCxNuM0gFwMAPUKd8XyBVDcAAAAAElFTkSuQmCC'), linear-gradient(135deg, #8BB0C2 0%, #FFF 100%);
}

#animatedModal header {
    display: flex;
    margin: 10px 2.5%;
}
#check-all-container {
    flex: 0 0 50%;
    align-self: center;
}

/************************************
 * Close button
************************************/
#closebt-container {
    text-align: right;
    flex: 0 0 50%;
}

.closebt {
    color: white;
}

.closebt:hover {
    color: red;
    cursor: pointer;
}

.btn-done {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    border-radius: 4px;
}

.btn-header-done {
    margin: 0 5px 5px 0;
}

.btn-footer-done {
    float: right;
    margin-bottom: 15px;
    margin-right: 3%;
}

/************************************
 * Custom Checkbox Styling
************************************/
.control-group {
    line-height: 22px;
}

.control {
    position: relative;
    display: inline-block;
    padding-left: 30px;
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    padding-top: 1px;
}

.control input {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.control__indicator {
    position: absolute;
    top: 2px;
    left: 0;
    width: 20px;
    height: 20px;
    background: #e6e6e6;
}

.control--radio .control__indicator {
    border-radius: 50%;
}
/* Hover and focus states */
.control:hover input ~ .control__indicator,
.control input:focus ~ .control__indicator {
    background: #ccc;
}

/* Checked state */
.control input:checked ~ .control__indicator {
    background: #2aa1c0;
}

/* Hover state whilst checked */
.control:hover input:not([disabled]):checked ~ .control__indicator,
.control input:checked:focus ~ .control__indicator {
    background: #0e647d;
}

/* Disabled state */
.control input:disabled ~ .control__indicator {
    pointer-events: none;
    opacity: .6;
    background: #e6e6e6;
}

/* Check mark */
.control__indicator:after {
    position: absolute;
    display: none;
    content: '';
}

/* Show check mark */
.control input:checked ~ .control__indicator:after {
    display: block;
}

/* Checkbox tick */
.control--checkbox .control__indicator:after {
    top: 2px;
    left: 7px;
    width: 7px;
    height: 14px;
    transform: rotate(45deg);
    border: solid #fff;
    border-width: 0 2px 2px 0;
}

/* Disabled tick colour */
.control--checkbox input:disabled ~ .control__indicator:after {
    border-color: #7b7b7b;
}

/* Radio button inner circle */
.control--radio .control__indicator:after {
    top: 7px;
    left: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
}

/* Disabled circle colour */
.control--radio input:disabled ~ .control__indicator:after {
    background: #7b7b7b;
}


.cropper-rotate-btn{
    margin: 0 10px;
    line-height: 18px;
    padding: 0;
}


