/* Reset */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: linear-gradient(135deg, #f5f7fa, #e0f7fa); min-height: 100vh; color: #333; animation: fadeIn 1s ease; } /* NAVIGATION BAR */ .navbar { background: rgba(255, 255, 255, 0.95); display: flex; justify-content: space-between; align-items: center; padding: 15px 25px; position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px); box-shadow: 0 4px 10px rgba(0,0,0,0.08); } .logo { font-size: 1.8em; font-weight: bold; color: #0077b6; text-decoration: none; } /* HAMBURGER BUTTON */ .hamburger { display: none; flex-direction: column; justify-content: space-between; width: 25px; height: 20px; cursor: pointer; } .hamburger span { height: 3px; background: #333; } .hamburger.open span:nth-child(1) { transform: rotate(45deg); position: relative; top: 8px; } .hamburger.open span:nth-child(2) { opacity: 0; } .hamburger.open span:nth-child(3) { transform: rotate(-45deg); position: relative; top: -8px; } /* MOBILE MENU */ .menu { display: flex; gap: 20px; list-style: none; } .menu-item { text-decoration: none; color: #333; font-size: 1.1em; transition: 0.3s; } .menu-item:hover { color: #0077b6; } .menu.open { position: absolute; top: 0; right: 0; background: rgba(255, 255, 255, 0.9); padding: 50px 20px; width: 200px; height: 100vh; display: flex; flex-direction: column; align-items: center; animation: slideIn 0.3s ease forwards; } .menu-item { margin: 20px 0; } @media (max-width: 768px) { .hamburger { display: flex; } .menu { display: none; position: absolute; top: 0; left: 0; } } /* CONTAINER */ .container { display: flex; justify-content: center; align-items: center; min-height: 80vh; padding: 20px; } .card { background: white; padding: 40px; border-radius: 10px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); width: 100%; max-width: 500px; text-align: center; animation: fadeIn 0.8s ease; } .card h2 { margin-bottom: 20px; color: #0077b6; } /* LOADING ANIMATION */ .loading { font-size: 1.2em; color: #0077b6; margin-top: 10px; display: block; } .weather-info { font-size: 1.5em; margin-top: 10px; } .city-select { margin-top: 20px; text-align: center; } .city-select label { font-size: 1.2em; color: #333; margin-bottom: 10px; display: block; } .city-select select { padding: 12px 20px; font-size: 1.1em; background-color: #fff; border: 2px solid #ddd; border-radius: 10px; width: 100%; max-width: 300px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; } .city-select select:hover { border-color: #0077b6; box-shadow: 0 4px 15px rgba(0, 119, 182, 0.3); } .city-select select:focus { outline: none; border-color: #0077b6; box-shadow: 0 4px 15px rgba(0, 119, 182, 0.3); background-color: #f0f8ff; } .city-select select option { padding: 10px; background-color: #f8f9fa; color: #333; font-size: 1.1em; } .city-select select option:hover { background-color: #0077b6; color: #fff; } /* ANIMATIONS */ @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } } @keyframes fadeInItem { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }