/* Base styles */
* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

body {
    background: rgb(255,255,255);
    background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(107,121,255,1) 40%, rgba(88,81,233,1) 81%, rgba(42,73,214,1) 100%);
    padding: 20px;
}

.card {
    width: 90%;
    max-width: 450px;
    max-height: 870px;
    background: rgba(255, 255, 255, 0.23);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(6.6px);
    -webkit-backdrop-filter: blur(6.6px);
    border: 1px solid rgba(255, 255, 255, 0.75);
    color: #fff;
    margin: 30px auto 0;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
}

.search {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search input {
    border: 0;
    outline: 0;
    background: #ebfffc;
    color: #555;
    padding: 10px 15px;
    height: 50px;
    border-radius: 30px;
    flex: 1;
    margin-right: 12px;
    font-size: 16px;
}

.search button {
    border: 0;
    outline: 0;
    background: #ebfffc;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
}

.search button img {
    width: 16px;
}

.weather-icon {
    width: 140px;
    margin-top: 20px;
}

.weather h1 {
    font-size: 60px;
    font-weight: 500;
}

.weather h2 {
    font-size: 35px;
    font-weight: 400;
    margin-top: -5px;
}

.details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    margin-top: 40px;
}

.col {
    display: flex;
    align-items: center;
    text-align: left;
}

.col img {
    width: 30px;
    margin-right: 8px;
}

.humidity, .wind {
    font-size: 22px;
    margin-top: -3px;
}

.weather {
    display: none;
}

.error {
    text-align: left;
    margin-left: 10px;
    font-size: 14px;
    margin-top: 10px;
    display: none;
}

/* Media Queries for different screen sizes */
@media screen and (max-width: 768px) {
    .card {
        width: 95%;
        padding: 25px 15px;
    }
    
    .weather h1 {
        font-size: 50px;
    }
    
    .weather h2 {
        font-size: 30px;
    }
}

@media screen and (max-width: 480px) {
    .card {
        padding: 20px 15px;
    }
    
    .search input {
        height: 45px;
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .search button {
        width: 45px;
        height: 45px;
    }
    
    .weather-icon {
        width: 120px;
    }
    
    .weather h1 {
        font-size: 40px;
    }
    
    .weather h2 {
        font-size: 25px;
    }
    
    .humidity, .wind {
        font-size: 18px;
    }
    
    .col img {
        width: 25px;
    }
    
    .details {
        margin-top: 30px;
        padding: 0 5px;
    }
}

@media screen and (max-width: 360px) {
    .card {
        padding: 15px 10px;
    }
    
    .search input {
        margin-right: 8px;
    }
    
    .weather h1 {
        font-size: 35px;
    }
    
    .weather h2 {
        font-size: 22px;
    }
    
    .humidity, .wind {
        font-size: 16px;
    }
}