/* Gerneral page setup */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #4b6cb7, #182848);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Weather app container */

#app-container {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    padding: 30px;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Search section */

#search-area {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

#city-input {
    flex: 1;
    padding: 12px 15px;
    font-size: 16px;
    border: none;
    border-radius: 12px;
    outline: none;
}

#search-button {
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    background: #00c6ff;
    color: #fff;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.25s ease;
}

#search-button:hover {
    background: #0096cc;
}

/* Weather display section */

#weather-result {
    text-align: center;
}

#weather-result h2 {
    font-size: 26px;
    margin-bottom: 10px;
}

/* results styling */

#weather-result p {
    font-size: 18px;
    margin: 8px;
}

/* weather icon and results layout */

#weather-result .weather-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
}

.weather-icon {
    width: 120px;
    height: 120px;
    object-fit: contain;;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
    transform-origin: center;
    transition: transform 240s ease;
}

.weather-icon:hover {
    transform: scale(1.03);
}

.temp-large {
    font-size: 36px;
    font-weight: 600;
    margin-top: 4px;
}

.weather-desc {
    text-transform: capitalize;
    margin-bottom: 6px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
}

/* add a small responsive tweak */

@media (max-width: 420px) {
    .weather-icon {width: 90px; height: 90px;}
    .temp-large {font-size: 30px;}
}

