.pdfev-embed-viewer{
    max-width:1300px;
    width: 100% ;
    margin: 0 auto;
    padding: 10px;
    .header{
        display: flex;
        justify-content: space-between;
        align-items: start;
        flex-direction: column;
        @media (min-width: 768px) {
            justify-content: space-between;
            flex-direction: row;
            align-items: center;
        }
        .action{
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            width: 100%;
            @media (min-width: 768px) {
                justify-content: end;
                align-items: center;
                width: auto;
            }
        }
    }
    a{
        text-decoration: none;
        color: var(--pdfev-primary);
        font-weight: bold;
        cursor: pointer;
        &:hover{
            color: var(--pdfev-secondary);
        }
    }
    h1{
        color:var(--pdfev-dark); ;
    }
    .button{
        background: var(--pdfev-primary);
        padding: 0.1em 0.5em;
        border-radius: .25em;
        color: var(--pdfev-white);
        font-weight: normal;
        text-decoration: none;
        font-size: 14px;
        border: 0;
    }
    .btn{
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        gap:5px;
    }
    .pdfev-load-more-wrap{
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 20px;
        width: 100%;
    }
    .pdfev-load-more-button{
        padding: 5px 10px;
    }
    .toggle-button{
        a{
            background:none;
            border: 1px solid var(--pdfev-primary);
            padding:5px 10px;
            border-radius: .25em;
            color: var(--pdfev-primary);
            font-weight: normal;
            text-decoration: none;
            &.active{
                background: var(--pdfev-primary);
                color: var(--pdfev-white);
            }
        }
    }
    // preloader
    .pdfev-preloader {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 200px;
      
        .book-frame {
          width: 60px;
          height: 50px;
          position: relative;
          border: 1px solid #dfdfdf;
          border-radius: 4px;
          background: transparent;
          perspective: 400px;
          box-shadow: 0 0 1px rgba(0,0,0,0.1);
      
          .left-page,
          .right-page {
            width: 50%;
            height: 100%;
            background: #f4f4f4;
            position: absolute;
            top: 0;
          }
      
          .left-page {
            left: 0;
            border-right: 1px solid #ccc;
          }
      
          .right-page {
            right: 0;
            border-left: 1px solid #ccc;
          }
      
          .flipping-page {
            width: 50%;
            height: 100%;
            background: #fff;
            border-left: 1px solid #ccc;
            position: absolute;
            top: 0;
            right: 0;
            transform-origin: left center;
            box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
            animation: flipbook-flip 1.5s ease-in-out infinite;
          }
      
          .page-2 {
            animation-delay: 0.3s;
          }
      
          .page-3 {
            animation-delay: 0.6s;
          }
        }
    }
    @keyframes flipbook-flip {
    0% {
        transform: rotateY(0deg);
        opacity: 1;
    }
    50% {
        transform: rotateY(-150deg);
        opacity: 1;
    }
    100% {
        transform: rotateY(-180deg);
        opacity: 0;
    }
    }
    
    .download-btn{
        @extend .button;
        justify-content: space-evenly;
        align-items: center;
        width: auto;
        text-align: center;
        box-sizing: border-box;
        gap: 5px;
        color: var(--pdfev-white);
        background-color: var(--pdfev-secondary);
        &:hover{
            color: var(--pdfev-white);
            background-color: var(--pdfev-secondary);
            text-decoration: none;
            opacity: 0.9;
        }
    }
    .read-btn{
        @extend .button;
        width: auto;
        text-align: center;
        box-sizing: border-box;
        color: var(--pdfev-white);
        background-color: var(--pdfev-primary);
        &:hover{
            color: var(--pdfev-white);
            background-color: var(--pdfev-primary);
            text-decoration: none;
            opacity: 0.9;
        }
    }
    .pdf-viewer{
        margin: .5em 0;
        width: 100%;
        height: 1024px;
    }
    .pdfev-3dbook-container {
        box-sizing: border-box;
        padding-top: min(60%, 80vh);
        position: relative;
        background-color: var(--pdfev-light);
        margin-bottom: 25px;
        border: 1px solid var(--pdfev-secondary);
        .pdfev-3dbook-viewer{
          left: 0;
          top: 0;
          position: absolute;
          height: 100%;
          width: 100%;
        }
    }
    .navigation{
        display: flex;
        justify-content: space-between; 
    }
    .pagination {
        display: flex;
        justify-content: start;
        gap: 10px;
        margin: 10px 0;
        border-bottom: 1px solid var(--pdfev-secondary);
        @media (min-width: 768px) {
            justify-content: start;
        }
        .page-numbers{
            display: inline-block;
            padding: 5px 10px;
            border: 1px solid var(--pdfev-secondary);
            &.current{
                background-color: var(--pdfev-primary);
                color: var(--pdfev-white);
            }
        }
    }
    .toggle-button{
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 10px;
        gap: 5px    ;
    }
    
}

.pdfev-embed-viewer-shortcode{
    max-width: auto;
    margin: 0 auto;
    width: 100%;
    .download-btn{
        @extend .button;
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
        gap: 4.2px;
        color: var(--pdfev-white);
        text-decoration: none;
        &:hover{
            color: var(--pdfev-primary);
            background-color: var(--pdfev-secondary);
            text-decoration: none;
        }
    }
    .pdf-viewer{
        margin: .5em 0;
        width: 100%;
        height: 1024px;
    }
}

.pdfev-archive-author{
    font-size:  0.75rem;
}
.pdfev-archive-description p{
    font-size: 12px;
    margin:5px 0;
    color: color-mix(in oklab, rgb(161, 161, 161));
}
.pdfev-archive-meta{
    font-size: 12px;
     margin:5px 0;
}
/*==================footer pagination================*/


