@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;600;700&display=swap');

/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lora', serif;
  background-color: #f5f5f5;
}

.full-width-bg {
  background-color: #000;
  color: #fff;
  width: 100%;
  padding: 20px 0;
  display: flex;
}

.container {
  width: 91%;
  margin: 0 auto;
}

.header {
  display: flex;
  justify-content: flex-start;
  padding-bottom: 10px;
}

.logo img {
  max-width: 150px;
  margin-bottom: 20px;
}

.horizontal-line {
  border: none;
  border-bottom: 2px solid #fff;
  margin: 20px 0;
  margin-left: auto;
  margin-right: auto;
}

.author hr {
  border: none;
  margin-left: auto;
  margin-right: auto;
  margin: 20px 0;
}
.bold-right-align {
  font-weight: bold;
  text-align: right;
}
.full-width-line {
  position: absolute;
  left: 0;
  right: 0;
  border: none;
  border-bottom: 2px solid #fff;
  margin: 40px 0;
  z-index: 1;
}

.subtitle {
  text-align: center;
  font-size: 30px;
}

.content h1 {
  font-size: 120px;
  text-align: center;
  margin: 20px 0;
  font-family: 'Lora', serif;
  font-weight: 200;
  font-weight: bolder;
}

.columns {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.column {
  width: 27%;
  text-align: justify;
}

.column p {
  font-size: 1.2rem;
  line-height: 1.7;
}

.AutoretLine {
  text-align: left;
  font-size: 2rem;
  font-weight: 600;
  margin-top: 40px;
  width: 100%;
  background-color: #000;
}

.AutoretLine p {
  color: white;
  padding-top: 20px;
  font-size: 2rem;
}

.AudioBooksLine{
  text-align: left;
  font-size: 2rem;
  font-weight: 600;
  margin-top: 40px;
  width: 100%;
  background-color: #000;
}

.AudioBooksLine p {
  color: white;
  padding-top: 20px;
  padding-bottom: 20px;
  padding-left: 4rem;
}

/* Media Queries */

/* Tablet screens */
@media (max-width: 768px) {
  .full-width-bg {
    padding: 15px 0;
  }

  .logo img {
    max-width: 200px; 
    margin-top: 30px; 
    margin-left: 20px; 
  }
  .container {
    width: 95%;
  }

  .subtitle {
    font-size: 35px;
  }

  .content h1 {
    font-size: 3rem;
  }

  .columns {
    flex-direction: column;
    align-items: center;
  }

  .column {
    width: 80%;
    max-width: 100%;
  }

  .column p{
    margin-bottom: 20px;
    font-size: 15px;
    padding-left: 1rem;
    padding-right: 1rem;
    word-spacing: normal;
  }

  .AutoretLine, .AudioBooksLine {
    padding: 13px 2rem;
    font-size: 25px;
}

.AudioBooksLine p {
    padding-left: 1rem; 
    font-size: 30px;
}

}

@media (max-width: 480px) {
  .full-width-bg {
    padding: 10px 0;
  }

  .logo img {
    max-width: 200px; 
    margin-top: 30px; 
    margin-left: 20px; 
  }
  
  .column p{
    margin-bottom: 20px;
    font-size: 15px;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .subtitle {
    font-size: 35px;
  }

  .content h1 {
    font-size: 2.5rem;
  }

  .column {
    width: 100%;
  }

  .AutoretLine, .AudioBooksLine {
    font-size: 25px;
    padding: 10px 1rem;
  }

  .AudioBooksLine p {
    padding-left: 1rem;
    font-size: 30px;
  }

  .horizontal-line,
  .author hr {
    width: 90%;
  }

}

/* Author Section */
.authors-section {
  padding-left: 3rem;
  padding-right: 3rem;
  padding-top: 1rem;
  background-color: #f5f5f5;
}

.authors-section h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.authors-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.author {
  display: flex;
  align-items: stretch; 
}

.author-image {
  flex: 0 0 120px;
  text-align: center;
  padding-left: 2rem;
  display: flex; 
  justify-content: center; 
}

.author-image img {
  width: 600px;
  height: auto; 
  max-height: 100%; 
  object-fit: cover; 
}

.author-left {
  flex: 1;
  text-align: left;
  padding-right: 20px;
}


.author-name {
  font-size: 3.5rem;
  font-weight: lighter;
  text-align: left;
  margin-left: 0.6rem;
}

.author-right {
  flex: 1;
  text-align: left;
  padding-left: 20px;
}

.author-left p,
.author-right p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-left: 1rem;
}

.justify{
  text-align: justify;
}

.author-name-audiobook{
  text-align: right; 
  display: block;
  font-weight: 900;
}


/* Media Queries */

/* Tablet screens */
@media (max-width: 768px) {
  .authors-section {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .author {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .author-left, .author-right {
    padding: 0;
  }

  .author-image {
    padding-left: 0;
    margin-bottom: 1rem;
    width: 100%; 
    text-align: center; 
  }

  .author-image img {
    width: 100%; 
    height: auto; 
    max-width: 100%; 
    object-fit: cover;
  }

  .author-name {
    font-size: 2.5rem;
    margin: 0;
  }

  .authors-section h2 {
    font-size: 1.75rem;
  }

  .author-left p, .author-right p {
    margin-left: 0;
    font-size: 15px;
  }
}

/* Mobile screens */
@media (max-width: 480px) {
  .authors-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .author-name {
    font-size: 2rem;
  }

  .author-image {
    width: 100%; 
  }

  .author-image img {
    width: 100%; 
    height: auto; 
    object-fit: cover;
  }

  .authors-section h2 {
    font-size: 1.5rem;
  }

  .author-left p, .author-right p {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 25px;
  }
}
/* Audiobook Section */


.audiobooks-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 30px 0;
  background-color: #f5f5f5;
  font-family: 'Lora', serif;
}

.audiobook-container {  position: relative;
  width: 100%;
  text-align: center;
  margin-bottom: 2.8rem;
  margin-top: 2.8rem;
  
}

.image-container img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;   box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.audiobook-container p {
  font-family: 'Lora', serif;
  color: #0c0d0d;
  font-weight: 900;
  margin-top: 30px;
  font-size: 2.2rem;
  margin-bottom: 30px;
  letter-spacing: 1px;
  padding: 10px 20px;
  border-radius: 5px;
  transition: color 0.3s ease-in-out, transform 0.2s ease;
}

.image-container img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 1s ease, box-shadow 1s ease;
}

.flipped-text:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.audio-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.icon-btn {
  border: none; 
  background: transparent; 
  padding: 10px; 
  cursor: pointer;
  font-size: 30px; 
  margin-top: 3rem;
}

.icon-btn:hover {
  color: #333333;
  opacity: 0.7; 
}


.flipped-text {
  position: relative;
 max-width: 100%;
  height: 100%;
  box-sizing: border-box;
  overflow-y: auto; 
  padding: 20px;
  color: black;
  line-height: 1.6;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  transition: opacity 0.6s ease;
  text-align: center;
}

.text-container {
  line-height: 1.8;
  color: #000;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
  font-size: 1.4rem;
  
}


.text-container p {
  margin-bottom: 20px;
  text-transform: none; 
}


.image-container {
  position: relative;
  height: 650px;  
  display: inline-block;
  width: 1500px; 
  height: 650px; 
  display:inline-block; 
  border-collapse:collapse; 
  background-color: #FFF;width: 80%; 
  max-width: 1500px;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;  
  transition: transform 0.5s ease;  
}

.image-container .mycorner {
  width: 0;
  height: 0;
  border-top: transparent 0 solid; 
  border-left: transparent 0 solid; 
  position: absolute;
  top: 0;  
  right: 0; 
  transition: border-top 1s ease, border-left 1s ease;
  border-radius: 15px;  
}

.image-container:hover .mycorner {
  border-top: #f5f5f5 200px solid;  
  border-left: #CCC 225px solid;   
  top: -20px;  
  right: -35px; 
}

.progress-bar {
  width: 50%;
  height: 10px;
  border-radius: 4px;
  background-color: #333;
  position: absolute; 
  bottom: -50px; 
  left: 50%;
  transform: translateX(-50%); 
}

.time-container {
  font-family: 'Lora', serif;
  font-size: 16px;
  color: #333;
  width: 50%;
  margin-left: auto;
  margin-right: auto;
  display: flex; 
  justify-content: space-between; 
  position: absolute; 
  bottom: -80px; 
  left: 50%;
  transform: translateX(-50%);
  z-index: 3; 
}


.time-container span {
  font-weight: bold;
}

.current-time {
  text-align: left;
}

.remaining-time {
  text-align: right;
}

.time-container span {
  font-weight: bold;
  font-family: 'Lora', serif;
}


/* Tablet screens (768px and below) */
@media (max-width: 768px) {
  

  .image-container .mycorner {
    visibility: hidden;
  }

  .image-container:hover .mycorner {
    visibility: hidden;
  }
  
  .audiobooks-section {
    padding: 20px 10px; 
    
  }

  .audiobook-container {
    margin-bottom: 2rem;
    margin-top: 2rem;
  }


  .image-container {
    width: 100%; 
    height: 350px; 
    box-sizing: border-box;
  }

  .image-container img {
    object-fit: cover; 
    border-radius: 8px; 
    transition: opacity 0.4s ease;
    width: 100%; 
    height: 100%; 
    transition: opacity 1.5s cubic-bezier(0.25, 0.8, 0.25, 1), transform 1.5s cubic-bezier(0.25, 0.8, 0.25, 1); /* Use cubic-bezier for smooth easing */
  }


  .audiobook-container p {
    font-size: 19px; 
    margin: 20px 0;
  }

  .audio-controls {
    display: flex; 
    flex-direction: row; 
    justify-content: center; 
    align-items: center;
    gap: 8px; 
  }

  .icon-btn {
    margin-top: 75px;
    font-size: 17px;
    color: #000;
  }

  .flipped-text {
    overflow-y: auto; 
    font-size: 15px;
    padding-top: 5px;
    padding-bottom: 5px;
    text-align: justify;
    width: 100%; 
    height: 350px; 
    box-sizing: border-box;  
    position: absolute; 
    transition: opacity 1.5s cubic-bezier(0.25, 0.8, 0.25, 1), transform 1.5s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0s 1.5s; /* Adding a visibility delay */

  }

  .text-container {
    font-size: 15px;
    padding-top: 5px; 
    padding-bottom: 5px; 
    padding-left: 15px;  
    padding-right: 15px; 
    text-align: justify; 
    width: 100%; 
    height: 350px; 
    box-sizing: border-box; 
  }

  .image-container:active img {
    opacity: 0;  
  }

  .image-container:active ~ .text-container {
    opacity: 1; 
    visibility: visible;
    transform: scale(1); 
  }
  
  .author-name-audiobook{
    font-size: 15px; 
  }

  .text-container-title{
    text-align: center;
  }
  .progress-bar {
    width: 70%;
    height: 10px;
    border-radius: 4px;
    background-color: #333;
    position: absolute; 
    bottom: -50px; 
    left: 50%;
    transform: translateX(-50%); 
  }
  
  .time-container {
    font-family: 'Lora', serif;
    font-size: 12px;
    color: #333;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    display: flex; 
    justify-content: space-between; 
    position: absolute; 
    bottom: -80px; 
    left: 50%;
    transform: translateX(-50%); 
    z-index: 3; 
  }
  
  
  .time-container span {
    font-weight: bold;
  }
  
  .current-time {
    text-align: left;
  }
  
  .remaining-time {
    text-align: right;
  }
  
  .time-container span {
    font-weight: bold;
    font-family: 'Lora', serif;
  }
  

}
/* Mobile screens (480px and below) */
@media (max-width: 480px) {
  .audiobooks-section {
    padding: 15px 5px; 
  }
  
  .flipped-text.visible {
    opacity: 1;
    transform: translateY(0); 
  }
  
  .audiobook-container {
    margin-bottom: 1.5rem;
    margin-top: 1.5rem; 
     position: relative;
  }


  .image-container {
    width: 100%; 
    height: 350px; 
    box-sizing: border-box;
  }

  .image-container img {
    object-fit: cover; 
    border-radius: 8px; 
    transition: opacity 0.4s ease;
    width: 100%; 
    height: 100%; 
    transition: opacity 1.5s cubic-bezier(0.25, 0.8, 0.25, 1), transform 1.5s cubic-bezier(0.25, 0.8, 0.25, 1); /* Use cubic-bezier for smooth easing */
  }

  .audiobook-container p {
    font-size: 19px; 
    letter-spacing: 0.5px; 
    margin: 15px 0;
    padding: 5px 10px; 
  }

  .audio-controls {
    display: flex; 
    flex-direction: row; 
    justify-content: center; 
    align-items: center; 
    gap: 10px; 
  }

  .icon-btn {
    margin-top: 75px;
    font-size: 15px; 
    color: #000;
  }

  .flipped-text {
    overflow-y: auto; 
    font-size: 15px;
    padding-top: 5px;
    padding-bottom: 5px;
    text-align: justify;
    width: 100%; 
    height: 350px; 
    box-sizing: border-box;  
    position: absolute; 
    transition: opacity 1.5s cubic-bezier(0.25, 0.8, 0.25, 1), transform 1.5s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0s 1.5s; /* Adding a visibility delay */

  }

  .text-container {
    font-size: 15px;
    padding-top: 5px; 
    padding-bottom: 5px; 
    padding-left: 15px;  
    padding-right: 15px; 
    text-align: justify; 
    width: 100%; 
    height: 350px; 
    box-sizing: border-box; 
  }

  .image-container:active img {
    opacity: 0;  
  }

  .image-container:active ~ .text-container {
    opacity: 1; 
    visibility: visible;
    transform: scale(1); 
  }
  .text-container-title{
    text-align: center;
  }
  .image-container .mycorner {
    visibility: hidden;
  }

  .image-container:hover .mycorner {
    visibility: hidden;
  }
  
  .text-container{
    font-size: 15px;
  }

  .progress-bar {
    width: 70%;
    height: 10px;
    border-radius: 4px;
    background-color: #333;
    position: absolute; 
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%); 
  }
  
  .time-container {
    font-family: 'Lora', serif;
    font-size: 12px;
    color: #333;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    display: flex; 
    justify-content: space-between; 
    position: absolute; 
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%); 
    z-index: 3; 
  }
  
  
  .time-container span {
    font-weight: bold;
  }
  
  .current-time {
    text-align: left;
  }
  
  .remaining-time {
    text-align: right;
  }
  
  .time-container span {
    font-weight: bold;
    font-family: 'Lora', serif;
  }
}

/* Footer */
footer {
  background-color: #ffffff;
  text-align: center;
  padding: 20px;
}

.footer-container {
  max-width: 1000px;
  margin: 0 auto;
}

.logo-container {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-bottom: 20px;
}

.logo {
  max-height: 120px;
}

.footer-text {
  color: #333333;
  margin: 40px 0;
  max-width: 800px; 
  margin: 0 auto; 
  padding-top: 20px;
  padding-bottom: 20px;
  line-height: 1.3; 
  font-size: 1.3rem;
}

.social-icons {
  margin-top: 10px;
}

.social-icons a {
  margin: 0 30px;
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease; 
}

.social-icons a:hover {
  transform: scale(1.2); 
  color: #007BFF; 
}

.social-icons a:active {
  transform: scale(0.95); 
  color: #333333; 
}

.social-icons img {
  width: 35px;
  height: 35px;
}


/* Media Queries */

/* Tablet screens */
@media (max-width: 768px) {
  .footer-container {
    max-width: 90%;
    padding: 15px;
  }

  .logo-container {
    gap: 20px;
  }

  .logo-container img {
    max-height: 70px; 
    width: auto;
  }

  .footer-text {
    font-size: 15px;
    padding-top: 15px;
    padding-bottom: 15px;
    max-width: 90%;
    margin: 0 auto;
  }

  .social-icons img {
    width: 30px;
    height: 30px;
  }
}
/* Mobile screens */
@media (max-width: 480px) {
  .footer-container {
    padding: 10px;
  }

  .logo-container {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .logo-container img {
    max-height: 50px; 
    width: auto;
  }
.three-columns {
    column-count: 3;
    column-gap: 20px;
    padding: 20px;
    font-family: 'Lora', serif;
    font-size: 16px;
    line-height: 1.6;
}
  .footer-text {
    font-size: 15px;
    padding-top: 10px;
    padding-bottom: 10px;
    max-width: 90%; 
    margin: 0 auto;
    line-height: 1.4;
  }

  .social-icons {
    gap: 8px;
    padding-top: 10px;
  }

  .social-icons img {
    width: 25px;
    height: 25px;
  }
}