@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&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('background.jpg');
    background-size:cover;
    background-position: center;
}

.container{
    height:100px;
    width: 400px;
    position: relative;
    background:rgba(255,255,255,.1);
    backdrop-filter: blur(30px);
    border: 2px solid rgba(255,255,255,.2);
    padding: 20px;
    border-radius: 12px;
    color:#fff;
    transition: height .5s ease;
}

.search-box{
    position: relative;
    width: 100%;
    height: 55px;
    display: flex;
    align-items: center;
}

.search-box i{
    position: absolute;
    left: 10px;
    font-size: 28px;
}

.search-box input{
    position: absolute;
    height: 100%;
    width: 100%;
    font-weight: 500;
    padding: 0 48px 0 42px;
    font-size: 22px;
    border: 2px solid rgba(255,255,255,.2);
    background: transparent;
    outline: none;
    border-radius: 10px;
    color: #fff;
    text-transform: uppercase;
}

.search-box input::placeholder{
    color: #fff;
    text-transform: capitalize;
    transition: .3s;
}

.search-box input:focus::placeholder{
    opacity: 0;
}

.search-box button{
    position: absolute;
    right: 0;
    height: 100%;
    width: 40px;
    padding: 0 40px 0 5px;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    transition: .3s;
}

.search-box button:hover{
    color:rgb(190, 190, 190);
}


.weather-box{
    margin: 40px 0;
    text-align:center;
}

.weather-box,.weather-details,.not-found{
    visibility: hidden;
    overflow: hidden;
}

.weather-box.active,.weather-details.active,.not-found.active{
    visibility: visible;
}

.weather-box .box,.weather-details .box ,.not-found .box{
    transform: translateY(-100%);
}

.weather-box.active .box,
.weather-details.active .box,
.not-found.active .box{
    transform: translateY(0%);
    transition: transform 1s ease;
    transition-delay: .6s;
}

.weather-box .box .info-weather{
    transform: translateY(-120%);
}

.container.active .weather-box .box .info-weather,
.container.active .weather-details .humidity .info-humidity,
.container.active .weather-details .wind .info-wind{
    transform: translateY(0%);
    transition: transform 1s ease;
}

.weather-box img{
    width: 60%;
}

.weather-box .temperature{
    position: relative;
    font-size: 64px;
    line-height: 1;
    font-weight: 700;
    margin: 20px 0 6px -30px;
}

.weather-box .temperature span{
    position: absolute;
    font-size: 24px;
    margin-left: 4px;
}

.weather-box .description{
    font-size: 22px;
    font-weight: 500;
    text-transform: capitalize;
}

.weather-details{
    position: absolute;
    bottom: 40px;
    left: 0;
    padding: 0 20px;
    display: flex;
    width: 100%;
}

.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 .info-humidity,
.weather-details .wind .info-wind{
    transform: translateY(-100%);
    overflow: hidden;
}

.weather-details .humidity{
    padding-right: 20px;
    justify-content: flex-start;
}

.weather-details .wind{
    padding-left: 20px;
    justify-content: flex-end;
}

.weather-details i{
    font-size: 56px;
    margin-right: 10px;
}

.weather-details span{
    display: inline-block;
    font-size: 22px;
    font-weight: 500;
}

.weather-details p{
    font-size: 14px;
    font-weight: 500;
}

.not-found{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    margin-top: 110px;
}

.not-found img{
    width: 60%;
}

.not-found p{
    font-size: 22px;
    font-weight: 500;
    margin-top:12px;
}

.city-hide{
    display: none;
}

#clone-info-weather,
#clone-info-humidity,
#clone-info-wind{
    position: absolute;
    transform: translateY(-100%);
}

#clone-info-weather .weather{
    transform: translateY(120%);
    transition: transform 1s ease,opacity 0s;
    transition-delay: 0s,2s;
}

.weather-box:not(.active) #clone-info-weather .weather{
    opacity: 0;
    transition-delay: 0s;
}

.active-clone#clone-info-weather .weather{
    transform: translateY(0%);
}

#clone-info-humidity span,
#clone-info-wind span{
    transform: translateY(100%);
    transition: transform 1s ease;
}

.active-clone#clone-info-humidity span,
.active-clone#clone-info-wind span{
    transform: translateY(0%);
}

@media  screen and (max-width:600px) {
    body{
        scale: 0.9;
        min-height: 90vh;
        overflow-y: hidden;
    }
}
@media  screen and (max-width:400px) {
    body{
        scale: 0.8;
        min-height: 90vh;
        overflow-y: hidden;
        
    }
}