
*{margin: 0;
    padding: 0;
    font-family: 'Poppins',sans-serif;
    box-sizing: border-box;
    }
    body{
        background-color: rgba(113, 113, 236, 0.856);
    }
    .card{
        width: 90%;
        max-width: 470px;
        background: rgba(255, 255, 255, .1);
        color: #fff;
        margin: 100px auto 0;
        border-radius: 20px;
        padding: 40px 35px;
        text-align: center;
    }
    .search input::placeholder{color: aliceblue;}
    .search{
        position: relative;
        width:100% ;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .search input{
        color: white;
        font-size: 18px;
        width: 100%;
        padding: 10px 45px 16px;
        border-radius: 99px;
        border: 3px solid transparent;
        background: rgb(0, 0, 0,0.15);
        outline: none;
        font-weight: 500;
        transition: 0.25s border rgb(0, 0, 0,0.15);
    }
    .search input:focus{
          border: 3px solid rgb(0, 0, 0,0.15);
    }
    .search button{
        position: absolute;
       right: 16px;
       top: 50%;
       display: flex;
       border: none;
       transform: translateY(-50%);
       cursor: pointer;
       background: none;
       display: flex;
       color: white;
    
    }
    .weather-icon{
        width: 170px;
        margin-top: 30px;
    }
    .weather h1{
        font-size: 80px;
        font-weight: 500;
    }
    .weather h2{
        font-size: 45px;
        font-weight: 400;
        margin-top: -10px;
    }
    .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;
    }
    .humidity, .wind{
        font-size: 28px;
        margin-top: -6px;
    }
    
     .weather{
        display:none ;
     }
     .error{
        text-align: left;
        margin-left: 10px;
        font-size: 14px;
        margin-top:10px ;
        display: none;
     }
    
     @media (max-width: 768px) {
        .card {
            padding: 25px;
            width: 90%;
            margin: 80px auto 0;
        }
    
        .weather h1 {
            font-size: 60px;
        }
    
        .weather h2 {
            font-size: 35px;
        }
    
        .details {
            flex-direction: column;
            padding: 0 15px;
            margin-top: 30px;
        }
    
        .col {
            margin-bottom: 15px;
        }
    
        .search input {
            font-size: 16px;
            padding: 12px 40px 16px;
        }
    
        .weather-icon {
            width: 120px;
            margin-top: 20px;
        }
    
        .humidity, .wind {
            font-size: 24px;
        }
    }
    
    @media (max-width: 480px) {
        .card {
            padding: 20px;
            margin: 60px auto 0;
        }
    
        .weather h1 {
            font-size: 50px;
        }
    
        .weather h2 {
            font-size: 30px;
        }
    
        .search input {
            font-size: 14px;
            padding: 12px 35px 14px;
        }
    
        .weather-icon {
            width: 100px;
            margin-top: 15px;
        }
    
        .details {
            padding: 0 10px;
            margin-top: 20px;
        }
    
        .humidity, .wind {
            font-size: 22px;
        }
    }