/*General styles*/

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

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

h1{
    display: inline-block;
}

.wrapper{
    width: 400px;
    border-radius: 10px;
    background-color: white;
}

.wrapper header{
    color: #43AFFC;
    padding: 1em 0.9em;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #bfbfbf;
}

.wrapper.active header i{
    font-size: 30px;
    margin-left: 5px;
}


.title{
    font-weight: 500;
    font-size: 21px;
}

header i{
    cursor: pointer;
    font-size: 0px;
    margin-right: 8px
}

/* Styles for User Inputs*/

.wrapper.active .user-input{
    display: none;
}

.user-input{
    margin: 1.2em 1.4em 2em;
}

.user-input :where(input,button) {
    width: 100%;
    height: 55px;
    border: none;
    border-radius: 10px;
    outline: none;
}

.user-input input{
    text-align: center;
    font-size: 19px;
    border: 1px solid #bfbfbf;
}

.user-input button{
    background-color: #43AFFC;
    color: white;
    cursor: pointer;
    font-size: 19px;
}

.user-input input:is(:focus, :valid){
    border: 2px solid #43AFFC;
}

.separator{
    height: 1px;
    width: 100%;
    margin: 25px 0;
    background-color: #CCC;
    display: flex;
    align-items: center;
    justify-content: center;
}

.separator::before{
    content: "or";
    font-size: 19px;
    padding: 0 1em;
    background-color: white;
    color:  #CCC;
}

.info-txt{
    display: none;
    font-size: 17px;  
    text-align: center;
    padding: 12px 10px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.error{
    display: block;
    color: #721C24;
    background-color: #F8D7DA ;
    border: 1px solid #F5C6CB;
}

.pending{
    display: block;
    color: #0C5460;
    background-color: #D1ECF1 ;
    border: 1px solid #BEE5EB;
}

/*Styles for weather*/

.wrapper.active .weather-card{
    display: flex;
}

.weather-card{
    margin: 30px 0 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.weather-card img{
    max-width: 125px;
}

.temp{
    display: flex;
    font-size: 4.5em;
    font-weight: 500;
}

.num{
    font-weight: 600;
}

.deg{
    font-size: 40px;
    margin: 10px 5px 0 0;
    display: block;
}

.weather{
    font-size: 1.4em;
    text-align: center;
    margin: -5px 20px 15px;
}

.location{
    display: flex;
    align-items: center;
    font-size: 1.4em;
    margin-bottom: 1em;
}

.location i{
    font-size: 25px;
    margin-right: 5px;
}

/* Extra info styles */

.bottom-details{
    width: 100%;
    border-top: 1px solid #bfbfbf;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.col{
    width: 100%;
    display: flex;
    padding: 1em 0;
    align-items: center;
    justify-content: center;
}

.col i{
    font-size: 40px;
    color: #43AFFC;
}

.humidity{
    border-left: 1px solid #bfbfbf;
}

.details .temp, .humidity span{
    font-size: 1.2em;
    font-weight: 500;
    margin-top: -3px;
}

.details .temp .deg{
    margin: 0;
    font-size: 17px;
    padding: 0 2px 0 1px;
}

.details p{
    font-size: 14px;
    margin-top: -6px;
}