orm = isFlipped ? 'rotateY(0deg)' : 'rotateY(180deg)';
        }

        function adjustLayout() {
            const container = document.querySelector('.widget-container');
            const width = container.offsetWidth;
            
            renderHourlyForecast();
            renderDailyForecast();
        }

        function debounce(func, wait) {
            let timeout;
            return function executedFunction(...args) {
                const later = () => {
                    clearTimeout(t