@media only screen and (max-width:1024px){

	.content{
		width: 100%;
		padding-left: 5px !important;
		padding-right: 5px !important;
	}
	#footer{
		width: 100%;
		display: block;
		padding-left: 5px;
		padding-right: 5px;
	}
	
}
@media only screen and (max-width:978px){

	.logo-container, .mainmenu_decorated{
		display: block;
		width: 100%;
		text-align: center;
	}
	#header{
		height: 265px;
		
	}
	#header-bottom{
		height: 210px;
		overflow: hidden;
	}
	.logo-container img{
		margin: 0 auto !important;
		text-align: center;
		display: block;
	}
}

@media only screen and (max-width:820px){

	.nb-title{
		font-size: 20px;
	}
	.nb-text{
		font-size: 16px;
	}
	.nb .nb-txt-cntr{
		padding: 20px;
	}
	.cat-tile{
		width: calc(50% - 30px);
		margin-bottom: 20px;
		margin-right: 0;
	}
	.mc .content{
		text-align: center;
	}
	.mc .content a:nth-child(2n-1) .cat-tile{
		margin-right: 20px;
	}
	.slider--text.slider__slideTitle{
		font-size: 28px;
	}
	.slider--text.slider__slideDescription{
		font-size: 16px;
	}
	.foot-menu .pncustommenumenu{
		margin-left: 0;
		padding-left: 20px;
	}
	.foot-text{
		display: none;
	}
	.foot-menu{
		width: 100%;
		display: block;
	}
		.foot-logos{
		display: none;
	}
	.fbc{
		margin-top: 10px !important;
		width: 50%;
		height: 180px;
	}

}

@media only screen and (max-width:730px){
	.wpcblog{
		height: 62px;
		width: 24px;
	}
}

@media only screen and (max-width:670px){
	
	#header-up p{
		font-size: 15px;
	}
	.slider--textContainer{
		padding-left: 20px;
	}
	.slider--textContainer{
		max-width: 90%;
	}
	.slider--textContainer{
		width: 100%;
	}
}
@media only screen and (max-width:670px){



	#mainp_newsslider .slider_container .halfwidth.inl-blk{
		display: block;
		width: 100%;
	}
	#mainp_newsslider{
		height: auto;
		max-height: none;
	}
	
	#header{
		height: auto;
	}
	#header-bottom{
		height: 70px;
	}
	.logo-container{
		padding-top: 5px !important;
	}
	
	.logo-container img{
		margin-left: 0 !important;
	}
	.mobile_menu_button{
		position: absolute;
		top: 65px;
		right: 20px;
		height: 42px;
		width: 42px;
		background-image: url('/parameters/wpcterasz.patronet/templates/_img/mobile_menu_button.png');
		background-size: 100% 100%;
		background-position: center center;
		background-repeat: no-repeat;
		z-index: 1005;
		cursor: pointer;
	}
	
	.mainmenu_decorated{
		float: none;
	}
	
	.mainmenu_decorated ul.pncustommenumenu li > div{
		display: inline-block;
		width: 100%;
		text-align: center;
	}
	.mainmenu_decorated ul.pncustommenumenu li{
		width: 23%;
		height: 150px;
	}
	#header-bottom{
		-webkit-transition: height 0.3s ease;
		-moz-transition: height 0.3s ease;
		-o-transition: height 0.3s ease;
		-ms-transition: height 0.3s ease;
		transition: height 0.3s ease;	
	}
	#header-bottom.open{
		height: 350px;
	}
	
	table{
		width: 100%;
	}
	table tr td{
		display: block;
		width: 100%;
	}
	
}


@media only screen and (max-width:520px){
	
	#header-up p{
		font-size: 11px;
	}
	
	
	.cat-tile{
		width: 100%;
		display: block;
		height: 290px;
	}
	
	.nb .nb-image,
	.nb .nb-txt-cntr{
		height: 280px;
	}
	.foot-menu{
		width: 100%;
		display: block;
	}
	.foot-text{
		display: none;
	}
}

@media only screen and (max-width:400px){

	#header-up{
		display: none;
	}
	.mobile_menu_button{
		top: 10px;
	}
	.logo-container img{
		width: 60%;
		margin-top: 10px !important;
	}
	#header-bottom.open{
		height: 645px !important;
	}
	.mainmenu_decorated ul.pncustommenumenu li{
		width: 40%;
	}
	.mainmenu_decorated ul.pncustommenumenu{
		padding-top: 40px;
	}
}


@media only screen and (max-width:540px){
	#header-bottom.open{
		height: 475px;
	}
}