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

/*--------------------------------- GENERAL */

@font-face {
    font-family: 'BebasNeue';
    src: url('/fonts/Bebas/bebas-webfont.eot');
    src: url('/fonts/Bebas/bebas-webfont.eot?#iefix') format('embedded-opentype'),
         /* url('/fonts/Bebas/bebas-webfont.woff') format('woff'),*/
         url('/fonts/Bebas/bebas-webfont.ttf') format('truetype'),
         url('/fonts/Bebas/bebas-webfont.svg#bebasregular') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'SkolarRegular';
    src: url('/fonts/Skolar/skolar-regular-webfont.eot');
    src: url('/fonts/Skolar/skolar-regular-webfont.eot?#iefix') format('embedded-opentype'),
         /* url('/fonts/Skolar/skolar-regular-webfont.woff') format('woff'), */
         url('/fonts/Skolar/skolar-regular-webfont.ttf') format('truetype'),
         url('/fonts/Skolar/skolar-regular-webfont.svg#skolar_regularregular') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'SkolarBold';
    src: url('/fonts/Skolar/skolar-bold-webfont.eot');
    src: url('/fonts/Skolar/skolar-bold-webfont.eot?#iefix') format('embedded-opentype'),
         /* url('/fonts/Skolar/skolar-bold-webfont.woff') format('woff'), */
         url('/fonts/Skolar/skolar-bold-webfont.ttf') format('truetype'),
         url('/fonts/Skolar/skolar-bold-webfont.svg#skolar_boldbold') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'SkolarItalic';
    src: url('/fonts/Skolar/skolar-italic-webfont.eot');
    src: url('/fonts/Skolar/skolar-italic-webfont.eot?#iefix') format('embedded-opentype'),
         /* url('/fonts/Skolar/skolar-italic-webfont.woff') format('woff'), */
         url('/fonts/Skolar/skolar-italic-webfont.ttf') format('truetype'),
         url('/fonts/Skolar/skolar-italic-webfont.svg#skolar_italicitalic') format('svg');
    font-weight: normal;
    font-style: normal;
}

html, body{
    overflow-x: hidden;
}

body{
    margin-top: 20px;
    padding: 0;
    outline: none;
    font-family: 'SkolarRegular';
    font-weight: normal;
    -webkit-font-smoothing: antialiased;
    -moz-font-smoothing: antialiased;
    font-smoothing: antialiased;
    height: 100%;
    overflow: hidden;
}

/* Preloader */
#preloader {
    position: fixed;
    top:0;
    left:0;
    right:0;
    bottom:0;
    background-color:#fff; /* change if the mask should have another color then white */
    z-index:99; /* makes sure it stays on top */
}

#status {
    width:200px;
    height:200px;
    position:absolute;
    left:50%; /* centers the loading animation horizontally one the screen */
    top:42%; /* centers the loading animation vertically one the screen */
    background-image:url(../img/status-f.gif); /* path to your loading animation */
    background-repeat:no-repeat;
    background-position:center;
    margin:-100px 0 0 -100px; /* is width and height divided by two */
}

a{
    color: #e19737;
    outline: none;
    text-decoration: none;
    cursor: pointer;
}

label{
    font-weight: normal;
}

button{
    outline: none;
}

a:focus{
    -moz-outline-style: none;
    outline: none;
    text-decoration: none;
}

a.active:hover{
    text-decoration: none;
    color: #e19737;
    text-decoration: none;
}

a:hover{
    text-decoration: none;
    color: #d07600;
    text-decoration: none;
}

hr.dotted{    
    height: 4px;    
    background-image: url('../img/dotted.png');
    background-repeat: repeat-x;
    border: none;
}

ul{
    margin: 0;
    padding: 0;
}

.nav > li > a{
    padding: 0px;
}

.container{
    max-width: 1440px;
    position: relative;
}

.heading{
    text-align: center;
}

.heading img{
    width: 100%;
}

.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12{
    padding: 0px 10px;
}

.row{
    margin: 0;
    padding: 0;
}

.orange{
    color: #d98c3f;
}

#profil, #productions, #contact, #prix{
    margin-top: 25px;
}

.uppercase{
    text-transform: uppercase;
}

.lowercase{
    text-transform: lowercase;
}

h1 {
    margin: 0;
    padding: 0;
}

/*--------------------------------- HEADER */

header{
    border: none;
    margin: 0 auto;
    padding-bottom: 10px;
    max-width: 995px;
    position: relative;
    z-index: 999;
}

header:after{
    clear: both;
    content: '';
    display: table;
}

header #site-title{
    text-transform: uppercase;
    font-size: 11px;
    line-height: 14px;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
    width: 995px;
    height: 63px;
    color: #666666;
    position: relative;
    margin-bottom: 38px;
    padding-left: 270px;
    padding-top: 43px;
    padding-bottom: 5px;
}

header #site-title .logo{
    display: block;
    width: 250px;
    height: 59px;
    background: url('/img/logo.png') no-repeat;
    background-size: 250px 59px;
    position: absolute;
    top: 0;
    left: 0;
    text-indent: -10000px;
}

header #site-title br{
    display: none;
}

header .nav{
    text-align: center;
    max-width: 995px;
    margin: 0 auto;
}

header .nav li{
    border-right: 1px solid #d3d3d3;
}

header .nav li:last-child{
    border-right: none;
}

header .nav li a{
    text-transform: uppercase;
    font-family: 'BebasNeue';
    color: #5d5d5d;
    font-size: 14px;
    letter-spacing: 4px;
    float: left;
    padding: 30px 14px 30px 47px;
}

header .nav li img{
    padding-left: 8px;
    float: right;
    visibility: hidden;
}

header .nav li a:hover,
header .nav li a:focus{
    background: none;
    color: #000000;
}

header .nav li a.active{
    color: #000000;
}

#mobile-menu{
    display: none;
}

#zone{
    width: 327px;
    height: 100%;
    background-color: #eeecde;
    z-index: 9900;
    position: absolute;
    right: -267px;
    top: 0;
    position: fixed;
    padding-top: 40px;
    -webkit-transition: right 0.1s linear;
    transition: right 0.1s linear;
}

#zone .clickable{
    width: 60px;
    height: 600px;
    position: absolute;
    cursor: pointer;
    z-index: 9999;
}

#zone.opened{
    right: 0;
    -webkit-transition: right 0.1s linear;
    transition: right 0.1s linear;
}

#zone .client{
    font-size: 14px;
    text-transform: uppercase;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    height: 95px;
    width: 140px;
    color: #5d5d5d;
    position: relative;
    -moz-transform: rotate(270deg);  /* FF3.5+ */
    -o-transform: rotate(270deg);  /* Opera 10.5 */
    -webkit-transform: rotate(270deg);  /* Saf3.1+, Chrome */
    transform: rotate(270deg);
}

#zone .client img{
    position: absolute;
    left: -30px;
    top: -1px;
    -moz-transform: rotate(90deg);  /* FF3.5+ */
    -o-transform: rotate(90deg);  /* Opera 10.5 */
    -webkit-transform: rotate(90deg);  /* Saf3.1+, Chrome */
    transform: rotate(90deg);
}

#zone .client img.rotate{
    -moz-transform: rotate(180deg);  /* FF3.5+ */
    -o-transform: rotate(180deg);  /* Opera 10.5 */
    -webkit-transform: rotate(180deg);  /* Saf3.1+, Chrome */
    transform: rotate(180deg);
}

#zone .client a{
    color: #5d5d5d;
}

#zone iframe{
    height: 650px;
    width: 240px;
    margin-top: 40px;
    margin-left: 68px;
    border: none;
    overflow: hidden;
}

#zone form{
    font-size: 14px;
    font-weight: normal;
    font-family: 'SkolarRegular';
    color: #5d5d5d;
    position: absolute;
    left: 85px;
    top: 170px;
}

#zone input.text{
    border: none;
}

#zone form .submit{
    margin-top: 15px;
}

ul.lang{
    position: absolute;
    right: 58px;
    top: 41px;
}

ul.lang li{
    list-style: none;
}

ul.lang li a{
    text-transform: uppercase;
    font-family: 'BebasNeue';
    color: #5d5d5d;
    font-size: 11px;
    letter-spacing: 2px;
}

ul.lang li a:hover,
ul.lang li a:focus{
    color: #000000;
}

/*--------------------------------- MAIN - HOME */

#home .nivo-controlNav{
    display: none;
}

#home .theme-default .nivoSlider{
    box-shadow: none;
}

#home .theme-default a.nivo-nextNav{
    right: 74px;
}

#home .theme-default:hover .nivo-directionNav a{
    opacity: 0.7;
}

.main{
    max-width: 995px;
    margin: 0 auto;
}

.main .head-subtitle a.active,
.main .head-subtitle a.active:hover{
    color: #e19737;
}

#home img{
    width: 100%;
}

.main img{
    max-width: 100%;
}

.main .head-subtitle{
    width: 100%;
    font-family: 'Arapey', serif;
    font-size: 48px;
    letter-spacing: 4px;
    color: #666666;
    text-transform: uppercase;
    padding-top: 12px;
    text-align: center;
    margin-bottom: 30px;
}

.main .head-subtitle a:hover{
    color: #333333;
}

.main .head-subtitle ul li{
    display: inline;
    padding-right: 30px;
}

.main .head-subtitle a{
    color: #666666;
}

.main .news-head{
    font-family: 'SkolarItalic';
    height: 30px;
    font-size: 13px;
    color: #666666;
    letter-spacing: 2px;
    font-style: italic;
    background-image: url('../img/dotted.png');
    background-repeat: repeat-x;
}

.main .news-word{
    position: absolute;
    display: inline-block;
    margin-left: 50%;
    margin-top: -8px;
}

.main .news-display{
    display: inline-block;
    background-color: #ffffff;
    padding-left: 12px;
    padding-right: 12px;
    margin-left: -50%;
}

.main .row{
    max-width: 995px;
}

#home .main #news article{
    font-family: 'SkolarRegular';
    max-width: 995px;
    font-size: 16px;
    padding-top: 16px;
    padding-bottom: 16px;
    border: none;
    line-height: 20px;
}

#home .main article{
    font-family: 'SkolarRegular';
    max-width: 995px;
    font-size: 16px;
    padding-top: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #c6c4b9;
    line-height: 20px;
}

#home .main article img{
    /*width: 95%;*/
    width: 340px;
    float: right;
    padding-right: 40px;
    margin-bottom: 10px;
} 

#home .main article:first-of-type{
    padding-top: 0px;
    padding-bottom: 30px;
}  

#home .main article .news-title{
    font-family: 'SkolarBold';
    text-transform: uppercase;
    color: #000000;
}

#home .main article .news-title sup{
    text-transform: none;
}

span.number{
    font-size: 19px;
}

#home .main article .news-date{
    padding-bottom: 20px;
}

#home .main article .news-infos{
    padding-bottom: 20px;
}

#home .main article:last-child{
    border: none;
}

#home .section-bar{
    padding-top: 32px;
    padding-bottom: 32px;
    background-color: #f5f4eb;
    /*margin-top: 30px;*/
}

#home .section-infos{
    font-size: 24px;
    text-transform: uppercase;
    color: #666666;
    letter-spacing: 1px;
}

#home .international-content .section-infos{
    text-transform: none;
    font-size: 22px;
    padding-right: 290px;
    line-height: 28px;
}

#home .international-content article:first-child{
    margin-top: 10px;
}

#home .international-content article img{
    width: 90%;
}

#home .international-content .main .description{
    padding-right: 40px;
}

#home .main .film-title{
    font-family: 'SkolarBold';
    font-size: 16px;
    color: #000000;
    text-transform: uppercase;
}

#home .main .credits{
    margin-top: 20px;
}

#home .main .description{
    margin-top: 20px;
    padding-right: 160px;
}

#home .films-content,
#home .tv-content,
#home .international-content{
    display: none;
}

#home .main .all-projects{
    font-size: 15px;
}

#home iframe.noireframe{
    width: 550px;
    height: 308px;
}

#home .tv-content .intro-tv{
    width: 55%;
    padding-bottom: 20px;
}

#home .tv-content .intro-tv .orange{
    font-size: 20px;
    line-height: 22px;
    padding-bottom: 5px;
    padding-right: 40px;
}

#home .tv-content .intro-tv p{
    font-size: 16px;
    line-height: 20px;
}

/*--------------------------------- PROFIL */

.title{
    font-family: 'Arapey', serif;
    text-align: center;
    font-size: 43px;
    letter-spacing: 1px;
    color: #797979;
    text-transform: uppercase;
}

 .choice{
    text-align: center;
    margin-top: 50px;
}

 .choice a{
    color: #999999;
    cursor: pointer;
}

 .choice a.active{
    color: #E19737;
}

.choice ul li{
    display: inline;
    font-family: 'SkolarBold';
    text-transform: uppercase;
    font-size: 17px;
    color: #999999;
    padding: 6px 30px;
}

 .choice ul li{
    border-right: 1px solid #666666;
}

 .choice ul li:last-child{
    border: none;
}

#profil .content{
    margin-top: 58px;
    font-family: 'SkolarRegular';
}

#profil .content .right{
    padding-left: 21px;
    padding-right: 80px;
}

#profil .content img{
    margin-bottom: 10px;
}

#profil .content .intro{
    font-size: 24px;
    color: #666666;
    line-height: 25px;
    -webkit-font-smoothing: antialiased;
    font-smoothing: antialiased;
}

#profil .content .description{
    font-size: 16px;
    margin-top: 20px;
}

#profil .content.team{
    max-width: 675px;
    margin: 0 auto;
    margin-top: 15px;
    position: relative;
}

#profil .content.team.first{
    margin-top: 50px;
}

#profil .content.vision img{
    width: 100%;
}

#profil .content.team .picture img{
    width: 100%;
}

#profil .content.team .infos{
    padding-left: 18px;
    -webkit-font-smoothing: antialiased;
    font-smoothing: antialiased;
    margin-top: 156px;
}

#profil .content.team .infos.lise{
    margin-top: 138px;
}

#profil .content.team .infos .name{
    font-size: 24px;
    font-family: 'SkolarRegular';
    text-transform: uppercase;
    color: #df9636;
}

#profil .content.team .infos .job{
    font-size: 24px;
    font-family: 'SkolarRegular';
    color: #666666;
    margin-top: -4px;
}

#profil .content.team .bio{
    font-size: 16px;
    color: #666666;
    padding-top: 8px;
    padding-bottom: 20px;
}

#profil .content.team .infos a img{
    cursor: pointer;
    transform: rotate(0deg);
    -ms-transform:rotate(0deg);
    -webkit-transform:rotate(0deg);
    transform:rotate(0deg);
}

#profil .content.team .infos a.rotate img{
    transform: rotate(90deg);
    -ms-transform:rotate(90deg);
    -webkit-transform:rotate(90deg);
    transform:rotate(90deg);
}

/*--------------------------------- PRODUCTIONS */

#productions .row.first{
    margin-top: 55px;
    margin-bottom: 20px;
}

#productions .first-line{
    margin-bottom: 20px;
}

#productions .first-line:after{
    display: table;
    content: " ";
}

#productions #prod-home .prod{
    padding-left: 16px;
    position: relative;
    margin-bottom: 20px;
}

#productions #prod-home .prod img{
    border: 15px solid #f2f2f2;
	-webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
	filter: grayscale(100%);
}

#productions #prod-home .prod img:hover{
	-webkit-filter:none;
	filter:none;
}

#productions #prod-home .prod img.color{
    position: absolute;
    top: 0;
    left: 16px;
    visibility: hidden;
}

#productions #prod-home .serie-titre{
    text-align: left;
    color: #cc6600;
    text-transform: uppercase;
    font-family: 'SkolarBold';
    font-size: 14px;
    margin-top: 18px;
    line-height: 12px;
}

#productions #prod-home .saison{
    text-align: left;
    color: #333333;
    font-family: 'SkolarRegular';
    font-size: 14px;
}

#productions #prod-home{
    display: block;
}

#productions .breadcrumbs{
    font-family: 'SkolarBold';
    font-size: 14px;
    color: #cc6600;
    /*position: absolute;
    top: 18px;*/
}

#productions .breadcrumbs img{
    padding-right: 5px;
}

#productions .preview{
    width: 100%;
    /*height: 360px;*/
    background-color: #000000;
    margin-top: 20px;
}

#productions .preview iframe{
    width: 100%;
    height: 360px;
}

#productions .description{
    margin-top: 30px;
    font-size: 18px;
    line-height: 21px;
}

#productions .description .left{
    font-size: 16px;
    padding-right: 30px;
}

#productions .toutv{
    color: #cc6600;
    font-family: 'SkolarBold';
    font-size: 15px;
    margin-top: 35px;
}

#productions .toutv img{
    padding-right: 5px;
}

#productions .quote{
    font-size: 23px;
    line-height: 25px;
    color: #e79840;
}

#productions .images{
    margin-top: 35px;
}

#productions .images .row > div{
    padding: 0;
}

#productions .images img{
    padding-bottom: 8px;
}

#productions .third-season .images .right{
    padding-left: 10px;
}

#productions .note{
    margin-top: 20px;
    font-family: 'SkolarItalic';
    color: #333333;
    font-size: 14px;
}

/*--------------------------------- SÉRIES */

/*#productions #invincibles,
#productions #rescapes,
#productions #serienoire,
#productions #francois{
    display: none;
}*/

#productions #invincibles .main,
#productions #rescapes .main,
#productions #serienoire .main,
#productions #francois .main{
    max-width: 725px;
}

#productions #invincibles .title,
#productions #rescapes .title,
#productions #serienoire .title,
#productions #francois .title{
    font-style: italic;
}

#productions #serienoire .images img,
#productions #francois .images img{
    padding-right: 6px;
}

/*--------------------------------- PRIX */

#prix{
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    font-smoothing: antialiased;
}

#prix article{
    line-height: 21px;
    padding-bottom: 45px;
    border-bottom: 1px solid #b2b2b2;
    margin-top: 25px;
}

#prix article:last-child{
    border: none;
}

#prix article .name{
    text-transform: uppercase;
    padding-bottom: 25px;
}

#prix article img{
    width: 90%;
}

#prix article.first{
    margin-top: 45px;
}



/*--------------------------------- CONTACT */

#contact .row.contact{
    margin-top: 75px;
}

#contact img.map{
    border: 15px solid #eeeeee;
}

#contact .location{
    font-family: 'SkolarRegular';
    font-size: 16px;
    line-height: 16px;
}

#contact .location .offices{
    font-family: 'SkolarBold';
    font-size: 14px;
    text-transform: uppercase;
    color: #333333;
    margin-bottom: 18px;
}

#contact .google-maps{
    margin-top: 32px;
    font-family: 'SkolarBold';
    font-size: 14px;
    color: #333333;
}

#contact .google-maps img{
    padding-right: 8px;
}

#contact .google-maps a{
    color: #333333;
}

#contact .outside{
    margin-top: 40px;
}

#contact .outside img{
    width: 170px;
}

/*--------------------------------- FOOTER */

footer{
    font-family: 'SkolarRegular';
    width: 100%;
    margin-top: 110px;
    padding-top: 38px;
    border-top: 1px solid #949494;
    height: 285px;
    font-size: 16px;
}

footer .container{
    max-width: 995px;
}

footer .logo-small{
    float: left;
}

footer .copyright{
    font-family: 'SkolarItalic';
    font-size: 12px;
    color: #666666;
    letter-spacing: 1px;
    padding-top: 0px;
    padding-left: 38px;
}

footer .contact{
    font-family: 'SkolarBold';
    text-transform: uppercase;
    padding-bottom: 6px;
}

footer .address{
    padding-bottom: 15px;
}

footer .phone{
    padding-bottom: 15px;
}



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