/*Resetujemy marginesy wewnętrzne i zewnetrzne i określamy domyślny font na Roboto*/

* {
    padding: 0;
    margin: 0;
    font-family: Roboto, arial, sans-serif;
    box-sizing: border-box;
}

body {
    background-color: #ddb;
}


/*Kontener zbiorczy - często stosowana praktyka */

#wrapper {
    max-width: 1000px;
    /* wypełniaj 100% miejsca ale nie więcej niż 1000 px szerokości*/
    margin: 0 auto 10px;
    /* 10px marginesu na dole oraz wyśrodkowanie*/
    background-color: white;
}

header {
    position: relative;
}
/*obrazek w headerze */

#imgHeader {
    width: 100%;
    display: block;
}

.home.main p {
    text-align: justify;
    line-height: 25px;
    font-size: 18px;
    padding: 15px 0;
}

nav {
    overflow: hidden;
    opacity: .8;
    display: block;
    max-width: 1000px;
    width: 100%;
}

nav a {
    display: block;
    width: 25%;
    float: left;
    color: white;
    text-align: center;
    text-decoration: none;
    background-color: seagreen;
    padding: 20px 30px 15px 30px;
    font-size: 20px;
    -webkit-transition: all 1s ease;
    transition: all 1s ease;
    border-radius: 20% 20% 5% 5%;
    transition: .5s;
}

nav a:hover {
    background-color: lightcoral;
    cursor: pointer;
}

nav a.active {
    background-color: crimson;
}

#adres {
    display: block;
    text-align: left;
    padding-left: 15%;
    padding-bottom: 15px;
    margin-bottom: 20px;
    margin-left: 15%;

}

#adres u {
    display: block;
}

h3 {
    font-size: 1.3em;
    text-decoration: underline;
    text-align: center;
}

h2 {
    color: brown;
    border-top: 2px solid red;
    border-bottom: 2px solid red;
    width: 40%;
    display: block;
    text-align: center;
    margin: 30px 30%;
    background-color: azure;
}

h1 {
    font-size: 30px;
    text-align: center;
    width: auto;
    margin: 0 10%;
    margin-top: 60px;
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 2px solid crimson;
}
.lista {
    display: block;
    width: 80%;
    margin-left: 10%;
}

ol { counter-reset:lista; }
ol li { 
    list-style:none; 
    counter-increment:lista; 
    padding-bottom: 7px;
}
ol li:before { content:counter(lista) ") "; }

ul li {
    width: 80%;
    margin-left: 15%;
    padding-bottom: 7px;
}

.motto {
    font-size: 1.8em;
    text-align: center;
    width: 9auto;
    margin: 3vh 5vw;
    border-bottom: 2px dotted crimson;
    border-top: 2px dotted crimson;
    padding: 20px 10px;
    border-radius: 50px;
    background-color: palegreen;
}

.telefon {
    margin-left: 18%;
    display: block;
    margin-bottom: 20px;
    max-width: 1000px;
    width: 100%;
}
.numer {
    display: block;
    font-style: normal;
    width: 100%;
    height: 6vh;
    color: darkred;
    transition: font-size 1s ease;
}
.numer:hover {
    display: block;
    font-size: 1.3em;
    cursor: default;
    padding-bottom: 7px;
}

.opis {
    display: inline-block;
    font-style: italic;
    margin-left: 2%;
    cursor: default;
}
#bip {
    position: absolute;
    max-width: 200px;
    width: 60px;
    top: 5px;
    right: 15px;
    border-radius: 50%;
    opacity: .6;
    display: block;
    background-image: url(btn_bip.png);
    padding-bottom: 60px;
    transition: width .5s ease;
}

#bip:hover {
    opacity: 1;
    width: 200px;
    cursor: pointer;
    border-radius: 30px;
}

#bip img {
    max-width: 220px;
    width: 20vw;
    height: auto;
}

/*obrazek mały*/

img.left {
    float: left;
    width: 25%;
    padding: 0px 10px 10px 0px;
    border-radius: 50% 30%;
}

img.right {
    float: right;
    width: 25%;
    padding: 0px 0px 10px 10px;
    border-radius: 30% 50%;
}

img.right2 {
    float: right;
    width: 35%;
    padding: 0px 0px 10px 10px;
    border-radius: 60px;
}

@media (max-width:800px) {
    nav a {
        width: 50%;
        font-size: 22px;
    }
    h1 {
        font-size: 26px;
    }
    nav a {
        border-radius: 10%;
    }
}

@media (max-width:500px) {
    nav a {
        width: 100%;
    }
    #bip {
       
    }
    img.left {
        width: 100px;
    }
    img.right {
        width: 100px;
    }
    img.right2 {
        width: 120px;
    }
}

article p {
    text-indent: 5vw;
}

/*nagłówek */




/*style dla stopki */

#wrapper iframe {
    width: 100%;
    margin-top: 20px;
}

article {
    padding: 0 20px;
}

footer {
    height: 40px;
    background-color: darkcyan;
    color: white;
    line-height: 40px;
    text-align: center;
    margin-top: 40px;
}


/*dla strony, która jest otwarta w przeglądarce */

.active {
    background-color: crimson;
}

.main {
    margin-top: 30px;
}