


.ebooks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 50px;
    max-width: 1300px;
    margin: 0 auto;
    background-color: #f8f9fc;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.ebook-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.ebook-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.ebook-item img {
    width: 100%;
    height: auto;
    border-bottom: 3px solid #ddd;
    transition: transform 0.4s ease;
}

.ebook-item:hover img {
    transform: scale(1.05);
}

.ebook-item h3 {
    font-size: 1.4rem;
    margin: 20px 0 10px;
    color: #333;
    font-weight: 600;
    transition: color 0.3s ease;
}

.ebook-item:hover h3 {
    color: #0073e6;
}

.ebook-item p {
    font-size: 1rem;
    color: #777;
    padding: 0 20px 20px;
    line-height: 1.6;
}

.ebook-item a {
    text-decoration: none;
    color: inherit;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ebooks-grid {
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .ebooks-grid {
        padding: 30px;
    }

    .ebook-item h3 {
        font-size: 1.2rem;
    }

    .ebook-item p {
        font-size: 0.9rem;
    }
}

.single-ebook-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.single-ebook-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.single-ebook-header img {
    width: 150px;
    height: 200px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.single-ebook-content {
    flex-grow: 1;
}

.single-ebook-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
}

.single-ebook-description {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.epub-reader {
    width: 100%;
    height: 600px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.thumbnails-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* Basic Styling for the Single eBook Page */
.single-ebook-container {
    margin: 0 auto;
    padding: 30px;
    max-width: 1200px;
    background-color: #f4f4f4;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.single-ebook-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.single-ebook-header img {
    max-width: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.single-ebook-content {
    flex: 1;
    padding-left: 20px;
}

.single-ebook-title {
    font-size: 2.5rem;
    color: #333;
    margin: 0;
}

.single-ebook-description {
    font-size: 1.2rem;
    color: #666;
    margin-top: 10px;
}

.epub-reader {
    margin-top: 20px;
    height: 600px;
    overflow: hidden;
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 8px;
}

.thumbnails-container {
    margin-top: 40px;
    text-align: center;
}

.thumbnails-container img {
    width: 80px;
    height: 80px;
    margin: 0 10px;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.thumbnails-container img:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .single-ebook-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .single-ebook-header img {
        max-width: 150px;
        margin-bottom: 20px;
    }

    .single-ebook-container {
        padding: 20px;
    }
}

/* 
body {
    margin: 0;
    background: #fafafa;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #333;
  
    position: absolute;
    height: 100%;
    width: 100%;
    min-height: 800px;
  } */
  
  #title {
    width: 900px;
    min-height: 18px;
    margin: 10px auto;
    text-align: center;
    font-size: 16px;
    color: #E2E2E2;
    font-weight: 400;
  }
  
  #title:hover {
    color: #777;
  }
  
  #viewer.spreads {
    width: 900px;
    height: 600px;
    box-shadow: 0 0 4px #ccc;
    border-radius: 5px;
    padding: 0;
    position: relative;
    margin: 10px auto;
    background: white url('ajax-loader.gif') center center no-repeat;
  }
  
  #viewer.spreads .epub-view > iframe {
      background: white;
  }
  
  #viewer.scrolled {
    overflow: hidden;
    width: 800px;
    margin: 0 auto;
    position: relative;
    background: url('ajax-loader.gif') center center no-repeat;
  
  }
  
  #viewer.scrolled .epub-container {
    background: white;
    box-shadow: 0 0 4px #ccc;
    margin: 10px;
    padding: 20px;
  }
  
  #viewer.scrolled .epub-view > iframe {
      background: white;
  }
  
  #prev {
    left: 0;
  }
  
  #next {
    right: 0;
  }
  
  #toc {
    display: block;
    margin: 10px auto;
  }
  
  @media (min-width: 1000px) {
    #viewer.spreads:after {
      position: absolute;
      width: 1px;
      border-right: 1px #000 solid;
      height: 90%;
      z-index: 1;
      left: 50%;
      margin-left: -1px;
      top: 5%;
      opacity: .15;
      box-shadow: -2px 0 15px rgba(0, 0, 0, 1);
      content:  "";
    }
  
    #viewer.spreads.single:after {
      display: none;
    }
  
    #prev {
      left: 40px;
    }
  
    #next {
      right: 40px;
    }
  }
  
  .arrow {
    position: fixed;
    top: 50%;
    margin-top: -32px;
    font-size: 64px;
    color: #E2E2E2;
    font-family: arial, sans-serif;
    font-weight: bold;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    text-decoration: none;
  }
  
  .navlink {
    margin: 14px;
    display: block;
    text-align: center;
    text-decoration: none;
    color: #ccc;
  }
  
  .arrow:hover, .navlink:hover {
    color: #777;
  }
  
  .arrow:active, .navlink:hover {
    color: #000;
  }
  
  #book-wrapper {
    width: 480px;
    height: 640px;
    overflow: hidden;
    border: 1px solid #ccc;
    margin: 28px auto;
    background: #fff;
    border-radius: 0 5px 5px 0;
    position: absolute;
  }
  
  #book-viewer {
    width: 480px;
    height: 660px;
    margin: -30px auto;
    -moz-box-shadow:      inset 10px 0 20px rgba(0,0,0,.1);
    -webkit-box-shadow:   inset 10px 0 20px rgba(0,0,0,.1);
    box-shadow:           inset 10px 0 20px rgba(0,0,0,.1);
  }
  
  #book-viewer iframe {
    padding: 40px 40px;
  }
  
  #controls {
    position: absolute;
    bottom: 16px;
    left: 50%;
    width: 400px;
    margin-left: -200px;
    text-align: center;
    display: none;
  }
  
  #controls > input[type=range] {
      width: 400px;
  }
  
  #navigation {
    width: 400px;
    height: 100vh;
    position: absolute;
    overflow: auto;
    top: 0;
    left: 0;
    background: #777;
    -webkit-transition: -webkit-transform .25s ease-out;
    -moz-transition: -moz-transform .25s ease-out;
    -ms-transition: -moz-transform .25s ease-out;
    transition: transform .25s ease-out;
  
  }
  
  #navigation.fixed {
    position: fixed;
  }
  
  #navigation h1 {
    width: 200px;
    font-size: 16px;
    font-weight: normal;
    color: #fff;
    margin-bottom: 10px;
  }
  
  #navigation h2 {
    font-size: 14px;
    font-weight: normal;
    color: #B0B0B0;
    margin-bottom: 20px;
  }
  
  #navigation ul {
    padding-left: 36px;
    margin-left: 0;
    margin-top: 12px;
    margin-bottom: 12px;
    width: 340px;
  }
  
  #navigation ul li {
    list-style: decimal;
    margin-bottom: 10px;
    color: #cccddd;
    font-size: 12px;
    padding-left: 0;
    margin-left: 0;
  }
  
  #navigation ul li a {
    color: #ccc;
    text-decoration: none;
  }
  
  #navigation ul li a:hover {
    color: #fff;
    text-decoration: underline;
  }
  
  #navigation ul li a.active {
    color: #fff;
  }
  
  #navigation #cover {
    display: block;
    margin: 24px auto;
  }
  
  #navigation #closer {
    position: absolute;
    top: 0;
    right: 0;
    padding: 12px;
    color: #cccddd;
    width: 24px;
  }
  
  #navigation.closed {
    -webkit-transform: translate(-400px, 0);
    -moz-transform: translate(-400px, 0);
    -ms-transform: translate(-400px, 0);
  }
  
  svg {
    display: block;
  }
  
  .close-x {
    stroke: #cccddd;
    fill: transparent;
    stroke-linecap: round;
    stroke-width: 5;
  }
  
  .close-x:hover {
    stroke: #fff;
  }
  
  #opener {
    position: absolute;
    top: 0;
    left: 0;
    padding: 10px;
    stroke: #E2E2E2;
    fill: #E2E2E2;
  
  }
  
  #opener:hover {
    stroke: #777;
    fill: #777;
  }
  .login-msg{
    color: #2596be !important;
  }
  .login-link{
    color: blue !important;
  }