/*! HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.com/ */

/*
 * 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 {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
  
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * 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;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}




body {
  background:#fcfcfc;
  margin:0;
} 

body.errorPage {
  background:#333;   
} 



header {
  background-color:#d3d3d3;   
  background-image:url(../img/header-bg.jpg);   
  background-position:20%  100%; 
  background-repeat: no-repeat;
  text-align: left;
  padding:40px 20px 0.2em;
  position:relative;
  box-shadow:inset 0px -1px 4px #666;
}



body.errorPage header {
    box-shadow:none;
}


section {
  padding:1.5em 0;
}


#main section {
   margin:0 auto;
}

.section-1 {
  background:#f3f3f3;
  
}

.section-2 {
  background:#fcfcfc; 
  padding:0 0 3em;
}

article {
  position: relative;
}


.callToAction {
  background: #444;
  padding:3em 0;
}



/* 
http://chriswrightdesign.com/experiments/flexbox-adventures/
----------------------------------------------------------------------
lisaa modernizer floatit
----------------------------------------------------------------------
*/



#main dl {
  margin:20px;
}

#main dt {
  display:inline-block;
  margin-top:30px;
 margin-bottom:10px;
}



#main dt a {
  text-indent:-9999px;  
  display: block; 
  height:120px; 
  width:120px; 
  border-radius:50%;
  background:url(../img/napit-8@2x.jpg) no-repeat; 
  background-position:bottom right;
  transition:all 0.2s ease-in-out;
}

#main dd {
  margin-bottom:20px;
}

#main dt a.napit-1 {
  background-position: -100px  -80px; 
}

#main dt a.napit-2 {
  background-position: -370px  -90px; 
}

#main dt a.napit-3 {
  background-position: -688px  -60px; 
}

#main dt a.napit-4 {
  background-position: -970px  -90px; 
}

#main dt a.napit-5{ 
  background-position:  -1300px  -10px;
}

#main dt a.napit-6 {
  background-position: -1580px  -90px; 
}

#main dt a.napit-7 {
  background-position: -1880px -80px; 
}

#main dt a.napit-8 {
  background-position: -2200px  -100px; 
}

#main dt a.napit-9 {
  background-position: -2500px  -160px; 
}

#main dt a.napit-10 {
  background-position: -1260px  -140px; 
}

#main dt a.napit-11 {
  background-position: -2700px  -140px; 
}

#main dt a.napit-12 {
  background-position: -3130px  -90px; 
}


/* valtteri*/
#main dt a.napit-14 {
  background-position: -3360px  -70px; 
}

/* prepress*/
#main dt a.napit-15 {
  background-position: -1200px  -80px; 
}

/* rockway */
#main dt a.napit-16 {
  background-position: -3700px -103px; 
}

/* mukkula */
#main dt a.napit-18 {
  background-position: -3920px -103px; 
}


/* kukkakasvit */
#main dt a.napit-25 {
  background:url(../img/napit-9@2x.jpg) no-repeat; 
  background-position: -94px -100px; 
}


/* sonja */
#main dt a.napit-35 {
  background:url(../img/napit-9@2x.jpg) no-repeat; 
  background-position: -314px -90px; 
}

/* villimarjat */
#main dt a.napit-45 {
  background:url(../img/napit-9@2x.jpg) no-repeat; 
  background-position: -614px -0px; 
}


/* viper */
#main dt a.napit-55 {
  background:url(../img/napit-9@2x.jpg) no-repeat; 
  background-position: -990px -96px; 
}











#main dt a:hover {
  box-shadow:inset 1px 1px 8px #333;
  box-shadow:inset 1px 1px 8px rgba(30,30,30,0.6);
}

#main dt a.napit-1:hover {background:url(../img/pepe-nappi.gif) 50% no-repeat; }
#main dt a.napit-6:hover {background:url(../img/nuuksio-nappi.gif) 50% no-repeat; }
#main dt a.napit-7:hover {background:url(../img/app-video-nappi-2.gif) 50% no-repeat; }
#main dt a.napit-55:hover {background:url(../img/viper-video-nappi.gif) 50% no-repeat; }



div.imagescroller {
  height:540px;
  overflow-x:auto;
  margin:0 auto!important;
  max-width:1400px;
  
}

div.imagescroller img {
  width:auto;
  height:500px;
  display: inline;
  float: left;
 
}


section.palvelut h2 {clear: both;}



section#photos,section#videos {
  padding:0;
  background:#f3f3f3;
}

section#photos  div {
  background:#333;
}


#photos h2 {
  margin-bottom:0.5em;
  padding-top:0;
}

#photos img {
  width:50%; 
  height:auto; 
  max-width:100%;
}

.aboutme, .palvelut {
  padding:40px 0;
  background:#fcfcfc;
}


.aboutme img{
  width:200px;
  height:auto;
  border-radius:50%;
  margin:20px auto 0;
  display:block;
}


a.up-button  {
  display:block;
  height:40px;
  width:200px;
  text-indent:-999999px;
}

.up-button:after  {
  content:"";
  display:block;
  position:absolute;
  height:0px;
  width:0px;
  bottom:10px;
  right:20px;
  z-index:190;
  border-right: solid 20px transparent;
  border-left: solid 20px transparent;
  border-bottom: solid 20px #14AAE2;
  transition:all ease-in-out 0.2s;
}




a.up-button:hover:after {
  border-bottom-color:#ff6300;
  z-index:190;
}


@media (min-width: 400px) {

  #main dl {
      display: -webkit-box;
      display: -moz-box;
      display: -ms-flexbox;
      display: -moz-flex;
      display: -webkit-flex;
  display: flex;
  /* Tell flexbox to start vertically from the center */
  align-items:center;
  /* wrap onto the next line rather than stretching or shrinking */
     -webkit-flex-wrap: wrap;
  flex-wrap:wrap;
  padding:20px 20px 20px 40px; 
  box-sizing: border-box;
  margin:0 auto;
}

#main dt {
    -webkit-box-flex:0 0 150px;
    -moz-box-flex:0 0 150px;
    width: 150px;
    -ms-flex:0 0 150px;   
    -webkit-flex:0 0 150px; 
    flex:0 0 150px; 
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    height:150px;
    border-radius:50%;
    margin:0 0 20px 0;
}

#photos img {
  width:50%; height:auto; max-width:100%;}

#main dd {
  
      -webkit-box-flex:0 0 50%; 
      -moz-box-flex:0 0 50%;  
      width: 50%; 
      -ms-flex:0 0 50%;  
      -webkit-flex:0 0 50%; 
   flex:0 0 50%; 

   margin:0 0 50px 0;
   padding:0;
}
  
  .aboutme h2 {
   text-align:center;
} 
}

@media (min-width: 500px) {

header {
  min-height:22em;
}
  
header {
  background-color:#d3d3d3;   
  background-image:url(../img/header-bg.jpg);   
  background-position:40%  100%; 
  background-repeat: no-repeat;
  padding-left:40px;
}
  
.aboutme h2 {
     text-align:left;
  } 
    
.aboutme img{
  width:150px;
  height:auto;
  border-radius:50%;
  margin:0 40px 0 50px;
  float:left;
  }
}


@media (min-width: 650px) {


#main dd {
        -webkit-box-flex:0 0 70%;
      -moz-box-flex:0 0 70%;
      width: 70%;
      -ms-flex:0 0 70%;
      -webkit-flex:0 0 70%;
   flex:0 0 70%; 
}
  } 


@media (min-width: 768px) {
  
  .lang {
    text-align:left !important;
    margin-top:12px;
    margin-left:38px;
    width:30%!important;
  }
       

header {
    min-height:26em;
}
   
     
  #main dt {
      -webkit-box-flex:0 0 150px;
      -moz-box-flex:0 0 150px;
      width: 150px;  
      -ms-flex:0 0 150px; 
      -webkit-flex:0 0 150px; 
   flex:0 0 150px;
}

  
#main dd {
           -webkit-box-flex:0 0 25%; 
      -moz-box-flex:0 0 25%; 
      width: 25%; 
      -ms-flex:0 0 25%; 
      -webkit-flex:0 0 25%; 
   flex:0 0 25%;
   padding:0 20px 0 0;
}
 
  .aboutme, .palvelut {
   margin:0 auto!;
  }
  
  
  .aboutme img  {
  width:200px;
  height:auto;
  border-radius:50%;
  margin:0 40px 20px 40px;
  float:left;
}   
  
  
 #photos img {
  width:33%; 
  height:auto; 
  max-width:330px;
} 
}


@media (min-width: 920px) {
        
   
#main dd {
  
      -webkit-box-flex:0 0 30%; 
      -moz-box-flex:0 0 30%;  
      width: 30%;  
      -ms-flex:0 0 30%;
      -webkit-flex:0 0 30%; 
   flex:0 0 30%;
}
}


@media (min-width: 980px) {
.section-2 {
 padding:3em 0;
}
}

  @media (min-width: 1000px) {
    
        
  
header {
  min-height:32em;
}          
    
        #main dt {
      -webkit-box-flex:0 0 150px;
      -moz-box-flex:0 0 150px;  
      width: 150px;             
      -ms-flex:0 0 150px;     
      -webkit-flex:0 0 150px;   
   flex:0 0 150px;    
 }
    
    
    
  #main dd {
      -webkit-box-flex:0 0 30%; 
      -moz-box-flex:0 0 30%; 
      width: 30%;           
      -ms-flex:0 0 30%;
      -webkit-flex:0 0 30%; 
   flex:0 0 30%;
  }    
    
    
#photos img {
  width:16.6%; 
  height:auto; 
  max-width:330px;
} 
    
}

  @media (min-width: 1280px) {
   
header {
   padding-bottom:0;
  min-height:35em;
}
       
            #main dt {
      -webkit-box-flex:0 0 150px;
      -moz-box-flex:0 0 150px; 
      width: 150px; 
      -ms-flex:0 0 150px;    
      -webkit-flex:0 0 150px; 
   flex:0 0 150px;    
 }
    
     
  #main dd {
      -webkit-box-flex:0 0 33%;
      -moz-box-flex:0 0 33%; 
      width: 33%;   
      -ms-flex:0 0 33%; 
      -webkit-flex:0 0 33%;  
   flex:0 0 33%;
  }    
    
    
  #photos {
    text-align:left;
    }
}

 
@media (min-width: 1440px) and (max-width:1789px){

#main dd {
      -webkit-box-flex:0 0 20%; 
      -moz-box-flex:0 0 20%;
      width: 20%;  
      -ms-flex:0 0 20%;  
      -webkit-flex:0 0 20%; 
   flex:0 0 20%;
    }  
    
    html body article header p {padding-top:0;}
     
}

@media (min-width: 1700px){
#main dd {
      -webkit-box-flex:0 0 22%;  
      -moz-box-flex:0 0 22%;  
      width: 22%;            
      -ms-flex:0 0 22%;      
      -webkit-flex:0 0 22%;    
   flex:0 0 22%;
}  
}



/* ==========================================================================

TYPOGRAPHY
   
========================================================================== */


a, a:link {
  color:#14aae2;
  text-decoration: none; 
}

a:hover, a:active {
  color:#FF6300;
}


.huomiovari {
  color:#ff6300; /* oransssi */
}


body {
  font-size: 100%; 
  color:#444;
  font-family:'Lora', georgia, serif;
}

h2, p, ul, dl {
line-height:1.6;
}



h1 {
  color:#444;
  font-family: 'Montserrat', sans-serif; 
  font-size:5em; 
  margin:0 0 -50px -8px; 
  padding:0 0 0 0px;
  line-height:170%; 
  letter-spacing: -0.06em;
}

h1 span {
  font-size:3.0em; 
  margin:-14px 0 0 -14px; 
  display:inline-block;
  letter-spacing: -0.1em;
}


h2 {
  font-size:2.7em;
  margin:0 0 0 18px;
  padding:1em 20px 0.4em 0;
  line-height:100%;
  font-family: 'Montserrat', sans-serif;
  color:#444;
}

header h2, header ul, header p {
  text-align:left;
  padding:1em 0 0;
}

header h2 {
  color:#ff6300;
  margin:10px 0 0 -4px; 
  font-size:1em;
  letter-spacing: -0.05em;
  font-weight: 700;   
  line-height: 120%;
  text-transform: uppercase;
}

header h2 span {
  color:#444;
  letter-spacing:0;
  font-family: 'Playfair Display', serif;
  font-weight:400;
  font-style: italic;
  text-transform: initial; 
}

p,
#main ul {
  max-width: 42em;
  margin-right:20px;
  margin-left:18px;
  color:#333;
}

header p {
  max-width:47em;
}

ul {
  list-style:disc;
   padding-left:0;
}

.aboutme ul {
  margin-left:34px;
}

dd {
  margin:0;
}


header li {
  list-style: none;
}

header li:before {
  content:"";
  display:inline-block;
  margin:0 10px 0em 0;
  height:0.6em;
  width:0.6em;
  background:#ff6300; 
  border-radius:50%;
}

ul.some {
  margin-left:-6px;
}

.some li {
  display:inline-block;
}

.some li a {
  display:inline-block;  
  width:50px; 
  height:50px; 
  margin-right:10px;
  border-radius:50%;
  background-image:url(../img/some-badget.png);
  background-image:url(../img/some-badget-optimized.svg), linear-gradient(transparent, transparent); 
    
  
  background-repeat:no-repeat;
  background-position:-9999px;
  text-indent:-99999px;
  transition: all ease-in-out .2s;
}

.some li a.twitter {
  background-position:-66px 5px;
}

.some li a.flickr {
  background-position:-136px 5px;
}


.some li a.unsplash {
  background-position:-212px 5px;
}


.some li a.insta {
  background-position:6px 5px;
}
.some li a:hover {
  background-color:#333;
  background-color:rgba(33,33,33,0.3); 
 }

.some li:before {content:none;}

header p {
  margin:0 20px 0 0;  
  font-style:italic
}

#main ul {
  margin:0 20px 0 32px;
}

.aboutme h2 {
  color:#ff6300;
  margin:0.2em 0 1em 20px;
}


.callToAction p {
  font-style: italic;
  text-align: center;
  padding:0;
  margin:0 auto 1em;
  max-width:15em;
  font-size: 1.1em;
  color:#fcfcfc;
  letter-spacing: 0.04em;
  text-shadow: #444444 0px 1px 1px;
}



.callToAction p span {
  font-size:1.2em;
  margin:0 0 0 18px;
  padding:1em 20px 0.4em 0;
  line-height:100%;
  font-family: 'Montserrat', sans-serif;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: bold
  
}



.lang {
  width:100%;
  position:absolute;
  top:1em;
  left:0;
  text-align: center
}


a.button {
  display:inline-block;
  background:#14aae2;
  color:#fcfcfc;
  text-align: center;
  padding:20px 40px;
  margin:0px 0px 0 0;
  border-radius:3px;
  transition:all ease-in-out 0.3s;
  box-shadow: 0 0 3px rgba(0,0,0,0.2);
  text-shadow:none;
}

a:hover.button {
  background:#ff6300;
}


.lang a.button {
  font-size: 0.9em;
  padding:5px;
  
}


.lang a.button.selected {
  background:#cecece;
  cursor: default;
}




@media (min-width: 420px)  { 

  h1 {
  font-size:7.5em; 
  margin:20px 0 -50px -12px; 
  padding:0;
  line-height:100%; 
  letter-spacing: -0.06em;
  }

  h1 span {
  font-size:2.9em; 
  margin:60px 0 0 -22px; 
  letter-spacing: -0.1em;
  }
  
  header h2 {
    font-size:1.3em;
  margin:20px 0 0 -2px;}
  
header li {
  font-size:1.2em; 
  list-style: none;
}
  
  
  p {
    margin-left:22px;
    line-height: 1.6;
  }
  
  
  ul {
    margin-left:4px;
    line-height: 1.6;
  }
  
  
  
  
  ul {
    padding-left:0;
    padding-right:20px;
  }
  
  
  
  .callToAction p {
  max-width:20em;
  font-size: 1.1em;
  } 
  
  
  .aboutme ul {
    margin-left: 40px;
}
  
  
}


@media (min-width: 480px) {
  h2 {
    font-size:3em;
  }
}

@media (min-width: 500px)  { 

  header h2 {font-size: 1.2em;
  margin:30px 5px 10px -4px;
  }
  
  
   
  h2,p   {
    padding-left:20;}
  
  ul,li {padding-left:16px;}
    
   .aboutme h2 {
  color:#ff6300;
  text-align:left;
} 
}



@media (min-width: 600px) {
  
  h1 {
  margin:0 0 -50px -8px; 
  padding:0;
  line-height:100%; 
  letter-spacing: -0.06em;
  font-size:6em; 
  font-size:20vw; 
  margin:0 0 -50px -8px; 
  padding:0;
  line-height:100%; 
  letter-spacing: -0.06em;
  }
  
  h1 span {
  font-size:1em; 
  margin:60px 0 0 0px; 
  letter-spacing: -0.1em;
  }
    
  
  
  
  header h2 {font-size: 1.5em;
  margin:30px 5px 10px -4px;
  }
}

@media (min-width: 650px) {
  
  h1 {
  margin:0 0 -50px -8px; 
  padding:0;
  line-height:100%; 
  letter-spacing: -0.06em;
  }
  
  
  header h2 {font-size: 1.5em;
  margin:30px 5px 10px -4px;
  }
}

@media (min-width: 768px)  { 

  h1 {
  margin:40px 0 -80px -14px; 
  padding:0;
  line-height:140%; 
  letter-spacing: -0.06em;
  }

  h1 span {
  margin:0; 
  letter-spacing: -0.1em;
  }
  
  header h2 {
    
  margin:20px 5px 10px -4px;
  }
  
  header li {
  display: inline;
  font-size:1.6em; 
  margin:0;
  }
  
  ul.some {
    position:absolute;
    margin:0;
    top:0px;
    right:0;
}
}

@media (min-width: 980px) {
    h1 {
      margin-left:-18px;
      line-height: 130%;
  }
  
  .aboutme, .palvelut {
    margin:0 auto;
    max-width: 49em;
  } 
  
  .aboutme h2 {
    text-align: left;
        margin:0 0 1em 94px;
  }
  
  .aboutme p {
 margin-left:280px;
}
  
  .aboutme p.reset-left-margin {
    margin-left:inherit;
  }
  
  
  .aboutme ul {
    margin-left:280px;
  }

    
    .section-2  {
      display: -webkit-box;
      display: -moz-box;
      display: -ms-flexbox;
      display: -moz-flex;
      display: -webkit-flex;
      display: flex; 
      margin:2em 0;
      max-width:100%; 
      padding-bottom:60px;
}
  
  .section-2 h2 {
    padding-right:50px;
  }
  
  .section-2 ul {
    padding-top:30px;
  }
  
    
  .callToAction p {
  max-width:30em;
  font-size: 1.8em;
  }
  
}

@media (min-width: 1120px) {
    h1 {
  margin:70px 0 -80px -20px;
      line-height: 100%;
  }
  
      header h2 {
  font-size:2em; 
  }
  
    .aboutme h2 {
      font-size:4.5em;
  }
 }


@media (min-width: 1400px) {
    h1 {
  margin:100px 0 -100px -28px;
  }
  
  header {
    min-height:38.5em;
  }
  
      header h2 {
  font-size:3em;
  }
  
  header ul {margin:0px 0 20px 0 }
 
}

@media (min-width: 1700px) {
  
  header {
    min-height:40em;
  }
}

@media 
only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and (   min--moz-device-pixel-ratio: 2),
only screen and (     -o-min-device-pixel-ratio: 2/1),
only screen and (        min-device-pixel-ratio: 2),
only screen and (                min-resolution: 192dpi),
only screen and (                min-resolution: 2dppx) { 
  
.some li a {
  background-image:url(../img/some-badget@2x.png);
  background-image:url(../img/some-badget-optimized.svg), linear-gradient(transparent, transparent); 
  background-size:260px 40px;
  }

#main dt a {
  
  background-size: 2100px 150px;
}
  #main dt a.napit-1 {
  background-position: -20px  -20px; 
}

#main dt a.napit-2 {
  background-position: -164px  -13px; 
}

#main dt a.napit-3 {
  background-position: -314px  -32px; 
}


#main dt a.napit-4 {
  background-position: -470px  -20px; 
}

#main dt a.napit-5{ 
  
  background-position:  -650px  -10px;
}


#main dt a.napit-6 {
  background-position: -750px  -20px; 
}

#main dt a.napit-7 {
  background-position: -916px -20px;
}

#main dt a.napit-8 {
  background-position: -1030px  -10px; 
}


#main dt a.napit-9 {
  background-position: -1200px  -10px; 
}

#main dt a.napit-10 {
  background-position: -600px  -20px; 
}
  
 
#main dt a.napit-11 {
  background-position: -1350px  -0px; 
}
 
  
#main dt a.napit-12 {
  background-position: -1500px  0px; 
}
  

  /*valtteri*/
#main dt a.napit-14 {
  background-position: -1672px  0px; 
}
  
  
    /*prepress*/
#main dt a.napit-15 {
  background-position: -620px  0px; 
}
  
    
      /*rockway*/
#main dt a.napit-16 {
  background-position: -1800px  -20px; 
  
}
  
      /*mukkula*/
#main dt a.napit-18 {
  background-position: -2010px  -10px; 
  border:solid 1px #ccc;
  box-sizing:content-box;
}



#main dt a.napit-25,#main dt a.napit-35,#main dt a.napit-45,#main dt a.napit-55 {
    background:url(../img/napit-9@2x.jpg) no-repeat; 
    background-size: 600px 150px;
}

/* kukkakasvit */
#main dt a.napit-25 {
  background-position: -17px 0px; 
}

/* sonja */
#main dt a.napit-35 {
   background-position: -160px -20px; 
}

/* villimarjat */
#main dt a.napit-45 {
   background-position: -300px -10px; 
}

/* viper */
#main dt a.napit-55 {
  background-position: -465px -18px; 
}
}


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

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.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:
 * https://www.drupal.org/node/897638
 */

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

/*
 * Hide visually and from screen readers, 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;
}


/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after,
    *:first-letter,
    *:first-line {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        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 that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

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

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

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

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

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

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

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