*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family: 'Segoe UI', sans-serif;
}

body{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:20px;
    color:white;
    transition:0.5s;
    background:linear-gradient(135deg,#0f172a,#1e293b);
}

.app{
    width:100%;
    max-width:900px;
}

.top-bar{
    display:flex;
    gap:10px;
    margin-bottom:20px;
}

.top-bar input{
    flex:1;
    padding:15px;
    border:none;
    border-radius:12px;
    outline:none;
    font-size:16px;
}

.top-bar button{
    padding:15px 25px;
    border:none;
    border-radius:12px;
    cursor:pointer;
    font-weight:bold;
}

.weather-container{
    background:rgba(255,255,255,0.1);
    backdrop-filter:blur(15px);
    border-radius:20px;
    padding:30px;
}

#date{
    text-align:center;
    opacity:0.8;
    margin-bottom:20px;
}

.main-weather{
    text-align:center;
    margin-bottom:30px;
}

.main-weather h1{
    font-size:3rem;
}

.main-weather h2{
    font-size:6rem;
    margin:10px 0;
}

.main-weather p{
    font-size:1.3rem;
}

.details-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:20px;
}

.card{
    background:rgba(255,255,255,0.15);
    padding:20px;
    border-radius:15px;
    text-align:center;
}

.card h3{
    margin-bottom:10px;
    font-size:1rem;
}

.card p{
    font-size:1.5rem;
    font-weight:bold;
}

.history{
    margin-top:30px;
}

.history h3{
    margin-bottom:10px;
}

.history ul{
    list-style:none;
}

.history li{
    padding:10px;
    margin-top:8px;
    background:rgba(255,255,255,0.1);
    border-radius:10px;
}

@media(max-width:600px){

    .main-weather h1{
        font-size:2rem;
    }

    .main-weather h2{
        font-size:4rem;
    }

    .top-bar{
        flex-direction:column;
    }
}