 = null;
                    document.getElementById('selectedItemText').textContent = 'None';
                }
                updateCodeOutput();
            }
        }
        
        function resetAllItems() {
            itemStyles = {};
            const items = document.querySelectorAll('.flex-item');
            items.forEach((item, index) => {
                item.style.flexGrow = '';
                item.style.flexShrink = '';
                item.style.flexBasis = '';
                item.styl