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

/* Background and font styles */
body {
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #333;
    transition: background-color 0.6s ease, background-image 0.6s ease;
}

/* Main container */
.weather-app {
    background-color: #fff;
    border-radius: 15px;
    width: 320px;
    padding: 30px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: slideIn 0.6s ease-out;
    transition: background-color 0.6s ease, background-image 0.6s ease;
}

/* Header section */
header h1 {
    font-size: 2.5rem;
    color: #4b9cf1;
    margin-bottom: 10px;
}

.tagline {
    font-size: 1rem;
    color: #555;
    font-weight: 300;
    margin-top: 5px;
}

/* Search box */
.search-box {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

#city-input {
    width: 70%;
    padding: 10px;
    font-size: 1rem;
    border: 2px solid #4b9cf1;
    border-radius: 8px;
    outline: none;
    margin-right: 10px;
    transition: all 0.3s ease;
}

#city-input:focus {
    border-color: #2196f3;
}

#search-btn {
    padding: 10px 15px;
    background-color: #4b9cf1;
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#search-btn:hover {
    background-color: #2196f3;
}

/* Weather info section */
.weather-info {
    margin-top: 20px;
}

#city-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

#temp {
    font-size: 2rem;
    font-weight: 500;
    color: #4b9cf1;
    margin-bottom: 15px;
}

.icon img {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}

#description {
    font-size: 1.1rem;
    font-weight: 300;
    color: #777;
}

/* Footer section */
footer {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #aaa;
}

/* Animation for the box */
@keyframes slideIn {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Color gradients based on temperature */
.bg-cold {
    background: linear-gradient(to top, #a1c6ea, #d0e7ff);
}

.bg-warm {
    background: linear-gradient(to top, #ffe0b2, #ffcc80);
}

.bg-hot {
    background: linear-gradient(to top, #ffb3b3, #ff6666);
}