ontent;
            container.style.alignItems = alignItems;
            container.style.alignContent = alignContent;
            container.style.gap = gap + 'px';
            
            updateCodeOutput();
        }
        
        function selectItem(index) {
            const items = document.querySelectorAll('.flex-item');
            items.forEach(item => item.classList.remove('selected'));
            
            if (index >= 0 && index < items.length) {
                items[index].classList.add(