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

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    /* Fundo azul claro temático de clima */
    background-color: #e0f7fa; 
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
}

/* Cartão principal centralizado */
.container {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 400px;
    margin: 20px;
}

h1 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #0277bd;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}

input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

input:focus {
    border-color: #0277bd;
}

button {
    padding: 10px 20px;
    background-color: #0277bd;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.1s;
}

button:hover {
    background-color: #01579b;
}

button:active {
    transform: scale(0.98);
}

#resultado {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    display: none;
    /* Animação suave ao aparecer */
    animation: fadeIn 0.4s ease-out;
}

.icone-clima {
    width: 100px;
    height: 100px;
    margin: -10px auto 5px auto;
    display: block;
}

h2 {
    font-size: 1.4rem;
    color: #333;
}

p {
    margin-bottom: 5px;
    color: #555;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
