﻿@-webkit-keyframes spinnerLoad {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes spinnerLoad {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

* {
    box-sizing: border-box;
}

#tab-5-edit .photo-selector-container {
    width: 100%;
    margin: 20px auto 50px;
    padding: 0 10px;
}

#tab-5-edit .tab-5-additional-edit-options {
    display: flex;
    flex-direction: column;
    margin-top: 4px;
}

    #tab-5-edit .tab-5-additional-edit-options .tab-5-additional-options-wrapper {
        display: flex;
        flex-direction: column;
    }

        #tab-5-edit .tab-5-additional-edit-options .tab-5-additional-options-wrapper .tab-5-additional-option {
            display: flex;
            flex-direction: column;
            margin-top: 4px;
        }

#tab-5-edit .photo-preview {
    width: 100%;
    padding-bottom: 75%;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

#tab-5-edit .photos-container {
    width: 100%;
    min-height: 160px;
    display: flex;
    align-items: center;
    overflow-x: auto;
    margin: auto;
    background-color: ghostwhite;
}

    #tab-5-edit .photos-container .photo {
        min-width: 320px;
        height: 180px;
        border: 2px solid transparent;
    }

    #tab-5-edit .photos-container .photo-index {
        display: none;
    }

.selected-photo-container {
    min-height: 200px;
    display: flex;
    overflow-x: auto;
    margin: auto;
    background-color: ghostwhite;
}

#tab-5-edit .selected-photo-container .photo {
    min-width: 320px;
    height: 180px;
}

#tab-5-edit .selected-photo-container .photo-index {
    display: flex;
}

#tab-5-edit .photo {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
    border: 2px solid transparent;
    margin-top: 10px;
}

    /*.photo.drag-origin {*/
    /*  padding: 10px;*/
    /*  background-color: wheat;*/
    /*}*/

    #tab-5-edit .photo.drag-over {
        border: 2px solid #66E4EE;
    }

#tab-5-edit .photo-thumbnail.loading,
#tab-5-edit .photo-preview.loading {
    font-size: 10px;
    position: relative;
    text-indent: -9999em;
    border-top: 1.1em solid #d6d4d6;
    border-right: 1.1em solid #ffffff;
    border-bottom: 1.1em solid #ffffff;
    border-left: 1.1em solid #ffffff;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation: spinnerLoad 1.1s infinite linear;
    animation: spinnerLoad 1.1s infinite linear;
}

    #tab-5-edit .photo-thumbnail.loading,
    #tab-5-edit .photo-thumbnail.loading:after {
        border-radius: 50%;
        width: 8em;
        height: 8em;
        min-width: unset;
    }

    #tab-5-edit .photo-preview.loading,
    #tab-5-edit .photo-preview.loading:after {
        border-radius: 50%;
        width: 240px;
        padding-bottom: 218px;
    }

#tab-5-edit .photo:hover .photo-name {
    display: flex;
}

#tab-5-edit .photo:not(:last-of-type) {
    margin-right: 10px;
}

#tab-5-edit .photo.selected {
    transform: scale(0.8);
}

    #tab-5-edit .photo.selected .photo-name {
        display: flex;
    }

#tab-5-edit .photo-index {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 5px;
    bottom: 5px;
    width: 30px;
    height: 30px;
    background-color: white;
    font-weight: bold;
}

#tab-5-edit .photo-name {
    display: none;
    align-items: center;
    justify-content: center;
    position: absolute;
    background-color: white;
    height: 30px;
    right: 0;
    top: 0;
    padding: 0 4px;
    opacity: 0.6;
}

#tab-5-edit .photo-thumbnail {
    height: 100%;
    min-width: 100%;
    background-size: cover;
    background-position: center;
}

#tab-5-edit .photo-selector-container .hint {
    margin-bottom: 8px;
}

#tab-5-edit .buttons-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 10px;
}


#tab-5 .photos-container-prv {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

    #tab-5 .photos-container-prv img {
        width: auto;
        height: 140px;
        margin: 5px;
    }

#tab-5-edit .photos-container-prv a img {
    width: auto;
    height: 140px;
    margin: 5px;
}

@media screen and (max-width: 479px) {
    #tab-5-edit .photo-selector-container {
        margin-top: 100px;
    }

    #tab-5-edit .photo-preview-container {
        width: 100%;
    }
}

#tab-5-edit #fetchVCCertificateLink {
    margin-top: 4px;
}
