           `;
                                    
                                    document.body.appendChild(resultsDialog);
                                    
                                    // Add event listeners
                                    resultsDialog.querySelector('.close-button').addEventListener('click', () => resultsDialog.remove());
                                    resultsDialog.querySelector('.modal-button.primary').addEventListener('click', () => resultsDialog.remove());
   