indmap-btn');

                if (downloadMindmapBtn) {
                    downloadMindmapBtn.addEventListener('click', function() {
                        popup.style.display = 'flex';
                    });
                }

                if (downloadBtn && formatSelect) {
                    downloadBtn.addEventListener('click', function() {
                        popup.style.display = 'flex';
                    });

                    document.querySelector('.download-button').addEventListener