body {/*Format general de tota la pàgina*/
	background-color: #111;
	font-family: Calibri;
	font-size: 16px;
	color: #FFF;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	margin-left: 0px;
	padding-top: 0px;
	padding-right: 0px;
	padding-bottom: 0px;
	padding-left: 0px;
	text-shadow: 2px 2px 5px #000;
	width: auto;
	background-image: url(../imatges/fonsnegre1.jpg);
	background-repeat: repeat;
}
a img {
	border: none;
	margin-right: 8px;
}
#header { /*Capçalera blava*/
	background-color: #09C;
	margin: 0px;
	padding: 0px;
	height: 123px;
	width: auto;
	background-image: url(../imatges/fons_capcalera.jpg);
	float: none;
	text-align: center;
}
#idioma{
	float: left;
	width: ;
	/*margin: 0px 13px 11px 4px;*/
	padding-top: 35px;
	padding-left: 80px;
}
#idioma img,#xarxes_socials a img,#idioma a img{
	opacity: 0.82;
}
#idioma img:hover,#xarxes_socials a img:hover,#idioma a img:hover{
	opacity:1.0;
}
#menu_fons { /*Barra Menu*/
	background-image: url(../imatges/fons_menu2.jpg);
	width: auto;
	height: 80px;
	float: none;
	text-align: center;
}
#menu_titols {
	font-size: 20px;
	float: right;
	width:auto;
	padding-top: 35px;
	height: 60px;
	text-align: center;
	position: absolute;
	border-right-width: 50px;
	left: 250px;
	top: 123px;
}
#menu_titols ul {
	margin: 0;
	padding: 5px 0px 0px 5px; /*Marge de les lletres de cada pestanya*/
	list-style: none;
	/*line-height: normal;	*/
	width: auto;
	list-style:none;
	text-align: center;
}
#menu_titols li {
	display: block; /* block / inline */
	float: left;
	margin:0 0 0 0px;
	padding:0 0 0 0px;
	text-align: center;
}
#menu_titols a {
	float:none;
	width: auto;	
	padding:0 0 0 8px; /*Marge esquerra de cada apartat del menu....PestL*/
	text-align: center;
}
#menu_titols a span {
	font-family: Calibri;
	float:left;
	display:block;
	font-size: 18px;
	font-weight:bold;
	text-align: center;
	margin:0px -5px 0px 0px; /* Espai entre cada pestanya del menu*/
	padding:8px 18px 8px 0px; /*Anar modificant la part visible de cada pestanya on va el titol*/
	color:#FFFFFF; /*Color del text del menu*/
}
#menu_titols a img{
	margin: 0 0 0 0px;
}
#menu_titols a:hover { 
	text-decoration: none;
	color:#0FF; /* Canviar el color del text al passar el RATOLI per sobre */
}
#menu_titols a:hover span {
	color:#2db1e1; /* Color de text amb el ratoli sobre */
}
#menu_titols .pagina_actual a {
	float:left;

	background:url(../imatges/PestL.png) no-repeat left top;
}
#menu_titols .pagina_actual a span{
	float:left;
	color: #111; /* Canviar el color del titol de la PAGINA ACTUAL*/
	background:url(../imatges/PestR.png) no-repeat right top;
}
#mig {/*Contingut del mig, després de Capçalera i abans de Peu*/
	width: auto;
}
#submenu { /*On pot anar els títols a l'esquerra*/
	width: 35%;
	float: left;
	margin-top: 15px;
}
#contingut { /*Contingut de la dreta*/
	width: 50%;
	float: right;
	position: static;
	text-align: left;
	margin-right: 20px;
	line-height: 26px;
}
#contingut a:visited,#contingut a:link{
	color:#2db1e1;
}
#contingut a:hover{
	color:#F90;
}
h1 { /* Lletra de títol h1 (heading1)*/
	font-family:Helvetica;
	font-size: 36px;
	color:#FFF;
	text-shadow: 3px 3px 10px #000, -0px -0px 0px #09F;
	padding-left: -15px;

}

hr { 	border:none;
	border-top:2px solid #FFFFFF;
	height:2px;
	margin-bottom:0px;
}

#peu_fons { /*Peu gris i blau*/
	float: right;
	width: 100%;
	clear: both;
	background-image: url(../imatges/fons_menu3.jpg);
	text-align: center;
	height: 130px;
}
#imatgesBN img {
    filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'saturate\' values=\'0.5\'/></filter></svg>#grayscale"); /* Firefox 10+ */
    filter: gray alpha(opacity=50); /* IE6-9 */
    -webkit-filter: grayscale(50%); /* Chrome 19+ & Safari 6+ */
    -webkit-transition: all .6s ease; /* Fade to color for Chrome and Safari */
    -webkit-backface-visibility: hidden; /* Fix for transition flickering */
}

#imatgesBN img:hover {
    filter: none;
    -webkit-filter: grayscale(0%);
}
