
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(-45deg, #1e3c72, #2a5298, #0f2027, #203a43);
    background-size: 400% 400%;
    animation: gradientMove 15s ease infinite;
    padding: 20px;
    overflow-x: hidden;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.app {
    width: 380px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.weather-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    backdrop-filter: blur(15px);
}


#cityinput {
    flex: 1;
    min-width: 0;
    padding: 14px 18px;
    border-radius: 12px;
    border: none;
    outline: none;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 16px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: 0.3s ease;
}

#cityinput::placeholder {
    color: rgba(255,255,255,0.6);
}

#cityinput:focus {
    background: rgba(255,255,255,0.2);
}


.weather-form button {
    padding: 14px 20px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #00f5a0, #00d9f5);
    color: #111;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.weather-form button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px #00f5a0;
}

.weather-card {
    padding: 35px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    transition: 0.4s ease;
}

.weather-card:hover {
    transform: translateY(-10px);
}


#cityname {
    font-size: 24px;
    font-weight: 500;
    opacity: 0.9;
}


#temperature {
    font-size: 64px;
    font-weight: 700;
    margin: 15px 0;
    background: linear-gradient(45deg, #00f5a0, #00d9f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


#description {
    font-size: 18px;
    opacity: 0.85;
}

@media (max-width: 500px) {

    .weather-form {
        flex-direction: column;
    }

    .weather-form input,
    .weather-form button {
        width: 100%;
    }

    #temperature {
        font-size: 48px;
    }
}
