/* Reset básico e configurações do corpo da página */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: linear-gradient(180deg, #594cee, #8dd0f5);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Card principal da aplicação */
.container {
    background-color: rgba(255, 255, 255, 0.3);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    width: 90%;
    max-width: 450px;
}

h1 {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Caixa de busca */
.search-box {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

#city-input {
    flex-grow: 1;
    padding: 0.8rem;
    border: none;
    outline: none;
    border-radius: 5px;
    font-size: 1rem;
}

#search-btn {
    padding: 0.8rem;
    background-color: #fdfdfd;
    color: #594cee;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#search-btn:hover {
    background-color: #e0e0e0;
}

/* Container de dados do clima */
#weather-data {
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    text-align: center;
}

#weather-data h2 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

#temperature {
    font-size: 4rem;
    font-weight: bold;
}

#description-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.6rem 0;
}

#weather-icon {
    width: 50px;
    height: 50px;
}

#description {
    font-size: 1.2rem;
    text-transform: capitalize;
    margin-left: 0.6rem;
}

#details-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

#details-container p {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Classe para esconder o resultado antes da busca */
.hide {
    display: none;
}