/* IO-Link Product Catalog Section Styles */
.u-section-io-link {
    background-image: none;
    padding-top: 40px;
    padding-bottom: 60px;
  }
  
  .u-section-io-link .u-sheet-1 {
    min-height: 800px;
  }
  
  .u-section-io-link .u-text-1 {
    --animation-custom_in-translate_x: 0px;
    --animation-custom_in-translate_y: 0px;
    --animation-custom_in-opacity: 0;
    --animation-custom_in-rotate: 0deg;
    --animation-custom_in-scale: 0.3;
    animation-timing-function: ease-in-out;
    font-size: 2.8rem;
    margin: 20px auto 0;
  }
  
  .u-section-io-link .u-text-2 {
    width: 719px;
    animation-timing-function: ease-in-out;
    --animation-custom_in-translate_x: 0px;
    --animation-custom_in-translate_y: 0px;
    --animation-custom_in-opacity: 0;
    --animation-custom_in-rotate: 0deg;
    --animation-custom_in-scale: 1;
    margin: 20px auto 0;
  }
  
  .u-section-io-link .u-btn-1 {
    background-image: none;
    border-style: solid;
    font-weight: 700;
    text-transform: uppercase;
    --radius: 15px;
    font-size: 1rem;
    --animation-custom_in-translate_x: 0px;
    --animation-custom_in-translate_y: 0px;
    --animation-custom_in-opacity: 0;
    --animation-custom_in-rotate: 0deg;
    --animation-custom_in-scale: 0.3;
    letter-spacing: 1px;
    margin: 30px auto 0;
    padding: 17px 53px 19px 51px;
  }
  
#flipbook-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
/* white background behind each page so text never blends */
canvas {
  background-color: white;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
}
  
#canvas-container {
  position: relative;
  height: 800px;           /* make it taller */
  background: #fff;
  overflow: hidden;
}

#pdf-canvas-left,
#pdf-canvas-right {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

  
 #pdf-canvas {
  display: block;
  margin: 0 auto;
  width: 300px;
  height: 300px;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
}
  
 #image-canvas {
  background: white;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  padding: 10px;
}

#catalog-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.flipbook-controls {
  color: #fff; 
  margin-top: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.flipbook-btn {
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.flipbook-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

#page-current {
  font-weight: bold;
}
  
  /* Page corners for flipping effect */
  .page-corner {
    position: absolute;
    width: 40px;
    height: 40px;
    z-index: 10;
    cursor: pointer;
  }
  
  .page-corner-tr {
    top: 0;
    right: 0;
    border-top: 40px solid #ddd;
    border-left: 40px solid transparent;
  }
  
  .page-corner-br {
    bottom: 0;
    right: 0;
    border-bottom: 40px solid #ddd;
    border-left: 40px solid transparent;
  }
  
  .page-corner-tl {
    top: 0;
    left: 0;
    border-top: 40px solid #ddd;
    border-right: 40px solid transparent;
  }
  
  .page-corner-bl {
    bottom: 0;
    left: 0;
    border-bottom: 40px solid #ddd;
    border-right: 40px solid transparent;
  }
  
  .page-corner:hover {
    opacity: 0.8;
  }
  
  /* Loading indicator */
  .loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 30;
  }
  
  .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
  }

 
/* Add to your existing CSS */
#flipbook-container {
  perspective: 1000px;
}
#catalog-image {
  display: block;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition: transform 0.5s;
}


  
  @keyframes pageFlipRight {
  0%   { transform: rotateY(0deg);   transform-origin: left; }
  100% { transform: rotateY(-180deg); transform-origin: left; }
}

@keyframes pageFlipLeft {
  0%   { transform: rotateY(0deg);    transform-origin: right; }
  100% { transform: rotateY(180deg);  transform-origin: right; }
}

.flip-right {
  animation: pageFlipRight 0.5s forwards;
}
.flip-left {
  animation: pageFlipLeft  0.5s forwards;
}

  
  /* Responsive styles */
  @media (max-width: 991px) {
    .u-section-io-link .u-text-1 {
      font-size: 2.5rem;
    }
    
    .u-section-io-link .u-text-2 {
      width: auto;
      margin-left: 20px;
      margin-right: 20px;
    }
    
    .flipbook-container {
      height: 500px;
    }
  }
  
  @media (max-width: 767px) {
    .u-section-io-link .u-text-1 {
      font-size: 2rem;
    }
    
    .u-section-io-link .u-text-2 {
      font-size: 0.9rem;
    }
    
    .u-section-io-link .u-btn-1 {
      font-size: 0.9rem;
      padding: 15px 40px;
    }
    
    .flipbook-container {
      height: 400px;
    }
  }
  
  @media (max-width: 575px) {
    .u-section-io-link .u-text-1 {
      font-size: 1.8rem;
    }
    
    .flipbook-container {
      height: 350px;
    }
    
    .flipbook-controls {
      gap: 10px;
    }
    
    .flipbook-btn {
      width: 35px;
      height: 35px;
      font-size: 16px;
    }
  }