rentPage = 1;
      let totalPages = Math.ceil(cards.length / cardsPerPage);
  
      function showPage(page) {
        cards.forEach(card => card.style.display = 'none');
  
        const start = (page - 1) * cardsPerPage;
        const end = start + cardsPerPage;
  
        for (let i = start; i < end && i < cards.length; i++) {
          cards[i].style.display = 'block';
        }
  
        document.getElementById('pageIndicator').innerText = `Page ${currentPage}`;
        document.getElementById('prevP