/*
// Mapa municipis PPCC
// arnAu bellavista
// 2026
// Estils generals
*/

@media all{

	body {
		margin: 0;
		padding: 0;
		height: 100%;
		font-family: 'Arial';
		font-size: 12px;
		line-height: 18px;
		color: #000033;
		background-color: #666666;
		overflow: hiden;
	}
	a:link { color:#999900; text-decoration:none; }
	a:visited { color:#999900; text-decoration:none; }
	a:active { color:#336699; text-decoration:none; }
	a:hover { color:#336699; text-decoration:none; }
	
	header{
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		padding: 10px 20px;
		height: 40px;
		font-size: 16px;
		line-height: 26px;
		color:#cccc00;
		background-color: #333333;
	}
	
	header h1{
		font-size: 24px;
		line-height: 10px;
		color: #eeeeee;
	}
	
	#mapa{
		position: fixed;
		top: 0;
		width: 100%;
		height: 100%;
		background-color: #555555;
	}
	
	article{
		margin: 0;
		padding: 0;
		background-color: #dddddd;
	}
	
	nav{
		z-index: 3;
		position: absolute;
		top: 90px;
		right: 30px;
			display: flex;
			flex-direction: column;
		width: 200px;
		margin: 0;
		padding: 20px;
		background-color: #fafafa;
		box-shadow: 0 0 20px 0 #999999;
		border-radius: 2px;
	}
	
	.cerca{
		z-index: 2;
		position: absolute;
			top: 90px;
			right: 304px;
		margin: 0;
		padding: 20px;
		text-align: right;
		color: #333333;
		background-color: #fafafa;
		box-shadow: 0 0 20px 0 #999999;
		border-radius: 2px;
	}
	#resultats{
		z-index: 2;
		position: absolute;
		display: none;
		margin-top: 40px;
		padding: 7px;
		min-width: 200px;
		max-height: 400px;
		text-align: left;
		color: #333333;
		background-color: #fafafa;
		box-shadow: 0 0 20px 0 #999999;
		border-radius: 2px;
		overflow-x: visible;
		overflow-y: auto;
	}
	#resultats li{
		list-style-type: none;
		padding: 10px 10px;
		font-size: 14px;
		cursor: pointer;
	}
	#resultats li:hover{
		background-color: #eeeeee;
	}
	.resultatsQuadre{
		width: 18px;
		height: 18px;
		margin-right: 7px;
		border: 1px solid #333333;
		border-radius: 2px;
		background-color: #f5f3f2;
	}
	
	/* Municipis */
	.municipi:hover{
		cursor: pointer;
	}
	
	/* Estils del tooltip */
	#tooltipMapa {
		display: none;
		position: absolute;
		margin: 0;
		padding: 10px;
		min-width: 70px;
		min-height: 18px;
		color: #eeeeee;
		font-size: 14px;
		background-color: #333333;
		border-radius: 2px;
	}
	#tooltipTriangle {
		position: absolute;
		border-width: 10px;
		border-style: solid;
		margin-top: 0px;
		margin-left: -28px;
		border-color: transparent #333333 transparent transparent;
	}
	
	
	.paleta{
		padding: 0;
	}
	
		.color{
			display: block;
			position: relative;
			padding: 4px 0 4px 35px;
			margin-bottom: 10px;
			cursor: pointer;
			font-size: 14px;
			-webkit-user-select: none;
			-moz-user-select: none;
			-ms-user-select: none;
			user-select: none;
		}
		
		/* Hide the browser's default radio button */
		.color input{
			position: absolute;
			opacity: 0;
			cursor: pointer;
		}
		
		/* Create a custom radio button */
		.checkmark{
			position: absolute;
			top: 0;
			left: 0;
			height: 25px;
			width: 25px;
			border: 1px solid #333333;
			border-radius: 2px;
		}
		
		/* On mouse-over, add a grey background color */
		.color:hover input ~ .checkmark {
			border: 1px solid #999999;
			/* background-color: #cccccc; */
		}
		
		/* When the radio button is checked, add a blue background */
		.color input:checked ~ .checkmark {
			box-shadow: inset 0 0 0 1px #111111;
		}
		
		/* Create the indicator (the dot/circle - hidden when not checked) */
		.checkmark:after {
			content: "";
			position: absolute;
			display: none;
		}
		
		/* Show the indicator (dot/circle) when checked */
		.color input:checked ~ .checkmark:after {
			display: block;
		}
		
		/* Style the indicator (dot/circle) */
		.color .checkmark:after {
			top: 7px;
			left: 7px;
			width: 11px;
			height: 11px;
			border-radius: 45%;
			background: white;
		}
		
		.color0{
			background-color: #f5f3f2;
		}
		.color1{
			background-color: #dee8d5;
		}
		.color2{
			background-color: #96ad6f;
		}
		.color3{
			background-color: #78866b;
		}
		.color4{
			background-color: #4B5320;
		}
		.color5{
			background-color: #3B3C36;
		}
		.color6{
			background-color: #c9c144;
		}
		.color7{
			background-color: #cc3f35;
		}
		
	.elimina{
		height: 20px;
		margin-right: 20px;
		padding: 4px;
		cursor: pointer;
	}
	
	.inputs{
		margin: 0;
		padding: 4px 7px;
		width: 180px;
	}
	
	
	.buttons{
		height: 30px;
		margin: 4px 0;
		padding: 0 10px;
		font-size: 12px;
		font-weight: bold;
		letter-spacing: 2px;
		color: #666666;
		background-color: #eeeeee;
		border: 1px solid #666666;
		border-radius: 2px;
		cursor: pointer;
		transition: 0.18s;
	}
	.buttons:hover{
		color: #333333;
		background-color: #cccc00;
	}
	.buttons:active{
		color: #eeeeee;
		background-color: #666666;
	}
	.buttons:disabled,
	.buttons[disabled]{
		background-color: #cccccc;
		cursor: auto;
	}
		.buttonsG{
			font-weight: bold;
		}
	
	/* file upload button */
	.inputArxiu{
		margin: 3px;
		padding: 7px;
		text-align: center;
		border: 1px dashed #aaaaaa;
		border-radius: 4px;
	}
	
	input[type="file"]::file-selector-button {
		margin-right: 7px;
		padding: 7px 14px;
		height: 28px;
		cursor: pointer;
		color: #333333;
		background-color: #cccccc;
		border: 0 solid #aaaaaa;
		box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.05);
		border-radius: 4px;
	}
	/* file upload button hover state */
	input[type="file"]::file-selector-button:hover {
		background-color: #cccc00;
	}
	/* file upload button active state */
	input[type="file"]::file-selector-button:active {
		background-color: #cccccc;
	}
	
	
	
	
	/* Estils navegació */
	.svg{
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		cursor: move;
		background-color: #d7eefa;
	}
	
	svg {
	  background-color: #d7eefa;
	}
	
	
	/* Capes MODALS */
	.modalObre{
		cursor: pointer;
	}
	
	#modalFons{
		z-index: 1;
		display: none;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%; 
		height: 100%;
		overflow: auto;
		background-color: rgba(0,0,0,0.14);
	}
	
	.modal{
		z-index: 3;
		position: fixed;
		display: none;
			top: 90px;
			right: 304px;
			width: 320px;
		margin: 0;
		padding: 20px;
		color: #333333;
		background-color: #fafafa;
		box-shadow: 0 0 20px 0 #999999;
		border-radius: 2px;
	}
	/*	.modalInfo{
			top: 90px;
			left: 30px;
			width: 320px;
		} */
		
	.tanca{
		color: #cccccc;
		float: right;
		font-size: 32px;
		font-weight: bold;
		transition: 0.2s;
	}
	.tanca:hover, .tanca:focus{
		color: #cccc00;
		text-decoration: none;
		cursor: pointer;
	}

}




@media all and (max-width: 1020px){
	
	
}



@media all and (max-width: 750px){
	.mobilNo{
		display: none;
	}
	
	header {
		height: 34px;
	}
	
	header h1{
		font-size: 20px;
		line-height: 8px;
	}
	
	nav{
		top: auto;
		bottom: 0;
		left: 0;
		width: 100%;
		height: 140px;
		margin: 0;
		padding: 0;
		border-radius: 0;
	}
	nav > div{
		display: flex;
		gap: 7px;
		padding: 20px 20px 7px 20px;
	}
	.paleta{
		display: flex;
		gap: 7px;
		padding: 20px 20px 7px 20px;
	}
	.color{
		flex: 1;
	}
	.checkmark{
		top: auto;
		width: 100%;
		height: 30px;
	}
	
	.cerca{
		top: 50px;
		right: 0;
		margin: 0;
		width: calc(100% - 40px);
		padding: 10px 20px;
		text-align: left;
		box-shadow: 0 10px 28px 0 #999999;
		border-radius: 0;
	}
	#resultats{
		margin-top: 10px;
		min-width: 180px;
		max-height: 400px;
		text-align: left;
		color: #333333;
		background-color: #fafafa;
		box-shadow: 0 0 20px 0 #999999;
		border-radius: 2px;
		overflow-x: visible;
		overflow-y: auto;
	}
	#resultats li{
		list-style-type: none;
		padding: 10px 10px;
		font-size: 14px;
		cursor: pointer;
	}
	
	.modal{
		top: 42px;
		left: 28px;
		right: 28px;
		width: auto;
	}
}



@media all and (max-width: 500px){
	header {
		height: 30px;
	}
	
	header h1{
		font-size: 16px;
		line-height: 6px;
	}
}



@media all and (max-width: 314px){
	
}



@media all and (max-width: 250px){
	
}

