/*
 * 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;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations have to be separate.
 * Customize the background color to match your design.
 */

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

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

/*
 * 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
   ========================================================================== */

/*-------------------------------------------------------------*/
/*  Font Typkit Styles
/*-------------------------------------------------------------*/

/* -------- proxima-nova -------- */

/* Regular */
    /* font-family: "proxima-nova-n4", "proxima-nova",sans-serif;
    font-style: normal;
    font-weight: 400; */

/* Regular Italic */
    /*font-family: "proxima-nova-i4", "proxima-nova",sans-serif;
    font-style: italic;
    font-weight: 400;*/

/* Bold */
    /* font-family: "proxima-nova-n7", "proxima-nova",sans-serif;
    font-style: normal;
    font-weight: 700; */

/* Bold Italic */
    /* font-family: "proxima-nova-i7", "proxima-nova",sans-serif;
    font-style: italic;
    font-weight: 700; */


/* -------- museo-slab -------- */

/* 100 */
    /* font-family: "museo-slab-n1", "museo-slab",serif;
    font-style: normal;
    font-weight: 100; */

/* 100 Italic */
    /* font-family: "museo-slab-i1", "museo-slab",serif;
    font-style: italic;
    font-weight: 100; */

/* 700 */
    /* font-family: "museo-slab-n7", "museo-slab",serif;
    font-style: normal;
    font-weight: 700; */

/* 700 Italic */
    /* font-family: "museo-slab-i7", "museo-slab",serif;
    font-style: italic;
    font-weight: 700; */



/*-------------------------------------------------------------*/
/*  Layout
/*-------------------------------------------------------------*/

body {
    color: #fff;
    font-size: 32px;
    font-family: "museo-slab-n7", "museo-slab", serif;
    font-style: normal;
    font-weight: 700;
}

.main-nav {
    width: 100%;
    background: #4B4F54 url(../img/tile-header.png) 0 0 repeat-x;
    padding: 25px 0 10px;
    text-align: center;
}
.main-nav a{
    color: #0292B1;
    text-decoration: none;
    font-size: 34px;
    font-weight: bold;
    padding: 0 40px;
}
.main-nav a:hover{
    color: #fff;
}

.section {
    /* height: 1000px; */
    width: 960px;
    margin: 0 auto;
}

.btn {
    font-size: 39px;
    display: inline-block;
    background: transparent url(../img/sprite-babysmall.png) 0 -231px  no-repeat;
    width: 185px;
    height: 85px;
    text-decoration: none;
    margin: 40px 0;
    font-family: "proxima-nova-n7", "proxima-nova",sans-serif;
    font-style: normal;
    font-weight: 700;
    box-sizing: border-box;
    padding-top: 5px;
}
.btn:hover {
    background-position: -191px -231px;
}

.btn-yellow {
    color: #4B4F54;
}
.btn-grey {
    background-position: 0 -326px;
}

.section h1, .section h2 {
    font-size: 50px; 
    padding-bottom: 3px;
    border-bottom: 5px solid #4B4F54;
    display: inline-block;
    clear: both;
    padding: 0;
    font-family: "proxima-nova-n7", "proxima-nova",sans-serif;
    font-style: normal;
    font-weight: 700; 
    margin: 0;
}

.pull-left { float: left; }
.pull-right { float: right; }

.section-container {
    background: #fff;
    position: relative;
}


/*-------------------------------------------------------------*/
/*  Dominos
/*-------------------------------------------------------------*/

.dominos {
    position: absolute;
    top: 2514px !important;
    left: 50%;
    width: 890px;
    height: 4080px;
    z-index: 99999;
    margin-left: -445px;
    background: url(../img/dominos/upright-dominos.png) 0 0 no-repeat;
}
.domino-pieces {
    position: relative;
    height: 4080px;
    width: 890px;
}
.domino { position: absolute; }

.domino-stem, .domino-stem-mask {
    width: 890px;
    height: 3900px;
    left: 0px;
}
.domino-stem-mask {
    height: 0;
    top: 4px;
    background-image: url(../img/dominos/fallen-dominos.png);
    background-repeat: no-repeat;
    background-position: 0 0;
}

/*-------------------------------------------------------------*/
/*  message section
/*-------------------------------------------------------------*/

#message {
    background-color: #0292B1;
    text-align: center;
    position: relative;
    height: 800px;
    overflow: hidden;
}
#message h1 { 
    font-size: 50px;
    border-bottom: 5px solid #4B4F54;
}

#message .btn-yellow { color: #0292B1; }

#message .intro-box {
    position: absolute;
    top: 70px;
    left: 50%;
    margin-left: -480px;
    z-index: 50;
    width: 960px;
}

#message .cloud-box {
    width: 960px;
    height: 800px;
    overflow: hidden;
    left: 50%;
    margin-left: -480px;
    top: -25px !important;
}
#message .cloud {
    position: absolute;
}

#message .cloud-upper-left {
  background: url(../img/messages/cloud-upper-left.png) 0 0 no-repeat;
  display: inline-block;
  width: 575px;
  height: 251px;
  z-index: 2;
  top: 90px;
  left: 0px;
}

#message .cloud-lower-left {
  background: url(../img/messages/cloud-lower-left.png) 0 0 no-repeat;
  display: inline-block;
  width: 252px;
  height: 100px;
  z-index: 4;
  /* top: 500px; */
  left: 90px;
}

#message .cloud-lower-right {
  background: url(../img/messages/cloud-lower-right.png) 0 0 no-repeat;
  display: inline-block;
  width: 431px;
  height: 189px;
  z-index: 1;
  /* top: 430px; */
  right: 20px;
}

#message .cloud-upper-right {
  background: url(../img/messages/cloud-upper-right.png) 0 0 no-repeat;
  display: inline-block;
  width: 384px;
  height: 186px;
  z-index: 3;
  /* top: 171px; */
  right: 60px;
}


/*-------------------------------------------------------------*/
/*  video section
/*-------------------------------------------------------------*/

#video {
    background-color: #4B4F54;
    text-align: center;
}


/*-------------------------------------------------------------*/
/*  social section
/*-------------------------------------------------------------*/

.social {
    background: #FFC72C;
    padding: 80px 0 30px;
}
#social-two { padding: 80px 0; }
.social > div {
    width: 630px;
    margin: 0 auto;
    overflow: hidden;
    height: 84px;
    position: relative;
}
.social a.share {
    width: 90px;
    height: 173px; 
    background-image: url(../img/sprite-babysmall.png);
    background-repeat: no-repeat;
    display: inline-block;
    text-indent: -9999px;
    direction: ltr;
    overflow: hidden;
    box-sizing: border-box;
    margin: 0 20px;
    position: absolute;
    top: 0;
}

.social a.share-facebook { background-position: 0 0; left: 0px; }
.social a.share-twitter { background-position: -100px 4px; left: 140px; }
.social a.share-googleplus { background-position: -192px 5px; left: 280px; }
.social a.share-email { background-position: -400px 3px; left: 410px; }
.social a.share-vimeo { background-position: -296px 10px; left: 528px; }

body div.share-bar {
    width: 390px;
    margin: 30px auto 0;
}

.addthis_button_facebook_like, .addthis_counter{ 
    top: 0px !important; 
    padding-top: 5px !important; 
    display: block !important;
}
 .addthis_counter {
    padding-top: 13px !important; 
}

/*-------------------------------------------------------------*/
/*  introduction section
/*-------------------------------------------------------------*/

#intro {
    background-color: #84BD00;
    text-align: center;
    height: 800px;
    overflow: hidden;
}
#intro .section { position: relative;  }
#intro .text-box {
  position: absolute;
  top:240px;
  z-index: 20;
}

#intro .btn { color: #82BC41; } 

#intro .brain-box { 
  height: 800px; 
  position: relative;
  z-index: 10;
  top:0 !important;
  width: 960px;
}
#intro .brain { position: absolute; }
#intro .brain-bottom {
  background: url(../img/intro/brain-bottom.png) 0 0 no-repeat;
  display: inline-block;
  width: 364px;
  height: 265px;
  top: 480px;
  left: 461px;
}

#intro .brain-middle {
  background: url(../img/intro/brain-middle.png) 0 0 no-repeat;
  display: inline-block;
  width: 509px;
  height: 372px;
  left: 32px;
  top: 200px;
}

#intro .brain-top {
  background: url(../img/intro/brain-top.png) 0 0 no-repeat;
  display: inline-block;
  width: 442px;
  height: 322px;
  top: 110px;
  right: 91px
}


/*-------------------------------------------------------------*/
/*  facts section
/*-------------------------------------------------------------*/

#facts {
    background-color: #FF6715;
    font-size: 18px;
    overflow: hidden;
}
#facts .step { overflow: hidden; margin: 40px 0; }
#facts div p {
    font-family: "museo-slab-n1", "museo-slab",serif;
    font-style: normal;
    font-weight: 100; 
    font-size: 18px;
    margin: 0;
}
#facts div p strong {
    font-family: "proxima-nova-n7", "proxima-nova",sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 20px;
    margin: 0;
}
#facts .pull-left,#facts .pull-right {
    width: 410px;
}
#facts .pull-left { text-align: right; }
#facts .anim-container { position: relative; }

#facts .why-step-1 .anim-container { height: 300px; }
#facts .why-step-1 .pull-left { margin-top: 80px; }

#facts .why-step-1 .num-1{ 
    top: 120px; /* top: 60px; */
    left: 35px;
}
#facts .why-step-1 .num-2{
    top: 86px; /* top: 23px; */
    left: 182px;
}
#facts .why-step-1 .num-3{
    top: 62px; /* top: -2px; */
    right: 51px;
}
#facts .why-step-1 .infant, #facts .why-step-1 .num {
    position: absolute;
    margin: 0;
    font-size: 30px;
    font-family: "proxima-nova-n7", "proxima-nova",sans-serif;
    font-style: normal;
    font-weight: 700;
}
#facts .why-step-1 .infant-1{ 
    width: 86px;
    height: 162px;
    background: url(../img/facts/sprite-facts.png) 0px 0px no-repeat;
    top: 128px; /* top: 108px; */
    left: 1px;
}
#facts .why-step-1 .infant-2{ 
    width: 105px;
    height: 198px;
    background: url(../img/facts/sprite-facts.png) -100px 0px no-repeat;
    top: 92px; /* top: 72px; */
    left: 140px;
}
#facts .why-step-1 .infant-3{ 
    width: 118px;
    height: 222px;
    background: url(../img/facts/sprite-facts.png) -220px 0px no-repeat;
    top: 68px; /* top: 48px; */
    right: 0;
}

#facts .why-step-2 .anim-container {
    height: 345px;
    margin-top: 20px;
}
#facts .why-step-2 .synapse,#facts .why-step-2 .synapse-base {
    position: absolute;
    width: 384px;
    height: 290px;
    right: 0;
}

#facts .why-step-2 .synapse-1 {
    background: url(../img/facts/sprite-facts.png) -1px -401px no-repeat;
    z-index: 10;
}
#facts .why-step-2 .synapse-2 {
    background: url(../img/facts/sprite-facts.png) -399px -401px no-repeat;   
    z-index: 20;
}
#facts .why-step-2 .synapse-3 {
    background: url(../img/facts/sprite-facts.png) -1px -713px no-repeat;
    z-index: 30;
    top: 2px;
}
#facts .why-step-2 .synapse-4 {
    background: url(../img/facts/sprite-facts.png) -399px -713px no-repeat;
    z-index: 40;
    top: 2px;
}


#facts .why-step-3 .anim-container { height: 545px; }
#facts .why-step-3 .pull-left { margin-top: 66px; }
#facts .why-step-3 .pull-right div { position: absolute; }

#facts .why-step-3 .home {
    width: 107px;
    height: 91px;
    background: url(../img/facts/sprite-facts.png) 0 -220px no-repeat;
    top: 126px; /* top: 106px; */
    left: 0px;
}
#facts .why-step-3 .couple {
    width: 93px;
    height: 147px;
    background: url(../img/facts/sprite-facts.png) -280px -240px no-repeat;
    top: 20px; /* top: 0; */
    left: 146px;
}
#facts .why-step-3 .kids {
    width: 135px;
    height: 93px;
    background: url(../img/facts/sprite-facts.png) -128px -250px no-repeat;
    top: 126px; /* top: 106px; */
    right: 0px;
}
#facts .why-step-3 .girl-big {
    width: 198px;
    height: 371px;
    background: url(../img/facts/sprite-facts.png) -400px -1px no-repeat;
    top: 170px;
    left: 100px;
}


/*-------------------------------------------------------------*/
/*  good news section
/*-------------------------------------------------------------*/

#good-news {
    background-color: #FFC72C;
    text-align: center;
    padding-bottom: 10px;
    padding: 120px 0;
}
#good-news .news-text-box {
    width: 660px;
    margin: 0 auto;
}



/*-------------------------------------------------------------*/
/*  points section
/*-------------------------------------------------------------*/

#points {
    background-color: #0292B1;
    font-size: 18px;
    padding: 40px 0 0;
    overflow: hidden;
    font-family: "museo-slab-n1", "museo-slab",serif;
    font-style: normal;
    font-weight: 100; 
    position: relative;
}
#points h3 { 
    font-size: 66px; 
    margin: 0; 
    padding: 0; 
    text-align: center;
    font-family: "proxima-nova-n7", "proxima-nova",sans-serif;
    font-style: normal;
    font-weight: 700; 
}
#points .pull-left, #points .pull-right {
    width: 410px;
    display:table;
    height: 711px;
}
#points .pull-left { text-align: right; }
#points .pull-right { text-align: left; }
#points .anim-container {
    height: 460px;
    position: relative;
    /* background-color: #333; */
}
#points .point .anim-container div { position: absolute; }
#points .points-step1 .point-touch-1 {
    background: url(../img/points/sprite-point-touch-1.png) 0 0 no-repeat;
    width: 409px;
    height: 456px;
    top: 0;
    left: 0px; /* left: 35px; */ 
}

#points .points-step2 .mother {
    background: url(../img/points/sprite-points-talk.png) 0 0 no-repeat;
    width: 197px;
    height: 341px;
    top: 34px;
    right: 22px;
}
#points .points-step2 .baby {
    background: url(../img/points/sprite-points-talk.png) -200px -90px no-repeat;
    width: 125px;
    height: 167px;
    top: 130px; /* top: 210px; */
    left: 70px;
}
#points .points-step2 .speech-bubble {
    background: url(../img/points/sprite-points-talk.png) -200px -1px no-repeat;
    width: 88px;
    height: 80px;
    top: 43px;
    left: 150px;
    box-sizing: border-box;
    padding-left: 12px;
}
#points .points-step2 .speech-bubble span {
    display: block;
    position: relative; 
    color: #0292B1;
    font-family: "museo-slab-n7", "museo-slab",serif;
    font-style: normal;
    font-weight: 700;
    font-size: 26px;
    top: 22px;
    float: left;
}

#points .points-step3 .father {
    background: url(../img/points/sprite-points-read.png) 0 0 no-repeat;
    width: 227px;
    height: 454px;
    left: 118px;
    z-index: 10;
}
#points .points-step3 .baby {
    background: url(../img/points/sprite-points-read.png) -242px 0 no-repeat;
    width: 114px;
    height: 154px;
    top: 10px; /* top: 118px; */
    left: 231px;
    z-index: 20;
}
#points .points-step3 .book {
    background: url(../img/points/sprite-points-read.png) -241px -226px no-repeat;
    width: 116px;
    height: 91px;
    top: 167px;
    left: 155px;
    z-index: 30;
}
#points .points-step3 .arm {
    background: url(../img/points/sprite-points-read.png) -246px -328px no-repeat;
    width: 69px;
    height: 144px;
    top: 103px;
    left: 120px;
    z-index: 40;
}

#points .points-step4 .brick {
    background: url(../img/points/sprite-points-play.png) -382px -1px no-repeat;
    width: 96px;
    height: 47px;
    top: 122px;
    left: 171px;
    z-index: 40;
}
#points .points-step4 .brick-stacks {
    background: url(../img/points/sprite-points-play.png) -382px -110px no-repeat;
    width: 96px;
    height: 194px;
    top: 170px;
    left: 145px;
    z-index: 30;
}
#points .points-step4 .man {
    background: url(../img/points/sprite-points-play.png) -180px -1px no-repeat;
    width: 175px;
    height: 304px;
    top: 60px;
    left: 235px;
    z-index: 20;
}
#points .points-step4 .woman {
    background: url(../img/points/sprite-points-play.png) -1px -1px no-repeat;
    width: 171px;
    height: 307px; 
    top: 60px;
    left: 0px;
    z-index: 10;
}
#points .section {
    margin-bottom: 200px;
    overflow: hidden;
    z-index: 400;
    position: relative;
}
#points .skyline {
    width: 960px;
    margin: 0 auto;
    height: 290px;
    clear: both;
    background: url(../img/points/sprite-summary.png) -34px 2px no-repeat;
    z-index: 300;
    position: relative;
}

.city-outer-ring {
    position: absolute;
    bottom: -1300px;
    left: 50%;
    margin-left: -650px;
    background: url(../img/points/city-outer-ring.png) 0 0 no-repeat;
    width: 1300px;
    height: 1300px;
    z-index: 200;
}
.city-center-ring {
    position: absolute;
    bottom: -940px;
    left: 50%;
    margin-left: -470px;
    background: url(../img/points/city-center-ring.png) 0 0 no-repeat;
    width: 940px;
    height: 940px;
    z-index: 210;
}
.city-inner-ring {
    position: absolute;
    bottom: -610px;
    left: 50%;
    margin-left: -305px;
    background: url(../img/points/city-inner-ring.png) 0 0 no-repeat;
    width: 610px;
    height: 610px;
    z-index: 220;
}

/*-------------------------------------------------------------*/
/*  summary section
/*-------------------------------------------------------------*/

#summary {
    background-color: #4B4F54;
    text-align: center;
    padding-bottom: 20px;
}
#summary h2 {
    border-bottom-color: #0292B1;
}

#summary .final-message {
    color: #FFC72C;
}
#summary .summary-info {
    padding-top: 290px;
}

#summary .kids-container {
    position: relative;
    width: 940px;
    height: 83px;
    overflow: hidden;
    margin: 0 auto 80px;
    left: 50%;
    margin-top: 10px;
    margin-left: -470px;
}
#summary .kids-mask {
    z-index: 20;
    width: 1024px;
    height: 83px;
    position: absolute;
    background: url(../img/points/sprite-summary.png) 0 -324px no-repeat;
}
#summary .kids-color {
    z-index: 10;
    position: absolute;
    width: 2059px;
    height: 83px;
    background: url(../img/points/sprite-summary.png) 0 -434px no-repeat;
    left: -2090px;
}

#institute {
    font-size: 19px;
    color: #4B4F54;
    overflow: hidden;
    padding-bottom: 20px;
}
#institute .section {
    overflow: hidden;
    padding: 60px 0;
}

#institute a {
    font-size: 16px;
    color: #4B4F54;
    text-decoration: none;
    font-family: "museo-slab",serif;
    font-style: normal;
    font-weight: 100;
    display: inline-block;
    margin-right: 15px;
}
#institute a:hover { color: #0292B1 }
#institute .footer-logo {
    width: 100px;
    height: 105px;
    background: url(../img/sprite-babysmall.png) 0 -424px no-repeat;
    margin: 15px 0 0 10px;
}
#institute .footer-info {
    width: 840px;
    overflow: hidden;
}
#institute .footer-share-nav{ padding-right: 100px; }
#institute .footer-share-nav a {
    display: inline-block;
    background-image: url(../img/sprite-babysmall.png);
    text-indent: 200%;
    direction: ltr;
    overflow: hidden;
}
#institute .footer-share-nav .footer-share-facebook {
    width: 24px;
    height: 24px;
    background-position: 0 -190px;
}
#institute .footer-share-nav .footer-share-twitter {
    width: 26px;
    height: 25px;
    background-position: -40px -190px;
}
#institute .footer-share-nav .footer-share-googleplus {
    width: 26px;
    height: 26px;
    background-position: -86px -190px;
}
#institute .footer-share-nav .footer-share-vimeo {
    width: 27px;
    height: 25px;
    background-position: -130px -190px;
}

.main-footer { 
    background-color: #4B4F54;
    clear: both;
    color: #fff;
    font-size: 12px;
    text-align: center;
    padding: 10px 0;
    font-family: "proxima-nova-n4", "proxima-nova",sans-serif;
    font-style: normal;
    font-weight: 400;
}
.main-footer a { color: #ccc; text-decoration: none; font-size: 12px; }
.main-footer a:hover { color: #fff; }



/* ==========================================================================
   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: 100%;
}

/*
 * 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 only screen and (-webkit-min-device-pixel-ratio: 1.5),
       only screen and (min-resolution: 144dpi) {
    /* 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;
    }
}
