            }
                }

            document.addEventListener('DOMContentLoaded', function () {
                const downloadBtn = document.getElementById('download-btn');
                const formatSelect = document.getElementById('download-format');
                const closeBtn = document.getElementById('close-download-options-popup');
                const popup = document.getElementById('download-options-popup');
                const downloadMindmapBtn = document.getElementById('download-m