* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(to right, #4CAF50, #2196F3);
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 480px;
    margin: auto;
}

.weather-card {
    background-color: rgba(255, 255, 255, 0.97);
    border-radius: 18px;
    padding: 25px 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.weather-card:hover {
    transform: scale(1.01);
}

h3 {
    font-size: 22px;
    margin-bottom: 16px;
    color: #333;
}

#city-input {
    padding: 14px 16px;
    width: 100%;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 17px;
}

#city-input:focus {
    outline: none;
    border-color: #2196F3;
}

#city-input-btn {
    width: 100%;
    padding: 14px;
    background-color: #2196F3;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 20px;
}

#city-input-btn:hover {
    background-color: #1565C0;
}

#weather-info {
    display: none;
    text-align: center;
    width: 100%;
}

#weather-icon {
    width: 90px;
    height: 90px;
    margin-bottom: 12px;
}

#temperature {
    font-size: 26px;
    font-weight: bold;
    margin: 8px 0;
}

#description {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

#wind-speed,
#date {
    font-size: 15px;
    color: #e53935;
}

/* Responsive tweaks for small screens */
@media (max-width: 400px) {
    .weather-card {
        padding: 20px 16px;
    }

    #city-input, #city-input-btn {
        font-size: 16px;
        padding: 12px;
    }

    #temperature {
        font-size: 24px;
    }

    #description {
        font-size: 16px;
    }
}
