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

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

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

::-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: vertical;
}

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


/* ==========================================================================
   Author's custom styles
   ========================================================================== */
body, html {
	margin: 0;
	padding: 0;
	background: #000000;
}
   
#site {
	position: relative;
	min-height: 881px;
	background: #000000 url("../assets/background.jpg") no-repeat center -19px;
}

#site.page-products {
	background: #000000 url("../assets/background-products.jpg") no-repeat center -19px;
}

#site.page-videos {
	background: #000000 url("../assets/background-videos.jpg") no-repeat center -19px;
}

#site.page-story {
	background: #000000 url("../assets/background-story.jpg") no-repeat center -19px;
}

#site.page-gallery {
	background: #000000 url("../assets/background-gallery.jpg") no-repeat center -19px;
}

#site.page-activities {
	background: #000000 url("../assets/background-gallery.jpg") no-repeat center -19px;
}

#site.page-home {
	background: #000000 url("../assets/background-index.jpg") no-repeat center -19px;
}

#chromeHolder {
}

#main {
	width: 998px;
	height: 528px;
	margin: 0 auto;
	position: relative;
}

#content {
	width: 740px;
	float: left;
	position: relative;
	z-index: 5;
	height: 528px;
	font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
}

#streetDate {
	position: absolute;
	top: 35px;
	right: 0;
	z-index: 1001;
}

#masthead {
	width: 256px;
	float: left;
	margin: 45px 0 0 0;
	position: relative;
	z-index: 4;
}

#logo {
	width: 256px;
	height: 126px;
	margin: 0 0 9px 0;
	padding: 0;
	background: url("../assets/logo.png") no-repeat;
}

#logo a {
	display: block;
	width: 100%;
	height: 100%;	
	text-indent: -9999px;
}

div.billingblock {
	text-align: center;
}

nav.main ul {
	padding: 2px 0 0 0;
	margin: 0;
	list-style-type: none;
	background: url("../assets/sprite-navigation.png") no-repeat 0 -56px;
	width: 196px;
}

nav.main ul li {
	height: 28px;
	width: 196px;
	display: block;
	background: url("../assets/sprite-navigation.png") no-repeat 0 26px;
}

nav.main ul li.current {
	height: 28px;
	width: 196px;
	display: block;
	background: url("../assets/sprite-navigation.png") no-repeat 0 -3px;
}

nav.main ul li a {
	display: block;
	background-image: url("../assets/sprite-navigation-text.png");
	background-repeat: no-repeat;
	text-indent: -9999px;
	outline: 0;
}

nav.main ul li a.home {
	background-position: 24px 6px;
}

nav.main ul li a.meet-the-pups {
	background-position: 24px -22px;
}

nav.main ul li a.videos {
	background-position: 24px -50px;
}

nav.main ul li a.story {
	background-position: 24px -78px;
}

nav.main ul li a.gallery {
	background-position: 24px -106px;
}

nav.main ul li a.activities {
	background-position: 24px -134px;
}

nav.main ul li a.products {
	background-position: 24px -162px;
}

nav.main ul li a.tweetstakes {
	background-position: 24px -190px;
}

nav.main ul li a.pinterest {
	background-position: 24px -218px;
}

nav.main ul li a.specialoffers {
	background-position: 24px -246px;
}

nav.main ul li.current a.home,
nav.main ul li a.home:hover {
	background-position: -216px 6px;
}

nav.main ul li.current a.meet-the-pups,
nav.main ul li a.meet-the-pups:hover {
	background-position: -216px -22px;
}

nav.main ul li.current a.videos,
nav.main ul li a.videos:hover {
	background-position: -216px -50px;
}

nav.main ul li.current a.story,
nav.main ul li a.story:hover {
	background-position: -216px -78px;
}

nav.main ul li.current a.gallery,
nav.main ul li a.gallery:hover  {
	background-position: -216px -106px;
}

nav.main ul li.current a.activities,
nav.main ul li a.activities:hover  {
	background-position: -216px -134px;
}

nav.main ul li.current a.products,
nav.main ul li a.products:hover  {
	background-position: -216px -162px;
}

nav.main ul li.current a.tweetstakes,
nav.main ul li a.tweetstakes:hover  {
	background-position: -216px -190px;
}
nav.main ul li.current a.pinterest,
nav.main ul li a.pinterest:hover  {
	background-position: -216px -218px;
}

nav.main ul li.current a.specialoffers,
nav.main ul li a.specialoffers:hover  {
	background-position: -216px -246px;
}


#social {
	clear: both;
	margin: 0 auto;
	width: 998px;
	background: url("../assets/middle-text.gif") no-repeat 286px 22px;
	height: 64px;
	position: relative;
	z-index: 20;
}

#social ul {
	padding: 19px 0 0 64px;
	margin: 0;
	list-style-type: none;
}

#social ul li {
	display: inline-block;
	width:27px;
	height:26px;
	margin-right:0px;
}

.facebook,.twitter, .youtube,.pinterst, .like {
	display:inline-block;
	width:27px;
	height:26px;
	margin-right:0px;
	background:transparent url(http://cdn.dolimg.com/franchise/monstersinc/images/share.png) no-repeat 0 0;
	text-decoration:none;
}
.facebook {
	background-position:0 0;
}
.twitter {
	background-position:-35px 0;
}
.youtube {
	background-position:-68px 0;
}
.pinterst {
	background-position:-104px 0;
}
.like {
	width:55px;
	background-position:-137px 0;
}

div.rotator {
	position: absolute;
	z-index: 0;
	left: 0;
}

div.rotator div.panel {
	position: absolute;
	left: 256px;
	top: 0;
	height: 528px;
	overflow: hidden;
	width: 802px;
	display: none;
}

div.rotator div.panel.panel1 {
	left: 136px;
	top: 9px;
	display: block;
}

div.rotator div.panel.panel2 {
	left: 254px;
	top: 40px;
	width: 640px;
	height: 408px;
}

div.panel2 #thePlayer {
	padding: 17px 18px;
	width: 550px;
	height: 320px;
	background: url("../assets/content-home-video.png") no-repeat;
}

div.rotator div.panel1 img {
	position: absolute;
	bottom: 0;
}

#crosspromos {
	width: 890px;
	margin: 0 auto;
	padding: 15px 0 0 0;
}

#crosspromos div.ccp {
	position: relative;
	float: left;
}

#crosspromos div.left,
#crosspromos div.right {
	padding: 11px 0 0 10px;
	width: 240px;
	height: 229px;
	margin-top: 20px;
}

#crosspromos div.left div.frame,
#crosspromos div.right div.frame {
	width: 250px;
	height: 240px;
	position: absolute;
	top: 0;
	left: 0;
	background: url("../assets/ccp-frame3.png") no-repeat;
}

#crosspromos div.left div.image,
#crosspromos div.right div.image {
	width: 230px;
	height: 165px;
	overflow: hidden;
}

#crosspromos div.middle {
	width: 357px;
	height: 212px;
	padding: 12px 0 0 12px;
	margin: 0 10px;
}

#crosspromos div.middle div.frame {
	width: 369px;
	height: 224px;
	position: absolute;
	top: 0;
	left: 0;
}

#crosspromos div.middle div.images {
	position: relative;
	width: 345px;
	height: 193px;
	overflow: hidden;
}

#crosspromos div.middle div.images div.item:first-child {
	display: block;
}

#crosspromos div.middle div.images div.item {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
}

#crosspromos div.middle div.frame a {
	display: block;
	width: 369px;
	height: 224px;
	background: url("../assets/ccp-frame2.png") no-repeat;
	display: block;
	text-indent: -9999px;
}
#crosspromos div.left div.frame a,
#crosspromos div.right div.frame a {
	display: block;
	width: 250px;
	height: 186px;
	display: block;
	text-indent: -9999px;
}

#crosspromos a.frame img {
	display: none;
}
#crosspromos div.navigation {
	position: absolute;
	z-index: 10px;
	width: 345px;
	bottom: 5px;
}
#crosspromos div.navigation ul {
	list-style-type: none;
	padding: 0;
	margin: 0;
	text-align: center;
	width: 345px;
}

#crosspromos div.navigation ul li {
	width: 14px;
	height: 14px;
	display: inline-block;
	margin: 0 1px;
}

#crosspromos div.navigation ul li a {
	display: block;
	width: 14px;
	height: 14px;
	text-indent: -9999px;
	background: url("../assets/sprite-ccp-nav-dots.png") no-repeat;	
	outline: 0;
}

#crosspromos div.navigation ul li a.selected {
	background-position: -16px 0;
}

div.promo-nov20-bdr {
	position: absolute;
	top: 30px;
	right: 0px;
}


#video {
	width: 640px;
	height: 434px;
	padding: 7px;
	margin: 60px 0 0 0;
	background: url("../assets/content-gallery.png") no-repeat;
	position: relative;
}

#gallery {
	width: 636px;
	height: 430px;
	padding: 9px;
	margin: 60px 0 0 0;
	background: url("../assets/content-gallery.png") no-repeat;
	position: relative;
}

#gallery .image {
	position: relative;
	width: 636px;
	height: 343px;
	margin-bottom: 7px;
	overflow: hidden;
}

#gallery .image .scroll img {
	display: block;
	float: left;
	cursor: pointer;
	border: 1px solid #bf2726;
}

#gallery .image .scroll {
	width: 10000px;
	height: 343px;
	position: absolute;
}

#gallery .thumbs {
	width: 636px;
	height: 87px;
	overflow: hidden;
	position: relative;
	margin: 0 auto;
}

#gallery .thumbs .scroll {
	width: 10000px;
	position: absolute;
}

#gallery .thumbs .scroll a {
	width: 153px;
	height: 76px;
	padding: 0;
	margin: 0 3px;
	display: block;
	
	float: left;
	outline: 0;
}

#gallery .thumbs .scroll a img {
	border: 1px solid #bf2726;
}

#gallery .thumbs .scroll a.selected img,
#gallery .thumbs .scroll a:hover img {
	border: 1px solid #ffffff;
}

a.arrow {
	display: block;
	width: 17px;
	height: 48px;
	position: absolute;
	background-image: url("../assets/sprite-gallery-nav.png");
	background-repeat: no-repeat;
	text-indent: -9999px;
	bottom: 25px;
	outline: 0;
}

a.left {
	background-position: 0 0;
	left: -17px;
}

a.left:hover {
	background-position: 0 -120px;
}

a.right {
	background-position: 0 -60px;
	right: -17px;
}

a.right:hover {
	background-position: 0 -180px;
}

div.product-page div.vendors {
	clear: both;
	position: absolute;
	bottom: 18px;
	left: 10px;
	width: 478px;
}

div.product-page div.vendors h5 {
	color: #ecca64;
	margin: 0 0 5px 0;
	padding: 0;
	font-size: 13px;
	font-style: italic;
	text-align: center;
	width: 498px;
}

div.vendors div.scroller div.thumbs {
	width: 474px;
	height: 93px;
	overflow: hidden;
	position: relative;
	margin: 0 auto;
}

div.vendors div.scroller div.thumbs .scroll {
	width: 10000px;
	position: absolute;
}

div.vendors div.scroller div.thumbs .scroll a {
	width: 106px;
	height: 93px;
	padding: 0;
	margin: 0 6px;
	display: block;	
	float: left;
	outline: 0;
}

div.pupbio {
	width: 428px;
	height: 410px;
	float: left;
	margin: 45px 0 0 0;
	padding: 20px 30px 30px 40px;
}

#content h3 {
	margin: 0;
	padding: 0;
	color: #ecca64;
	font-size: 35px;
	margin-bottom: 10px;
	line-height: 33px;
}

#content p {
	margin: 0 0 12px 0;
	padding: 0;
	color: #ffffff;
	font-size: 13px;
	line-height: 19px;
}
#rules {
	width: 980px;
	margin: 0 auto;
}

#rules h5 {
	text-decoration: uppercase;
	font-size: 13px;
	color: #ffffff;
	text-align: center;
	margin: 0;
	padding: 0;
}

#content p.fineprint {
	font-size: 10px;
	line-height: 12px;
	color: #ffffff;
	margin: 30px 0 0 0;
}

#content p a {
	color: #ffffff;
}

#content p a:visited {
	color: #dddddd;
}

#content div.product-page h3 {
	font-size: 24px;
	line-height: 24px;
	width: 450px;
}

#content h4 {
	color: #ffffff;
	margin: 0 0 5px 0;
	padding: 0;
	font-size: 16px;
}

#content ul {
	list-style-type: none;
	margin: 0 0 5px 0;
	padding: 0;
	width: 200px;
}

#content ul li {
	padding: 0 0 0 20px;
	background: url("../assets/bullet.gif") no-repeat 10px 4px;
	margin: 0;
	font-size: 12px;
	line-height: 13px;
	color: #ffffff;
}

div.pupbio p {
	width: 54%;
}

div.pupbio p.aligned {
	width: 66%;
}

div.pupbio.pup1 {
	background: url("../assets/content-meet-the-pups-1.jpg");
}
div.pupbio.pup2 {
	background: url("../assets/content-meet-the-pups-2.jpg");
}
div.pupbio.pup3 {
	background: url("../assets/content-meet-the-pups-3.jpg");
}
div.pupbio.pup4 {
	background: url("../assets/content-meet-the-pups-4.jpg");
}

#content nav.pupnav {
	width: 163px;
	float: left;
	margin: 45px 0 0 0;
}

#content nav.pupnav ul {
	list-style-type: none;
	margin: 0;
	padding: 1px 0 0 0;
}

#content nav.pupnav ul li {
	margin: 0 0 2px 0;
	background: url("../assets/sprite-meet-the-pups-nav.png") no-repeat 0 -115px;
	padding: 12px;
	display: block;
	width: 139px;
	height: 89px;
	position: relative;
}

#content nav.pupnav ul li.selected {
	background-position: 0 0;
}

#content nav.pupnav ul li a {
	display: block;
	width: 139px;
	height: 89px;
}
#content nav.pupnav ul li a.title {
	position: absolute;
	background: url("../assets/tiny-ribbon.png") no-repeat 12px 6px;
	z-index: 10;
	font-size: 16px;
	color: #ffffff;
	font-weight: bold;
	width: 139px;
	height: 25px;
	padding: 5px 0 0 0;
	text-align: center;
	bottom: 0;
	left: 12px;
	line-height: 21px;
	text-decoration: none;
}
div.story-pupup {
	background: url("../assets/pupups/noble.jpg") no-repeat;
	width: 224px;
	height: 406px;
	position: absolute;
	bottom: -27px;
	right: 21px;
}

div.products-pupup {
	background: url("../assets/pupups/hope.jpg") no-repeat;
	width: 267px;
	height: 360px;
	position: absolute;
	bottom: -27px;
	right: 21px;
}

div.products {
	width: 448px;
	height: 410px;
	margin: 45px 0 0 0;
	padding: 20px 20px 30px 30px;
	background: url("../assets/content-story.png") no-repeat;
}

#content div.products h4 {
	color: #ecca64;
	padding: 0 0 0 3px;
}

#content div.products div.sp1,
#content div.products div.sp2 {
	clear: both;
}

div.product-page {
	width: 448px;
	height: 410px;
	margin: 45px 0 0 0;
	padding: 20px 20px 30px 30px;
	background: url("../assets/content-story.png") no-repeat;
}

div.story {
	width: 428px;
	height: 410px;
	margin: 45px 0 0 0;
	padding: 20px 30px 30px 40px;
	background: url("../assets/content-story.png") no-repeat;
}

div.activities {
	width: 660;
	height: 454px;
	margin: 45px 0 0 0;
	padding: 20px 30px 30px 40px;
	background: url("../assets/content-gallery.png") no-repeat 6px 6px;
}

div.activities div.activity  {
	margin: 0 0 10px 0;
	overflow: hidden;
	height: 180px;
	width: 305px;
	float: left;
}

div.activities div.activity div.thumb {
	background: url("../assets/activity-frame.png") no-repeat;
	width: 136px;
	height: 109px;
	padding: 3px 0 0 4px;
	float: left;
}

div.activities div.activity div.info {
	width: 150px;
	float: left;
	margin-left: 10px;
}

div.activities div.activity div.info div.text {
	height: 120px;
}

#content div.activities div.activity div.info h4 {
	font-style: italic;
	color: #ecca64;
	font-size: 16px;
	line-height: 18px;
	padding: 0 0 10px 0;
	margin: 0;
}

#content div.activities div.activity div.info p {
	color: #ffffff;
	font-size: 12px;
	padding: 0 0 10px 0;
	line-height: 14px;
	margin: 0;
}

div.products div.product {
	width: 135px;
	height: 160px;
	float: left;
	line-height: 15px;
	text-align: center;
	margin: 0 7px 0 0;
}

div.products div.product div.title {
	margin: 5px 0 0 0;
}

div.products div.product div.title a {
	font-size: 13px;
	color: #ffffff;

}

div.product-page div.info {

}

#content p.itunes {
	padding: 0 20px 0 0;
}

#content p.itunes img{
	padding: 0 0 0 5px;
	margin: 0;
	float: right;
	display: inline;
} 

#content ul.techspecs {
	padding: 0;
	margin: 0;
	list-style-type: none;
	width: auto;
	line-height: 13px;
}

#content ul.techspecs li {
	display: inline;
	padding: 0 10px 0 10px;
	background: url("../assets/bullet.gif") no-repeat 0 6px;
}

#content ul.features {
	width: 295px;
}

div.product-page {
	position: relative;
}

div.product-page div.back {
	width: 38px;
	height: 38px;
	background: url("../assets/close-button.png") no-repeat;
	position: absolute;
	top: -10px;
	right: -10px;
}

div.product-page div.back a {
	display: block;
	text-indent: -9999px;
	width: 36px;
	height: 36px;
}

div.product-page div.photo {
	position: absolute;
	left: 335px;
	top: 70px;
}

#modalSocial {
	width:100%;
	height:100%;
	background:transparent url("../assets/black80.png") repeat 0 0;
	position:absolute;
	top:0px;
	z-index:9999;
	display:none;
}
#socialFrame {
	position:relative;
	width:623px;
	height:200px;
	z-index:9999;
	margin:0px auto;
	color:#ffffff;
	font-size:14px;
	font-family:'FuturaBT-Bold', 'Arial Black', 'Gotham Bold', 'Avenir Bold';
	background-color:#a02523;
	padding:20px;
	border:1px solid #d24a47;
}
#agegateForm {
	position:relative;
	top:17px;
	height:100%;
	width:623px;
	z-index:8000;
	line-height:18px;
}
.socialBtnClose {
	position:absolute;
	right:-20px;
	top:-20px;
	z-index:9999;
}
#agegateForm h2 {
	color:#ecca64;
	text-shadow:#000000 -1px -1px 1px;
	font-size:18px;
	margin-top:25px;
	margin-bottom:12px;
}
#agegateForm select {
	display:inline-block;
	margin-left:10px;
	background-color:#ffffff;
	border:1px solid #d24a47;
	-moz-border-radius: 4px; /* Firefox */
	-webkit-border-radius: 4px; /* Safari, Chrome */
	border-radius: 4px; /* CSS3 */
	font-family:'FuturaBT-Medium', Arial, Gotham, Avenir;
	margin-top: 10px;
}
#agegateForm button {
	font-family:'FuturaBT-Bold', 'Arial Black', 'Gotham Bold', 'Avenir Bold';
	margin-left:10px;
	width:110px;
	height:38px;
	background-color:#5b1b18;
	color:#fff;
	font-size:14px;
	border:0px;
	text-transform:uppercase;
	margin-bottom:32px;
}

#order-widget {
	height: 23px;
	position: absolute;
	z-index: 1002;
	top: 0;
	width: 100%;
	left: 0;
	background: #1c633a;
}

#order-widget form {
	height: 23px;
	margin: 0 auto;
	width: 788px;
	padding: 0 0 0 40px;
}

#order-widget h5 {
	font-size: 14px;
	color: #fed276;
	font-style: italic;
	font-weight: bold;
	margin: 0;
	padding: 0 10px 0 30px;
	font-size: 14px;
	font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
	height: 23px;
	line-height: 23px;
}

#order-widget h5,
#order-widget div.select,
#order-widget #widgetSubmit {
	display: block;
	float: left;
}

#order-widget #selectProduct span.fancy-select,
#order-widget #selectProduct {
	width: 245px;
}

#order-widget #selectProduct select {
	width: 270px;
}

#order-widget div.select {
	position: relative;
	height: 15px;
	margin: 3px 0;
	padding-right: 25px;
	background: #5cab82 url("../assets/dropdown.gif") no-repeat right top;
	border: 1px solid #292c2d;
	overflow: hidden;
}

#order-widget #selectVendor span.fancy-select,
#order-widget #selectVendor {
	width: 120px;
}	

#order-widget #selectVendor select {
	width: 145px;
}


#order-widget div.select span.fancy-select {
	color: #292c2d;
	font-size: 12px;
	font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
	position: absolute;
	top: 0;
	left: 0;
	height: 15px;
	z-index: 1;
	padding: 0 0 0 5px;
	display: block;
	overflow: hidden;
}

div.select select {
	background: transparent none;
	font-size: 12px;
	font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
	color: #292c2d;
	display: none;
	height: 15px;
	border: none;
	-webkit-appearance: none;
	line-height: 15px;
	outline: 0;
	position: absolute;
	top: 0;
	z-index: 10;
	left: 0;
	opacity: 0;
	-khtml-appearance: none;
	-webkit-appearance: none;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
}

#order-widget select option {
	background: transparent;
}

#order-widget select:first-child {
	display: block;
}

#widgetSubmit {
	width: 90px;
	height: 23px;
	background: url("../assets/btnPreorder.gif") no-repeat;
	border: 0;
	font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
	color: #fed276;
	font-style: italic;
	font-weight: bold;
	font-size: 12px;
	margin: 0 0 0 20px;
	text-align: center;
}

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

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

}

@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
       only screen and (min-resolution: 144dpi) {

}

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

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

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

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