/*
 * The MIT License
 * Copyright (c) 2012 Matias Meno <m@tias.me>
 */
@keyframes passing-through {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    30%,
    70% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-40px);
    }
}
@keyframes slide-in {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    30% {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    10% {
        transform: scale(1.1);
    }
    20% {
        transform: scale(1);
    }
}
.filer-dropzone,
.filer-dropzone * {
    box-sizing: border-box;
}

.filer-dropzone {
    min-height: 150px;
    padding: 20px 20px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    background: white;
}
.filer-dropzone.dz-clickable {
    cursor: pointer;
}
.filer-dropzone.dz-clickable * {
    cursor: default;
}
.filer-dropzone.dz-clickable .dz-message,
.filer-dropzone.dz-clickable .dz-message * {
    cursor: pointer;
}
.filer-dropzone.dz-drag-hover {
    border-style: solid;
}
.filer-dropzone.dz-drag-hover .dz-message {
    opacity: 0.5;
}
.filer-dropzone .dz-message {
    text-align: center;
    margin: 2em 0;
}
.filer-dropzone .dz-preview {
    display: inline-block;
    position: relative;
    vertical-align: top;
    min-height: 100px;
    margin: 16px;
}
.filer-dropzone .dz-preview:hover {
    z-index: 1000;
}
.filer-dropzone .dz-preview:hover .dz-details {
    opacity: 1;
}
.filer-dropzone .dz-preview.dz-file-preview .dz-image {
    border-radius: 20px;
    background: #999;
    background: linear-gradient(to bottom, #eee, #ddd);
}
.filer-dropzone .dz-preview.dz-file-preview .dz-details {
    opacity: 1;
}
.filer-dropzone .dz-preview.dz-image-preview {
    background: white;
}
.filer-dropzone .dz-preview.dz-image-preview .dz-details {
    transition: opacity 0.2s linear;
}
.filer-dropzone .dz-preview .dz-remove {
    display: block;
    font-size: 14px;
    text-align: center;
    border: none;
    cursor: pointer;
}
.filer-dropzone .dz-preview .dz-remove:hover {
    text-decoration: underline;
}
.filer-dropzone .dz-preview:hover .dz-details {
    opacity: 1;
}
.filer-dropzone .dz-preview .dz-details {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 20;
    color: rgba(0, 0, 0, 0.9);
    font-size: 13px;
    line-height: 150%;
    text-align: center;
    min-width: 100%;
    max-width: 100%;
    padding: 2em 1em;
    opacity: 0;
}
.filer-dropzone .dz-preview .dz-details .dz-size {
    font-size: 16px;
    margin-bottom: 1em;
}
.filer-dropzone .dz-preview .dz-details .dz-filename {
    white-space: nowrap;
}
.filer-dropzone .dz-preview .dz-details .dz-filename:hover span {
    border: 1px solid rgba(200, 200, 200, 0.8);
    background-color: rgba(255, 255, 255, 0.8);
}
.filer-dropzone .dz-preview .dz-details .dz-filename:not(:hover) {
    overflow: hidden;
    text-overflow: ellipsis;
}
.filer-dropzone .dz-preview .dz-details .dz-filename:not(:hover) span {
    border: 1px solid transparent;
}
.filer-dropzone .dz-preview .dz-details .dz-filename span,
.filer-dropzone .dz-preview .dz-details .dz-size span {
    padding: 0 0.4em;
    border-radius: 3px;
    background-color: rgba(255, 255, 255, 0.4);
}
.filer-dropzone .dz-preview:hover .dz-image img {
    transform: scale(1.05, 1.05);

    filter: blur(8px);
}
.filer-dropzone .dz-preview .dz-image {
    display: block;
    position: relative;
    overflow: hidden;
    z-index: 10;
    width: 120px;
    height: 120px;
    border-radius: 20px;
}
.filer-dropzone .dz-preview .dz-image img {
    display: block;
}
.filer-dropzone .dz-preview.dz-success .dz-success-mark {
    animation: passing-through 3s cubic-bezier(0.77, 0, 0.175, 1);
}
.filer-dropzone .dz-preview.dz-error .dz-error-mark {
    opacity: 1;
    animation: slide-in 3s cubic-bezier(0.77, 0, 0.175, 1);
}
.filer-dropzone .dz-preview .dz-success-mark,
.filer-dropzone .dz-preview .dz-error-mark {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 500;
    margin-top: -27px;
    margin-left: -27px;
    pointer-events: none;
    opacity: 0;
}
.filer-dropzone .dz-preview .dz-success-mark svg,
.filer-dropzone .dz-preview .dz-error-mark svg {
    display: block;
    width: 54px;
    height: 54px;
}
.filer-dropzone .dz-preview.dz-processing .dz-progress {
    opacity: 1;
    transition: all 0.2s linear;
}
.filer-dropzone .dz-preview.dz-complete .dz-progress {
    opacity: 0;
    transition: opacity 0.4s ease-in;
}
.filer-dropzone .dz-preview:not(.dz-processing) .dz-progress {
    animation: pulse 6s ease infinite;
}
.filer-dropzone .dz-preview .dz-progress {
    position: absolute;
    top: 50%;
    left: 50%;
    overflow: hidden;
    z-index: 1000;
    width: 80px;
    height: 16px;
    margin-top: -8px;
    margin-left: -40px;
    border-radius: 8px;
    pointer-events: none;
    opacity: 1;
    background: rgba(255, 255, 255, 0.9);
}
.filer-dropzone .dz-preview .dz-progress .dz-upload {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 0;
    background: #333;
    background: linear-gradient(to bottom, #666, #444);
    transition: width 300ms ease-in-out;
}
.filer-dropzone .dz-preview.dz-error .dz-error-message {
    display: block;
}
.filer-dropzone .dz-preview.dz-error:hover .dz-error-message {
    pointer-events: auto;
    opacity: 1;
}
.filer-dropzone .dz-preview .dz-error-message {
    display: block;
    display: none;
    position: absolute;
    top: 130px;
    left: -10px;
    z-index: 1000;
    color: white;
    font-size: 13px;
    width: 140px;
    padding: 0.5em 1.2em;
    border-radius: 8px;
    pointer-events: none;
    opacity: 0;
    background: #be2626;
    background: linear-gradient(to bottom, #be2626, #a92222);
    transition: opacity 0.3s ease;
}
.filer-dropzone .dz-preview .dz-error-message:after {
    content: "";
    position: absolute;
    top: -6px;
    left: 64px;
    width: 0;
    height: 0;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #be2626;
    border-left: 6px solid transparent;
}
