body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background: linear-gradient(135deg, rgb(101, 178, 245),rgb(101, 178, 245));
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 30px;
    width: 90%;
    max-width: 600px;
    text-align: center;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.search-box {
    display: flex;
    margin-bottom: 30px;
}

.search-box input[type="text"] {
    flex-grow: 1;
    padding: 12px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 1em;
    color: #333;
    background: aliceblue;
}

.search-box button {
    background: aliceblue;
    color: gray;
    border: none;
    padding: 12px 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s ease;
}

.search-box button:hover {
    background: #0a1697;
}

.weather-card {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
}

.loading {
    font-size: 1.2em;
    text-align: center;
    padding: 20px;
}

.weather-info {
    display: none; /* Hidden by default */
}

.location {
    margin-bottom: 20px;
}

.location #city {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 5px;
}

.location #date {
    font-size: 0.9em;
    color: #eee;
}

.icon-temp {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.icon-temp img {
    width: 80px;
    height: 80px;
    margin-right: 20px;
}

.icon-temp #temp {
    font-size: 3em;
    font-weight: bold;
}

.icon-temp span {
    font-size: 1.5em;
}

#description {
    font-size: 1.2em;
    color: #eee;
    text-transform: capitalize;
    margin-bottom: 20px;
}

.details {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.details > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px;
}

.details i {
    font-size: 2em;
    margin-bottom: 5px;
}

.details span {
    font-size: 0.8em;
    color: #eee;
}

.error-message {
    color: #ff4d4d;
    margin-top: 20px;
    font-weight: bold;
    text-align: center;
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 20px;
    }

    .header h1 {
        font-size: 2em;
    }

    .search-box input[type="text"] {
        font-size: 0.9em;
    }

    .search-box button {
        font-size: 0.9em;
        padding: 10px 12px;
    }

    .icon-temp {
        flex-direction: column;
    }

    .icon-temp img {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .icon-temp #temp {
        font-size: 2.5em;
    }

    .icon-temp span {
        font-size: 1.2em;
    }

    .details {
        justify-content: space-around;
    }

    .details > div {
        margin: 15px;
    }

    .details i {
        font-size: 1.5em;
    }

    .details span {
        font-size: 0.7em;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8em;
    }

    .search-box input[type="text"] {
        font-size: 0.8em;
    }

    .search-box button {
        font-size: 0.8em;
        padding: 8px 10px;
    }

    .icon-temp #temp {
        font-size: 2em;
    }

    .icon-temp span {
        font-size: 1em;
    }

    .details {
        flex-direction: column;
        align-items: center;
    }

    .details > div {
        margin: 10px 0;
    }
}

.show {
    display: block;
}