@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

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

body {
    background: url("images/background.avif") no-repeat center center fixed;

     background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.card {
    width: 90%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.15); /* Transparent white */
    border-radius: 25px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    padding: 40px 35px;
    color: white;
    text-align: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);

}
.header {
    margin-bottom: 30px;
    font-weight: 600;
    color: rgb(123, 113, 113);
    letter-spacing: 1px;
    text-align: center;
}

.header h1 {
    font-size: 2.2rem; 
    font-weight: 700;
    margin-bottom: 8px;
}

.header p {
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(6, 6, 6, 0.85);
    max-width: 80%;
    margin: 0 auto;
    line-height: 1.4;
}

.search {

    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-size: 1.2rem;
}

.search input {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    border: none;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(153, 107, 107, 0.1);
    background-color: rgba(168, 147, 147, 0.2);
    color: var(--text-color);
    font-size: 1rem;
    font-family: inherit;
    font-weight: 500;
    flex: 1;
}

.search button {
    border: none;
    outline: 5px solid rgba(255, 255, 255, 0.2);
    background: wheat;
    border-radius: 50%;
    padding: 0.6rem 0.8rem;
    width: 40PX;
    height: 40px;
    display: flex;
    cursor: pointer;
    margin: 0 10px;
}

.search button img {
    width: 20px;
    height: 20px;
}

.weather-icon {
    width: 170px;
    margin-top: 30px;
}

.weather h1 {
    font-size: 80px;
    font-weight: 700;
}

.weather h2 {
    font-size: 45px;
    font-weight: 500;
    margin-top: -10px;
}

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

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

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

.humidity, .wind {
    font-size: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px; /* Space between icon and text */
}

.humidity {
    margin-right: 10px;
}

.weather{
    display: none
}
.error{
    display: none;
    color: red;
    font-size: 1.2rem;
    margin-top: 20px;
}

.footer {
    text-align: center;
    padding: 15px 10px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    position: fixed; /* Stays at bottom */
    bottom: 0;
    width: 100%;
}

.footer .brand {
    font-weight: 600;
    color: #00c3ff; /* Accent color */
}
/* Responsive styles */


/* Tablet screens (max width 768px) */
@media (max-width: 768px) {
    body {
        background-size: cover;
        background-position: center;
    }
    .card {
        max-width: 500px;
        padding: 30px 25px;
    }
}

/* Mobile screens (max width 480px) */
@media (max-width: 480px) {
    .card {
        max-width: 300px;
        padding: 20px 15px;
        font-size: 14px;
    }
      .footer {
        font-size: 0.75rem;
        padding: 10px;
    }
}

