@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');

*{

    font-family: 'Poppins', sans-serif;
    margin: 0%;
    padding: 0%;
    box-sizing: border-box;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(#4a7dff
    , #1c355e)
}

  

#container {
    background: rgba(255, 255, 255, 0.25); /* Um pouco mais opaco para dar leitura */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
    color: #000000; /* GARANTE QUE O TEXTO SEJA BRANCO */
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.5); /* Adiciona uma sombra leve para ler melhor */
}


#title, #temp_value, #temp_description, .details span {
    color: #ffffff !important;
}

#search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px; 
    padding: 10px 15px;
    gap: 10px;
}

#search input {
    border: none;
    background-color: transparent;
    font-size: 16px;
    width: 100%;
}

#search input:focus-visible {
    outline: none;
}

#search button {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #fff;
    transition: transform 0.2s;
}


#weather {
    display: none;
    opacity: 0;
    transform: translateY(20px); /* Começa um pouco abaixo */
    transition: all 0.6s ease-out; /* Suaviza a aparição */
}

#weather.show {
    display: block;
    opacity: 1;
    transform: translateY(0); /* Sobe para o lugar original */
}

#weather #title {
    text-align: center;
    margin: 5px;
    font-weight: 600;
    color: #372f3f;

}

#temp {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 20px;
    background: linear-gradient(90deg, #5a7cdc, #606dde);
    color: #fff;
    border-radius: 20px;
    padding: 20px;
}
#temp img {
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.2));
}

#temp_value {
    font-weight: bold;
    font-size: 50px;
    line-height: 55px;
}

#temp_description {
    font-weight: 500;
    text-transform: capitalize;
}

#other_infos {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

#other_infos .info {
    display: flex;
    align-items: center;
    justify-content: start;
    padding: 4px 10px;
    border-radius: 8px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
    background-color: #fff;
    gap: 10px;

}

#other_infos .info h2 {
    font-size: 12px;
    font-weight: 600;
}   
#other_infos .info i {
    text-align: center;
    font-size: 20px;
    width: 20%;
}

#temp_max_icon {
    color: #7f1d1d;
}

#temp_min_icon {
    color: #0284c7;
}
#humidity_icon {
    color: #0ea5e9;
}
#wind_icon {
    color: #7c3aed;
}

#alert {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#alert img {
    width: 200px;
    margin-top: 20px;
}

#geo-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 5px; 
    transition: transform 0.3s ease, color 0.3s ease;
}

#geo-btn:hover {
    transform: scale(1.2);
    color: #fceeb5; 
}

#city_name {
    background: transparent;
    border: none;
    outline: none;
    color: #443f3f; /* Texto branco */
    width: 100%;
    font-size: 1rem;
}

#city_name::placeholder {
    color: rgba(255, 255, 255, 0.7); 
}

#search i {
    color: #fff; 
    opacity: 0.8;
}

#infos > div {
    background: rgba(255, 255, 255, 0.15); 
    padding: 15px;
    border-radius: 15px;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

