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

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #74ebd5, #9face6);
    color: #222;
}

.container {
    width: 90%;
    max-width: 500px;
    padding: 35px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
}

h1 {
    margin-bottom: 30px;
    font-size: 2.2rem;
}

.search-section {
    margin-bottom: 25px;
}

.search-section label {
    display: block;
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 600;
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
}

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

.search-box button {
    padding: 12px 18px;
    border: none;
    border-radius: 10px;
    background: #667eea;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.search-box button:hover {
    transform: translateY(-2px);
    background: #5568d8;
}

.search-box button:active {
    transform: translateY(0);
}

.weather-card {
    padding: 25px;
    border-radius: 15px;
    background: #f7f8fc;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

#city-name {
    margin-bottom: 15px;
    font-size: 1.8rem;
}

#condition {
    margin-bottom: 10px;
    font-size: 1.1rem;
    text-transform: capitalize;
}

#temperature {
    margin: 15px 0;
    font-size: 3.5rem;
    font-weight: bold;
}

.weather-details {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 20px;
}

.detail span {
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-size: 0.9rem;
}

.detail p {
    font-size: 1.2rem;
    font-weight: 600;
}

.error-message {
    margin-top: 15px;

    font-size: 0.95rem;

    color: #d63031;
}

@media (max-width: 500px) {
    .container {
        padding: 25px 20px;
    }
    .search-box {
        flex-direction: column;
    }
    .search-box button {
        width: 100%;
    }
    .weather-details {
        gap: 30px;
    }
}