rElement.classList.add('visible');
                    }
                }

                function changeCursorTextWithFade(newText) {
                    if (!cursorTextElement || cursorTextElement.isTextFading || cursorTextElement.textContent === newText) return;
                    cursorTextElement.isTextFading = true;
                    cursorTextElement.classList.add('fade-out');
                    setTimeout(() => {
                        cursorTextElement.textContent = newText;
                