/* ==========================================================================
   HTML5 Boilerplate styles - h5bp.com (generated via initializr.com)
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4;
    
}
html, html a {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-smoothing: antialiased;
}
::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

img {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: none;
}

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}


/* ==========================================================================
   Author's custom styles
   ========================================================================== */
#main{
	background: url("../img/bg.jpg") no-repeat center center fixed;
	filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/bg.jpg', sizingMethod='scale');
	-ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/bg.jpg', sizingMethod='scale')"; 
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
	width: 100%;
	height: 945px;
	padding-top: 30px;
}

.header{
	width: 924px;
	height: auto;
	margin: 0 auto;
	padding-top: 10px;
	text-align: center;
}

.header img{
	width: 800px;
}
.content{
	width: 924px;
	height: auto;
	margin: 0 auto;
	margin-top: -60px;
	background: rgba(57,39,42,0.8);
	padding-top: 40px;
	padding-bottom: 20px;
	border-radius: 20px;
}
	.content h3{
		text-align: center;
		color: #ffffff;
		font-size: 22px;
		line-height: 20px;
		padding-left: 40px;
		padding-right: 40px;
		font-family: 'Gentona-BoldItalic';
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
	}
	.content h2{
		text-align: center;
		color: #ffffff;
		font-size: 28px;
		font-family: 'Gentona-BoldItalic';
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;		
	}
	.content .back{
		position: absolute;
		margin-left: 30px;
		margin-top: -24px;
	}
	.content .back img{
		width: 160px;
	}

.nav{
    border-width:1px 0;
    list-style:none;
    margin:0;
    padding:0;
    text-align:center;
}
	.nav li{
	    display:inline;
	}
	.nav li a{
	    display:inline-block;
	    padding-top: 38px;
		padding-bottom: 38px;
		width: 140px;
	    text-decoration: none;
	    text-transform: uppercase;
	    color: #4f4f4f;
	    background: rgb(233,233,233);
	    margin: -1px;
		font-family: 'Gentona-Bold';
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
		font-size: 22px;
		-webkit-transition: all 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750); 
   -moz-transition: all 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750); 
     -o-transition: all 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750); 
        transition: all 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750); /* linear */

-webkit-transition-timing-function: cubic-bezier(0.250, 0.250, 0.750, 0.750); 
   -moz-transition-timing-function: cubic-bezier(0.250, 0.250, 0.750, 0.750); 
     -o-transition-timing-function: cubic-bezier(0.250, 0.250, 0.750, 0.750); 
        transition-timing-function: cubic-bezier(0.250, 0.250, 0.750, 0.750); /* linear */
	}
	.nav li a:hover{
		color: rgb(185,55,39);
		text-shadow:2px 2px 22px rgba(232,101,85,0.4);
	    background: rgb(248,248,248);
	    box-shadow: 1px 1px 30px rgba(255,255,255,0.4);
	    -webkit-box-shadow: 1px 1px 30px rgba(255,255,255,0.4); 
	    -moz-box-shadow: 1px 1px 30px rgba(255,255,255,0.4);
		-webkit-transition: all 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750); 
   -moz-transition: all 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750); 
     -o-transition: all 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750); 
        transition: all 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750); /* linear */

-webkit-transition-timing-function: cubic-bezier(0.250, 0.250, 0.750, 0.750); 
   -moz-transition-timing-function: cubic-bezier(0.250, 0.250, 0.750, 0.750); 
     -o-transition-timing-function: cubic-bezier(0.250, 0.250, 0.750, 0.750); 
        transition-timing-function: cubic-bezier(0.250, 0.250, 0.750, 0.750); /* linear */
	}
	.nav li a.left{
		-webkit-border-top-left-radius: 60px;
		-webkit-border-bottom-left-radius: 60px;
		-moz-border-radius-topleft: 60px;
		-moz-border-radius-bottomleft: 60px;
		border-top-left-radius: 60px;
		border-bottom-left-radius: 60px;
	}
	.nav li a.right{
		-webkit-border-top-right-radius: 60px;
		-webkit-border-bottom-right-radius: 60px;
		-moz-border-radius-topright: 60px;
		-moz-border-radius-bottomright: 60px;
		border-top-right-radius: 60px;
		border-bottom-right-radius: 60px;
	}
	
	/* Progress Bar */
	.meter { 
		height: 10px;  /* Can be anything */
		margin: 0 auto;
		margin-top: 30px;
		width: 60%;
		position: relative;
		background: rgb(48,19,20);
		-moz-border-radius: 25px;
		-webkit-border-radius: 25px;
		border-radius: 25px;
		padding: 10px;
	}
		.meter > span {
			display: block;margin-top: -5px;
height: 20px;
			   -webkit-border-top-right-radius: 8px;
			-webkit-border-bottom-right-radius: 8px;
			       -moz-border-radius-topright: 8px;
			    -moz-border-radius-bottomright: 8px;
			           border-top-right-radius: 8px;
			        border-bottom-right-radius: 8px;
			    -webkit-border-top-left-radius: 20px;
			 -webkit-border-bottom-left-radius: 20px;
			        -moz-border-radius-topleft: 20px;
			     -moz-border-radius-bottomleft: 20px;
			            border-top-left-radius: 20px;
			         border-bottom-left-radius: 20px;
			background-color: rgb(43,194,83);
			background-image: -webkit-gradient(
			  linear,
			  left bottom,
			  left top,
			  color-stop(0, rgb(43,194,83)),
			  color-stop(1, rgb(84,240,84))
			 );
			background-image: -moz-linear-gradient(
			  center bottom,
			  rgb(43,194,83) 37%,
			  rgb(84,240,84) 69%
			 );
			position: relative;
			overflow: hidden;
		}
		.meter > span:after, .animate > span > span {
			content: "";
			position: absolute;
			top: 0; left: 0; bottom: 0; right: 0;
			background-image: 
			   -webkit-gradient(linear, 0 0, 100% 100%, 
			      color-stop(.25, rgba(255, 255, 255, .2)), 
			      color-stop(.25, transparent), color-stop(.5, transparent), 
			      color-stop(.5, rgba(255, 255, 255, .2)), 
			      color-stop(.75, rgba(255, 255, 255, .2)), 
			      color-stop(.75, transparent), to(transparent)
			   );
			background-image: 
				-moz-linear-gradient(
				  -45deg, 
			      rgba(255, 255, 255, .2) 25%, 
			      transparent 25%, 
			      transparent 50%, 
			      rgba(255, 255, 255, .2) 50%, 
			      rgba(255, 255, 255, .2) 75%, 
			      transparent 75%, 
			      transparent
			   );
			z-index: 1;
			-webkit-background-size: 50px 50px;
			-moz-background-size: 50px 50px;
			-webkit-animation: move 2s linear infinite;
			   -webkit-border-top-right-radius: 8px;
			-webkit-border-bottom-right-radius: 8px;
			       -moz-border-radius-topright: 8px;
			    -moz-border-radius-bottomright: 8px;
			           border-top-right-radius: 8px;
			        border-bottom-right-radius: 8px;
			    -webkit-border-top-left-radius: 20px;
			 -webkit-border-bottom-left-radius: 20px;
			        -moz-border-radius-topleft: 20px;
			     -moz-border-radius-bottomleft: 20px;
			            border-top-left-radius: 20px;
			         border-bottom-left-radius: 20px;
			overflow: hidden;
		}
	
	.animate > span:after {
		display: none;
	}
	
	@-webkit-keyframes move {
	    0% {
	       background-position: 0 0;
	    }
	    100% {
	       background-position: 50px 50px;
	    }
	}
	
	.orange > span {
		background-color: #d71920;
		background-image: -moz-linear-gradient(top, #d71920, #d71920);
		background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0, #d71920),color-stop(1, #d71920));
		background-image: -webkit-linear-gradient(#d71920, #d71920); 
	}
	
	.red > span {
		background-color: #f0a3a3;
		background-image: -moz-linear-gradient(top, #f0a3a3, #f42323);
		background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0, #f0a3a3),color-stop(1, #f42323));
		background-image: -webkit-linear-gradient(#f0a3a3, #f42323);
		
	}
	
	.nostripes > span > span, .nostripes > span:after {
		-webkit-animation: none;
		background-image: none;
	}

.form-left{
	margin-left: 50px;
	display: inline-block;
}
.form-right{
	margin-left: 44px;
	margin-top: 15px;
	vertical-align: top;
	display: inline-block;
}
.left{
	display: inline-block;
}
.space{
	margin-left: 14px;
}
label{
	color: #ffffff;
	font-family: 'Gentona-BoldItalic';
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-size: 20px;
}
input[type="text"]{
	background: #e9e9e9;
	border: none;
	border-radius: 8px;
	height: 24px;
	padding-left: 10px;
	padding-right: 10px;
	outline: none;
	margin-bottom: 10px;
	font-family: 'Gentona-Book';
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
		-webkit-transition: all 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750); 
   -moz-transition: all 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750); 
     -o-transition: all 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750); 
        transition: all 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750); /* linear */

-webkit-transition-timing-function: cubic-bezier(0.250, 0.250, 0.750, 0.750); 
   -moz-transition-timing-function: cubic-bezier(0.250, 0.250, 0.750, 0.750); 
     -o-transition-timing-function: cubic-bezier(0.250, 0.250, 0.750, 0.750); 
        transition-timing-function: cubic-bezier(0.250, 0.250, 0.750, 0.750); /* linear */
}
	input[type="text"]:focus {
			box-shadow: 1px 1px 20px rgba(255,255,255,0.4);
		    -webkit-box-shadow: 1px 1px 20px rgba(255,255,255,0.4); 
		    -moz-box-shadow: 1px 1px 20px rgba(255,255,255,0.4);
			-webkit-transition: all 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750); 
	   -moz-transition: all 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750); 
	     -o-transition: all 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750); 
	        transition: all 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750); /* linear */
	
	-webkit-transition-timing-function: cubic-bezier(0.250, 0.250, 0.750, 0.750); 
	   -moz-transition-timing-function: cubic-bezier(0.250, 0.250, 0.750, 0.750); 
	     -o-transition-timing-function: cubic-bezier(0.250, 0.250, 0.750, 0.750); 
	        transition-timing-function: cubic-bezier(0.250, 0.250, 0.750, 0.750); /* linear */
	}
input[type="submit"]{
	width: 99%;
	height: 30px;
	border-radius: 8px;
	margin-top: 14px;
	background: rgb(242,55,62);
	border: none;
	color: #ffffff;
	font-family: 'Gentona-BoldItalic';
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
-webkit-transition: all 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750); 
   -moz-transition: all 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750); 
     -o-transition: all 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750); 
        transition: all 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750); /* linear */

-webkit-transition-timing-function: cubic-bezier(0.250, 0.250, 0.750, 0.750); 
   -moz-transition-timing-function: cubic-bezier(0.250, 0.250, 0.750, 0.750); 
     -o-transition-timing-function: cubic-bezier(0.250, 0.250, 0.750, 0.750); 
        transition-timing-function: cubic-bezier(0.250, 0.250, 0.750, 0.750); /* linear */
}
	input[type="submit"]:hover{
		background: rgb(215,25,32);
	-webkit-transition: all 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750); 
	   -moz-transition: all 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750); 
	     -o-transition: all 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750); 
	        transition: all 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750); /* linear */
	
	-webkit-transition-timing-function: cubic-bezier(0.250, 0.250, 0.750, 0.750); 
	   -moz-transition-timing-function: cubic-bezier(0.250, 0.250, 0.750, 0.750); 
	     -o-transition-timing-function: cubic-bezier(0.250, 0.250, 0.750, 0.750); 
	        transition-timing-function: cubic-bezier(0.250, 0.250, 0.750, 0.750); /* linear */
	}
textarea{
	background: #e9e9e9;
	border: none;
	border-radius: 8px;
	height: 60px;
	padding-left: 10px;
	outline: none;
	width: 433px;
	font-family: 'Gentona-Book';
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
-webkit-transition: all 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750); 
   -moz-transition: all 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750); 
     -o-transition: all 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750); 
        transition: all 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750); /* linear */

-webkit-transition-timing-function: cubic-bezier(0.250, 0.250, 0.750, 0.750); 
   -moz-transition-timing-function: cubic-bezier(0.250, 0.250, 0.750, 0.750); 
     -o-transition-timing-function: cubic-bezier(0.250, 0.250, 0.750, 0.750); 
        transition-timing-function: cubic-bezier(0.250, 0.250, 0.750, 0.750); /* linear */
}
	textarea:focus {
			box-shadow: 1px 1px 20px rgba(255,255,255,0.4);
		    -webkit-box-shadow: 1px 1px 20px rgba(255,255,255,0.4); 
		    -moz-box-shadow: 1px 1px 20px rgba(255,255,255,0.4);
	-webkit-transition: all 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750); 
	   -moz-transition: all 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750); 
	     -o-transition: all 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750); 
	        transition: all 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750); /* linear */
	
	-webkit-transition-timing-function: cubic-bezier(0.250, 0.250, 0.750, 0.750); 
	   -moz-transition-timing-function: cubic-bezier(0.250, 0.250, 0.750, 0.750); 
	     -o-transition-timing-function: cubic-bezier(0.250, 0.250, 0.750, 0.750); 
	        transition-timing-function: cubic-bezier(0.250, 0.250, 0.750, 0.750); /* linear */
	}
	
.radio-section{
	margin: 6px 0;
}
	.radio-section h2{
		color: #ffffff;
		font-family: 'Gentona-BoldItalic';
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
		font-size: 20px;
		margin: 0;
		text-align: left;
	}
	.radio-section label{
		color: #ffffff;
		font-family: 'Gentona-BoldItalic';
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
		font-size: 14px;
		vertical-align: middle;
		margin-right: 15px;
	}
	.radio-section input[type="radio"]{
		margin-right: 5px;
	}
	
#form{
	margin: 0 auto;
	width: 450px;
}
	#form .poor {
		margin-right:10px;
		font-weight:400;
		font-size:14px;
		clear:both;
		float:left;
		color:#fff;
		font-family: 'Gentona-BoldItalic';
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
	}
	
	#form .excellent {
		margin-left:13px;
		font-weight:400;
		font-size:14px;
		float:left;
		color:#fff;
		font-family: 'Gentona-BoldItalic';
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
	}
/*UI ***************************************/

.slider-1, .slider-2, .slider-3, .slider-4  {
background: url(../images/slider.png) top left repeat-x;
-webkit-border-radius: 50px;
-moz-border-radius: 50px;
border-radius: 50px;
position:relative;
padding:0 10px;
width:200px;
height:11px;
float:left;
margin:0px;
top:4px;
}
/*Style for the slider button*/


/*Result div where the slider value is displayed*/
#slider-result-1, #slider-result-2,  #slider-result-3, #slider-result-4{
	padding:4px 0px 0px 0px;
	font-family: 'Gentona-ExtraBold';
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-align:center;
	font-size:11px;
	width:300px;
	margin:0px;
	clear:both;
	color:#fff;
}

/*This is the fill bar colour*/

.ui-slider-horizontal .ui-slider-handle{
	border-radius: 20px;
	background: #ffffff !important;
	border: 0px !important;
}
.ui-slider-horizontal .ui-slider-handle:hover{
	border-radius: 20px;
	background: #ffffff;
	border: 0px;
}
.ui-widget-content{
	background:#505050 !important;
	border: none !important;
	height: 10px !important;
}
.ui-widget-header{
	background:#f2373e !important;
	border: none !important;
	height: 10px !important;
}
.ui-slider-horizontal .ui-slider-handle:focus {
	box-shadow: 1px 1px 20px rgba(255,255,255,0.4);
	-webkit-box-shadow: 1px 1px 20px rgba(255,255,255,0.4); 
	-moz-box-shadow: 1px 1px 20px rgba(255,255,255,0.4);
}

h5{
	font-family: 'Gentona-BoldItalic';
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	color: #ffffff;
	font-size: 20px;
	margin-bottom: 5px;
	margin-top: 15px;
}

.buttons{
	margin: 0px auto;
	width: 800px;
}
	.buttons .google{
		margin: 10px;
		display: inline-block;
	}
	.buttons .cars{
		margin: 10px;
		display: inline-block;
	}
	.buttons .yelp{
		margin: 10px;
		display: inline-block;
	}
	.buttons .review{
		text-align: center;
		margin-top: 8px;
	}
		.buttons .review a{
			width: 241px;
			display: block;
			padding-top: 5px;
			padding-bottom: 5px;
			color: #4f4f4f;
			text-decoration: none;
			background: rgb(233,233,233);
			border-radius: 10px;
			font-family: 'Gentona-Bold';
			-webkit-font-smoothing: antialiased;
			-moz-osx-font-smoothing: grayscale;
			font-size: 22px;
			-webkit-transition: all 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750); 
			-moz-transition: all 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750); 
		    -o-transition: all 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750); 
		    transition: all 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750); /* linear */
		
			-webkit-transition-timing-function: cubic-bezier(0.250, 0.250, 0.750, 0.750); 
			-moz-transition-timing-function: cubic-bezier(0.250, 0.250, 0.750, 0.750); 
		    -o-transition-timing-function: cubic-bezier(0.250, 0.250, 0.750, 0.750); 
		    transition-timing-function: cubic-bezier(0.250, 0.250, 0.750, 0.750); /* linear */
		}
		.buttons div:hover .review a{
			color: rgb(185,55,39);
			text-shadow:2px 2px 22px rgba(232,101,85,0.4);
		    background: rgb(248,248,248);
		    box-shadow: 0px 0px 20px rgba(255,255,255,0.4);
		    -webkit-box-shadow: 1px 1px 20px rgba(255,255,255,0.4); 
		    -moz-box-shadow: 1px 1px 20px rgba(255,255,255,0.4);
			-webkit-transition: all 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750); 
			-moz-transition: all 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750); 
		    -o-transition: all 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750); 
		    transition: all 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750); /* linear */
		
			-webkit-transition-timing-function: cubic-bezier(0.250, 0.250, 0.750, 0.750); 
			-moz-transition-timing-function: cubic-bezier(0.250, 0.250, 0.750, 0.750); 
		    -o-transition-timing-function: cubic-bezier(0.250, 0.250, 0.750, 0.750); 
		    transition-timing-function: cubic-bezier(0.250, 0.250, 0.750, 0.750); /* linear */
		}

/* ==========================================================================
   Media Queries
   ========================================================================== */

@media only screen and (min-width: 35em) {

}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {

}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

.hidden {
    display: none !important;
    visibility: hidden;
}

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}