body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

h1 {
    margin-top: 40px;
    color: #fff;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 2.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.weather-form {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 10px;
}

input, button {
    padding: 14px 18px;
    margin: 10px 0;
    border-radius: 10px;
    border: none;
    font-size: 18px;
    outline: none;
}

input {
    width: 240px;
    background: rgba(255,255,255,0.7);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #d1d5db;
    transition: border 0.2s;
}

input:focus {
    border: 1.5px solid #6366f1;
    background: #fff;
}

button {
    background: linear-gradient(90deg, #6366f1 60%, #a78bfa 100%);
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

button:hover {
    background: linear-gradient(90deg, #3730a3 60%, #7c3aed 100%);
    transform: translateY(-2px) scale(1.04);
}

#weatherResult {
    margin-top: 20px;
    background: rgba(255,255,255,0.25);
    padding: 36px 48px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(76,81,255,0.18);
    min-width: 320px;
    text-align: center;
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255,255,255,0.25);
    transition: box-shadow 0.2s;
    position: relative;
}

#weatherResult img {
    width: 110px;
    height: 110px;
    margin-bottom: 12px;
    filter: drop-shadow(0 2px 8px rgba(76,81,255,0.12));
}

#weatherResult h2 {
    margin-bottom: 12px;
    color: #4f46e5;
    font-size: 2rem;
    font-weight: 700;
}

#weatherResult p {
    margin: 8px 0;
    font-size: 19px;
    color: #22223b;
    letter-spacing: 0.5px;
}

#historyContainer {
    margin-top: 36px;
    background: rgba(255,255,255,0.18);
    padding: 20px 32px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    min-width: 220px;
    backdrop-filter: blur(6px);
    border: 1.2px solid rgba(255,255,255,0.18);
}

#historyContainer h3 {
    color: #4f46e5;
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
}

#searchHistory {
    list-style: none;
    padding: 0;
    margin: 0;
}

#searchHistory li {
    padding: 6px 0;
    color: #6366f1;
    font-weight: bold;
    font-size: 17px;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

#searchHistory li:hover {
    color: #3730a3;
    cursor: pointer;
}

.logo {
    display: block;
    margin: 40px auto 10px auto;
    width: 140px;      /* Increased from 90px */
    height: 140px;     /* Increased from 90px */
    border-radius: 50%;
    box-shadow: 0 4px 18px rgba(76,81,255,0.13);
    object-fit: contain; /* Use contain to fit the whole image */
    background: #fff;
    border: 2.5px solid #6366f1;
    transition: transform 0.2s;
}

.logo:hover {
    transform: scale(1.07) rotate(-3deg);
}

.logo-label {
    text-align: center;
    color: #4f46e5;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(255,255,255,0.7);
}

@media (max-width: 600px) {
    body {
        padding: 0 2vw;
    }
    .logo {
        width: 90px;
        height: 90px;
        margin: 24px auto 6px auto;
    }
    .logo-label {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    h1 {
        font-size: 1.4rem;
        margin-top: 12px;
    }
    .weather-form {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    input, button {
        width: 100%;
        font-size: 1rem;
        margin: 6px 0;
        padding: 12px 10px;
    }
    #weatherResult, #historyContainer {
        min-width: unset;
        width: 98vw;
        max-width: 99vw;
        padding: 10px;
        border-radius: 12px;
    }
    #weatherResult img {
        width: 70px;
        height: 70px;
    }
}