* { 
	/* background: transparent !important; 
	color: #000 !important; */
	text-shadow: none !important; 
	filter:none !important; 
	-ms-filter: none !important; 
} 

body {
	margin:0; 
	padding:0;
	line-height: 1.4em;
	font-family: Arial Narrow, Arial, Helvetica, sans-serif;
	color: #000;
	/*height: 841.9px;
	width: 595.28px;*/
	height: 1250px;
	width: 1000px;
	font-size: 16pt;
}

#container {
	/*border: 1px solid blue;*/
	margin:0;
	padding-top: 20%;
	padding-bottom: 0;
	height: 100%;
	width: 100%;
}

#container .certificado{
	/*border: 1px solid blue;*/
	background: url("http://sistemascbm.rn.gov.br/serten/img/avcb.png") no-repeat;
	background-position: center center; 
	background-size: 100% 100%;
}

#content .certificado{
	/*border: 1px solid blue;*/
	margin: -13% 0% 0% 8%;
	height: 105%;
	width: 84%;
}

/* CSS específico para o Chrome version 29 and above */
@media screen and (-webkit-min-device-pixel-ratio:0)
and (min-resolution:.001dpcm) {
	
}

/* CSS específico para o Firefox */
@supports (-moz-appearance:none) {
	body {
		height: 1000px;
		width: 800px;
		font-size: 10pt;
	}
	
	#container {
		/*border: 1px solid red;*/
		background: url("http://sistemascbm.rn.gov.br/serten/img/avcb.png") no-repeat;
		background-position: left center; 
		background-size: 95% 100%;
		margin:0;
		padding-top: 10%;
		padding-bottom: 0;
		height: 100%;
		width: 100%;
	}
	
	#content{
		/*border: 1px solid red;*/
		margin: -4% 0% 0% 7.5%;
		height: 98%;
		width: 80%;
	}
	
	h1 {
		font-size: 18pt !important;
	}

	h2 {
		font-size: 14pt !important;
	}

	h3 {
		font-size: 12pt !important;
	}
	
	h4 {
		font-size: 10pt !important;
	}

	h4.tipo_certificado {
	 	font-size: 14pt !important;
	}

	h5 {
		font-size: 8pt !important;
	}

	p {
		font-size: 10pt !important;
		widows: 3;
		orphans: 3;
	}

	p.obs_certificado {
		font-size: 8pt !important;
	}
}

@page {
	margin: 1.5cm;
	size: A4 portrait;
}

.wrap { 
	width: 100%; 
	margin: 0; 
	float: none !important; 
}

/*.instituicao {
	font-size: 9pt;
	font-family: Arial, Helvetica, sans-serif;
	widows: 3;
	orphans: 3;
}*/

.competencias {
	font-size: 9pt;
	text-align: left;
}

img {
	max-width: 100%;
}

aside {
	display: block;
	page-break-before: always;
}

h1 {
	font-size: 20pt;
}

h2 {
	font-size: 18pt;
}

h3 {
	font-size: 16pt;
}

p {
	font-size: 16pt;
	widows: 3;
	orphans: 3;
}

p.obs_certificado {
	font-size: 12pt;
}

a, a:visited {
	text-decoration: underline;
}

a:link:after, a:visited:after { 
	content: " (" attr(href) ") ";
}

p a {
	word-wrap: break-word;
}

q:after {
	content: " (" attr(cite) ")"
}

a:after, a[href^="javascript:"]:after, a[href^="#"]:after { 
	content: ""; 
}  

.page-break { 
	page-break-before: always; 
}

.instituicao, .titulo_documento {
	font-size: 10pt !important;
	/*font-family: Arial, Helvetica, sans-serif;*/
	text-align: center;
	widows: 3;
	orphans: 3;
}

@media print {
	/* CSS específico para o Firefox */
	@supports (-moz-appearance:none) {
		
		#cert-reg, #cert-title {
			/*border: 1px solid red;*/
			width: 85%;
			/*margin: 20px 20px 30px 30px;*/
		}
		
		#cert-top {
			/*border: 1px solid red;*/
			padding-left: -40px;
			width: 85%;
			/*margin: 20px 20px 30px 30px;*/
		}
		
		#cert-footer {
			/*border: 1px solid red;*/
			margin-left: -10px;
			width: 85%;
			/*margin: 20px 20px 30px 30px;*/
		}
		
		#texto-cert-reg {
			/*border: 1px solid red;
			width: 85%;
			/*margin: 20px 20px 30px 30px;*/
			display: block;
			text-overflow: clip;
		}
		
		/*#container {
			//border: 1px solid red;
			background: url("http://sistemascbm.rn.gov.br/serten/img/avcb.png") no-repeat !important;
			background-position: left center; 
			background-size: 95% 100% !important;
			margin:0;
			padding-top: 10%;
			padding-bottom: 0;
			height: 100%;
			width: 100%;
		}*/
		
		/*#content{
			
			margin: -4% 0% 0% 8%;
			height: 96%;
			width: 80%;
		}*/
		
		/*.instituicao, .titulo_documento, .numero_documento {
			font-size: 10pt !important;
			font-family: Arial, Helvetica, sans-serif;
			text-align: center;
			widows: 3;
			orphans: 3;
		}*/
		
		table {
			margin-top: 70px;
		}
		
		h1 {
			font-size: 18pt;
		}

		h2 {
			font-size: 16pt;
		}

		h3 {
			font-size: 14pt;
		}

		h4.tipo_certificado {
	 		font-size: 14pt !important;
	 		color: #F00 !important;
		}

		h5 {
			font-size: 22px !important;
		}

		p {
			font-size: 40pt;
			widows: 3;
			orphans: 3;
		}

		p.obs_certificado {
			font-size: 10pt;
		}

	}

	@page {
		margin: 1.5cm;
		size: A4 portrait;
	}
	
	#container {
		/*border: 1px solid blue;*/
		background: url("http://sistemascbm.rn.gov.br/serten/img/avcb.png") no-repeat !important;
		background-position: left center; 
		background-size: 100% 98% !important;
		margin:0;
		/*padding-top: 20%;
		padding-bottom: 0;*/
		height: 98%;
		width: 100%;
	}
	
	#content{
		/*border: 1px solid yellow;*/
		font-size: 16pt;
		margin: -13% 0% 0% 8%;
		height: 98%;
		width: 84%;
	}
	
	.no-print/*, nav, footer, video, audio, object, embed */{ 
		display: none; 
	}

	.print {
		display: block;
	}
}