body{
    font-family: 'Poppins', Arial, sans-serif;
    background: linear-gradient( #9bf5e5 0%, #89cadc 100%);
    margin: 0;
    padding: 0;
    display: flex;
    height: 100vh;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}



.container{
    background: rgba(255,255,255,0.85);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.08);
    text-align: center;
    width: 90%;
    max-width: 420px;
    transition: box-shadow 0.3s;
    min-height: 300px;
    overflow: hidden;
}

.container:hover{
    box-shadow: 0 12px 32px rgba(44, 62, 80, 0.22);
}

h1{
    margin-bottom: 20px;
    font-family: "DM Serif Text", serif;
  font-weight: 500;
  font-style: normal;
}

.search-box{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    
}

input[type="text"]{
    padding: 10px;
    width: 70%;
    border: 1px solid #ccc;
    border-radius: 50px;
    font-size: 16px;
    margin-left: 50px;
}

.input-wrapper{
    position: relative;
    width: 70%;
}

.input-wrapper input{
    width: 100%;
    padding: 10px 35px 10px 10px;
    border: 1px solid #ccc;
    border-radius: 50px;
    font-size: 16px;
}

#clearBtn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    font-size: 16px;
    display: none; /* Hidden by default */
}

button{
    padding: 10px 15px;
    background-color: #00acc1;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s, transfor 0.2s;
    margin-top: 10px;
    width: 100px;
}

button:hover{
    background-color: #00838f;
    transform: scale(1.05);
}

.weather-info img{
    width: 80px;
    margin-top: 10px;
}

#errorMsg{
    color: red;;
    font-weight: bold;
    margin-top: 10px;
}

.weather-info{
    margin-top: 20px;
    padding: 1rem;
    border-radius: 12px;
    background-color: rgba(236, 245, 255, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100px;
    transition: all 0.3s ease;
}

.weather-info h2 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.weather-info img {
    background: #fff;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 1px 4px rgba(44,62,80,0.08);
}

@media (max-width: 400px){
    .search-box{
        flex-direction: column;
        gap: 8px;
    }

    input[type="text"]{
        width: 100%;
    }
    button{
        width: 100%;
    }

    .container{
        padding: 1rem 0.5rem;
        max-width: 100%;
    }

    .weather-info img{
        width: 60px;
    }

    h1{
        font-size: 1.2rem;
    }
}