.book{
    position: relative;
  }
  /* Book Frame */
  .book-frame {
    width: 80%;
    height: 90vh;
    margin: 50px auto;
    background-color: #ffffff; /* Light brown background for the book */
    position: relative;
    border-image: linear-gradient(to right, #466d54 0%, #0f3e46 100%) 1;
    border-width: 10px;
    border-style: solid;
    padding: 10px; /* Outer book frame */
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3); /* Book shadow */
    border-radius: 10px; /* Rounded corners */
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* Book Page */
  .book-page {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden; /* Hide overflow during flips */
  }
  
  #section-book {
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain; /* Ensures the full image is visible */
    width: 50%; /* Each page takes half of the container */
    height: 100%;
    transition: transform 0.8s ease-in-out; /* Flip animation */
    transform-style: preserve-3d;
    backface-visibility: hidden; /* Hide the back of the pages */
  }
  
  /* Left and right page */
  .left-page {
    position: absolute;
    left: 0;
    transform-origin: right center; /* Origin for the flip effect */
    z-index: 2;
  }
  
  .right-page {
    position: absolute;
    right: 0;
    transform-origin: left center; /* Origin for the flip effect */
    z-index: 1;
  }
  
  /* Book Spine (The middle part of the book) */
  .book-spine {
    width: 20px;
    height: 100%;
    background-color: #0d3c45; /* Spine color */
    position: absolute;
    left: 50%;
    transform: translateX(-50%); /* Center the spine */
    z-index: 3;
    box-shadow: -5px 0 5px rgba(0, 0, 0, 0.1), 5px 0 5px rgba(0, 0, 0, 0.1); /* Give depth to the spine */
  }
  
  /* Page flipping */
  .flipping-left {
    transform: rotateY(-180deg); /* Flip animation for left page */
  }
  
  .flipping-right {
    transform: rotateY(180deg); /* Flip animation for right page */
  }
  
  /* Background images for each page */
  .left-page, .right-page {
    background-color: #fff; /* Fallback for pages */
  }
  
  .page1-left {
    background-image: url('../images/pdf/3.png');
  }
  
  .page1-right {
    background-image: url('../images/pdf/4.png');
  }
  
  .page2-left {
    background-image: url('../images/pdf/5.png');
  }
  
  .page2-right {
    background-image: url('../images/pdf/6.png');
  }
  
  .page3-left {
    background-image: url('../images/pdf/7.png');
  }
  
  .page3-right {
    background-image: url('../images/pdf/8.png');
  }
  
  /* Controls */
  .controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
  }
  
  .controls button {
    padding: 10px 20px;
    font-size: 16px;
    margin: 0 10px;
    cursor: pointer;
    background-color: #0e3c45b5;
    color: white;
    border: none;
    border-radius: 5px;
  }
  
  button:hover {
    background-color: #154247;
  }
  
  /* Responsive: Only show one page on smaller screens */
@media (max-width: 768px) {
  .book-page {
    flex-direction: column;
  }

  section {
    width: 100%; /* Display only one image at a time */
    position: relative;
  }

  .book-spine {
    display: none; /* Hide the spine on small screens */
  }

  .left-page, .right-page {
    position: relative;
  }

  .right-page {
    transform-origin: center;
  }

  .left-page {
    transform-origin: center;
  }
}