/* style.css */
   
.fundo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Essa linha coloca o elemento .fundo atrás de todo o outro conteúdo */

    background-image: url("a-city-at-night-with-the-lights-on-in-the-backgrou-2025-02-09-01-27-23-utc.jpg");

    /* Estas propriedades fazem a imagem de fundo se ajustar e centralizar bem */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.container {
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    width: 50vw; /* Ocupa metade da largura da tela */
    height: 100vh; /* Ocupa toda a altura da tela */
    margin-left: auto; /* Alinha tudo na direita */
    text-align: center;
    font-family: Arial, sans-serif;
    color: rgb(255, 255, 255);
    background-color: rgba(0, 0, 0, 0.822); /* Fundo azul com transparência */    
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.781);
    z-index: 10;
    
}

.location {
    margin-top: 10px;    
    line-height: 2;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: auto;
}

#location {
    position: relative;
    margin-left: 15px;
    padding: 10px;
    border-radius: 15px;
    border: none;
    font-size: 12px;
    width: 300px;
    z-index: 20;
}

#search-button {
    margin-top: 10px;
    margin-left: 10px;
    padding: 10px;
    background-color: rgb(23, 54, 88);
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
}

#search-button:hover {
    background-color: rgb(15, 36, 59);
}

.image-container {
    display: flex;
    padding-left: 5%;
    height: 60rem;   
    pointer-events: none;
    position: absolute; /* não deixa empurrar os outros elementos */
    top: -8rem;
    left: 1rem;
    z-index: 1; /* deixa a imagem atrás do botão */
}

#buscarcidade {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 34rem;
    margin-left: 21rem;
    opacity: 0.0; /* deixa o botão transparente */
    background-color: rgb(255, 255, 255);
    position: absolute; /* deixa o botão em cima da imagem */
    z-index: 2; /* deixa o botão na frente da imagem */
    border: none;
}

#buscarcidade:hover {
    cursor: pointer;
    background-color: rgb(189, 189, 189); /*--------ajustar aqui, evento de clique no botão */
}

.footer {
    position: fixed;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fundo preto com transparência */
    color: rgb(255, 255, 255);
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 14px;
    z-index: 5;
}

@media (max-width: 600px) {
    .container {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        align-items: center;
        width: 90vw; /* Ocupa 90% da largura da tela */
        height: 90vh;
        border-radius: 0;
        box-shadow: none;
        padding: 10px; /* Reduz o padding para telas pequenas */
    }
    #location {
        width: 80vw; /* Input ocupa quase toda a largura */
    }
}
    
@media (max-width: 1450px) {
     .image-container {
        display: none; /* Esconde a imagem em telas menores */
 }
}

@media (max-width: 1450px) {
     #buscarcidade {
        display: none; /* Esconde o botão em telas menores */
 }
}