Amazing - it works!
So, if I want to make the second section appear when the first one disappears, can I simply use the same code on the second section (changing the data section id) but on the last line, change 'display', 'none' to ''display', 'flex'? Tell me it's that easy!!!
Many thanks for your help!