body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to bottom, #a1c4fd, #c2e9fb);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

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

.title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #007cf0, #00dfd8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.Card {
    background-color: #ffffffdd;
    border-radius: 20px;
    padding: 30px 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 320px;
    width: 100%;
    height: auto;
    display: none;
    height: 45vh;

    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
    gap: 10px;
    align-items: center;
    justify-items: center;
}

.logo {
    height: 60px;
    width: 100%;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 100px;
    grid-column: span 2;
}

.temp {
    font-size: 50px;
    font-weight: bold;
    color: #333;
    grid-column: span 2;
}

.temp::after {
    content: '°C';
    margin-left: 5px;
}

.city ,.localtime {
    font-size: 24px;
    font-weight: bold;
    color: #222;
    margin-top: -10px;
    grid-column: span 2;
}

.hum,
.windSpeed {
    background-color: #e3f2fd;
    width: 80%;
    padding: 10px;
    border-radius: 10px;
    font-size: 20px;
    display: grid;
    justify-content: center;
    align-items: center;
    grid-template-rows: auto;
    gap: 5px;
    font-weight: bold;
    color: #333;
    text-align: center;
    grid-column: span 1;
}

.val {
    font-size: 18px;
    color: #0037ff;
}

.hum .val::after {
    content: '%';
    margin-left: 3px;
}

.windSpeed .val::after {
    content: ' km/h';
    margin-left: 3px;
}

.search {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.search input {
    padding: 10px 15px;
    border: none;
    border-radius: 25px;
    width: 200px;
    font-size: 16px;
    outline: none;
    background-color: #f0f4f8;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease;
}

.search input:focus {
    background-color: #ffffff;
    box-shadow: 0 0 8px rgba(100, 149, 237, 0.5);
}

.search button {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(to right, #4facfe, #00f2fe);
    color: white;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition:
        background 0.4s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.search button:hover {
    background: linear-gradient(to right, #00f2fe, #4facfe);
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}
.er{
    display: none;
    color: red;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
}
