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

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

.container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 500px;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 2rem;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 2rem;
}

#cityInput {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

#searchBtn {
    padding: 12px 24px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

#searchBtn:hover {
    background: #5568d3;
}

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

.weather-result h2 {
    color: #333;
    margin-bottom: 1rem;
}

.temp {
    font-size: 3rem;
    color: #667eea;
    font-weight: bold;
}

.condition {
    font-size: 1.2rem;
    color: #666;
    margin: 1rem 0;
}

.details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.detail-item {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 5px;
}

.detail-label {
    color: #999;
    font-size: 0.9rem;
}

.detail-value {
    color: #333;
    font-size: 1.2rem;
    font-weight: bold;
}

.error {
    color: #e74c3c;
    padding: 1rem;
    background: #fadbd8;
    border-radius: 5px;
    text-align: center;
}

.hidden {
    display: none;
}
