) => {
            // Show the 'forthAnswer' paragraph
            document.getElementById('forthAnswer').style.display = 'block';
        });
    }

    function hideSubsequentQuestions(questionIds) {
        questionIds.forEach(id => {
            const element = document.getElementById(id);
            if (element) {
                element.style.display = 'none';
            }
        });
    }

    document.getElementById('yesFifthBtn').addEventListener('click', function() {
        const thirdAnswer =