
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');


*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: none;
    outline: none;
    font-family: "Lato", sans-serif;
}

body{ 
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black;
}

.background-img{
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.container{
    width: 400px;
    height: min-content;
    padding: 28px;
    background-color: #fff;
    border-radius: 12px;
}

.search-box{
    width: 100%;
    height: min-content;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-box input{
    width: 84%;
    font-size: 20px;
    text-transform: capitalize;
    color: black;
    background-color: #d6eef7;
    padding: 12px 16px;
    border-radius: 14px;
}



.search-box button{
    width: 46px;
    height: 46px;
    background-color: #d6eef7;
    border-radius: 50%;
    cursor: pointer;
    color: #757575;
    font-size: 20px;
}

.search-box button:hover{
    color: white;
    background-color: #a7d9f2;
}

.weather-body{
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

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

.weather-box{
    margin-block: 20px;
    text-align: center;
}

.weather-box .temperature{
    font-size: 40px;
    font-weight: 800;
    position:relative;
}

.weather-box .temperature sup{
    font-size: 20px;
    position: absolute;
    font-weight: 600;
}

.weather-box .description{
    font-size: 20px;
    font-weight: 700;
    text-transform: capitalize;
}

.weather-details{
    width:100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.humidity, .wind{
    display: flex;
    align-items: center;
}

.humidity{
    margin-right: 20px;
}

.wind{
    margin-right: 20px;
}

.weather-details i{
    font-size: 36px;
}

.weather-details .text{
    font-size: 16px;
    margin-left: 10px;
}

.text span{
    font-weight: 700;
    font-size: 20px;
}

.location-error{
    margin-top: 20px;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.location-error h1{
    font-size: 20px;
    color: #6b6b6b;
    margin-block-end: 15px;
}

.location-error .location-error-img{
    width: 80%;
}