/*!
 * Zoptymalizowany CSS dla Superpolisa Partner - Insura Sp. z o. o.
 */

body {
    font-family: 'Open Sans', Arial, sans-serif;
    background: url('../img/bg.jpg') no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    background-size: cover;
    -o-background-size: cover;
}

h1 {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 3em;
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

h2 {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

p {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 1.5em;
    line-height: 1.8;
    color: #000;
}

hr {
    max-width: 400px;
    border-color: #999999;
}
li {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 1.5em;
    line-height: 1.8;
    color: #000; 
}

.box {
    display: flex; /* Ustawienie Flexbox dla kontenera */
    flex-direction: column; /* Układ w pionie (dodatkowe dla zachowania kolejności treści) */
    align-items: center; /* Wyśrodkowanie względem osi poziomej */
    background: rgba(255, 255, 255, 0.8); /* Przezroczyste tło */
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Delikatny cień */
}
.map-responsive {
    display: block; /* Wyłącz Flexbox, jeśli jest ustawiony */
    position: relative; /* Kluczowe dla proporcji */
    overflow: hidden; /* Ukrywa nadmiarowe elementy */
    padding-bottom: 56.25%; /* Proporcja 16:9 dla mapy */
    height: 0; /* Wymusza proporcje dla kontenera */
    max-width: 100%; /* Zabezpieczenie przed wychodzeniem poza ekran */
}

.map-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Ustaw szerokość iframe na 100% */
    height: 100%; /* Ustaw wysokość iframe na 100% */
    border: 0; /* Ukryj obramowanie */
}

.intro-text {
    font-size: 1.25em;
    font-weight: 400;
    letter-spacing: 1px;
}

footer {
    background: rgba(255, 255, 255, 0.8);
}

footer .copyright {
    margin: 0;
    padding: 20px 0;
    text-align: center;
}

/* Styl dla karuzeli zdjęć */
#gallery {
    text-align: center;
    margin: 20px auto;
}

.carousel {
    margin-top: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 500px; /* Ograniczenie maksymalnej wysokości karuzeli */
    overflow: hidden; /* Ukrycie nadmiarowych elementów */
}

.carousel img {
    width: 100%; /* Upewnia się, że zdjęcia zajmują pełną szerokość karuzeli */
    max-height: 500px; /* Kontrolowanie wysokości zdjęć */
    height: 500px; /* Ustalona wysokość zdjęć */
    object-fit: scale-down; /* Dopasowanie obrazu do kontenera */
    border-radius: 10px; /* Opcjonalnie: zaokrąglenie rogów obrazów */
}

.carousel-indicators button {
    background-color: #333; /* Kolor wskaźników */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1); /* Jasne strzałki na ciemnym tle */
}

@media screen and (min-width:768px) {
    .brand {
        display: inherit;
        margin: 0;
        padding: 30px 0 10px;
        text-align: center;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
        font-family: 'Open Sans', Arial, sans-serif;
        font-size: 5em;
        font-weight: 700;
        line-height: normal;
        color: #fff;
    }

    .address-bar {
        display: inherit;
        margin: 0;
        padding: 0 0 40px;
        text-align: center;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
        font-size: 1.25em;
        font-weight: 400;
        letter-spacing: 3px;
        color: #fff;
    }

    .navbar-nav {
        display: table;
        float: none;
        margin: 0 auto;
        table-layout: fixed;
        font-size: 1.25em;
    }

    .map-responsive iframe {
        width: 100%; /* Ustaw szerokość mapy na pełną szerokość ekranu */
        height: auto; /* Zmniejszenie wysokości na urządzeniach mobilnych */
    }

    .map-responsive {
        padding-bottom: 56.25%; /* Zmniejszenie proporcji na mniejszych ekranach */
    }
}

@font-face {
    font-family: 'Open Sans';
    src: url('fonts/OpenSans-Regular.woff2') format('woff2'),
         url('fonts/OpenSans-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}
body {
    font-family: 'Open Sans', Arial, sans-serif;
}