rim() === id);

            if (folder) {
                const folderContents = folder.querySelector(".folder-contents");
                if (isOpen) {
                    folder.classList.add("open");
                    folderContents.style.display = "block";
                } else {
                    folder.classList.remove("open");
                    folderContents.style.display = "none";
                }
            }
        });

        // Re-enable animation
        setTimeout(() => {
         