/*!--------------------------------------------------------------------
STYLES "DEM Kit"
Version:    1.0.0 - 2017
author:     Hunter Tunnicliff
* @preserve
-----------------------------------------------------------------------*/

/**
 * =======================================
 * DemUploader CSS
 * =====
 */


/**
 * =======================================
 * DemUploader CSS
 * =====
 */

.uploader__area {
    background-color: #0088cc;
    border-radius: 4px;
    box-sizing: border-box;
    color: white;
    cursor: pointer;
    display: block;
    font-size: 14px;
    line-height: 1.5em;
    margin: 1em 0 0 0;
    overflow: hidden;
    padding: .8em 1em;
    position: relative;
    text-align: center;
    transition: all .2s, padding .4s, height .4s, transform .5s;
    width: 100%;
}

    .uploader__area:active,
    .uploader__area--drag { background-color: #00aaff; }

    .uploader__area:hover,
    .uploader__area--hover { background-color: #006CA2; }

    .uploader__area--hidden {
        animation: disappear .5s ease-out;
        margin-bottom: -58px;
        transform: scale(0.95);
        z-index: 2;
    }

    @keyframes disappear {
        from {margin-bottom: 0; transform: scale(1);}
        to {margin-bottom: -58px; transform: scale(.95);}
    }

    .uploader__area[disabled] { opacity: .5; }

    .uploader__area[disabled]:hover {
        cursor: not-allowed;
        opacity: .3;
    }

.uploader__area__progress {
    background-color: #2ECC71;
    box-sizing: border-box;
    display: block;
    height: 100%;
    left: 0;
    margin: 0;
    position: absolute;
    top: 0;
    transition: all .3s;
    width: 0;
}

    .uploader__area__progress--processing {
        animation: pulse .8s infinite;
        animation-direction: alternate;
        animation-timing-function: ease-in-out;
        background-color: #2ECC71;
    }

@keyframes pulse {
  0% {
    background-color: #2ECC71;
  }
  100% {
    background-color: #ABEBC6;
  }
}

.DemKit--pulseOpacity {
    animation: pulseOpacity .5s infinite;
    animation-direction: alternate;
    animation-timing-function: ease-in-out;
}

@keyframes pulseOpacity {
  0% {
    opacity: 1
  }
  100% {
    opacity: .5
  }
}



.uploader__area__message { position: relative; }

.uploader__input { display: none; }

.uploader__preview {
    border-radius: 4px;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16);
    box-sizing: border-box;
    display: block;
    margin: 0;
    padding: 0;
    position: relative;
    transition: all .2s;
    width: 100%;
    word-wrap: break-word;
    z-index: 3;
}

    .uploader__preview:hover {
        box-shadow: 0 4px 7px 0 rgba(0, 0, 0, 0.16);
    }

    .uploader__preview__title--error {
        color: #E84C3C;
    }

    .uploader__preview__metadata {
        color: #999;
        display: block;
        font-size: 90%;
        font-weight: normal;
        line-height: 1.2em;
        margin-top: .4em;
    }

.up-file {
    background-color: white;
    border-radius: 4px;
    box-sizing: border-box;
    color: rgb(80,80,80);
    display: block;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.7em;
    margin: 1em 0 0 0;
    padding: 1em;
    transition: all .2s, padding .4s, height .4s, transform .4s;
    width: 100%;
}

.uploader__remove-btn {
    color: rgb(210,210,210);
    cursor: pointer;
    display: block;
    float: right;
    font-family: 'Proxima Nova', 'Helvetica', sans-serif;
    font-size: 30px;
    font-style: normal;
    font-weight: bold;
    transition: all .1s;
}

    .uploader__remove-btn:before {
        content: '\00d7';
        transition: all .2s;
    }

    .uploader__remove-btn:hover:before { color: rgb(180,180,180); }
    .uploader__remove-btn:active:before { color: #000; }


.uploader__user__instructions {
    box-sizing: border-box;
    margin: 1em 0 0 0;
    max-width: 100%;
    padding: 14px;
    width: 100%;
}

/* Magento helper class */
.help-inline {
    color: #E74C3C;
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin: 1em 0 0 0;
    text-align: center;
}

ul.thumbnails a {
    transition: all .2s cubic-bezier(0.65, 0.05, 0.36, 1);
}

    .thumb--highlight {
        transform: translateY(2px) scale(1.05);
        box-shadow: 0 8px 12px 0 rgba(0, 0, 0, 0.3);
    }



/**
 * =======================================
 * DemModal CSS
 * =====
 */

.DemModal {
    position: fixed;
    bottom: 0;
    left: 0;
    margin: 0;
    padding: 0;
    transform: translate(60px,-60px);
    min-width: 250px;
    /*z-index: 10;*/
    z-index: 10000;

    background: #fff;
    color: rgba(0,0,0,.6);
    box-shadow: 0 15px 25px rgba(0,0,0,0.14), 0 1px 4px rgba(0,0,0,0.06);
    border-radius: 4px;
    overflow: hidden;

    font-size: 16px;
    line-height: 1.5em;

    transition: all .5s cubic-bezier(0.455, 0.030, 0.515, 0.955);
    animation: bottomLeftSlideIn .5s;
    transition-timing-function: cubic-bezier(0.455, 0.030, 0.515, 0.955);
}

@keyframes bottomLeftSlideIn {
    0% {transform: translate(60px, 150%);}
    100% {transform: translate(60px,-60px);}
}

.DemModal--hidden {
    transform: translate(60px, 150%);
}

.DemModal > div {
    display: inline-block;
    letter-spacing: 0;
}

.DemModal__alert {
    font-size: 16px;
    font-weight: bold;
}

.DemModal--warning .DemModal__alert {
    color: #E89A3C;
}

.DemModal--error .DemModal__alert {
    color: #E84C3C;
}

.DemModal--success .DemModal__alert {
    color: #48DA86;
}

.DemModal--info .DemModal__alert {
    color: #2196f3;
}

.DemModal__name {
    color: #c5c5c5;
}

.DemModal__message {
    padding: 1em 1.2em;
    margin-right: 2.5em;
}

.DemModal__close {
    position: absolute;
    right: .6em;
    margin: 0;
    padding: 0;
    top: 14px;
    font-size: 24px;
    color: rgba(0,0,0,.3);
    cursor: pointer;
    transition: all .1s;
}

.DemModal__close:hover {
    color: rgba(0,0,0,.5);
}

.DemModal__bgSkrim {
    position: fixed;
    z-index: 5;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;
    background: #000;
    opacity: .6;
    transition: all .5s;
    animation: fadeIn .5s;
}

@keyframes fadeIn {
    from {opacity: 0}
    to {opacity: .6}
}

.DemModal__bgSkrim--hidden {
    opacity: 0;
}

/*.DemModal__skrim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    background-color: rgba(0,0,0,.08);
    z-index: -1;

    animation: leftSlideOver 2.5s ease-out;
}

@keyframes leftSlideOver {
    from {transform: translateX(-100%);}
    to {transform: translateX(0);}
}*/


.DemGrow-transitions {
    transition: all .5s ease-in-out;
    z-index: 1000;
}

img.DemGrow-img {
    cursor: zoom-in;
}

img.DemGrow-img + div,
.DemGrow-preview {
    display: flex;
    position: fixed;
    flex-direction: column;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;
    background: rgba(0,0,0,.7);
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    z-index: -1;
    opacity: 0;
    transition: opacity .4s;
}

    .DemGrow-preview.active {
        opacity: 1;
        z-index: 2000;
    }

    .DemGrow-preview::after {
        content: '\00D7'; /* Multiplication symbol => "×" */
        position: fixed;
        top: 20px;
        font-size: 30px;
        color: white;
        right: 20px;
        cursor: pointer;
    }

    .DemGrow-preview img {
        cursor: zoom-out;
        box-shadow: 0 0 60px rgba(0, 0, 0, 0.53);
    }

    .DemGrow-preview a {
        margin: 30px 0;
    }

/* Utilities */
.float-right {
    float: right;
}

.text-right {
    text-align: right;
}


.kit-loader {
    display: inline-block;
    position: absolute;
    top: 1rem;
    width: 1em;
    height: 1em;
    border: .2em solid #cecece;
    border-top-color: #0088cc;
    border-radius: 50%;
    line-height: 0;
    vertical-align: middle;
    animation: infinite-spinning .5s infinite linear;
}
