#mediaLibrary {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100vw;
    height: 100vh;
    z-index: 100002;
    background-color: #f0f0f0;
}

#mediaLibrary .headerFrame {
    position: relative;
    padding: 25px;
    padding-left: 73px;
    box-sizing: border-box;
    background-color: rgba(var(--secondaryColor), 1);
    border-bottom: 1px solid #e0e0e0;
}

#mediaLibrary .headerFrame .logo {
    width: 73px;
    height: 73px;
    background-size: 60%;
    background-repeat: no-repeat;
    background-position: center center;
    position: absolute;
    top: 0px;
    left: 0px;
}

#mediaLibrary .header {
    padding-top: 0px !important;
    min-height: auto !important;
    margin-bottom: 0px !important;
    color: white !important;
}

#mediaLibrary .close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 18px;
    height: 18px;
    transition: all .2s;
    cursor: pointer;
    z-index: 101;
}

#mediaLibrary .close:hover {
    opacity: .7;
}

#mediaLibrary .close:after {
    content: "\f00d";
    font-family: "Font Awesome 5 Pro";
    position: absolute;
    top: -2px;
    left: 3px;
    font-size: 22px;
    color: white;
    font-weight: 300;
}

#mediaLibrary .folders {
    float: left;
    width: 300px;
    height: 100vh;
    background-color: white;
    border-right: 1px solid #e0e0e0;
    box-sizing: border-box;
}

#mediaLibrary .folders .popupSubHeader {
    padding: 25px;
    background-color: rgba(0, 0, 0, .03);
    border-bottom: 1px solid rgba(0, 0, 0, .1);
    position: relative;
}

#mediaLibrary .folders .popupSubHeader .addFolderButton {
    background-color: rgba(var(--mainColor), .7);
    position: absolute;
    top: calc(50% - 17px);
    right: 25px;
    border-radius: 3px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 12px;
    color: white;
    padding: 10px;
}

#mediaLibrary .folders .popupSubHeader .addFolderButton:hover {
    background-color: rgba(var(--mainColor), 1);
}

#mediaLibrary #files {
    float: left;
    width: calc(100% - 300px);
    height: calc(100vh - 73px);
    position: relative;
    overflow-y: auto;
}

#mediaLibrary .innerFolders {
    box-sizing: border-box;
    width: 100%;
    overflow-y: auto;
}

#mediaLibrary .innerFolders .folder {
    width: 100%;
    padding: 15px 25px;
    padding-right: 15px;
    box-sizing: border-box;
    transition: background-color .3s;
    cursor: pointer;
    position: relative;
    display: table;
    border-bottom: 1px solid rgba(var(--mainColor), .1);
}

#mediaLibrary .innerFolders .folder:hover {
    background-color: rgba(var(--mainColor), .1);
}

#mediaLibrary .innerFolders .folder span {
    font-size: 16px;
    color: #333;
    display: table-cell;
    text-align: left;
    vertical-align: middle;
    width: 100%;
}

#mediaLibrary .innerFolders .folder i {
    color: rgba(var(--mainColor), 1);
    font-size: 26px;
    margin-right: 10px;
}

#mediaLibrary .innerFolders .folder.subfolder {
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 40px;
    display: none;
}

#mediaLibrary .innerFolders .folder.subfolder.parentSelected {
    display: table;
    border-bottom: 1px solid rgba(var(--mainColor), .1);
}

#mediaLibrary .innerFolders .folder.subfolder:hover {
    background-color: rgba(var(--mainColor), .1);
}

#mediaLibrary .innerFolders .folder.subfolder span {
    font-size: 14px;
    color: #333;
    display: table-cell;
    text-align: left;
    vertical-align: middle;
    width: 100%;
}

#mediaLibrary .innerFolders .folder.subfolder i {
    color: rgba(var(--mainColor), 1);
    font-size: 22px;
    margin-right: 10px;
}

#mediaLibrary .innerFolders .allFiles,
#mediaLibrary .innerFolders .drillGenerator {
    border-bottom: 0px;
}

#mediaLibrary .innerFolders .divider {
    width: 100%;
    height: 0px;
    border-bottom: 1px solid rgba(var(--mainColor), .5);
}

#mediaLibrary .innerFolders .allFiles i {
    padding-left: 3px;
    padding-right: 3px;
}

#mediaLibrary .innerFolders .folder .fas {
    display: none;
}

#mediaLibrary .innerFolders .folder .fad {
    display: inline-block;
}

#mediaLibrary .innerFolders .folder.selected {
    background-color: rgba(var(--mainColor), .2);
}

#mediaLibrary .innerFolders .folder.selected .fad {
    display: none;
}

#mediaLibrary .innerFolders .folder.selected .fas {
    display: inline-block;
}

#mediaLibrary .innerFolders .folder .add {
    background-color: rgba(214, 220, 223, .3);
    transition: all .3s;
    position: relative;
    border-radius: 3px;
    font-size: 16px;
    color: #333;
    display: table-cell;
    text-align: left;
    vertical-align: middle;
    width: 100%;
    padding: 10px;
}

#mediaLibrary .innerFolders .folder .add input[type="text"] {
    width: calc(100% - 35px);
    box-sizing: border-box;
    color: #333;
    font-size: 16px;
    border: none;
    background-color: transparent;
    padding: 0px;
    margin: 0px;
}

#mediaLibrary .innerFolders .folder.subfolder .add input[type="text"] {
    font-size: 14px;
}

#mediaLibrary .innerFolders .folder .add input[type="button"] {
    background-color: rgba(var(--mainColor), 1);
    border: none;
    border-radius: 3px;
    color: white;
    font-size: 14px;
    text-transform: uppercase;
    padding: 5px;
    padding-top: 4px;
    cursor: pointer;
    transition: all .2s;
    position: absolute;
    top: 5px;
    right: 5px;
}

#mediaLibrary .innerFolders .folder .add input[type="button"]:hover {
    background-color: rgba(var(--mainColor), .7);
}

#mediaLibrary .innerFolders .folder.addFolder:hover {
    background-color: white;
}

#mediaLibrary .innerFolders .folder.editFolder {
    background-color: white !important;
}

#mediaLibrary .folder .option {
    width: 21px;
    height: 21px;
    position: absolute;
    top: calc(50% - 10px);
    background-color: rgba(var(--mainColor), .7);
    border-radius: 3px;
    cursor: pointer;
    opacity: 0;
}

#mediaLibrary .folder .option:hover {
    background-color: rgba(var(--mainColor), 1);
}

#mediaLibrary .folder .edit {
    right: 40px;
}

#mediaLibrary .folder.editing {
    display: none !important;
}

#mediaLibrary .folder .edit:after {
    content: "\f304";
    font-family: "Font Awesome 5 Pro";
    position: absolute;
    top: calc(50% - 6px);
    right: calc(50% - 6px);
    font-size: 11px;
    font-weight: 300;
    color: white;
}

#mediaLibrary .folder .close {
    right: 15px;
}

#mediaLibrary .folder .close:after {
    content: "\f00d";
    font-family: "Font Awesome 5 Pro";
    position: absolute;
    top: calc(50% - 7px);
    left: calc(50% - 5px);
    font-size: 15px;
    font-weight: 300;
    color: white;
}

#mediaLibrary .folder:hover > .option {
    opacity: 1;
}

#mediaLibrary #files .fileUploadOverlay {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .7);
    display: none;
    z-index: 100;
}

#mediaLibrary #files .fileUploadOverlay .border {
    position: absolute;
    top: 25px;
    left: 25px;
    bottom: 25px;
    right: 25px;
    box-sizing: border-box;
    border: 3px dashed white;
}

#mediaLibrary #files .fileUploadOverlay .border .table {
    display: table;
    width: 100%;
    height: 100%;
}

#mediaLibrary #files .fileUploadOverlay .border .cell {
    display: table-cell;
    text-align: center;
    vertical-align: middle;
    text-transform: uppercase;
    color: white;
    font-size: 24px;
}

#mediaLibrary #files .fileUploadOverlay .border .cell span {
    display: block;
    font-size: 12px;
    opacity: .5;
}

#mediaLibrary #files .fileUploadOverlay .border .cell i {
    display: block;
    font-size: 80px;
    margin-bottom: 25px;
}

#mediaLibrary #files.fileOver > .fileUploadOverlay {
    display: block;
}

#mediaLibrary #files .innerFiles {
    padding-right: 25px;
    box-sizing: border-box;
}

#mediaLibrary .innerFiles .file {
    width: calc((100% - 200px) / 8);
    position: relative;
    border: 1px solid #e0e0e0;
    background-color: white;
    float: left;
    margin-left: 25px;
    margin-bottom: 25px;
    box-sizing: border-box;
    background: rgb(255,255,255);
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(var(--mainColor), .1) 100%);
    -webkit-box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.1);
    -moz-box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.1);
    box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.1);
    cursor: pointer;
    opacity: 1;
}

#mediaLibrary .innerFiles .file.chooseFile {
    cursor: default;
}

#mediaLibrary .innerFiles .file.deleted {
    opacity: 0;
}

#mediaLibrary .innerFiles .file:after {
    content: "";
    display: block;
    padding-top: 100%;
}

#mediaLibrary .innerFiles .file.image {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

#mediaLibrary .innerFiles .file i {
    color: rgba(var(--mainColor), 1);
    font-size: 77px;
    position: absolute;
    left: calc(50% - 29px);
    top: calc(50% - (38px + 18px));
}

#mediaLibrary .innerFiles .file .fileInfo {
    background-color: rgba(255, 255, 255, .7);
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    font-size: 13px;
    word-break: break-all;
    color: #333;
}

#mediaLibrary .innerFiles .file .overlay {
    position: absolute;
    top: 0px;
    left: 0px;
    bottom: 0px;
    right: 0px;
    background-color: #f0f0f0;
    z-index: 1000;
}

#mediaLibrary .innerFiles .file .overlay .gradient {
    position: absolute;
    top: 0px;
    left: 0px;
    bottom: 0px;
    right: 0px;
    background: rgb(255,255,255);
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(var(--mainColor), .1) 100%);
    z-index: 1001;
}

#mediaLibrary .innerFiles .file .overlay .loader {
    position: absolute;
    z-index: 1002;
    width: 80%;
    height: 18px;
    border-radius: 3px;
    border: 2px solid rgba(var(--mainColor), 1);
    left: 10%;
    top: calc(50% - 9px);
    box-sizing: border-box;
}

#mediaLibrary .innerFiles .file .overlay .loader div {
    height: 16px;
    background-color: rgba(var(--mainColor), 1);
    width: 0px;
}

/*
#mediaLibrary .innerFiles .file .overlay .loader,
#mediaLibrary .innerFiles .file .overlay .loader:after {
    border-radius: 50%;
    width: 10em;
    height: 10em;
}

#mediaLibrary .innerFiles .file .overlay .loader {
    margin: 0px;
    font-size: 6px;
    position: absolute;
    z-index: 1002;
    text-indent: -9999em;
    border-top: 1.1em solid rgba(var(--mainColor), 0.2);
    border-right: 1.1em solid rgba(var(--mainColor), 0.2);
    border-bottom: 1.1em solid rgba(var(--mainColor), 0.2);
    border-left: 1.1em solid rgba(var(--mainColor), 1);
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation: load8 1.1s infinite linear;
    animation: load8 1.1s infinite linear;
    top: calc(50% - 36px);
    left: calc(50% - 36px);
}
*/

#mediaLibrary .innerFiles .file .selectFile {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(var(--mainColor), 1);
    background-color: rgba(255, 255, 255, .8);
    border-radius: 3px;
    top: 10px;
    right: 10px;
    box-sizing: border-box;
    z-index: 10;
}

#mediaLibrary .innerFiles .file .selectFile:hover {
    background-color: rgba(var(--mainColor), 1);
}

#mediaLibrary .innerFiles .file .selectFile.selected {
    background-color: rgba(var(--mainColor), 1);
}

#mediaLibrary .innerFiles .file .selectFile.selected:after {
    content: "\f00c";
    font-family: "Font Awesome 5 Pro";
    position: absolute;
    top: calc(50% - 8px);
    right: calc(50% - 8px);
    font-size: 16px;
    font-weight: 500;
    color: white;
}

#mediaLibrary .innerFiles .file .chooseFileButton {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    font-size: 14px;
    padding: 7px 15px;
}

#fileDetails .preview {
    width: 100%;
    height: 400px;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
}

#fileDetails .preview.video {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    height: auto !important;
    cursor: pointer;
}

#fileDetails .preview.video.noVideo {
    background-color: rgba(var(--secondaryColor), 1);
}

#fileDetails .preview.video.noVideo .transcoding {
    width: 100%;
    position: absolute;
    text-align: center;
    top: calc(50% + 8px);
    color: white;
    font-size: 24px;
}

#fileDetails .preview.video:before {
    content: "\f04b";
    font-family: "Font Awesome 5 Pro";
    position: absolute;
    font-size: 42px;
    color: white;
    font-weight: 600;
    top: calc(50% - 21px);
    left: calc(50% - 21px);
}

#fileDetails .preview.video.noVideo:before {
    content: "\f636";
    font-family: "Font Awesome 5 Pro";
    position: absolute;
    font-size: 42px;
    color: white;
    font-weight: 600;
    top: calc(50% - 45px);
    left: calc(50% - 21px);
}

#fileDetails .preview.video:hover:before {
    opacity: .7;
}

#fileDetails .preview.video:after {
    content: "";
    display: block;
    padding-top: 56.25%;
}

#fileDetails .info {
    line-height: 24px;
    color: rgba(20, 20, 20, .7);
}

#fileDetails .info span {
    font-weight: bold;
    color: rgba(20, 20, 20, 1);
}

#fileDetails .icon {
    width: 100%;
    padding-top: 25px;
    padding-bottom: 25px;
}

#fileDetails i {
    color: rgba(var(--mainColor), 1);
    font-size: 120px;
    margin-left: calc(50% - 45px);
    display: block;
}

#fileDetails .buttons {
    text-align: center;
}

#fileDetails .button {
    width: auto !important;
    padding: 5px 15px !important;
    font-size: 12px;
    background-color: #e94527;
    display: inline-block !important;
    float: none !important;
    margin-top: 10px !important;
    margin-left: 5px;
    margin-right: 5px;
}

#fileDetails .button.download {
    background-color: rgba(var(--mainColor), 1);
    text-decoration: none;
    color: white;
}

#mediaLibrary #fileOptions {
    padding: 25px;
    padding-bottom: 0px;
}

#mediaLibrary #fileOptions .button {
    float: left;
    margin-right: 15px;
}

#mediaLibrary #fileOptions .delete {
    background-color: #e94527;
    display: none;
}

#mediaLibrary #fileOptions .move {
    display: none;
}

#mediaLibrary #fileOptions .choose {
    display: none;
}

.moveMediaLibraryFiles p {
    font-size: 14px;
    line-height: 18px;
    margin-top: 10px;
}

.moveMediaLibraryFiles .button {
    margin-top: 10px;
    float: right;
}

@-webkit-keyframes load8 {
    
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
    
}

@keyframes load8 {
    
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }

}

#mediaLibrary #fileStatus {
    padding: 25px;
    padding-bottom: 0px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

#mediaLibrary #fileStatus>.size,
#mediaLibrary #fileStatus>.type {
    display: none;
}

#mediaLibrary #fileStatus #errors {
    width: 100%;
    //padding: 10px;
    box-sizing: border-box;
    background-color: white;
    border-left: 4px solid #dd3d36;
    -webkit-box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.1);
    -moz-box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.1);
    box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.1);
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 25px;
}

#mediaLibrary #fileStatus #fileMessages {
    width: 100%;
    //padding: 10px;
    box-sizing: border-box;
    background-color: white;
    border-left: 4px solid #8DB600;
    -webkit-box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.1);
    -moz-box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.1);
    box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.1);
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 25px;
}

#mediaLibrary #fileStatus #errors,
#mediaLibrary #fileStatus #fileMessages div {
    padding: 10px;
    box-sizing: border-box;
}

#mediaLibrary #fileStatus #errors div:last-child,
#mediaLibrary #fileStatus #fileMessages div:last-child {
    margin-bottom: 0px;
}

#chooseFileButtonPlaceholder {
    display: none;
}

@media (max-width:1920px) {
    
    #mediaLibrary .innerFiles .file {
        width: calc((100% - 175px) / 7);
    }
    
}

@media (max-width:1640px) {
    
    #mediaLibrary .innerFiles .file {
        width: calc((100% - 150px) / 6);
    }
    
}

@media (max-width:1440px) {
    
    #mediaLibrary .innerFiles .file {
        width: calc((100% - 125px) / 5);
    }
    
}

@media (max-width:1280px) {
    
    #mediaLibrary .innerFiles .file {
        width: calc((100% - 100px) / 4);
    }
    
}

@media (max-width:1024px) {
    
    #mediaLibrary .innerFiles .file {
        width: calc((100% - 75px) / 3);
    }
    
}