#driveBreadcrumbs {
    font-size: 16px;
    margin: 40px auto 0;
}

/* .driveFolder {
    cursor: pointer;
}

.driveFolder:hover {
    background-color: #e7e4e0;
} */

.driveBreadcrumb {
    float: left;
    width: auto;
    color: var(--dark-color);
    opacity: 0.7;
    cursor: pointer;
    font-size: 13px;
}


.driveBreadcrumbSeparator {
    float: left;
    margin-left: 10px;
    margin-right: 10px;
    height: 9px;
    width: auto;
    margin-top: 3px;
    opacity: 0.1;
}

#driveBreadcrumbs img.driveBreadcrumbSeparator:last-of-type {
    opacity: 1;
}

.driveBreadcrumbSelect {
    float: left;
    width: auto;
    color: var(--dark-color);
    cursor: pointer;
    font-size: 13px;
}

#driveFolderHeader {
    display: flex;
    align-items: center;
    margin: 40px auto 0;
}

#driveFolderHeaderImage {
    height: 200px;
    width: 200px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 42px;
}

#driveFolderHeaderData {
    width: calc(100% - 200px - 40px);
    margin-left: 40px;
    height: 200px;
    min-width: 300px;
}

#driveFolderHeaderTitle {
    font-size: 36px;
    width: fit-content;
    font-weight: var(--font-weight-medium);
    font-family: var(--font-family-secondary) !important;
}

#driveFolderHeaderItems {
    margin-top: 10px;
    color: var(--main-color);
    font-size: 11px;
}

.driveFolderHeaderDescription {
    position: absolute;
    bottom: 100px;
    font-size: 13px;
    line-height: 18px;
}

#driveRootFolderHeader {
    background-color: var(--light-color);
    border-radius: 25px;
    margin: 45px auto 0;
}

#driveRootFolderTitle {
    float: left;
    font-size: var(--sub-title-font);
    margin-left: 50px;
    margin-top: 30px;
    margin-bottom: 30px;
    width: calc(30% - 60px);
    font-family: var(--font-family-secondary) !important;
    font-weight: var(--font-weight-medium);
}

#driveFolderSearchBar {
    margin-top: 45px;
    overflow: visible;
    height: 45px;
    margin: 45px auto 0;
}

#driveFolderSearchBarTextContainer {
    float: left;
    width: 32%;
    background-color: white;
    height: 49px;
    border-radius: 32px;
    border: 1px solid #E4E0DA;
    max-width: 600px;
    min-width: 160px;
    overflow: visible;
}

#driveFolderSearchBarText {
    background-color: transparent;
    border: none;
    margin-left: 20px;
    margin-top: 17px;
    color: var(--dark-color-two);
    width: 100%;
    font-size: 12px;
}

#driveFolderSearchBarColorButton {
    background-color: var(--main-color);
    position: absolute;
    right: 6px;
    top: 4px;
    height: 38px;
    width: 38px;
}

#driveFolderSearchBarIcon {
    width: 16px;
    top: 10px;
    left: 10px;
}

#driveFolderSearchBarOrderByContainer {
    float: left;
    width: 20%;
    margin-left: 10px;
    max-width: 300px;
    min-width: 250px;
}

#driveFolderFolders {
    margin: 40px auto 0;
}

.driveFolderV2Separator {
    height: 2px;
    background-color: var(--light-color);
    margin-top: 25px;
}

.driveFolderV2FoldersContainer:first-child {
    border-top: 1px solid #e1e1e1;
}

.driveFolderV2FoldersContainer {
    border-bottom: 1px solid #e1e1e1;
}

.driveFolderV2FoldersContainer.drive-selected {
    background-color: #e7e4e0;
}

.driveFolderV2FoldersContainer.ui-draggable-dragging {
    opacity: 0.6;
}

.driveFolderV2FoldersData {
    padding-top: 25px;
    padding-bottom: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    width: 100%;
}


.driveFolderV2FolderName {
    flex: 0 1 auto;
    text-align: left;
    font-size: 13px;
    margin-left: 0;
    width: 13%;
}

.driveFolderV2FolderNameName {
    text-align: left;
    font-size: 14px;
    font-weight: var(--font-weight-medium);
}

.driveFolderV2FolderNameLink {
    position: relative;
    margin-top: 6px;
    cursor: pointer;
    color: #99470A;
    text-decoration: underline;
    font-weight: 800;
    font-size: 12px;
}

.driveFolderV2FolderNameLink:hover{
    text-decoration: underline;
}

.driveFolderV2Container {
    width: 300px; /* Set a fixed width or adjust as needed */
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-left: auto;
    margin-right: auto;
}

.driveFolderV2FolderFileAmountContainer {
    text-align: left;
    display: flex;
    align-items: center;
}

.driveFolderV2FolderFileAmountIcon {
    float: left;
    width: 14px;
}

.driveFolderV2FolderFileAmount {
    float: left;
    margin-top: 2px;
    width: 70px;
    font-size: 12px;
    margin-left: 7px;
}

.driveFolderV2FolderAmountContainer {
    display: flex;
    align-items: center;
}

.driveFolderV2FolderAmountIcon {
    float: left;
    width: 17px;
}

.driveFolderV2FolderAmount {
    float: left;
    margin-top: 2px;
    width: 70px;
    font-size: 12px;
    margin-left: 7px;
}

.driveFolderV2FolderCompressButton {
    float: right;
    background-color: var(--dark-color);
    width: 28px;
    height: 28px;
    margin-right: 0;
    margin-top: 0;
}

.driveFolderV2FolderExpandButton {
    flex: 0 1 auto;
    background-color: var(--dark-color);
    width: 28px;
    height: 28px;
    margin-top: 0;
}


.driveFolderV2FolderExpandButtonIcon {
    width: 10px;
    left: 9px;
    top: 9px;
}

.driveFolderV2FolderCompressButtonIcon {
    top: 13px;
}

.driveFolderV1FlipButton {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 33px;
    height: 33px;
    background-color: var(--light-color);
}

/** Cards new **/

#driveRootFolderFolders {
    margin-top: 30px;
    margin-bottom: 75px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-gap: 20px;
    overflow: visible;
    margin: 45px auto;
}


.maincontainer
{
    width: 100%;
    aspect-ratio: 1/1;
    float: left; /* stack each div horizontally */
    overflow: visible;
    cursor: pointer;
}

.back h2
{
    position: absolute;
}

.back p
{
    position: absolute;
    top: 50px;
    font-size: 15px;
}

.front h2
{
    position: absolute;
    padding: 10px;
    top: 200px;
    color: #000;
}

.maincontainer > .front
{
    position: absolute;
    transform: perspective(3500px) rotateY(0deg);
    width: 100%;
    height: 100%;
    aspect-ratio: 1/1;
    backface-visibility: hidden; /* cant see the backside elements as theyre turning around */
    transition: transform .5s linear 0s;
    border-radius: 30px;
}

.maincontainer > .back
{
    position: absolute;
    transform: perspective(3500px) rotateY(180deg);
    background: white;
    width: 100%;
    height: 100%;
    aspect-ratio: 1/1;
    border-radius: 30px;
    backface-visibility: hidden; /* cant see the backside elements as theyre turning around */
    transition: transform .5s linear 0s;
    overflow: visible;
}

.maincontainer:hover > .front
{
    transform: perspective(3500px) rotateY(-180deg);
}

.maincontainer:hover > .back
{
    transform: perspective(3500px) rotateY(0deg);
}

.driveFolderV1Bottom{
    width: 90%;
    margin: auto;
    position: absolute;
    left: 5%;
    bottom: 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    align-items: flex-end;
    gap: 5px;
}

.driveFolderV1Container .driveFolderIcon {
    width: 38px;
    height: 38px;
    background-image: url('../files/more.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.driveFolderV1Container:hover .driveFolderIcon {
    background-image: url('../files/less.svg');
}

.driveFolderV2FolderInsideFileMenuButton {
    position: absolute;
    height: 23px;
    top: 29px;
    right: 8px;
    width: auto;
    padding-left: 10px;
    padding-right: 10px;
}

.driveFolderV1Image {
    position: absolute;
    top: 0px;
    left: 0px;
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
}

.driveFolderV1Name {
    font-size: 15px;
    background-color: var(--light-color-two);
    border-radius: 9px;
    width: fit-content;
    padding: 10px;
}

.driveFolderV1Flipped {
    position: absolute;
    background-color: white;
    height: 100%;
    transform: rotateY(180deg);
    backface-visibility: hidden;
    transition: 0.6s;
    transform-style: preserve-3d;
    height: 100%;
}

.driveFolderV1Description {
    margin: 0px auto 0px 5%;
    margin-top: 32px;
    width: 80%;
    font-size: 14px;
    line-height: 20px;
    min-height: 20px;
}


/****/


.driveFolderV2FolderInsideItems {
    margin-bottom: 30px;
    padding-left: 0;
    padding-bottom: 14px;
    display: none;
}

.driveFolderV2FolderInsideItems.open {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-gap: 20px;
}


.driveFolderV2FolderInsideFolder {
    display: none;
    float: left;
    width: 100%;
    margin-right: 2%;
    background-color: white;
    border: 1px solid;
    border-color: var(--light-color);
    border-radius: 15px;
    /* margin-top: 25px; */
    cursor: pointer;
}

.driveFolderV2FolderInsideFolderImage {
    float: left;
    height: 100px;
    width: 100px;
    margin-left: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius: 17px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.driveFolderV2FolderInsideFolderRightContainer {
    float: left;
    height: 100px;
    width: calc(100% - 150px);
    margin-left: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.driveFolderV2FolderInsideFolderName {
    position: absolute;
    bottom: 30px;
    font-size: 13px;
    font-weight: var(--font-weight-medium);
}

.driveFolderV2FolderInsideFolderItems {
    position: absolute;
    bottom: 14px;
    font-size: 12px;
}

.driveFolderV2FolderInsideFolderMenuButton {
    position: absolute;
    height: 23px;
    top: 11px;
    right: 8px;
    width: auto;
    /* display: none; */
    padding-left: 10px;
    padding-right: 10px;
}


.driveFolderV2FolderInsideFile {
    display: none;
    float: left;
    width: 100%;
    margin-right: 2%;
    border-radius: 15px;
    margin-top: 0;
    cursor: pointer;
    border: 1px solid rgba(206, 198, 187, 1);
    background: white;
}

.driveFolderV2FolderInsideFile.drive-selected {
    /* border: 2px dashed var(--companyMainColor); */
    box-shadow: 0px 0px 14px 0px rgba(39, 33, 23, 0.40);
}

.driveFolderV2FolderInsideFile.ui-draggable-draggingg {
    opacity: 0.6;
}

.driveFolderV2FolderInsideFileImageContainer {
    float: left;
    height: 100px;
    width: 100px;
    margin-left: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius: 17px;
    border: 1px solid var(--light-color);
}

.driveFolderV2FolderInsideFileImage {
    position: absolute;
    height: 100%;
    width: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.driveFolderV2FolderInsideFileGif {
    position: absolute;
    height: 100%;
    width: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: none;
}


#driveRootFolderDescription {
    float: right;
    font-size: var(--generic-font);
    margin-top: 30px;
    margin-bottom: 30px;
    width: calc(70% - 60px);
    line-height: 19px;
    margin-right: 30px;
}

.driveFolderV2FolderInsideFileRightContainer {
    float: left;
    height: 100px;
    width: calc(100% - 150px);
    margin-left: 10px;
    margin-top: 10px;
    /* margin-bottom: 10px; */
}

.driveFolderV2FolderInsideFileName {
    position: absolute;
    bottom: 46px;
    font-size: 13px;
    overflow-wrap: break-word;
    text-wrap: pretty;
    font-weight: var(--font-weight-medium);
    /* height: 49px; */
}

.driveFolderV2FolderInsideFileType {
    position: absolute;
    bottom: 30px;
    font-size: 12px;
}

.driveFolderV2FolderInsideFileDate {
    position: absolute;
    bottom: 14px;
    font-size: 12px;
}

.driveVideoOverlay {
    position: absolute;
    left: 40%;
    top: 40%;
    width: 20%;
    display: none;
    transition: all 0.2s ease-in-out;
}

.driveFolderV1CheckboxContainer,
.driveFolderV1CheckboxContainerDownloadBox{
    background: transparent;
    width: 50px;
    height: 50px;
    position: absolute;
    z-index: 9;
    right: 10px;
    top: 10px;
    border-radius: 100px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.driveFolderV1Checkbox{
    border: 1px solid #c2c5cc;
    background-color: white;
    width: 20px;
    height: 20px;
    border-radius: 100px;
    padding: 10px;
}

.driveFolderV1Checkbox.checked{
    background: url('../files/tick.svg'), rgba(1, 132, 30, 1);
    background-repeat: no-repeat;
    background-position: center; 
    background-size: 10px;
}


@media screen and (max-width: 1450px) {
    .driveFolderV2FolderInsideItems.open {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media screen and (max-width: 1300px) {
    .driveFolderV2FolderInsideItems.open {
        grid-template-columns: 1fr 1fr;
    }
}

#driveFolderV1Files {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 20px;
    margin-top: 20px;
    margin: 45px auto;
}

.driveFolderV1File {
    float: left;
    width: 100%;
    cursor: pointer;
}

.driveFolderV1File.drive-selected {
    /* border: 3px dashed #ffaf51; */
    box-shadow: 0px 0px 14px 0px rgba(39, 33, 23, 0.40);
}

.driveFolderV1File.ui-draggable-dragging {
    opacity: 0.6;
}

.driveFolderV1FileImageContainer {
    /* width: 96%;
    margin-left: 2%; */
    margin-bottom: 10px;
    border-radius: 35px;
    border: 1px solid var(--light-color);
    overflow: hidden;
    height: unset !important;
    aspect-ratio: 1/1;
}

.driveFolderV1FileImage {
    position: absolute;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.driveFolderV1FileImage img{
    position:relative;
    width:100%;
    height:100%;
    object-fit: cover;
}

.driveFolderV1FileGif {
    position: absolute;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: none;
}

.driveFolderV1FileContainer {
    float: left;
    min-height: 80px;
    margin-top: 10px;
    margin-bottom: 10px;
    position: relative;
}

.driveFolderV2FolderInsideFileAction{
    height: 23px;
    width: auto;
    position: absolute;
    right: 0;
    top: 10px;
    cursor: pointer;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: content-box;
}

.accordionFolderDots {
    top: 36px;
    right: 60px;
    padding-left: 10px;
    padding-right: 10px;
}

.parentFolderDots{
    height: 23px;
    width: auto;
    padding-left: 20px;
}

#parentFolderTitleDotsContainer{
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.driveFolderV1FileName {
    font-size: var(--generic-font);
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    display:
    -webkit-box;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 90%;
    font-weight: var(--font-weight-bold);
}

.driveFolderV1FileType {
    font-size: var(--generic-font-two);
    margin-top: 5px;
    color: var(--main-color);
}

.driveFolderV1FileDate {
    font-size: var(--generic-font-two);
    margin-top: 5px;
    color: var(
    --dark-color-two);
}

.driveFolderV1FileImageVideoOverlay {
    position: absolute;
    left: 30%;
    top: 20%;
    width: 40%;
}

#driveCreateCompanyFileButton {
    background-color: var(--main-color);
    float: right;
    margin-right: 20px;
    border: 1px solid var(--main-color);
}

#driveDownloadAllButton {
    background-color: var(--light-color);
    float: right;
    margin-right: 5px;
    border: 1px solid var(--light-color);
    display: flex;
    flex-direction: row;
    align-items: center;
}

#driveDownloadAllButton img{
    margin-right: 8px;
}

#driveCreateCompanyFolderButton {
    background-color: var(--main-color);
    float: right;
    border: 1px solid var(--main-color);
    margin-left: 0;
}

#driveCreateCompanyFileButton:hover,
#driveCreateCompanyFolderButton:hover {
    background-color: white;
    border: 1px solid white;
}

.search-results {
    background: white;
    z-index: 1;
    margin-top: 18px;
    border-radius: 9px;
}

.search-hit {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    padding-left: 10px;
    padding-right: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 40px;
}

.search-hit-title {
    font-size: 13px;
}

.search-hit-title em {
    color: black;
    background: rgb(255 175 81 / 20%);
}

.search-hit-button {
    position: relative;
    width: 80px;
    background-color: var(--main-color);
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    height: 20px;
    border-radius: 15px;
}

.driveRightClickMenuText {
    font-size: 13px;
    margin-left: 18px;
    padding-top: 13px;
}

.driveFileDownloadButton {
    position: relative;
    width: 100%;
    border-top: 1px solid var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: start;
    padding-top: 10px;
    cursor: pointer;
}

img.driveFileDownloadButtonIcon {
    position: relative;
    width: auto;
    height: 15px;
}

.driveFileDownloadButtonText {
    margin-left: 7px;
    color: #D61400;
    font-size: 14px;
}

.mobile {
    display: none;
}

.drivePreviewElement {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

.driveFolderV1Flipped .driveFolderV2FolderInsideFileMenuButton{
    right: 91% !important;
    top: 31px !important;
}


@media screen and (max-width: 1400px) {
    #driveRootFolderFolders {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .driveFolderV2FolderName{
        max-width: 30%;
    }

}

@media screen and (max-width: 1000px) {
    #driveRootFolderFolders {
        grid-template-columns: 1fr 1fr;
    }

    .driveFolderV2FolderName{
        max-width: 30%;
    }

}

@media screen and (max-width: 768px) {
    #driveRootFolderFolders {
        grid-template-columns: 1fr;
    }

    #driveFolderSearchBar{
        display: flex;
        flex-direction: column;
        height: auto;
        justify-content: space-between;
        align-items: center;
        justify-content: center;
    }

    .driveFolderV2FolderInsideItems.open {
        grid-template-columns: 1fr;
    }

    .mobile {
        display: block;
    }

    #driveFolderHeaderData {
        width: calc(100% - 91px - 20px);
        margin-left: 20px;
        min-width: unset;
        height: auto;
    }

    #driveFolderHeaderImage {
        width: 91px;
        height: 91px;
        border-radius: 20px;
    }

    #driveFolderHeaderTitle {
        font-size: 22px;
        line-height: 28px;
    }

    #driveFolderHeaderItems {
        font-size: 13px;
        margin-top: 5px;
    }

    #driveRootFolderHeader {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 5%;
    }

    #driveRootFolderTitle {
        width: 100%;
        margin-left: unset;
    }

    #driveRootFolderDescription {
        width: 100%;
        margin-top: unset;
    }

    #driveCreateCompanyFolderButton,
    #driveCreateCompanyFileButton {
        display: none;
    }

    .driveFolderV1Container {
        width: 100%;
        margin: 0;
    }

    #driveFolderSearchBarTextContainer {
        width: fit-content;
        background-color: transparent;
        border: unset;
        min-width: 48px;
    }

    #driveFolderSearchBarText{
        display: none;
    }

    #driveFolderSearchBarOrderByContainer {
        width: 100%;
        margin: auto;
        max-width: unset;
        height: 48px;
    }


    .driveSelectIcon {
        top: calc(50% - 2.5px);
    }

    #driveFolderSearchBarColorButton {
        width: 48px;
        height: 48px;
        top: unset;
        right: 0;
    }

    #driveFolderSearchBarIcon {
        width: 20px;
        top: 13px;
        left: 13px;
    }

    .driveFolderV1File {
        width: 100%;
        margin: 0 auto;
    }

    .driveFolderV2FoldersData {
        flex-direction: column;
        align-items: baseline;
    }

    .driveFolderV2FolderExpandButton,
    .driveFolderV2FolderCompressButton {
        position: absolute;
        right: 0;
        top: calc(50% - 14px);
    }

    .driveFolderV2FolderName {
        width: calc(90% - 50px);
        max-width: unset;
        margin-bottom: 5px;
        font-size: 14px;
    }

    .driveFolderHeaderDescription {
        line-height: 18px;
        margin-top: 5px;
        position: unset;
    }

    #driveFolderFolders {
        margin-bottom: 40px;
    }

    #driveRootFolderFolders, #driveFolderV1Files{
        grid-template-columns: 1fr;
        margin-top: 30px;
    }
    #driveDownloadAllButton{
        margin: 20px auto 0;
    }
    
}
