@import"https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap";*{margin:0;padding:0;box-sizing:border-box;font-family:Poppins,sans-serif}.app{min-height:100vh;display:grid;background:#e2d4ff}.weather{place-self:center;padding:40px;border-radius:20px;display:flex;flex-direction:column;align-items:center;transition:.5s ease;position:relative;overflow:hidden;transition:background .6s ease-in-out,transform .3s ease;color:#fff}.weather:hover{transform:scale(1.02)}.app-title{font-size:2.2rem;font-weight:700;letter-spacing:2px;margin-bottom:20px;text-align:center;color:#fff;text-transform:uppercase;text-shadow:0 0 10px rgba(255,255,255,.4)}.search-bar{display:flex;align-items:center;gap:12px;margin:10px}.search-bar input{height:50px;border:none;outline:none;border-radius:40px;padding-left:25px;color:#626262;background:#ebfffc;font-size:18px}.search-bar img{width:50px;padding:15px;border-radius:50%;background:#ebfffc;cursor:pointer}.weather-icon{width:150px;margin:30px}.temperature{color:#fff;font-size:80px;line-height:1}.location{color:#fff;font-size:40px}.local-time{margin-top:10px;padding:8px 16px;border-radius:25px;font-size:.85rem;font-weight:500;text-align:center;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#ffffff26;color:#fff;box-shadow:0 4px 15px #0003;letter-spacing:.5px;transition:.3s ease}.weather-data{width:100%;margin-top:40px;color:#fff;display:flex;justify-content:space-between}.weather-data .col{display:flex;align-items:flex-start;gap:12px;font-size:22px}.weather-data .col span{display:block;font-size:16px}.weather-data .col img{width:26px;margin-top:10px}.weather.day.clear{background:linear-gradient(135deg,#56ccf2,#2f80ed)}.weather.day.clouds{background:linear-gradient(135deg,#bdc3c7,#2c3e50)}.weather.day.rain{background:linear-gradient(135deg,#4b79a1,#283e51)}.weather.day.snow{background:linear-gradient(135deg,#e6dada,#274046)}.weather.day.thunderstorm{background:linear-gradient(135deg,#232526,#414345)}.weather.day.mist,.weather.day.haze,.weather.day.fog,.weather.day.smoke,.weather.day.dust,.weather.day.sand,.weather.day.ash,.weather.haze,.weather.fog,.weather.smoke,.weather.dust,.weather.sand,.weather.ash{background:linear-gradient(135deg,#757f9a,#d7dd)}.weather.night.clear{background:linear-gradient(135deg,#141e30,#243b55)}.weather.night.clouds{background:linear-gradient(135deg,#232526,#414345)}.weather.night.rain{background:linear-gradient(135deg,#0f2027,#203a43,#2c5364)}.weather.night.snow{background:linear-gradient(135deg,#2c3e50,#4ca1af)}.weather.night.thunderstorm{background:linear-gradient(135deg,#000,#434343)}.weather.night.mist,.weather.night.haze,.weather.night.fog,.weather.night.smoke,.weather.night.dust,.weather.night.sand,.weather.night.ash{background:linear-gradient(135deg,#3a3a3a,#1c1c1c)}.weather.night:before{content:"";position:absolute;width:100%;height:100%;background-image:radial-gradient(white 1px,transparent 1px);background-size:50px 50px;opacity:.3;pointer-events:none;animation:starsMove 60s linear infinite}@keyframes starsMove{0%{background-position:0 0}to{background-position:1000px 1000px}}.unit-toggle{position:relative;width:110px;height:45px;border-radius:50px;background:#fff3;display:flex;align-items:center;justify-content:space-between;padding:0 15px;cursor:pointer;font-weight:600;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);transition:.3s;border:none;outline:none}.unit-toggle span{z-index:2;color:#fff;font-size:20px}.toggle-circle{position:absolute;width:40px;height:40px;background:#fff;border-radius:50%;top:2.5px;left:3px;transition:.3s ease}.unit-toggle.right .toggle-circle{left:67px}@media(max-width:600px){.weather{width:90%;padding:25px}.temperature{font-size:60px}.location{font-size:28px}.weather-data{flex-direction:column;gap:20px;align-items:center}.search-bar{flex-direction:column;gap:10px}.unit-toggle{width:100px;height:40px}.toggle-circle{width:35px;height:35px}.unit-toggle.right .toggle-circle{left:60px}}
