﻿/* The MIT License */
.dropdizzy,
.dropdizzy *,
.dropdizzy-previews,
.dropdizzy-previews * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.dropdizzy i {
    font-size: 5rem;
}

    .dropdizzy .dz-message {
        color: rgba(0,0,0,.54);
        font-weight: 500;
        font-size: initial;
        text-transform: uppercase;
    }

.dropdizzy {
    position: relative;
    border: 1px solid rgba(0,0,0,0.08);
    background: rgba(0,0,0,0.02);
    padding: 1em;
}

    .dropdizzy.dz-clickable {
        cursor: pointer;
    }

        .dropdizzy.dz-clickable .dz-message,
        .dropdizzy.dz-clickable .dz-message span {
            cursor: pointer;
        }

        .dropdizzy.dz-clickable * {
            cursor: default;
        }

    .dropdizzy .dz-message {
        opacity: 1;
        -ms-filter: none;
        filter: none;
    }

    .dropdizzy.dz-drag-hover {
        border-color: rgba(0,0,0,0.15);
        background: rgba(0,0,0,0.04);
    }

    .dropdizzy.dz-started .dz-message {
        display: none;
    }

    .dropdizzy .dz-preview,
    .dropdizzy-previews .dz-preview {
        background: rgba(255,255,255,0.8);
        position: relative;
        display: inline-block;
        margin: 17px;
        vertical-align: top;
        border: 1px solid #acacac;
        padding: 6px 6px 6px 6px;
    }

        .dropdizzy .dz-preview.dz-file-preview [data-dz-thumbnail],
        .dropdizzy-previews .dz-preview.dz-file-preview [data-dz-thumbnail] {
            display: none;
        }

        .dropdizzy .dz-preview .dz-details,
        .dropdizzy-previews .dz-preview .dz-details {
            width: 100px;
            height: auto;
            position: relative;
            background: transparent;
            padding: 5px;
            margin-bottom: 22px;
        }

            .dropdizzy .dz-preview .dz-details .dz-filename,
            .dropdizzy-previews .dz-preview .dz-details .dz-filename {
                overflow: hidden;
                height: auto;
                width: 100%;
            }

            .dropdizzy .dz-preview .dz-details img,
            .dropdizzy-previews .dz-preview .dz-details img {
                position: absolute;
                top: 0;
                left: 0;
                width: 100px;
                height: 100px;
            }

            .dropdizzy .dz-preview .dz-details .dz-size,
            .dropdizzy-previews .dz-preview .dz-details .dz-size {
                position: absolute;
                bottom: -28px;
                left: 5px;
                height: 28px;
                line-height: 28px;
            }

        .dropdizzy .dz-preview.dz-error .dz-error-mark,
        .dropdizzy-previews .dz-preview.dz-error .dz-error-mark {
            display: block;
        }

        .dropdizzy .dz-preview.dz-success .dz-success-mark,
        .dropdizzy-previews .dz-preview.dz-success .dz-success-mark {
            display: block;
        }

        .dropdizzy .dz-preview:hover .dz-details img,
        .dropdizzy-previews .dz-preview:hover .dz-details img {
            display: none;
        }

        .dropdizzy .dz-preview .dz-success-mark,
        .dropdizzy-previews .dz-preview .dz-success-mark,
        .dropdizzy .dz-preview .dz-error-mark,
        .dropdizzy-previews .dz-preview .dz-error-mark {
            display: none;
            position: absolute;
            width: 120px;
            height: 120px;
            font-size: 30px;
            text-align: center;
            left: 7px;
            top: 7px;
        }

        .dropdizzy .dz-preview .dz-success-mark,
        .dropdizzy-previews .dz-preview .dz-success-mark {
            color: #8cc657;
        }

        .dropdizzy .dz-preview .dz-error-mark,
        .dropdizzy-previews .dz-preview .dz-error-mark {
            color: #ee162d;
        }

        .dropdizzy .dz-preview .dz-progress,
        .dropdizzy-previews .dz-preview .dz-progress {
            position: absolute;
            top: 120px;
            left: 6px;
            right: 6px;
            height: 6px;
            background: #d7d7d7;
            display: none;
        }

            .dropdizzy .dz-preview .dz-progress .dz-upload,
            .dropdizzy-previews .dz-preview .dz-progress .dz-upload {
                position: absolute;
                top: 0;
                bottom: 0;
                left: 0;
                width: 0%;
                background-color: #8cc657;
            }

        .dropdizzy .dz-preview.dz-processing .dz-progress,
        .dropdizzy-previews .dz-preview.dz-processing .dz-progress {
            display: block;
        }

        .dropdizzy .dz-preview .dz-error-message,
        .dropdizzy-previews .dz-preview .dz-error-message {
            display: none;
            position: absolute;
            top: 0px;
            left: 0;
            background: rgba(0,0,0,0.8);
            padding: 8px 10px;
            color: #ee162d;
            font-size: 12px;
            font-weight: bold;
            width: 134px;
            height: 100%;
            z-index: 500;
        }

        .dropdizzy .dz-preview:hover.dz-error .dz-error-message,
        .dropdizzy-previews .dz-preview:hover.dz-error .dz-error-message {
            display: block;
        }

.dropdizzy {
    border: 1px solid rgba(0,0,0,0.03);
    min-height: 360px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    background: rgba(0,0,0,0.03);
    padding: 23px;
}

    .dropdizzy .dz-default.dz-message {
        opacity: 1;
        -ms-filter: none;
        filter: none;
        -webkit-transition: opacity 0.3s ease-in-out;
        -moz-transition: opacity 0.3s ease-in-out;
        -o-transition: opacity 0.3s ease-in-out;
        -ms-transition: opacity 0.3s ease-in-out;
        transition: opacity 0.3s ease-in-out;
        background-image: url("../images/spritemap.png");
        background-repeat: no-repeat;
        background-position: 0 0;
        position: absolute;
        width: 428px;
        height: auto;
        margin-left: -214px;
        margin-top: -61.5px;
        top: 50%;
        left: 50%;
    }

@media all and (-webkit-min-device-pixel-ratio:1.5),(min--moz-device-pixel-ratio:1.5),(-o-min-device-pixel-ratio:1.5/1),(min-device-pixel-ratio:1.5),(min-resolution:138dpi),(min-resolution:1.5dppx) {
    .dropdizzy .dz-default.dz-message {
        background-image: url("../images/spritemap%402x.png");
        -webkit-background-size: 428px 406px;
        -moz-background-size: 428px 406px;
        background-size: 428px 406px;
    }
}

.dropdizzy .dz-default.dz-message span {
    display: none;
}

.dropdizzy.dz-square .dz-default.dz-message {
    background-position: 0 -123px;
    width: 268px;
    margin-left: -134px;
    height: 174px;
    margin-top: -87px;
}

.dropdizzy.dz-drag-hover .dz-message {
    opacity: 0.15;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=15)";
    filter: alpha(opacity=15);
}

.dropdizzy.dz-started .dz-message {
    display: block;
    opacity: 1;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
    filter: alpha(opacity=0);
}

.dropdizzy .dz-preview,
.dropdizzy-previews .dz-preview {
    -webkit-box-shadow: 1px 1px 4px rgba(0,0,0,0.16);
    box-shadow: 1px 1px 4px rgba(0,0,0,0.16);
    font-size: 14px;
}

.dropdizzy .dz-image {
    width: 120px;
    height: 120px;
}

.dropdizzy .dz-preview .dz-image:hover .dz-details img,
.dropdizzy-previews .dz-preview .dz-image:hover .dz-details img {
    display: block;
    opacity: 0.1;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=10)";
    filter: alpha(opacity=10);
}

.dropdizzy .dz-preview.dz-success .dz-success-mark,
.dropdizzy-previews .dz-preview.dz-success .dz-success-mark {
    opacity: 1;
    -ms-filter: none;
    filter: none;
}

.dropdizzy .dz-preview.dz-error .dz-error-mark,
.dropdizzy-previews .dz-preview.dz-error .dz-error-mark {
    opacity: 1;
    -ms-filter: none;
    filter: none;
}

.dropdizzy .dz-preview.dz-error .dz-progress .dz-upload,
.dropdizzy-previews .dz-preview.dz-error .dz-progress .dz-upload {
    background: #ee1e2d;
}

.dropdizzy .dz-preview .dz-error-mark,
.dropdizzy-previews .dz-preview .dz-error-mark,
.dropdizzy .dz-preview .dz-success-mark,
.dropdizzy-previews .dz-preview .dz-success-mark {
    display: block;
    opacity: 0;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
    filter: alpha(opacity=0);
    -webkit-transition: opacity 0.4s ease-in-out;
    -moz-transition: opacity 0.4s ease-in-out;
    -o-transition: opacity 0.4s ease-in-out;
    -ms-transition: opacity 0.4s ease-in-out;
    transition: opacity 0.4s ease-in-out;
    background-image: url("../images/spritemap.png");
    background-repeat: no-repeat;
}

@media all and (-webkit-min-device-pixel-ratio:1.5),(min--moz-device-pixel-ratio:1.5),(-o-min-device-pixel-ratio:1.5/1),(min-device-pixel-ratio:1.5),(min-resolution:138dpi),(min-resolution:1.5dppx) {
    .dropdizzy .dz-preview .dz-error-mark,
    .dropdizzy-previews .dz-preview .dz-error-mark,
    .dropdizzy .dz-preview .dz-success-mark,
    .dropdizzy-previews .dz-preview .dz-success-mark {
        background-image: url("../images/spritemap%402x.png");
        -webkit-background-size: 428px 406px;
        -moz-background-size: 428px 406px;
        background-size: 428px 406px;
    }
}

.dropdizzy .dz-preview .dz-error-mark span,
.dropdizzy-previews .dz-preview .dz-error-mark span,
.dropdizzy .dz-preview .dz-success-mark span,
.dropdizzy-previews .dz-preview .dz-success-mark span {
    display: none;
}

.dropdizzy .dz-preview .dz-error-mark,
.dropdizzy-previews .dz-preview .dz-error-mark {
    background-position: 0 0;
}

.dropdizzy .dz-preview .dz-success-mark,
.dropdizzy-previews .dz-preview .dz-success-mark {
    background-position: -268px -163px;
}

.dropdizzy .dz-preview .dz-progress .dz-upload,
.dropdizzy-previews .dz-preview .dz-progress .dz-upload {
    -webkit-animation: loading 0.4s linear infinite;
    -moz-animation: loading 0.4s linear infinite;
    -o-animation: loading 0.4s linear infinite;
    -ms-animation: loading 0.4s linear infinite;
    animation: loading 0.4s linear infinite;
    -webkit-transition: width 0.3s ease-in-out;
    -moz-transition: width 0.3s ease-in-out;
    -o-transition: width 0.3s ease-in-out;
    -ms-transition: width 0.3s ease-in-out;
    transition: width 0.3s ease-in-out;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-image: url("../images/spritemap.png");
    background-repeat: repeat-x;
    background-position: 0px -400px;
}

@media all and (-webkit-min-device-pixel-ratio:1.5),(min--moz-device-pixel-ratio:1.5),(-o-min-device-pixel-ratio:1.5/1),(min-device-pixel-ratio:1.5),(min-resolution:138dpi),(min-resolution:1.5dppx) {
    .dropdizzy .dz-preview .dz-progress .dz-upload,
    .dropdizzy-previews .dz-preview .dz-progress .dz-upload {
        background-image: url("../images/spritemap.png");
        -webkit-background-size: 428px 406px;
        -moz-background-size: 428px 406px;
        background-size: 428px 406px;
    }
}

.dropdizzy .dz-preview.dz-success .dz-progress,
.dropdizzy-previews .dz-preview.dz-success .dz-progress {
    display: block;
    opacity: 0;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
    filter: alpha(opacity=0);
    -webkit-transition: opacity 0.4s ease-in-out;
    -moz-transition: opacity 0.4s ease-in-out;
    -o-transition: opacity 0.4s ease-in-out;
    -ms-transition: opacity 0.4s ease-in-out;
    transition: opacity 0.4s ease-in-out;
}

.dropdizzy .dz-preview .dz-error-message,
.dropdizzy-previews .dz-preview .dz-error-message {
    display: block;
    opacity: 0;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
    filter: alpha(opacity=0);
    -webkit-transition: opacity 0.3s ease-in-out;
    -moz-transition: opacity 0.3s ease-in-out;
    -o-transition: opacity 0.3s ease-in-out;
    -ms-transition: opacity 0.3s ease-in-out;
    transition: opacity 0.3s ease-in-out;
}

.dropdizzy .dz-preview:hover.dz-error .dz-error-message,
.dropdizzy-previews .dz-preview:hover.dz-error .dz-error-message {
    opacity: 1;
    -ms-filter: none;
    filter: none;
}

.dropdizzy a.dz-remove,
.dropdizzy-previews a.dz-remove {
    background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #fafafa), color-stop(1, #eee));
    background-image: -webkit-linear-gradient(top, #fafafa 0, #eee 100%);
    background-image: -moz-linear-gradient(top, #fafafa 0, #eee 100%);
    background-image: -o-linear-gradient(top, #fafafa 0, #eee 100%);
    background-image: -ms-linear-gradient(top, #fafafa 0, #eee 100%);
    background-image: linear-gradient(top, #fafafa 0, #eee 100%);
    -webkit-border-radius: 2px;
    border-radius: 2px;
    border: 1px solid #eee;
    text-decoration: none;
    display: block;
    padding: 4px 5px;
    text-align: center;
    color: #aaa;
    margin-top: 26px;
}

    .dropdizzy a.dz-remove:hover,
    .dropdizzy-previews a.dz-remove:hover {
        color: #666;
    }

@-moz-keyframes loading {
    0% {
        background-position: 0 -400px;
    }

    100% {
        background-position: -7px -400px;
    }
}

@-webkit-keyframes loading {
    0% {
        background-position: 0 -400px;
    }

    100% {
        background-position: -7px -400px;
    }
}

@-o-keyframes loading {
    0% {
        background-position: 0 -400px;
    }

    100% {
        background-position: -7px -400px;
    }
}

@-ms-keyframes loading {
    0% {
        background-position: 0 -400px;
    }

    100% {
        background-position: -7px -400px;
    }
}

@keyframes loading {
    0% {
        background-position: 0 -400px;
    }

    100% {
        background-position: -7px -400px;
    }
}
