@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700&display=swap');

* {
    margin: 0px;
    padding: 0px;

}
 
#particles-js{ position:absolute; width: 100%; height: 100%;  background-repeat: no-repeat; background-size: cover; background-position: 50% 50%; }

/* .play-summary-button{
    border: none;
    background-color: var(--color-primary);
    padding: 8px;
    color: white;
    border-radius: 8px;
    margin-top: 5px;
  }
  .play-summary-button:hover{
    cursor: pointer;
    background-color: #618a5b;
  } */
   .audioHeaderController{
    display: flex;
    justify-content: space-between;
   }
  #closePlayerButton{
    font-size: 18px;
    margin-bottom: 10px;
    color: crimson;
    background: none;
  }
  #closePlayerButton:hover{
    transform: scale(1.5);
  }
  
  @keyframes slideUp {
    from {
      transform: translate(-50%, 100%);
      opacity: 0;
    }
    to {
      transform: translate(-50%, 0);
      opacity: 1;
    }
  }
  
  .audio-player-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100%); /* Initially off-screen */
    width: 500px;
    background: rgba(255, 255, 255, 0.25); /* Translucent background */
    backdrop-filter: blur(15px); /* Blur effect */
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25); /* Subtle shadow */
    z-index: 1000;
    padding: 20px;
    overflow: hidden;
    opacity: 0; /* Initially hidden */
    animation: slideUp 0.5s ease-out forwards; /* Animation applied */
  }
  
  
  
  .audio-player-header {
    display: flex;
    align-items: flex-start;
  }
  
  .audio-book-thumbnail img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    margin-right: 15px;
    
    /* Subtle glassmorphism effect on thumbnail */
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .audio-book-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }
  
  .audio-book-info h3 {
    margin-top: 0;
    margin-bottom: 10px;
  }
  
  .audio-controls {
    display: flex;
    flex-direction: column;
  }
  
  .audio-progress-container {
    margin-bottom: 10px;
  }
  



  .audio-progress-bar {
    position: relative;
    width: 100%;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    overflow: hidden;
  }
  .audio-progress-bar-stream {
    position: absolute;
    height: 100%;
    width: 0; /* Will be dynamically updated */
    background-color: rgba(200, 200, 200, 0.5); /* Light background for buffered progress */
    border-radius: 5px;
    z-index: 1;
  }
  .audio-progress-bar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: var(--buffer-progress, 0%);
    height: 100%;
    background-color: rgba(14, 174, 87, 0.5);
    z-index: 1;
  }
  
  .audio-progress-bar-fill {
      position: relative;
      height: 100%;
      width: 0;
      background-image: radial-gradient(
          circle farthest-corner at 10% 20%,
          rgba(14, 174, 87, 1) 0%,
          rgba(12, 116, 117, 1) 90%
      );
      border-radius: 5px;
      z-index: 2;
  }
  
  
  .audio-time-info {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
  }
  
  .audio-control-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
  }
  
  .audio-control-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: rgba(12,116,117,1);
  }
  
 
/* Full book audio player CSS */

.full-book-audio-player-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100%); /* Initially off-screen */
  width: 25vw;
  background: rgba(255, 255, 255, 0.25); /* Translucent background */
  backdrop-filter: blur(15px); /* Blur effect */
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25); /* Subtle shadow */
  z-index: 1000;
  padding: 20px;
  overflow: hidden;
  opacity: 0; /* Initially hidden */
  animation: slideUp 0.5s ease-out forwards; /* Animation applied */
}

.full-book-audio-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px;
  z-index: 1000;
}

.player-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.book-thumbnail {
  width: 60px;
  height: 60px;
  object-fit: cover;
  margin-right: 15px;
  border-radius: 5px;
}

.book-info {
  flex-grow: 1;
}

.book-info h3 {
  margin: 0;
  font-size: 16px;
}

#currentPageDisplay {
  font-size: 14px;
  color: #666;
  margin-top: 5px;
}

.close-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.progress-container {
  margin-bottom: 15px;
}

.progress-bar {
  height: 4px;
  background: #eee;
  border-radius: 2px;
  position: relative;
  cursor: pointer;
  margin-bottom: 5px;
}

.progress-bar-fill {
  height: 100%;
  background: #007bff;
  border-radius: 2px;
  width: 0;
}

.time-display {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
}

 
#fullBookSpeedButton {
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 15px;
  background: #f0f0f0;
}



/* Read Now button styling */
.read-now {
    background-color: #243238;
    /* Dark button background */
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.read-now:hover {
    text-decoration: underline;
}

 


@keyframes appear{
    from{
        opacity: 0;
        scale: 0.5;
    }
    to{
        opacity: 1;
        scale: 1;
    }
}

 
 

 
.text-container h2 {
    font-size: 2em;
    line-height: 1.2;
    font-weight: bold;
    text-align: center;
     
}
.rightetext-container {
    margin-left: 5vw;
    color: white;

}
.rightetext-container h2 {
    font-size: 30px;
    line-height: 1.2;
    font-weight: bold;
    text-align: start;
}


 
 /* Define the floating animation */
@keyframes float {
    0% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-10px); /* Adjust the floating distance */
    }
    100% {
      transform: translateY(0);
    }
  }


ul {
    list-style: none;
}

a {
    color: #000;
    text-decoration: none;
}
 
 
 
 

 
 

.loading-indicator {
    font-size: 30px;
    color: #7da279;
    margin-top: 150px;
    display: none;  /* Hidden by default */
    text-align: center;
}

#pageIndicator {
    
    color: white;
    font-family: 'Poppins';
    text-align: center;
    display: block;
    font-weight: bold;
}

 

/* body {
    font-size: 16px;
} */

 

.ads-placeholder {
    padding: 20px;
    background-color: #ffffff;
    border: 1px dashed #999;
    text-align: center;
    font-size: 14px;
    color: #666;
    margin: auto;
    width: 45vw;

}

.ad-placeholder p {
    margin: 0;
}

 
.footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0;
    height: 150px; /* Increased height */
    bottom: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
 
}

.social-icons {
    margin-top: 20px;
}

.social-icon {
    color: #fff;
    font-size: 24px;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: #ddd;
}


 
/*  
/* Media Queries for Responsive Design */
/* @media screen and (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-container {
        margin-bottom: 10px;
        border-radius: 0;
        padding: 10px;
    }

    .nav-items {
        flex-direction: column;
        gap: 10px;
    }

    .nav-items li {
        display: block;
        text-align: center;
    }

    .search-container {
        width: 100%;
    }

    .search-container input[type="text"] {
        width: 100%;
    }
   
  
} */

/* @media screen and (max-width: 480px) {
    .nav-container {
        background-color: transparent;
        padding: 0;
    }

    .nav-items a {
        display: block;
        padding: 10px;
        background-color: #F8DEB5;
        margin-bottom: 5px;
        border-radius: 5px;
    }
}

@media (max-width: 768px) {
    .product-card {
        width: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .product-card {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .image-container,
    .content {
        flex: none;
        width: 100%;
    }

    .image-container {
        margin-bottom: 30px;
    }


    .product-card {
        width: calc(50% - 20px);
    }  
} */

/* Advertisement and Promoted Content Sections */
.advertisement-section,
.promoted-content-section {
    padding: 4rem 0;
    background: #f8fafc;
}

.advertisement-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.promoted-content-section {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.advertisement-content,
.promoted-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.advertisement-card,
.promoted-content-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advertisement-card:hover,
.promoted-content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.advertisement-image,
.promoted-content-image {
    flex: 0 0 300px;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    margin-right: 2rem;
}

.advertisement-image img,
.promoted-content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.advertisement-info,
.promoted-content-info {
    flex: 1;
}

.advertisement-info h3,
.promoted-content-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.advertisement-info p,
.promoted-content-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .advertisement-card,
    .promoted-content-card {
        flex-direction: column;
        text-align: center;
    }
    
    .advertisement-image,
    .promoted-content-image {
        flex: none;
        width: 100%;
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
    
    .advertisement-info h3,
    .promoted-content-info h3 {
        font-size: 1.5rem;
    }
    
    .advertisement-info p,
    .promoted-content-info p {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}