.searchbarforecast {
    position: relative;

    width: 100%;
    max-width: 600px; 
    height: 55px;

    /* Ujednolicone marginesy (uważaj na podwójne nadpisywanie margin-top) */
    margin: 9% auto 30px auto; 

    display: flex;
    align-items: center;

    background: #162235;

    border: 2px solid #d68213;
    border-radius: 18px;

    box-sizing: border-box;
    margin-top:9%;
}


/* INPUT */

#searchbarinputforecast {
    width: 100%;
    height: 100%;

    padding-left: 55px;
    padding-right: 20px;

    border: none;
    outline: none;

    background: transparent;

    color: #E8EDF3;

    font-size: 17px;
    box-sizing: border-box;
}

#searchbarinputforecast::placeholder {
    color: #9da8b5;
}

@media (max-width: 768px) {
    .searchbarforecast {
        height: 45px;                   /* Mniejsza wysokość na telefonie */
        max-width: 90%;                 /* Zostawia delikatny margines po bokach ekranu */
        margin: 20px auto 15px auto; 
        margin-top:25%;   /* Zmniejszone marginesy (np. żeby usunąć za duże 9%) */
    }

    #searchbarinputforecast {
        font-size: 15px;                /* Nieco mniejsza czcionka wpisywanego tekstu */
        padding-left: 45px;             /* Dopasowanie wstrzykniętego paddingu pod ikonę */
    }
}


/* LUPA */

.lupa {
    position: absolute;

    left: 18px;

    width: 23px;
    height: 23px;

    fill: none;
    stroke: #d68213;
    stroke-width: 2;

    pointer-events: none;
}



/* SUGGESTIONS */

#suggestionsforecast {
    position: absolute;

    top: calc(100% + 8px);
    left: 0;

    width: 100%;

    background: #162235;

    border-radius: 15px;

    overflow: hidden;

    z-index: 100;
}


/* POJEDYNCZY WYNIK */

.suggestionboxforecast {
    padding: 13px 18px;

    color: #E8EDF3;

    font-size: 16px;

    cursor: pointer;

    border-bottom: 1px solid #263449;

    box-sizing: border-box;
}


/* ostatni wynik bez kreski */

.suggestionboxforecast:last-child {
    border-bottom: none;
}


/* najechanie */

.suggestionboxforecast:hover {
    background: #22334a;
    color: #d68213;
}
#sign{
    text-align: center;     /* Centruje tekst wewnątrz nagłówka */
    color: #ffffff;
    font-size: 3rem;
    font-family: Arial, sans-serif;
    margin-bottom: 20px;   
    margin-top: 10% /* Odstęp między nagłówkiem a wyszukiwarką */
}

@media (max-width: 768px) {
#sign{
    text-align: center;     /* Centruje tekst wewnątrz nagłówka */
    color: #ffffff;
    font-size: 2rem;
    font-family: Arial, sans-serif;
    margin-bottom: 20px;   
    margin-top: 10% /* Odstęp między nagłówkiem a wyszukiwarką */
}
}
#forecastbox {
    position: relative;
    max-width: 900px;
    width: 100%;
    background-color: #162235;
    border-radius: 20px;
    border-left: 5px solid #d17300;
    opacity: 0.95;
    
    display: flex;
    flex-direction: column;
    align-items: flex-start;    /* Poprawiono z 'left' na 'flex-start' */
    
    /* Zwiększamy padding, aby tekst nie kleił się do lewej krawędzi i obramowania */
    padding: 20px 20px 20px 25px; 
    
    gap: 10px;                  /* Opcjonalnie: dodaje odstęp między elementami wewnątrz */
    box-sizing: border-box;
}
#forecastbox * {
    margin: 0;
}
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

/* 2. Kontener wymuszający środek na 100% szerokości ekranu */
.centralwrapper {
    display: flex;
    justify-content: center; /* Centruje w poziomie – odkleja od lewej strony! */
    align-items: center;     /* Centruje w pionie */
    width: 100%;
    flex-direction: column;
    min-height: 50vh;
    box-sizing: border-box;
    padding: 5px;
}
#submitButton {
    background-color: #d17300;
    color: #E8EDF3;
    border: none;
    font-size: 14px;
    width: 100%;
    height: 25px;
    border-radius: 10px;
}
p{
    color: #9ca3af;
    font-size: 0.90rem;
    line-height: 1.4;
    margin: 0;
}
#header{
    font-size: 24px;
}
