*{
    margin:0;
    padding:0;
    font-family:'Poppins',sans-serif;
    box-sizing:border-box;
}
body{
    background: #222;
}
.card{
    width:90%;
    max-width:470px;
    min-height: 90vh;
    display:flex;
    flex-direction: column;
    margin:50px auto;
    background: linear-gradient(to bottom, #17113b, #431d70);
    color:#fff;
    border-radius: 20px;
    padding: 40px 35px;
    text-align:center;
} 
/*Welcome Message*/
.start-msg {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
     flex: 1;
    text-align: center;
    padding: 55px 20px 40px;
}

.start-msg img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    margin-bottom: 15px;
}

.start-msg h1 {
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 10px;
}

.start-msg p {
    font-size: 12px;
    color: #e6e6e6;
    line-height: 1.5;
    max-width: 320px;
    margin: auto;
}

.weather-content {
    display: none;
    width:100%;
}
.weather {
    display: block;
    width: 100%;
}
.error-msg {
    display: none;
    color: #ffb3b3;
    font-size: 16px;
    margin: 20px 0;
}
/*Search*/
.search-box{
    width:100%;
    display:flex;
    align-items:center;
    justify-content: space-between;
}
.search-box input{
    border:0;
    outline:0;
    background:#ebfffc;
    color:#555;
    padding: 10px 25px;
    height:60px;
    border-radius:30px;
    flex:1;
    margin-right:16px;
    font-size:18px;
}
.search-box button{
    border:0;
    outline:0;
    background:#ebfffc;
    border-radius:50px;
    width:60px;
    height:60px;
    cursor:pointer;
}
/*Weather Parameters*/
.weather-icon {
    width: 140px;
    height: 140px;
    object-fit: contain;
    display: block;
    margin: 10px auto;
}
.temp {
    font-size: 40px;
    font-weight: 500;
    text-align: center;
}
.condition{
    font-size:30px;
    font-weight:bold;
    margin-top:3px;
    text-align: center;
}
.city {
    font-size: 30px;
    font-weight: 600;
    margin-top: 30px;
    text-align: center;
}
.temperature {
    font-size: 18px;
    font-weight: 500;
    font-style:italic;
    margin-top: 10px;
    color: #e6e6e6;
}

 /* Weather details */
.details {
    display: flex;
    align-items:center;
    justify-content: space-between;
    width: 100%;
    padding:0;
    gap:10px;
    margin: 45px 0 0;
}
.col {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap:10px;
    flex-direction:row;
    flex: 1;
    min-width:0;
}

.col img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

 .info {      
        margin: -4px 0 0;
        padding: 0;
        text-align: center;
    }

    .info p {
        margin: 0;
        padding: 0;
        line-height: 1.1;
    }


  /* Last updated */
.last-updated {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.last-updated img {
    width: 22px;
    margin:10px 0;
    height: 22px;
    object-fit: contain;
}

.last-updated p {
    font-size: 13px;
    color: #d8d8d8;
}

/*Mobile view*/

@media (max-width: 600px) {

    body {
        padding: 0;
    }

    .card {
        width: 95%;
        min-height: 95vh;
        margin: 15px auto;
        padding: 30px 20px;
        border-radius: 20px;
    }

    .search-box {
        width: 100%;
        gap: 10px;
    }

    .search-box input {
        min-width: 0;
        width: auto;
        height: 55px;
        padding: 10px 20px;
        font-size: 16px;
        margin-right: 0;
    }

    .search-box button {
        width: 55px;
        height: 55px;
        min-width: 55px;
        flex-shrink: 0;
    }

    .city {
        font-size: 28px;
        margin-top: 25px;
    }

    .weather-icon {
        width: 120px;
        height: 120px;
        margin: 10px auto;
    }

    .temp {
        font-size: 40px;
    }

    .condition {
        font-size: 27px;
    }

    .temperature {
        font-size: 17px;
    }


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

    .col {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
    }

    .col img {
        width: 35px;
        height: 35px;
    }

 .info {
        margin: -4px 0 0;
        padding: 0;
        text-align: center;
    }

    .info p {
        margin: 0;
        padding: 0;
        line-height: 1.1;
    }

    .last-updated {
        margin-top: 25px;
        padding-bottom: 10px;
    }

    .last-updated img {
        width: 20px;
        height: 20px;
    }

    .last-updated p {
        font-size: 12px;
    }
}
