/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

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

body {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * A better looking default horizontal rule
 */

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

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

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

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

.clearall {
	display: block;
	clear: both;
	height: 0;
	overflow: hidden;
}

body {
	background-color: #0C3C60;
	color: #444;
}

h1, h2, h3, h4, h4 {
	font-family: 'Montserrat', sans-serif;
	text-transform: uppercase;
	font-weight: 700;
	margin: 0;
	padding: 0;
}

a {
	text-decoration: none;
}

a, a:link, a:active, a:visited {
	color: #1C4C70;
}

a:hover {
	color: #002244;
}

/* Header */

#header-container {
	background-color: #002244;
}

#header {
	width: 600px;
	margin: 0 auto;
	background-color: rgb(180, 180, 180);
	background-color: rgba(255, 255, 255, 0.6);
	padding: 20px 0;
	position: relative;
}

	#header .capsule {
		padding-top: 5px;
	}

	#header h1 {
		text-transform: uppercase;
		text-align: center;
		font-size: 134px;
		line-height: 90px;
		letter-spacing: -9px;
		color: transparent;
		margin: 17px 0;
		position: relative;
		-moz-text-shadow: 0 0 10px rgba(221, 222, 224, 0.8);
		-webkit-text-shadow: 0 0 10px rgba(221, 222, 224, 0.8);
		text-shadow: 0 0 10px rgba(221, 222, 224, 0.8);
		left: -78px;
		position: relative;
		z-index: 1000;
		-moz-transform: scaleX(1.03);
	}
	
	#header h1 span.blankout {
		text-shadow: none;
		-moz-text-shadow: none;
		-webkit-text-shadow: none;
	}


/* Body */

#body-container {
	background: #0C3C60; /* Old browsers */
	background: -moz-linear-gradient(top,  #002244 0%, #0c3c60 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#002244), color-stop(100%,#0c3c60)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  #002244 0%,#0c3c60 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  #002244 0%,#0c3c60 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  #002244 0%,#0c3c60 100%); /* IE10+ */
	background: linear-gradient(to bottom,  #002244 0%,#0c3c60 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#002244', endColorstr='#0c3c60',GradientType=0 ); /* IE6-9 */
	background-repeat: repeat-x;
}

#main {
	width: 600px;
	margin: 0 auto;
	background-color: rgb(180, 180, 180);
	background-color: rgba(255, 255, 255, 0.6);
	padding: 10px 0;
}

.capsule {
	margin: 0 20px 20px;
	-moz-border-radius: 20px;
	-webkit-border-radius: 20px;
	border-radius: 20px;
	background-color: white;
	padding: 0 10px 5px;
}

	.capsule h2 {
		margin: 0;
		padding: 5px 0 0;
		text-align: center;
		text-indent: -5px;
		font-size: 49px;
		color: #cccdce;
		letter-spacing: -2px;		
	}
	
	.capsule h3 {
		padding: 5px 0 0;
		color: #ccc;
		text-align: center;
	}

	.capsule .hammer {
		font-family: "Montserrat", sans-serif;
		font-weight: 400;
		color: #ccc;;
		font-size: 18px;
		text-align: center;
	}
	
	.capsule .hammer.capsule-bottom-hammer {
		padding-bottom: 10px;
	}
	
	.capsule p {
		padding-left: 5px;
		padding-right: 5px;
		margin-top: 0;
	}
	
	.capsule p strong {
		font-weight: 700;
		color: #666;
	}
	
	.capsule p a {
		font-weight: 700;
	}
	
	.capsule hr {
		display: block;
		clear: both;
		width: 338px;
		height: 16px;
		margin: 15px auto;
		background: transparent url(/trademarkabuse.png) no-repeat;
		border: 0;
	}
	
	.capsule.capsuleTop {
		padding-bottom: 10px;
	}

/* BEGIN SEXTPILOT */

.capsule.sexy {
	background-color: #fcc5ff;
	color: white;
}

  .capsule.sexy h3 {
    color: white;
  }

  .capsule.sexy h3 a, .capsule.sexy h3 a:link, .capsule.sexy h3 a:visited, .capsule.sexy h3 a:active {
    color: white;
  }
  
  .capsule.sexy h3 a:hover {
    color: #eee;
  }
  
  div.sextRowContainer {
  	-moz-border-radius: 20px;
  	-webkit-border-radius: 20px;
    border-radius: 20px;
  }
  
  div.sextRowContainer div.sextRowFirst {
    -webkit-border-top-left-radius: 20px;
    -webkit-border-top-right-radius: 20px;
    -moz-border-radius-topleft: 20px;
    -moz-border-radius-topright: 20px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding-top: 5px;
  }
  
  div.sextRowContainer div.sextRowLast {
    -webkit-border-bottom-left-radius: 20px;
    -webkit-border-bottom-right-radius: 20px;
    -moz-border-radius-bottomleft: 20px;
    -moz-border-radius-bottomright: 20px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    padding-bottom: 5px;
  }
  
  div.sextRowOdd {
    padding: 4px 10px;
    color: #c66fca;
    background-color: white;
  }
  
  div.sextRowEven {
    padding: 4px 10px;
    color: #c66fca;
    background-color: #eee;
  }
  
#hideAndShowRows {
  display: none;
}

/* END SEXTPILOT */

#capsuleTopContainer {
	height: 100px;
	position: relative;
	padding-top: 10px;
}

	#capsuleTopContainer #favstarPostMessage {
		height: 65px;
		width: 540px;
		padding-top: 35px;
		position: absolute;
	}
	
	#capsuleTopContainer #favstarPostMessage div.success {		
		font-family: 'Montserrat', sans-serif;
		text-transform: uppercase;
		font-weight: 700;
		margin: 0;
		padding: 5px 0 0;
		text-align: center;
		color: #444;
	}

	h3.active-greeting {
		text-align: center;
		color: #444;
	}
	
	h3.inactive-greeting, h3.no-stars {
		text-align: center;
	}

#favstarPostForm {
	text-align: center;
	padding-top: 10px;
	display: none;
	position: absolute;
	height: 90px;
}

#favstarPostForm #favstarTextInput {
	display: block;
	border: 1px solid #999;
	padding: 4px;
	font-weight: normal;
	border-radius: 5px 0 0 5px;
	width: 492px;
	height: 30px;
	border-right-width: 0;
	float: left;
	outline: none;
}

#favstarPostForm #favstarCountDiv {
	display: block;
	border: 1px solid #999;
	padding: 8px 4px 0;
	border-radius: 0 5px 5px 0;
	width: 30px;
	height: 30px;
	border-left-width: 0;
	float: left;
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	color: green;
	text-align: right;
}

#favstarPostForm #favstarSubmitInput {
	display: block;
	border: 1px solid #999;
	padding: 8px 4px;
	margin-top: 5px;
	border-radius: 5px;
	width: 540px;
	height: 38px;
	float: left;
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	color: white;
	text-align: center;
	text-transform: uppercase;
	-webkit-box-shadow: inset 0px 0px 12px 3px rgba(255, 255, 255, 0.6);
	-moz-box-shadow: inset 0px 0px 12px 3px rgba(255, 255, 255, 0.6);
	box-shadow: inset 0px 0px 12px 3px rgba(255, 255, 255, 0.6);
}
	
#favstarPostError div.failure {		
	font-family: 'Montserrat', sans-serif;
	text-transform: uppercase;
	font-weight: 700;
	margin: 0;
	padding: 0;
	text-align: center;
	color: #AA0000;
}

ul.favstarList {
	list-style-type: none;
	margin: 10px 0 0;
	padding: 0;
}

	ul.favstarList li {
		display: block;
		list-style-type: none;
		float: left;
		margin: 5px 0;
		width: 270px;
	}
	
	ul.favstarList li a {
		display: block;
		border-radius: 10px;
		text-align: center;
		padding: 10px 2px;	
		-moz-text-shadow: 0 0 2px white;
		-webkit-text-shadow: 0 0 2px white;
		text-shadow: 0 0 3px white;	
	}
	
	ul.favstarList li:nth-child(odd) a {
		background: -moz-linear-gradient(left,  rgba(221,222,224,1) 0%, rgba(221,222,224,0) 68%, rgba(221,222,224,0) 100%); /* FF3.6+ */
		background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(221,222,224,1)), color-stop(68%,rgba(221,222,224,0)), color-stop(100%,rgba(221,222,224,0))); /* Chrome,Safari4+ */
		background: -webkit-linear-gradient(left,  rgba(221,222,224,1) 0%,rgba(221,222,224,0) 68%,rgba(221,222,224,0) 100%); /* Chrome10+,Safari5.1+ */
		background: -o-linear-gradient(left,  rgba(221,222,224,1) 0%,rgba(221,222,224,0) 68%,rgba(221,222,224,0) 100%); /* Opera 11.10+ */
		background: -ms-linear-gradient(left,  rgba(221,222,224,1) 0%,rgba(221,222,224,0) 68%,rgba(221,222,224,0) 100%); /* IE10+ */
		background: linear-gradient(to right,  rgba(221,222,224,1) 0%,rgba(221,222,224,0) 68%,rgba(221,222,224,0) 100%); /* W3C */
		filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#dddee0', endColorstr='#00dddee0',GradientType=1 ); /* IE6-9 */
	}
	
	ul.favstarList li:nth-child(even) a {
		background: -moz-linear-gradient(left,  rgba(221,222,224,0) 0%, rgba(221,222,224,0) 32%, rgba(221,222,224,1) 100%); /* FF3.6+ */
		background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(221,222,224,0)), color-stop(32%,rgba(221,222,224,0)), color-stop(100%,rgba(221,222,224,1))); /* Chrome,Safari4+ */
		background: -webkit-linear-gradient(left,  rgba(221,222,224,0) 0%,rgba(221,222,224,0) 32%,rgba(221,222,224,1) 100%); /* Chrome10+,Safari5.1+ */
		background: -o-linear-gradient(left,  rgba(221,222,224,0) 0%,rgba(221,222,224,0) 32%,rgba(221,222,224,1) 100%); /* Opera 11.10+ */
		background: -ms-linear-gradient(left,  rgba(221,222,224,0) 0%,rgba(221,222,224,0) 32%,rgba(221,222,224,1) 100%); /* IE10+ */
		background: linear-gradient(to right,  rgba(221,222,224,0) 0%,rgba(221,222,224,0) 32%,rgba(221,222,224,1) 100%); /* W3C */
		filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00dddee0', endColorstr='#dddee0',GradientType=1 ); /* IE6-9 */
	}
	
	ul.favstarList li:nth-child(odd):last-child {
		width: 540px;
		clear: both;
	}
	
	ul.favstarList li:nth-child(odd):last-child a {
		background: -moz-linear-gradient(left,  rgba(221,222,224,1) 0%, rgba(221,222,224,0) 50%, rgba(221,222,224,1) 100%); /* FF3.6+ */
		background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(221,222,224,1)), color-stop(50%,rgba(221,222,224,0)), color-stop(100%,rgba(221,222,224,1))); /* Chrome,Safari4+ */
		background: -webkit-linear-gradient(left,  rgba(221,222,224,1) 0%,rgba(221,222,224,0) 50%,rgba(221,222,224,1) 100%); /* Chrome10+,Safari5.1+ */
		background: -o-linear-gradient(left,  rgba(221,222,224,1) 0%,rgba(221,222,224,0) 50%,rgba(221,222,224,1) 100%); /* Opera 11.10+ */
		background: -ms-linear-gradient(left,  rgba(221,222,224,1) 0%,rgba(221,222,224,0) 50%,rgba(221,222,224,1) 100%); /* IE10+ */
		background: linear-gradient(to right,  rgba(221,222,224,1) 0%,rgba(221,222,224,0) 50%,rgba(221,222,224,1) 100%); /* W3C */
		filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00dddee0', endColorstr='#dddee0',GradientType=1 ); /* IE6-9 */
	}
	
h3.capsuleTopper {
	padding-top: 10px;
}
	
ul.recentTweetsList {
	list-style-type: none;
	margin: 10px 0 0;
	padding: 0;
}

	ul.recentTweetsList li {
		display: block;
		list-style-type: none;
		margin: 12px 0;
		padding-left: 50px;
		text-indent: -40px;
		padding-right: 10px;
	}
	
	ul.recentTweetsList li a {
		font-weight: bold;
	}
	
#rulesList {
	padding-right: 20px;
	font-size: 12px;
}

#rulesList li {
	margin-bottom: 10px;
}

#rulesList li a {
	font-weight: bold;
}

.invisicapsule {
	margin: 0 auto 20px;
	padding: 0 10px 5px;
	width: 130px;
}

	.invisicapsule ul {
		list-style-type: none;
		margin: 10px 0 0;
		padding: 0;
	}
	
	.invisicapsule ul li {
		display: block;
		float: left;
		width: 63px;
		margin-right: 4px;
	}
	
	.invisicapsule ul li form {
		display: block;
	}
	
	.invisicapsule ul li form input.submitinput {
		display: block;
		border-width: 0;
		font-weight: bold;
		color: #1C4C70;
		cursor: pointer;
		background-color: white;
		padding: 10px 20px;
		font-family: 'Montserrat', sans-serif;
		font-weight: 700;
		text-transform: uppercase;
		text-align: center;
	}
	
	.invisicapsule ul li.selected form input.submitinput {		
		-webkit-box-shadow: inset 0px 0px 12px 3px #ccc;
		-moz-box-shadow: inset 0px 0px 12px 3px #ccc;
		box-shadow: inset 0px 0px 12px 3px #ccc;
		color: #444;
	}
	
	.invisicapsule ul li.first form input.submitinput {
		-moz-border-radius-topleft: 20px;
		-webkit-border-top-left-radius: 20px;
		border-top-left-radius: 20px;
		-moz-border-radius-bottomleft: 20px;
		-webkit-border-bottom-left-radius: 20px;
		border-bottom-left-radius: 20px;
		padding: 10px 18px 10px 24px;
	}
	
	.invisicapsule ul li.last {
		margin-right: 0;
	}
	
	.invisicapsule ul li.last form input.submitinput {
		-moz-border-radius-topright: 20px;
		-webkit-border-top-right-radius: 20px;
		border-top-right-radius: 20px;
		-moz-border-radius-bottomright: 20px;
		-webkit-border-bottom-right-radius: 20px;
		border-bottom-right-radius: 20px;
		padding: 10px 24px 10px 18px;
	}


h2.sign-out {
	font-size: 45px;
	letter-spacing: -3px;
}

/* Footer */

#footer-container {
	background-color: #0C3C60;
}

#footer {
	width: 600px;
	margin: 0 auto;
	background-color: rgb(180, 180, 180);
	background-color: rgba(255, 255, 255, 0.6);
	padding: 40px 0 10px;
}

	#footer .capsule {
		padding-top: 5px;
	}
	
	#footer .capsule .hammer {
		color: #ccc;
		letter-spacing: -1px;
		font-size: 17px;
	}

	#footer .capsule .hammer a, #footer .capsule .hammer a:link, #footer .capsule .hammer a:active, #footer .capsule .hammer a:visited {
		color: #9aaec2;
	}
	
	#footer .capsule .hammer a:hover {
		color: #6b8196;
	}
	
#footer-container #footerFadeBlock {
	width: 600px;
	margin: 0 auto 100px;
	height: 150px;
	background: -moz-linear-gradient(top,  rgba(255,255,255,0.6) 0%, rgba(255,255,255,0) 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0.6)), color-stop(100%,rgba(255,255,255,0))); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  rgba(255,255,255,0.6) 0%,rgba(255,255,255,0) 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  rgba(255,255,255,0.6) 0%,rgba(255,255,255,0) 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  rgba(255,255,255,0.6) 0%,rgba(255,255,255,0) 100%); /* IE10+ */
	background: linear-gradient(to bottom,  rgba(255,255,255,0.6) 0%,rgba(255,255,255,0) 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#99ffffff', endColorstr='#00ffffff',GradientType=0 ); /* IE6-9 */
}
	
/* Animation */

#logo-image {
	position: absolute;
	z-index: 500;
	background-image: url(../logo-118.png);
	left: 450px;
	top: 30px;
	width: 138px;
	height: 118px;
	background-repeat: no-repeat;
}

.animated {
	-webkit-animation-fill-mode: both;
	-moz-animation-fill-mode: both;
	-ms-animation-fill-mode: both;
	-o-animation-fill-mode: both;
	animation-fill-mode: both;
	-webkit-animation-duration: 0.7s;
	-moz-animation-duration: 0.7s;
	-ms-animation-duration: 0.7s;
	-o-animation-duration: 0.7s;
	animation-duration: 0.7s;
}

@-webkit-keyframes lightSpeedIn {
	0% { -webkit-transform: translateX(-500%) scaleY(0.1); opacity: 0; }
	58% { -webkit-transform: translateX(0%) scaleY(0.9); opacity: 1; }
	60% { -webkit-transform: translateX(40%) scaleY(1) scaleX(0.4); opacity: 1; }
	75% { -webkit-transform: translateX(-50%) scaleX(1) scaleY(0.8); opacity: 1; }
	90% { -webkit-transform: translateX(15%) scaleX(0.9) scaleY(1.1); opacity: 1; }
	97% { -webkit-transform: translateX(-5%) scaleX(1) scaleY(1); opacity: 1; }
	100% { -webkit-transform: translateX(0%); opacity: 1; }
}

@-moz-keyframes lightSpeedIn {
	0% { -moz-transform: translateX(-500%) scaleY(0.1); opacity: 0; }
	58% { -moz-transform: translateX(0%) scaleY(0.9); opacity: 1; }
	60% { -moz-transform: translateX(40%) scaleY(1) scaleX(0.4); opacity: 1; }
	75% { -moz-transform: translateX(-50%) scaleX(1) scaleY(0.8); opacity: 1; }
	90% { -moz-transform: translateX(15%) scaleX(0.9) scaleY(1.1); opacity: 1; }
	97% { -moz-transform: translateX(-5%) scaleX(1) scaleY(1); opacity: 1; }
	100% { -moz-transform: translateX(0%); opacity: 1; }
}

@keyframes lightSpeedIn {
	0% { transform: translateX(-500%) scaleY(0.1); opacity: 0; }
	58% { transform: translateX(0%) scaleY(0.9); opacity: 1; }
	60% { transform: translateX(40%) scaleY(1) scaleX(0.4); opacity: 1; }
	75% { transform: translateX(-50%) scaleX(1) scaleY(0.8); opacity: 1; }
	90% { transform: translateX(15%) scaleX(0.9) scaleY(1.1); opacity: 1; }
	97% { transform: translateX(-5%) scaleX(1) scaleY(1); opacity: 1; }
	100% { transform: translateX(0%); opacity: 1; }
}

.lightSpeedIn {
    -webkit-animation-name: lightSpeedIn;
    -moz-animation-name: lightSpeedIn;
    -o-animation-name: lightSpeedIn;
    animation-name: lightSpeedIn;

    -webkit-animation-timing-function: ease-in;
    -moz-animation-timing-function: ease-in;
    -o-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
}

/* Language Adjustments */

body.language-es h2.sign-out {
	font-size: 38px;
}

body.language-es #footer .capsule .hammer {
	font-size: 16px;
}

body.language-es .capsule h2.biglink {
	font-size: 36px;
}

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

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

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

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

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

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

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

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

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

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   Theses examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@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;
    }
}
