body { font-family: 'Inter', sans-serif; /* Enhanced gradient with subtle animation */ background: linear-gradient(135deg, #6b84a3 0%, #151f2a 100%); background-size: 400% 400%; animation: gradientBG 15s ease infinite; min-height: 100vh; display: flex; justify-content: center; align-items: center; color: #fff; overflow-y: auto; padding: 2rem 0; margin: 0; } @keyframes gradientBG { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } } .app-container { width: 100%; display: flex; flex-direction: column; align-items: center; /* min-height: 100vh; */ position: relative; padding-bottom: 100px; /* Space for footer */ } .weather-card { background-color: rgba(255, 255, 255, 0.15); /* More transparent white */ backdrop-filter: blur(15px); /* Stronger frosted glass effect */ -webkit-backdrop-filter: blur(15px); /* Safari support */ border-radius: 25px; /* Slightly more rounded corners */ box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3); /* Deeper shadow */ border: 1px solid rgba(255, 255, 255, 0.4); /* More prominent border */ animation: fadeIn 1s ease-out; /* Fade in animation */ padding: 2rem; /* Reverted padding to 2rem */ box-sizing: border-box; /* Include padding in element's total width and height */ /* Increased max-width for laptop screens */ max-width: 48rem; /* Equivalent to Tailwind's max-w-2xl (768px) */ overflow: visible; margin-bottom: 2rem; /* position: relative; */ /* Ensure it creates a stacking context */ z-index: 1; /* Place it above the footer */ } /* Header and logo styling */ header { position: relative; } .logo-container { display: flex; align-items: center; justify-content: center; } .text-shadow-lg { text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); } /* Responsive padding for smaller screens */ @media (max-width: 640px) { .weather-card { padding: 1.25rem; /* Smaller padding on small screens */ margin-bottom: 0rem; } } .search-container { position: relative; margin-bottom: 1.25rem; } .search-input { background-color: rgba(255, 255, 255, 0.2); border: 2px solid rgba(255, 255, 255, 0.3); color: #fff; transition: all 0.3s ease; border-radius: 30px; padding: 0.75rem 1rem; width: 100%; font-size: 1rem; padding-right: 3rem; } .search-input:focus { background-color: rgba(255, 255, 255, 0.25); border-color: rgba(255, 255, 255, 0.5); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2); outline: none; } .search-input::placeholder { color: rgba(255, 255, 255, 0.8); } .suggestion-list { position: absolute; top: 100%; left: 0; right: 0; background-color: rgba(255, 255, 255, 0.98); border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); color: #333; max-height: 250px; overflow-y: auto; z-index: 1000; margin-top: 0.5rem; border: 1px solid rgba(0, 0, 0, 0.1); } .suggestion-item { padding: 0.75rem 1rem; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; border-bottom: 1px solid rgba(0, 0, 0, 0.05); } .suggestion-item:last-child { border-bottom: none; } .suggestion-item:hover { background-color: #f0f7ff; } .suggestion-item i { margin-right: 0.75rem; color: #666; font-size: 0.875rem; } .suggestion-item .city-name { font-weight: 500; } .suggestion-item .region-name { font-size: 0.875rem; color: #666; margin-left: 0.5rem; } .error-message { color: #FF7B7B; font-weight: 500; padding: 0.5rem; border-radius: 8px; background-color: rgba(255, 123, 123, 0.1); margin-bottom: 1rem; display: flex; align-items: center; justify-content: center; } .error-message i { margin-right: 0.5rem; } .loading-spinner { border: 3px solid rgba(255, 255, 255, 0.3); border-top: 3px solid #fff; border-radius: 50%; width: 24px; height: 24px; animation: spin 1s linear infinite; } .search-button { position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); background: none; border: none; color: rgba(255, 255, 255, 0.8); cursor: pointer; padding: 0.5rem; transition: all 0.2s ease; } .search-button:hover { color: #fff; transform: translateY(-50%) scale(1.1); } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .weather-main-info { display: flex; flex-direction: column; align-items: center; padding: 1rem 0; position: relative; } .weather-info-item { display: flex; align-items: center; padding: 0.75rem; border-radius: 12px; background-color: rgba(255, 255, 255, 0.1); margin-bottom: 0.75rem; transition: all 0.3s ease; border: 1px solid rgba(255, 255, 255, 0.2); } .weather-info-item:hover { background-color: rgba(255, 255, 255, 0.15); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); } .forecast-day { background-color: rgba(255, 255, 255, 0.1); border-radius: 16px; padding: 1.25rem; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; transition: transform 0.3s ease, background-color 0.3s ease; border: 1px solid rgba(255, 255, 255, 0.2); } .forecast-day:hover { transform: translateY(-5px); background-color: rgba(255, 255, 255, 0.15); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); } .forecast-day img { width: 60px; height: 60px; margin: 0.5rem 0; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1)); } /* Pulse animation for loading states */ @keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } } .loading-pulse { animation: pulse 1.5s ease-in-out infinite; } /* Footer styling */ .footer { width: 100%; padding: 1.5rem 0rem 0rem 0rem; position: absolute; bottom: 0; text-align: center; } .footer-content { max-width: 48rem; margin: 0 auto; padding: 0 1rem; } .social-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1rem; } .social-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background-color: rgba(255, 255, 255, 0.15); color: white; font-size: 1.25rem; transition: all 0.3s ease; border: 1px solid rgba(255, 255, 255, 0.3); } .social-icon:hover { background-color: rgba(255, 255, 255, 0.25); transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); } .copyright { margin: 1rem 0; font-size: 0.9rem; color: rgba(255, 255, 255, 0.8); } .footer-note { font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); } /* Responsive adjustments */ @media (max-width: 640px) { .app-container { padding-bottom: 150px; } .social-icon { width: 35px; height: 35px; font-size: 1rem; } } /* Add animation to weather icon */ #weatherIcon { transition: transform 0.5s ease; } #weatherIcon:hover { transform: scale(1.1) rotate(5deg); } /* Enhance temperature display */ #temperature { position: relative; display: inline-block; } /* Add subtle animations */ .animate-fade-in { animation: fadeIn 0.8s ease-out forwards; }