/**
 * DearFlip Custom Styles
 */

.dfc-virtual-wrapper {
    position: absolute;
    top: 0;
    bottom: 0;

    /* Position relative to the flipbook */
    /* right: calc((100% - 1139px) / 2 - 35px) !important; */
    /* right: calc(50% - 604.5px) !important; */
    left: calc(50% + 450px) !important;
    right: auto !important;

    width: auto;
    min-width: calc(var(--dfc-chip-size) + 40px);

    overflow-y: auto;
    overflow-x: hidden;
    pointer-events: auto;

    z-index: 1000;
    scrollbar-width: none;
}



.dfc-virtual-wrapper::-webkit-scrollbar {
    display: none;
}

/* .dfc-virtual-wrapper {
    
    right: 1em !important;
    z-index: 1 !important;
    position: absolute;
    top: 0;
    bottom: 0;
    width: auto;
    min-width: calc(var(--dfc-chip-size) + 40px);
  
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    pointer-events: auto;
    scrollbar-width: none;
  
} */

.dfc-virtual-wrapper::-webkit-scrollbar {
    display: none;
}

.dfc-side-left {
    left: var(--dfc-pos-left);
}

.dfc-side-right {
    right: var(--dfc-pos-right);
}

.intro1,
.intro2,
.intro3 {
    display: block;
}

.intro1,
.intro2,
.intro3 img {
    width: 100%;
    max-width: 30px;
}

.df-container .df-bg {
    position: absolute;
    background-color: transparent !important;
}

.dfc-virtual-render {
    position: absolute;
    top: 0;
    height: 90%;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    flex-wrap: wrap;
    /* Align left chips to left edge, right chips to right edge */
}

.dfc-side-left .dfc-virtual-render {
    align-items: flex-start;
}

.dfc-side-right .dfc-virtual-render {
    align-items: flex-end;
}

.dfc-chip {
    display: flex !important;
    gap: 2em;
    padding: 8px;
    width: auto !important;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
}

.dfc-chip {
    width: auto !important;
    min-width: var(--dfc-chip-size);
    height: var(--dfc-chip-size);
    padding: 0 13px;
    white-space: nowrap;
    margin-bottom: 10px;
    border-radius: var(--dfc-border-radius);
    background-color: transparent;
    color: #333;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    /* Space between label and pg number */
    font-size: var(--dfc-font-size);
    cursor: pointer;
    transition: all 0.2s ease;
}

.dfc-chip-label {
    font-weight: 600;
}

.dfc-chip-pg {
    font-size: 0.85em;
    opacity: 0.8;
    font-weight: 400;
}

.dfc-chip:hover {
    transform: scale(1.05);
    box-shadow: none;
}

.dfc-chip.active {
    background-color: none;
    color: #ffffff;
    border-color: none;
    transform: scale(1.05);
    box-shadow: none;
}

.dfc-chip.active .dfc-chip-label,
.dfc-chip.active .dfc-chip-pg {
    color: #ffffff;
}

.dfc-chip:focus {
    outline: none;
    outline-offset: 2px;
}

.df-container {
    position: relative;
}

/* Hide specific DearFlip UI elements */
.df-ui-btn.df-ui-outline.df-icon-list,
.df-sidemenu-trigger,
.df-ui-btn.df-ui-pagemode.df-icon-file {
    display: none !important;
}

.df-ui-nav.df-ui-next {
    z-index: 99999;
}

#force-landscape-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    padding: 12px 24px;
    background: #e67e22;
    color: white;
    border-radius: 30px;
    font-weight: bold;
}

@supports (-webkit-appearance: none) {
    .dfc-virtual-wrapper {
        right: calc(50% - 607px);
    }
}



@media only screen and (max-width: 767px) {
    .mobile-only-btn {
        display: block !important;
    }
}

.landscape-force {
    width: 100vw !important;
    height: 100vh !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 99998 !important;
}

/* Hide specific buttons only on screens smaller than 768px (Mobile/Tablets) */
@media (max-width: 768px) {

    .df-ui-btn.df-ui-fullscreen.df-icon-fullscreen,
    .df-ui-btn.df-ui-outline.df-icon-list,
    .df-sidemenu-trigger,
    .df-ui-btn.df-ui-pagemode.df-icon-file {
        display: none !important;
    }
}

@media (prefers-color-scheme: dark) {
    .dfc-chip:not(.active) {
        background-color: none;
        color: #e0e0e0;
        border: none;
    }
}

/* @media screen and (max-width: 1920px) {
    .dfc-virtual-wrapper {
        right: 13.3em !important;
    }

    .dfc-virtual-render {
        align-content: flex-start;
    }
}

@supports (-webkit-overflow-scrolling: touch) {
   .dfc-virtual-wrapper {
        right: 4.1em !important;
    }
}

@media screen and (max-width: 1600px) {
    .dfc-virtual-wrapper {
        right: 4.4em !important;
    }
}


@media screen and (max-width: 1440px) {
    .fullscreen-m {
        right: -3.8em !important;
    }

    .dfc-virtual-wrapper {
        right: -1.1em !important;
    }
}

@media screen and (min-width: 1420px) and (max-width: 1430px) {
    

    .dfc-virtual-wrapper {
       right: 2em !important;
    }
}

 */

@media screen and (min-width: 1025px) {
    .mac-os .dfc-virtual-wrapper {
        left: calc(50% + 465px) !important;
        /* adjust this value */
        right: auto !important;
    }
}

@media (max-width: 1024px) {


    .dfc-virtual-wrapper {
        /* right: calc((100% - 1045px) / 2 - 35px) !important; */
        left: calc(50% + 416px) !important;
    }
}



@media (max-width: 820px) {
    .dfc-virtual-wrapper {
        top: 11%;
        /* right: calc((100% - 840px) / 2 - 35px) !important; */
        left: calc(50% + 314px) !important;
    }

    .dfc-virtual-render {
        height: 80%;
        align-content: flex-end;
    }

    .intro1,
    .intro2,
    .intro3 img {
        max-width: 25px;
    }
}

@media (max-width: 768px) {
    .dfc-virtual-wrapper {
        top: 11%;
        /* right: calc((100% - 840px) / 2 - 35px) !important; */
        left: calc(50% + 291px) !important;
    }

    .dfc-virtual-render {
        height: 80%;
        align-content: flex-end;
    }

    .intro1,
    .intro2,
    .intro3 img {
        max-width: 25px;
    }
}

@media (max-width: 991px) {}

/* Mobile Landscape */
@media (max-width: 767px) {}

/* Mobile Landscape */
@media screen and (orientation: landscape) and (max-width: 915px) and (max-height: 450px) {

    .dfc-virtual-wrapper {
        top: 5%;
        min-width: 40px;
        left: calc(50% + 305px) !important;
        right: auto !important;
    }

    .dfc-virtual-render {
        height: auto;
        flex-wrap: wrap;
        align-content: flex-end;
        flex-direction: row;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .dfc-virtual-render {

        top: 2.7em;
        height: auto;
        width: auto;
        flex-direction: row-reverse;
        transform: rotate(-90deg) !important;
        transform-origin: left;
    }

    .dfc-chip {
        width: 80px !important;
        height: 60px;
        align-items: flex-end;
        justify-content: flex-end;
        align-content: flex-start;
    }

    .intro1,
    .intro2,
    .intro3 img {
        max-width: 20px;
    }

    .dfc-virtual-wrapper {
        /* right: 0.2em !important; */
        left: calc(50% + 5px) !important;
        right: auto !important;
        overflow-y: visible;
        overflow-x: visible;
        z-index: 10;
    }

}

/* Small Mobile */
@media (max-width: 480px) {
    .dfc-virtual-render {

        top: 2.7em;
        height: auto;
        width: auto;
        flex-direction: row-reverse;
        transform: rotate(-90deg) !important;
        transform-origin: left;
    }

    .dfc-chip {
        width: 80px !important;
        height: 60px;
        align-items: flex-end;
        justify-content: flex-end;
        align-content: flex-start;
    }

    .intro1,
    .intro2,
    .intro3 img {
        max-width: 20px;
    }

    .dfc-virtual-wrapper {
        /* right: 1em !important; */
        left: calc(50% + 5px) !important;
        right: auto !important;
        top: 0;
        overflow-y: visible;
        overflow-x: visible;
        z-index: 10;
    }

}

@media screen and (min-width: 414px) and (max-width: 430px) {
    .dfc-chip {
        justify-content: flex-start;
    }

    .dfc-virtual-wrapper {
        /* right: 1.2em !important; */
        left: calc(50% + 5px) !important;
        right: auto !important;
        top: -2em;
        z-index: 10;
    }


}