:root{
    --f-family: "Poppins", sans-serif;
    --bg-color:#222;
    --card-bg: linear-gradient(135deg, #00feba, #5b548a);
    --input-bg: #ebfffc;

    --h1-fs:5rem;
    --h2-fs:2.8rem;
    --input-fs:1.125rem;
    --details-fs:1.75rem;

    --h1-fw: 500;
    --h2-fw: 400;
}

body{
    background: var(--bg-color);
    font-family: var(--f-family);
}

.card{
    width: 90%;
    max-width: 470px;
    background: var(--card-bg);
    color: #fff;
    margin: 100px auto 0;
    border-radius: 20px;
    padding: 40px 35px;
    text-align: center;
}

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

.search input{
    border: 0;
    outline: 0;
    background: var(--input-bg);
    color: #555;
    padding: 10px 25px;
    border-radius: 30px;
    flex: 1;
    height: 60px;
    margin-right: 16px;
    font-size:  var(--input-fs);
}

.search button{
    border: 0;
    outline: 0;
    background: var(--input-bg);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;

    width: 35px;
    height: 35px;
    display: flex;
   align-items: center;
   justify-content: center;
}

/* Input focus */
.search button:focus, .search input:focus{
    border: 1px solid #5b548a;
}

.search button img{
    width: 16px;
}




.weather-icon{
    display: block;
    margin: auto;
    width: 250px;
}

.weather h1{
    font-size: var(--h1-fs);
    font-weight: var(--h1-fw);
}

.weather h2{
    font-size: var(--h2-fs);
    font-weight: var(--h2-fw);
    margin-top: -20px;
}


.details{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    margin-top: 50px;
}

.col{
    display: flex;
    align-items: center;
    text-align: left;
}

.col img{
    width: 40px;
    margin-right: 10px;
    height: auto;
}

.humidity, .wind{
    font-size: var(--details-fs);
    margin-top: -6px;
}

.weather{
    display: none;
}

.error{
    text-align: left;
    margin-left: 10px;
    font-size: 0.9rem;
    margin-top: 10px;
    display: none;
}