html{
	font-family: "Trebuchet MS",Arial,sans-serif;
	font-size:0.9em;
	height:100%;
}

body{
	margin:0.5em 0.5em 0.5em 0.5em;
	border:0;
}

#menu
{
/*	background-color:#9DA400;*/
	background: url(imatges/gradientesqgrn.jpg) 0% 0% repeat-x;
	float:left;
	width:auto;
	max-width:30%;
	padding-left:0.5em;
	padding-right:0.5em;
}

#principal
{
	float:left;
	max-width:68%; /*Zoom va millor*/
	line-height: 1.5em;
	padding-top:1em;
	padding-left:1em;
}
/* Start Mac IE5 filter \*/
#menu, #principal
	{
	padding-bottom: 32767px !important;
	margin-bottom: -32767px !important; 
	}
/* End Mac IE5 filter */
#wrap
	{
	overflow: hidden; /* This hides the excess padding in non-IE browsers */
	}
/* we need this for IE 5.01 - otherwise the wrap does not expand to the
necessary height (unless fixed, this problem becomes even more acute 
weirdness as the method is enhanced */
#wrap
	{
/* Normally a Holly-style hack height: 1% would suffice but that causes 
IE 5.01 to completely collapse the wrap - instead we float it */
	float: left;
/* NB. possibly only IE 5.01 needs to get this float value - otherwise 5.5 sometimes 
(I saw it happen many moons ago) makes the width of wrap too small 
the float: none with the comment is ignored by 5.01,
5.5 and above see it and carry on about their business
It's probably fine to just remove it, but it's left here 
just in case that many moons ago problem rears its head again */
	float/**/: none;
	}
/* easy clearing */
#wrap:after
	{
	content: '[DO NOT LEAVE IT IS NOT REAL]'; 
	display: block; 
	height: 0; 
	clear: both; 
	visibility: hidden;
	}
#wrap
	{
	/*display: inline-block;*/
	}
/*\*/
#wrap
	{
	display: block;
	}
/* end easy clearing */
#footer
	{
	clear: both;
	}
/* Safari needs this - otherwise the ghost overflow, though painted 
correctly obscures links and form elements that by rights should be above it.
An unintended side-effect is that it cause such elements to vanish in IE 5.01
and 5.5, hence the child selector hack */
* > #footer, * > form, * > #notes, * > .output
	{
	position: relative;
	z-index: 1000;
	}

#contenido {
	width: 100%;
	/*background-color: #9DA400;*/
	color:inherit;
	clear: both;
	margin: 0;
	background: url(imatges/gradient_verd.png) 0% 0% repeat-x;
}

#breadcrumbs{
	float:left;
	color:white;
	background:inherit;
	width:50%;
	height:29px;
	padding-top:0.8em;
	padding-left:0.4em;
}

#exercicis{
	float:left;
	background:inherit;
	width:49%;
	height:29px;
	padding-top:0.8em;
}

#exercicis a:hover{
	color:#FFFFFF;
}

#exercicis b {
	color: white;
}


#breadcrumbsalfabet{
	float:left;
	color:white;
	background:inherit;
	width:35%;
	height:29px;
	padding-top:0.8em;
	padding-left:0.4em;
}

#alfabet{
	float:left;
	background:inherit;
	width:64%;
	height:29px;
	padding-top:0.8em;
}


#alfabet a, #breadcrumbs a, #breadcrumbsalfabet a, #exercicis a {
	color: yellow;
	text-decoration: none;
}
#alfabet a:hover, #breadcrumbs a:hover, #breadcrumbsalfabet a:hover, #exercicis a:hover{
	text-decoration: none;
	color: #FFFFFF;
}


#banderes{
	float:right;
	width:auto;
	height:29px;
	padding-right:0.4em;
}

#insertaesquerra {
	float:left;
	width:49%; /*50% error en IE6 i 7!*/
	/*Evita moviments de columnes en Firefox, no afecta IE6*/
	max-width:320px;
}

#insertadreta{
	float:right;
	width:49%; /*50% error en IE6 i 7!*/
	max-width:320px;
}

/*Per exercicis amb columnes de diferents mides*/
#insertaesquerra2{
	float:left;
	width:270px;
}

#insertadreta2{
	float:right;
	width:270px;
}

#ninotesquerra{
	float:left;
	width:270px;
	margin-left:50px;
	margin-right:-50px;
}

#mig{
	position: relative;
	height:50%;

}
#abaix{
	position: absolute;
	bottom:40%;
}

#test{
	float: left;
}

ul {
	width: 100%;
	font-size: 1em;
	list-style: none; /*Eliminem l'estil de llista*/
	padding: 0em; /*Evita la identificació que apareix en alguns navegadors*/
	margin: 0em;
	display: inline; /*Ens permet integrar amb els elements li i evitar problemes -*/
	float: left;	  /*en alguns navegadors*/
	border-bottom: 0em Solid Black;
}

ul li {
	display: block;
	/*El color de les pestanyes és diferent*/
	background-color:#9DA400;
	color:inherit;
	float: left; /*Flota els elements de la llista*/
	text-align: center;
	margin-right: 0.2em;
	position: relative;
}

ul li a {
	width: 7em; /*Fixem l'amplada perquè l'enllaç sigui tota la pestanya i no només el text*/
	display: block;
	border-bottom: 1px solid #9DA400;
	text-decoration: none;
	background-image: url(imatges/cantonada.png);
	padding-right: 1em;
	background-position: right bottom;
	background-repeat: no-repeat;
}
ul li a.trobaras{
	width:8.5em;
}

ul li a:link, ul li a:visited, ul li a:active {
	color:#FBEC5D;
	background-color:inherit;
}

ul li a:hover {
	color: #FFFFFF;
	background-color: #B5BF00;
	border-color: #B5BF00;
}

/*Clase especial que resaltarà depenent de la secció*/
a#actual {
	/*width:7.3em;*/
	display:block;
	/*Color alternatiu*/
	/*background-color: #77BADB;*/
	background-color:#7B8200;
	color:#FBEC5D;
	/*Color de la línia de la pestanya*/
	border-bottom:1px Solid #7B8200;
	text-decoration:none;
}

a#actual:link, a.actual:visited, a.actual:active {
	color:#FBEC5D;
	background-color:#7B8200;
	border-bottom:1px Solid #7B8200;
}


a#actual:hover {
	color: #FBEC5D;
	cursor: default;
	background-color:#7B8200;
	border-bottom:1px Solid #7B8200;
}

input {
	font-size:0.8em;
}
  
h1 { 
	font-family:"Trebuchet MS",Arial,sans-serif;
	font-size:1.4em;
	font-weight:bold;
}

h2 { 
	font-family:"Trebuchet MS",Arial,sans-serif;
	font-size:1.25em;
	font-weight:bold;
}

h3 { 
	font-family:"Trebuchet MS",Arial,sans-serif;
	font-size:1.1em;
	font-weight:bold;
}

img.ima { float:left; 
	margin-right: 0.5em;
	}
img.dibu { float:left;
	margin-right: 0.5em;
	}
img.dreta { float:right; 
	border: 0em;}


.testSquare {
	border:0.05em solid #7B8200;text-align:center;
	color:#000;
	cursor:move;
	background-color:#FDFFD4;
	max-width:400px;
	width:expression(document.body.clientWidth > 400? "400px": "auto" );
		
}

.testSquareOn {
	border:0.05em solid #824800;text-align:center;
	color:#000;
	cursor:move;
	background-color:#FFECD4;
	max-width:400px;
	width:expression(document.body.clientWidth > 400? "400px": "auto" );
	
}


.soluarrosega{
	background-color:#F7E799;
	background-image: url(imatges/gradient_groc.png);
	background-repeat: repeat-x;
	padding: 0.25em 0.33em 0.25em 0.5em;
	border: 1px solid #F2D64F;
}

.solucioradio{
	background-color:#F7E799;
	margin-top: 0.5em;
	padding: 0.15em 0.33em 0.15em 0.5em;
	border: 1px solid #F2D64F;
	/*Posició absoluta no funciona perquè hi han exercicis on la solució
	és al costat d'una imatge*/
	display:inline;
}

.textboxcorrecte{
	background-color:#9FDFA0;
	border-style:solid;
	border-color: #404040 #989898 #989898 #404040;
	border-width: 1px;
	
}

.textboxincorrecte{
	background-color:#DF9F9F;
	border-style:solid;
	border-color: #404040 #989898 #989898 #404040;
	border-width: 1px;
}

.textboxnocorregit{
	background-color:white;
	border-style:solid;
	border-color: #404040 #989898 #989898 #404040;
	border-width: 1px;
}

.selectcorrecte{
	background-color:#9FDFA0;
}

.selectincorrecte{
	background-color:#DF9F9F;
}

.selectnocorregit{
	background-color:white;
}

.imatgeincorrecte{
	height:16px;
	width:16px;
}

.imatgecorrecte{
	height:16px;
	width:16px;
}

.imatgeinvisible{
	height:1px;
	width:1px;
}

.teclatguiri{
	background-color:#BCBF40;
	/*float:right;*/
	position: absolute;
	opacity: 0.9;
	border-collapse: collapse;
	border: 1px solid black;
	font-size: 85%;
	cursor:pointer;
}

.teclatguiri td {
	border: 1px solid black;
	width: 1.5em;
	text-align:center;
}
.teclatguiri td:hover {
	background-color:#DDDF9F;
}


#ajuda{
	clear:both;
	/*background-color:#FFC680;*/
	color:inherit;
	zoom:1;
	/*Mesura posada a mà!, mostra tota l'ajuda pel Opera i deixa espais en blanc a sota de les ajudes.
	És necessària perquè es fa servir absolut en ajuda2*/
	height:7em;
	margin-bottom:2em; /*Deixem un marge entre l'ajuda i un possible text*/
}

#ajuda2{
	/*Posició absoluta arregla el bug en Firefox en exercicis de columnes, en que al mostrar l'ajuda
	es movia la columna de la dreta, però fa que Opera (9) generi el scrollbar tant llarg.
	Amb relatiu, l'ajuda en l'Opera s'arregla, però no s'arregla les columnes amb Firefox.*/
	position:absolute;
	/*Per Opera i Fierfox, no afecta IE6*/
	margin-top:0.5em; /*Espai entre els botons i l'ajuda.*/
	max-width:68%; 
	min-width:68%;
	clear:both;
	background-color:#FFCE90;
	background-image: url(imatges/gradient_taronja.png);
	background-repeat: repeat-x;
	color:inherit;
	zoom:1;
	padding: 0.25em 0.33em 0.25em 0.5em;
}
#ajuda img {
	position:relative;
	top: 2px;
}
#ajuda2 * {
	zoom:1;
}

#dialeg{
	clear:both;
	margin-top:0.5em; /*Espai entre els botons i el dialeg*/
	background-color:#AFC680;
	color:inherit;
	zoom:1;
}

#dialeg * {
	zoom:1;
}

#respostes{
	clear:both;
	color:inherit;
	background-color:inherit;
}

#inserta a:hover, #principal a:hover {
	text-decoration: none;
	color: #A7AC2E;

}

#inserta a, #principal a {
	color: #5A6000;
	text-decoration: none;
}

body {
	min-height: 97%;
}
html, body {
	height: 97%;
}

#wrap {
	min-height: 100%;
}
p.small {
	font-size: 85%;
}
button {
	background-color: #CECFAF;
		
}

#corregir{

	background-image: url(imatges/wand.png);
	background-repeat: no-repeat;
	padding-left: 20px;
	min-height: 16px;
	background-position: 4px center;

}

#soluci{

	
	background-image: url(imatges/pencil.png);
	background-repeat: no-repeat;
	padding-left: 20px;
	min-height: 16px;
	background-position: 4px center;
}

#ayudahelp
{

	background-image: url(imatges/help.png);
	background-repeat: no-repeat;
	padding-left: 20px;
	min-height: 16px;
	background-position: 4px center;

}

#text{

	background-image: url(imatges/comment.png);
	background-repeat: no-repeat;
	padding-left: 20px;
	min-height: 16px;
	background-position: 4px center;
}
.intercat{
	margin:30px 0px;
}
