* { 
    margin: 0px; 
    padding: 0px;
}

#custom-search-form {
        margin:0;
        padding: 0;
    }
 
    #custom-search-form .search-query {
        padding-right: 3px;
        padding-right: 4px \9;
        padding-left: 3px;
        padding-left: 4px \9;
        /* IE7-8 doesn't have border-radius, so don't indent the padding */
 
        margin-bottom: 0;
        -webkit-border-radius: 3px;
        -moz-border-radius: 3px;
        border-radius: 3px;
        -webkit-transition: width  0.2s ease-in-out;
    -moz-transition:width  0.2s ease-in-out;
    -o-transition: width  0.2s ease-in-out;
    transition: width  0.2s ease-in-out;
    }
 
    #custom-search-form button {
        border: 0;
        background: none;
        /** belows styles are working good */
        padding: 2px 5px;
        margin-top: 2px;
        position: relative;
        left: -28px;
        /* IE7-8 doesn't have border-radius, so don't indent the padding */
        margin-bottom: 0;
        -webkit-border-radius: 3px;
        -moz-border-radius: 3px;
        border-radius: 3px;
    }
 
    .search-query:focus + button {
        z-index: 3;   
    }   
    .search-query:focus{
        width: 260px;
    }   

.facebook_right { 
    width: 450px; 
    height: 400px; 
    position: fixed; 
    right: -458px; 
    top: 250px; 
    z-index: 99997; 
} 

.facebook_right #facebook_icon { 
    float: left; 
    height: 165px; 
    width: 61px; 
    left: -61px; 
    background: url("../images/fb-slider.png") no-repeat; 
    cursor: pointer; 
    position: relative; 
    z-index: 99998; 
} 

.facebook_right .facebook_box { 
    background-color: #FFFFFF; 
    border: 4px solid #3B5998; 
    float: right; 
    top: -165px; 
    position: relative; 
    z-index: 99999; 
}


body.strona {
	font-family: Tahoma, Arial, Helvetica, sans-serif;
	font-size: 12px;
    text-align: center;
	background-color: #fff;
    
}

#head {
    width: 100%; 
    height: 70px;
    clear: both;  
} 


#logo {
    margin-left:  0px;
    text-align: left;
    height: 60px;
    width: 110px;
    float: left;
}

@media (min-width: 48em) {
    #logo {
        margin-left:  20px;
        text-align: left;
        height: 120px;
        width: 220px;
        float: left;
    }
     
    #head {
        width: 100%; 
        height: 140px;
        clear: both;  
    }
    
    #tytul_strony {
        width: 100%;
        height: 50px;
        text-align: left;
        font-size: 20px;
        padding-top: 20px;
    }
    
    .wrapper { 
        width: 100%;
        height: auto;
        margin: 0 auto;   
    }
    
    .wrapper_lewy {
        float: left;
        width: 800px;   
    }

    .wrapper_prawy {
        width: 320px;
        float: left;
    }
    
    #content {
        width: 100%;
        min-height: 100px;
        overflow: hidden;
        background-color: #f2f4f9;
        margin-bottom: 15px;
    }
    
    #szukaj_box {
        width: 100%;
        border-bottom: 1px dashed #ccc;
        margin-bottom: 10px;
    }
}

#tytul_strony {
    width: 100%;
    height: 40px;
    text-align: left;
    font-size: 15px;
    padding-top: 20px;
}

.small {
    font-size: 20px;
}

.medium {
    font-size: 30px;
}

.wrapper { 
    width: 80%;
    height: auto;
    margin: 0 auto;   
}

.wrapper_lewy {
    float: left;
    width: 75%;   
}

.wrapper_prawy {
    width: 25%;
    float: left;
}

.wrapper_polowa {
    float: left;
    width: 50%;
    margin-bottom: 30px;
    text-align: center;    
}

#menu {
    width: 100%;
    text-align: left;
    height: 60px;
    font-size: 14px;
    background-color: #2c3953;
}

#menu a:hover, #menu a:active, #menu a:focus{
    color: #000;
    background-color: #026674;
}


#baner {
    position: relative;
    margin-top: 0px;
    width: 100%;
    max-height:390px; 
    z-index: -10;
    margin-bottom: 20px;
}

.baner_pag {
    color: #0088cc;
}

#szukaj_box {
    width: 100%;
    border-bottom: 1px dashed #ccc;
    margin-bottom: 10px;
}


#news_box {
    width: 100%;
    min-height: 160px;
    border-bottom: 1px dashed #ccc;
    margin-bottom: 20px;
}


#news_foto {
    width: 220px;
    height: 140px;
    padding: 5px 5px 5px 5px;
    margin-right: 10px;
    float: left;
}

#news_foto img {
    border: 5px solid #fff;
}

#news_tytul, #szukaj_tytul {
    font-size: 20px;
    font-weight: bold;
}

#news_tytul a, #szukaj_tytul_a {
    text-decoration: none;
    color: #000;
}

#news_data {
    font-size: 10px;
    color: #0088cc;
}

#news_tresc, #szukaj_tresc {
    margin-top: 15px;
    font-size: 12px;
    overflow: hidden;
}

#news_wiecej {
    color: #0088cc;
    margin-top: 5px;
    text-align: left;
    margin-bottom: 10px;
}

#news_wiecej a {
    color: #0088cc;
}

#content {
    width: 100%;
    min-height: 100px;
    overflow: hidden;
    background-color: #f2f4f9;
    margin-bottom: 15px;
}

#home {
    height: 350px;
    background-color: #e5c4a5;
    background-image: url(../images/bg_home.jpg);
    background-repeat: no-repeat;
    background-position: center;
}

#home img {
    margin-top: 55px;
    float: left;
    margin-left: 12px;
    margin-right: 10px;
}

#tresc {
    min-height: 100px;
    padding: 20px 20px 20px 20px;
    text-align: left;
    font-size: 15px;

}

#tresc_cien {
    margin-left: 15px;
    height: 10px;
    background-image: url(../images/bg_tresc.jpg);
    background-repeat: no-repeat;
    background-position: bottom;
}


#fotka, #miniatura {
    background-color: #fff;
	border: 1px solid #929292;
    box-shadow: 0 0 5px #999;
    -moz-border-radius:3px; /* FF */
    -webkit-border-radius:3px; /* przeglądarki z webkitem (Safari, Chrome itp.) */
    -khtml-border-radius:3px; /* przeglądarki typu K-meleon (typowo Linuxowe) */
    border-radius:3px; /* pozostałe przeglądarki */
    behavior:url(border-radius.htc); /* dodatek dla badzIEwnej przeglądarki */    
}

#fotka {
    margin-top: 30px;
    margin-left: 50px;
    float: left;
    width: 120px;
    height: 120px;
}

#fotka img {
    margin-top: 10px;
    margin-left: 10px;
}

#miniatura_box {
    margin-top: 30px;
    margin-left: 50px;
    float: left;    
}

#miniatura {
    width: 240px;
    height: 240px;
    
}

#miniatura img {
    margin-top: 10px;
    margin-left: 10px;
}

#miniatura_tytul {
    margin-top: 5px;
    font-size: 12px;
    color: #616161;
    width: 240px;
    text-align: center;    
}

#foot {
    width: 100%;
    height: 350px;
    text-align: left;
    color: #000;
    background-color: #fff;
    border-bottom: 1px dashed #ccc;
    border-top: 1px dashed #ccc; 
}

#f_tytul {
    width: 100%;
    font-size: 20px;
    margin-top: 20px;
    color: #000;
}

#f_tresc {
    width: 100%;
    font-size: 12px;
    margin-top: 10px;
    color: #000;
}

#f_lewy, #f_centralny, #f_prawy {
    float: left;
}

#f_lewy, #f_prawy {
    width: 20%;
}

#f_lewy {
    text-align: left;
}

#f_centralny {
    width: 60%;
    text-align: center;
}

#f_prawy {
    text-align: left;
}

#copyr {
    width: 100%;
    height: 65px;
    padding-top: 10px;
}

#copyr a {
    text-decoration: none;
}

.copyr_slgt {
    padding-top: 5px;
    text-align: left;
    font-size: 10px;
    color: #636363;    
}

.copyr_maximus {
    padding-top: 5px;
    float: right;
    font-size: 10px;
    color: #636363;
}



/*NAWIGACA MENU*/

#nav {
  position: relative;
}
#nav ul {
  display: none;
  width: 100%;
  list-style: none;
  margin: 0px;
  padding: 0px;
}
#nav ul li a {
  display: block;
  padding: 1em;
  background: #005292;
  color: white;
  text-decoration: none;
  border-right: 1px solid #0a6b44;
}
#nav ul li a:hover {
  background: #008a91;
}
#nav ul li:last-of-type a {
  border-right: 0px;
}
#nav ul li ul li a {
  padding-left: 1.5em;
}
#nav ul li ul li ul li a {
  padding-left: 3.125em;
}
#nav input.trigger {
  position: absolute;
  top: -9999px;
  left: -9999px;
}
#nav input.trigger:checked ~ ul, #nav input.trigger:checked ~ ul li ul {
  display: block !important;
}
@media (min-width: 48em) {
  #nav input.trigger:checked ~ ul, #nav input.trigger:checked ~ ul li ul {
    /* older flexbox */
    display: -webkit-box;
    display: -moz-box;
    display: box;
    -webkit-box-orient: horizontal;
    -moz-box-orient: horizontal;
    box-orient: horizontal;
    /* newer flexbox */
    display: flex;
    flex-direction: row;
  }
}
#nav label {
  position: relative;
  display: block;
  min-height: 2em;
  padding: .45em;
  font-size: 1.1em;
  margin: 0;
  cursor: pointer;
  background: #005292;
  line-height: 2em;
  color: #bfe1fb;
}
#nav label:after {
  position: absolute;
  right: 1em;
  top: .2em;
  content: "\2261";
  font-size: 1.8em;
  color: white;
}
@media (min-width: 48em) {
  #nav ul {
    /* older flexbox */
    display: -ms-flexbox;
    flex-direction: -ms-row;
    display: -webkit-box;
    display: -moz-box;
    display: box;
    -webkit-box-orient: horizontal;
    -moz-box-orient: horizontal;
    box-orient: horizontal;
    /* newer flexbox */
    display: flex;
    flex-direction: row;
  }
  #nav ul li {
    position: relative;
    text-align: center;
    /* older flexbox */
    -ms-flex: 1;
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
    box-flex: 1;
    /* newer flexbox */
    flex: 1;
  }
  #nav ul li ul {
    display: none !important;
    position: absolute;
    top: 3.0625em;
    left: 0;
    display: block;
    width: 12.5em;
    z-index: 200;
  }
  #nav ul li ul li {
    text-align: left;
  }
  #nav ul li ul li ul {
    z-index: 300;
    top: 0px;
    left: 12.4em;
  }
  #nav ul li ul li ul li a {
    padding-left: 30px !important;
  }
  #nav ul li:hover > ul {
    display: block !important;
  }
  #nav label {
    display: none;
  }
}

.md {font-size:14px; display:inline; float:left;}
.md h2 {font-size:14px; display:inline;}
.md div {display:inline}