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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
}

.container {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 400px;
    text-align: center;
}

h1 {
    margin-bottom: 1.5rem;
    color: #333;
}

.search-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
}

input:focus {
    border-color: #667eea;
}

button {
    padding: 0.75rem 1.5rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

button:hover {
    background: #5568d3;
}

.weather-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 15px;
    margin-top: 1rem;
}

.weather-card.hidden {
    display: none;
}

.weather-card img {
    width: 100px;
    height: 100px;
}

.temperature {
    font-size: 3rem;
    font-weight: bold;
    color: #667eea;
    margin: 0.5rem 0;
}

.description {
    font-size: 1.2rem;
    color: #666;
    text-transform: capitalize;
    margin-bottom: 1rem;
}

.details {
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.details div p:first-child {
    color: #999;
    font-size: 0.9rem;
}

.details div p:last-child {
    font-weight: bold;
    color: #333;
}

.error {
    color: #e74c3c;
    margin-top: 1rem;
}

.error.hidden {
    display: none;
}
