body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e6f4f1, #a3d8f4); 
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    color: #333; 
}

.container {
    background: rgba(255, 255, 255, 0.9); 
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    width: 100%;
}

h1 {
    margin-bottom: 20px;
    font-size: 2.5em;
    font-weight: 600;
    color: #2c3e50; 
}

form {
    margin-bottom: 20px;
}

input {
    padding: 12px;
    width: calc(100% - 24px);
    border: 1px solid #ddd; 
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 1em;
    background: #fff; 
    color: #333; 
}

button {
    padding: 12px 20px;
    background-color: #3498db; 
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #2980b9; 
}

#weatherDisplay {
    margin-top: 20px;
}

#weatherDisplay h2 {
    font-size: 2em;
    margin-bottom: 10px;
    color: #2c3e50; 
}

#weatherDisplay p {
    margin: 10px 0;
    font-size: 1.2em;
    color: #555; 
}

#weatherDisplay p#temperature {
    font-size: 1.5em;
    font-weight: bold;
    color: #e74c3c;
}

#weatherDisplay p#humidity, #weatherDisplay p#windSpeed {
    font-size: 1.1em;
    color: #3498db; 
}

#errorMessage {
    font-size: 1em; 
    margin-top: 10px;
    color: red;
}

/* Mobile Responsive Styles */
@media only screen and (max-width: 768px) {
    body {
        padding: 15px;
        height: auto;
        min-height: 100dvh;
        overflow-x: hidden;
        -webkit-tap-highlight-color: transparent;
    }

    .container {
        padding: 18px;
        max-width: 100%;
        width: 92%;
        margin: 15px auto;
        border-radius: 12px;
    }

    h1 {
        font-size: 1.8em;
        margin-bottom: 1.2rem;
        line-height: 1.3;
    }

    form {
        margin-bottom: 1.5rem;
    }

    input {
        padding: 12px 15px;
        font-size: 0.95em;
        margin-bottom: 12px;
        border-radius: 8px;
        width: 100%;
        box-sizing: border-box;
    }

    button {
        padding: 13px 0;
        font-size: 1em;
        border-radius: 8px;
        width: 100%;
        transition: transform 0.2s ease;
    }

    button:active {
        transform: scale(0.98);
    }

    #weatherDisplay {
        margin-top: 1.5rem;
    }

    #weatherDisplay h2 {
        font-size: 1.6em;
        margin-bottom: 0.8rem;
        word-break: break-word;
    }

    #weatherDisplay p {
        font-size: 1.05em;
        margin: 0.8rem 0;
        line-height: 1.4;
    }

    #weatherDisplay p#temperature {
        font-size: 1.8em;
        margin: 1.2rem 0;
    }
}

@media only screen and (max-width: 480px) {
    .container {
        padding: 15px;
        width: 94%;
    }

    h1 {
        font-size: 1.7em;
    }

    input {
        font-size: 0.92em;
        padding: 11px 14px;
    }

    #weatherDisplay h2 {
        font-size: 1.5em;
    }

    #weatherDisplay p {
        font-size: 1em;
    }

    #weatherDisplay p#temperature {
        font-size: 1.6em;
    }
}

@media only screen and (max-width: 400px) {
    body {
        padding: 12px;
    }

    .container {
        padding: 14px;
        width: 96%;
    }

    h1 {
        font-size: 1.6em;
    }

    button {
        padding: 12px 0;
        font-size: 0.95em;
    }
}