/* ------------------ */
/* Anpassung DropzoneController */
/* ------------------ */

/* Anpassung D&D-Bereich*/
.dropzone_full_container {
    cursor: pointer;
}

.dropzone {
    border: 0;
    padding: 0px;
    min-height: unset;
}

.dropUpload {
    width: 100%;
    height: 100%;
}

.uploadContainer {
    width: 200px;
    height: 200px;

    border: 1px solid #e2e2e2;
    box-sizing: border-box;
    border-radius: 20px;
}

.dz-message {
    font-size: 20px;
    font-weight: bolder;
    text-align: center;
}

.dz-message > .alternative {
    font-size: 15px;
    font-weight: normal;
}

.dz-message > .alternative > .button {
    display: block;
    width: 60%;
    margin: auto;
    padding: 8px;
    background-image: linear-gradient(45deg, #ff8215, #ffc44f);
    color: #fff;
    cursor: pointer;
    border-radius: 5px;
}

/* Anpassung Vorschau-Bereich*/
.filePreview {
    width: 100%;
    height: 100%;
    position: relative;
    vertical-align: top;
    padding: 1px;
    font-size: 40px;
}

.filePreview .removePreviewFile {
    color: #ff8215;
    font-size: 7px;
    cursor: pointer;
    width: 100%;
    text-align: center;
    padding: 5px;
}

.removePreviewFileMulti {
    position: absolute;
    top: 0;
    right: 0;
    border-radius: 100%;
    display: inline-block;
    z-index: 10;
    color: #ff8215;
}

.showFilePreview {
    height: 100%;
    width: 100%;
    /*position: absolute;*/
    top: 0px;
}

/* Anpassung der Standard-CSS von DropzoneController für Vorschaucontainer */
.dropzone .dz-preview {
    margin: 0;
}

.dropzone .dz-preview .dz-image {
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

.dropzone .dz-preview .dz-image img {
    border-radius: 2px;
}

.dz-error {
    width: 90%;
}

/* Thumbnail ausblenden, falls Fehlermeldung vorhanden */
.dz-error > .dz-image {
    display: none !important;
}

/* Dateidetails, Progressbar und Erfolg/Fehlersymbol ausblenden*/
.dropzone .dz-preview .dz-progress {
    display: none;
}

.dropzone .dz-preview.dz-image-preview {
    border-radius: 100%;
}

.dropzone .dz-preview .dz-details {
    display: none;
}

.dropzone .dz-preview:hover .dz-details {
    opacity: 0;
}

/*
.dropzone .dz-preview.dz-success .dz-success-mark {
    opacity: 0;
}*/

.dropzone .dz-preview .dz-error-message {
    top: unset;
    left: unset;
    width: unset;
    opacity: 1;
    width: 50%;
    margin-left: 20%;
    margin-top: 10%;
}

/*
.dropzone .dz-preview .dz-success-mark svg,
.dropzone .dz-preview .dz-error-mark svg {
    display: none;
}
*/
/* Weichzeichner-Effekt und Skalierung bei Hover über Thumbnail entfernen */
.dropzone .dz-preview:hover .dz-image img {
    -webkit-transform: scale(1, 1);
    -moz-transform: scale(1, 1);
    -ms-transform: scale(1, 1);
    -o-transform: scale(1, 1);
    transform: scale(1, 1);
    -webkit-filter: blur(0px);
    filter: blur(0px);
}

/* Anpassung für existierendes Bild */
.existingFile {
    width: 200px;
    height: 200px;
    z-index:2;


}

.existingFile .img {
    background-size: cover;
    background-position: center top;
    border-radius: 20px;
}

.fileControls {
    position: relative;
    top: -25px;
    width: 200px;
    text-align: center;
    color: #ff8215;
    display:flex;
    justify-content: space-evenly;

    /*opacity: 1;
    width: 100%;
    height: 100%;
    border-radius: 100%;
    background-color: rgba(0, 0, 0, 0.5);*/
}


.fileControls div {
    display:inline-block;
}

.removeExistingFile {
    /*display: none;
    position: absolute;
    right: -2px;
        width: 90%;
    text-align: right;

    top: -1px;*/

    font-size: 7px;
    cursor: pointer;
}


/* Anpassungen für Dropzones mit mehreren Bildern */

.uploadContainerMultiple {
    width: 90%;
    min-height: 300px;
    border: 2px dotted #444444;
}

.uploadContainerMultiple.plusZone {
    width: 100%;
    min-height: 150px;
    border: 2px dotted #444444;
    color: #ff8215;
}

.uploadContainerMultiple .dz-preview .dz-image {
    width: 100%;
    height: 100%;
    border-radius: 0;
    margin: 10px;
}

.uploadContainerMultiple .dz-image-preview {
    border-radius: unset !important;
}


@media screen and (min-width: 768px) {
    .existingFile {
        position: absolute;
        top: 0;
    }
}

@media screen and (max-width: 768px) {
    .dropzone_full_container .existingFile {
        position: relative;
        top: unset;
    }

    .dropzone_full_container .uploadContainer {
        display: none;
    }
}


.dropAnimationContainer {
    display: none;
    position: relative;
    z-index: 4;
}

.dropAnimationXWrapper {
    position: absolute;
    animation: leftDrop 3s infinite ease-out;
}

.dropAnimationY {
    display: block;
    position: absolute;
    z-index: 5;

    color: #ff8215;

    animation: topDrop 3s infinite ease-in;
}

@keyframes topDrop {
    0% {
        font-size: 40px;
        top: -80px;
    }
    50% {
        font-size: 20px;
        top: -3px;
    }
    75% {
        font-size: 30px;
        opacity: 1;
        top: -10px;
    }
    100% {
        font-size: 10px;
        opacity: 0;
        top: -3px;
    }
}

@keyframes leftDrop {
    0% {
        left: -30px;
    }
    50% {
        left: 40px;
    }
    75% {
        left: 38px;
    }
    100% {
        left: 40px;
    }
}


.organizationImageDropzone .uploadContainer {
    border-radius: unset;
}

.organizationImageDropzone .existingFile {
    border-radius: unset;
}

.organizationImageDropzone .uploadContainer {
    width: 300px;
    height: 200px;
    padding: 15px;
}

.organizationImageDropzone .existingFile {
    height: 170px;
    width: 270px;
    top: 7px;
    left: 15px;
}


.organizationImageDropzone .existingFile.img {
    background-size: contain;
    background-repeat: no-repeat;
}

.organizationImageDropzone .dropzone .dz-preview .dz-image {
    border-radius: unset;
}


.organizationImageDropzone .fileControls {
    border-radius: unset;
    top: 7px;
    left: 15px;
}

.organizationImageDropzone .removeExistingFile {
    right: -25px;
}


.previewWrapper [data-dropzone-animation="true"] {
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    -o-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-transition: all 300ms cubic-bezier(0.34, 1.61, 0.7, 1);
    -moz-transition: all 300ms cubic-bezier(0.34, 1.61, 0.7, 1);
    -o-transition: all 300ms cubic-bezier(0.34, 1.61, 0.7, 1);
    -ms-transition: all 300ms cubic-bezier(0.34, 1.61, 0.7, 1);
    transition: all 300ms cubic-bezier(0.34, 1.61, 0.7, 1);
}

.previewWrapper:hover [data-dropzone-animation="true"] {
    -webkit-transform: translate3d(0, -50px, 0);
    -moz-transform: translate3d(0, -50px, 0);
    -o-transform: translate3d(0, -50px, 0);
    -ms-transform: translate3d(0, -50px, 0);
    transform: translate3d(0, -30px, 0);
}

@media (hover: none) {

    .fileControls {
        top: 0;
    }
}

/* Anpassungen Dropzone an No-JS */
html:not(.js) .dropzone_full_container {
    display:none;
}

html:not(.js) .previewWrapper [data-dropzone-animation="true"] {
    -webkit-transform: none;
    -moz-transform: none;
    -o-transform: none;
    -ms-transform: none;
    transform: none;
}

html:not(.js) .removePreviewFile {
    display: none;
}

