style.display = 'inline-block';
        }
      }

      function resetLogCounter() {
        logCounter = 0;
        const badge = document.querySelector('header .badge');
        badge.textContent = logCounter;
        badge.style.display = 'none';
      }

      closeModal.addEventListener('click', () => {
          logDetailsModal.style.display = 'none';
      });

      window.addEventListener('click', (event) => {
          if (event.target === logDetailsModal) {
              logDetailsModal.style.di