*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #74ebd5 0%, #ACB6E5 100%);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card{
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 30px;
    width: 90%;
    max-width: 474px;
    /* display: flex;
    flex-direction: column; */
}

.search{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search input{
    border: 0;
    outline: 0;
    background: #ebfffc;
    color: #555;
    height : 60px;
    width: 85%;
    padding: 10px 20px;
    font-size: 18px;
    flex: 1;
    height: 60px;
    border-radius: 30px;
    margin-right: 16px;
}

#searchBtn{
    width: 60px;
    height: 60px;
    border: 0;
    outline: 0;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

#searchBtn img{
    width: 24px;
    height: 24px;
}

#errorMsg{
    color: #ff3333;

    margin-top: 15px;
    font-weight: 500;
    display: none;
}


.weather {
    max-height: 0;
    overflow: hidden;

    opacity: 0;
    transform: translateY(-20px);

    transition:
        max-height 0.6s ease,
        opacity 0.5s ease,
        transform 0.5s ease;

    pointer-events: none;
}

.weather.show {
    max-height: 600px; /* large enough for content */
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}



.details{
    margin-top: 15px;
    display: flex;
    align-items: center; 
    margin-top: 50px;
    /* padding: 0 20px; */
    justify-content: space-between;
    width: 95%;

}

.col{
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    flex: 1;  
    align-items: center;
    text-align: left;
}

.col img{
    width: 40px;
    height: 40px;
}

.upper{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#weatherIcon{
    width: 170px;
    margin-top: 10px;
}

.weather h1{
    font-size: 80px;
    color: #fff;
    margin: 10px 0;
    font-weight: 500;
}

.weather h2{
    font-size: 40px;
    color: #fff;
    font-weight: 400;
    text-transform: capitalize;
    margin-top: -10px;
}