  console.error("Error:", error);
            loadingText.style.display = "none";
        });

        messageInput.value = ""; // Clear input field after sending message
    });


    document.getElementById('ninthQuestion').addEventListener('click', () => {
        const tenthAnswer = document.getElementById('tenthAnswer');

        if (tenthAnswer.style.display === 'block') {
            tenthAnswer.style.display = 'none';
        } else {
            tenthAnswer.style.display = 'block';
        }
    })