@import url('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&family=Roboto:wght@100;400;500;700&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url(pngs/bg.png);
    background-size: cover;
    background-position: center;
    background-size: 1920px;
}

.container{
    position: relative;
    width: 440px;
    height: 100px;
    background: rgb(196, 196, 196,.1);
    backdrop-filter: blur(30px);
    border: 2px solid rgba(196,196,196,.2);
    border-radius: 16px;
    padding: 20px;
    transition: height .6s ease;
}

.search-box{
    position: relative;
    width: 100%;
    height: 55px;
    display: flex;
    align-items: center;
    color: #ffffff;
}

.search-box i{
    position: absolute;
    left: 10px;
    font-size: 28px;
}

.search-box input{
    position: relative;
    width: 100%;
    height: 100%;
    background: transparent;
    border: 2px solid rgba(255,255,255,.2);
    outline: none;
    border-radius: 10px;
    border: 5px solid #ffffff;   
    font-size: 22px;
    color: #ffffff;
    font-weight: 500;
    text-transform: uppercase;
    padding: 0 48px 0 42px;
}

.search-box input::placeholder{
    color: #ffffff;
    text-transform: capitalize;
}

.search-box button{
    position: absolute;
    right: 0;
    width: 40px;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 28px;
    color: #ffffff;
    padding: 0 40px 0 5px;
    cursor: pointer;
}

.weather-box {
    text-align: center;
    margin: 40px 0 ;
}

.weather-box,
.weather-details,
.notfound{
    overflow: hidden;
    visibility: hidden;
}

.weather-box.active,
.weather-details.active,
.notfound.active{
    visibility: visible;
}

.weather-box .box,
.notfound .box{
    transform: translateY(-100%);
}

.weather-box.active .box,
.notfound.active .box{
    transform: translateY(0%);
    transition: transform 1s ease;
    transition-delay: .6s;
}


.weather-box img{
    width: 60%;
}

.weather-box .temperature{
    position: relative;
    font-size: 64px;
    line-height: 0.7;
    font-weight: 700;
    margin: 20px 0 6px -30px;
    color: #ffffff;
}

.weather-box .temperature span{
    position: absolute;
    font-size: 24px;
    line-height: 0.5;
    margin-left: 4px;
}

.weather-box .description{
    font-size: 20px;
    font-weight: 500;
    text-transform: capitalize;
    line-height: 1; 
    color: #ffffff;
}

.weather-details{
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    padding: 0 20px;
    display: flex;
    color: #ffffff;     
}

.weather-details .humidity,
.weather-details .wind{
    display: flex;
    align-items: center;
    width: 50%;
    transform: translateY(-100%);
}

.weather-details.active .humidity,
.weather-details.active .wind{
    transform: translateY(0%);
    transition: transform 1s ease;
    transition-delay: 1.2s;
}

.weather-details .humidity{
    padding-left: 20px;
    justify-content: flex-start;
}

.weather-details.wind{
    padding-right: 20px;
    justify-content: flex-end;
}

.weather-details i {
    font-size: 46px;
    margin-right: 10px;
}

.weather-details span{
    display: inline-block;
    font-size: 22px;
    font-weight: 500;
}

.weather-details p{
    font-size: 14px;
    font-weight: 500;
}

.notfound{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    margin-top: 110px;
}
.notfound img{
    width: 65%;
}
.notfound p{
    font-size: 22px;
    font-weight: 500;
    margin-top: 12px;
    color: #ffffff;
}