@import 'nib';

/*
 * 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: #006fb9;
    color: #fff;
    text-shadow: none;
}
::selection {
    background: #006fb9;
    color: #fff;
    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;
}



/* ==========================================================================
/  Main Styles
========================================================================== */

html {
  min-height: 100%;
}
body {
  min-height: 100%;
  background: url(images/bg-paper-2.jpg);
  color: #677989;
  -webkit-font-smoothing: antialiased;
  font-family: 'ProximaNovaCondensed', sans-serif;
}
a,a:active {
  color: #677989;
  text-decoration: none;
  outline: 0 !important;
}
.no-touch a:hover {
  color: #0068af;
}
h1,h2,h3,h4,p {
  padding: 0;
  margin: 0;
}
p {
  margin-bottom: 1em;
}

nav ul, nav li {
  list-style: none;
  padding: 0;
  margin: 0;
}

.video-iframe {
  width: 100%;
  height: 100%;
}

/* ==========================================================================
/  Top Navs
========================================================================== */

#nav-container {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  font-family: 'Player', 'Player_IE', serif;
  /*font-size: 13px;*/
  font-size: .85em;
  letter-spacing: 0.18em;
  color: #67889e;
}
#nav-container a {
  /*color: #fff;*/
  transition: all 180ms;
}
.no-touch #nav-container:hover {
/*  a {
    color: #67889e;
  }*/
  #nav-sub-container a {
    color: #004c82;
  }
}

#nav-container li {
  display: inline-block;
}

#nav-main-container {
  position: relative;
  background: url(images/bg-nav-1.png) repeat-x left bottom;
  z-index: 102;
}
#nav-main {
  position: relative;
  width: 1024px;
  margin: 0 auto;
}
#nav-main ul {
  text-align: justify;
  height: 47px;
  line-height: 47px;
  overflow: hidden;
}
#nav-main ul.white a{
  color: #fff;
}
#nav-main ul.white:hover{
  a{color:#677989 !important;}
  li:hover{
    a{color:#fff !important;}
  }
}
#nav-main h1 {
  margin: 0;
  padding: 0;
}
#nav-main h1 a {
  position: absolute;
  top: 0; left: -4px;
  width: 164px;
  background: url(images/local/logo-nav.png) no-repeat center bottom;
}
#nav-main h1 a {
  height: 180px;
  transition: all 300ms;
  transition-timing-function: ease-out;
}
#nav-main .first {
  margin-left: 200px;
  transition: all 300ms;
  transition-timing-function: ease-in-out;
}

.loading, .section-home {
  #nav-main h1 a {
    height: 0;
    transition: all 300ms;
  }
}
.loading, .section-home {
  #nav-main .first {
    margin-left: 0;
    transition: all 500ms;
  }
}

#nav-container li.separator {
  width: 2px;
  background: url(images/nav-separator.png) no-repeat left center;
}
#nav-main li.justify-spacer {
  width: 90%;
}
#nav-container ul a:hover,
#nav-container ul a.active {
  color: #fff !important;
}

#nav-sub-container {
  position: relative;
  background: url(images/bg-nav-2.png) repeat-x left bottom;
  z-index: 101;
  height: 12px;
  line-height: 33px;
  transition: all 300ms;
}
#nav-sub-positioner {
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
}
#nav-sub {
  width: 1024px;
  margin: 0 auto;
}
.subnav {
  display: none;
  margin-left: 200px;
}
.subnav li {
  padding-right: 16px;
}


/* ==========================================================================
/  Content
========================================================================== */

#main-container {
  position: relative;
  overflow-x:hidden;
  min-width: 1060px;
}
#main-container > .bg {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 590px;
  background: url(images/bg-paper-1.jpg);
}

#content-container {
  position: relative;
  width: 1900px;
  margin-left: -(@width / 2);
  left: 50%;
  padding-top: 50px;
  background: url(images/bg-paper-3.png);
  min-height: 100%;
}
#content-container > .bg-left {
  position: absolute;
  top: 0; bottom: 0;
  left: -7px;
  width: 7px;
  background: url(images/frame-shadow-left.png);
}
#content-container > .bg-right {
  position: absolute;
  top: 0; bottom: 0;
  right: -7px;
  width: 7px;
  background: url(images/frame-shadow-right.png);
}

#content-pane {
  position: relative;
  height: 600px;
  overflow: hidden;
  transition: all 300ms;
}

.button-a {
  background: url(images/button-bg.png);
  font-family: 'ProximaNova', sans-serif;
  font-weight: bold;
  font-size: 12px;
  color: #fff;
  line-height: 38px;
  text-transform: uppercase;
  padding: 0 15px;
  border-radius: 20px;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  transition: all 100ms;

  .no-touch &:hover {
    color: #fff;
  }

  span {
  }
}

.button-a.over-state {
  background: url(images/button-bg-over.png);
  opacity: 0;
}
.cross-fade{
  background: #000;
}
.section {
  position: relative;
  height: 100%;
  display: none;
}
.section-content {
  position: relative;
  height: 100%;
  width: 1024px;
  margin: 0 auto;
}

.subsection-content {
  opacity: 0;
}

/* ==========================================================================
/  Coming soon popup
========================================================================== */

#coming-soon-popup {
  position: absolute;
  top: 0;
  left: 0;
  width: 132px;
  height: 29px;
  padding-top: 19px;
  background: url(images/coming-soon.png) no-repeat;
  text-align: center;
  font-family: 'ProximaNova', sans-serif;
  font-size: 12px;
  font-weight: bold;
  color: #677989;
  text-shadow: 0px 1px 1px #fff;
  text-transform: uppercase;
  display: none;
  z-index: 500;
}
#coming-soon-popup.top {
  background: url(images/coming-soon-top.png) no-repeat;
  height: 35px;
  padding-top: 13px;
}

/* ==========================================================================
/  Home
========================================================================== */

.section-home #content-pane {
  background: #000 url(images/bg-section-home-tile.jpg) repeat-x center bottom;
}
#section-home {
  background: url(images/local/bg-home.jpg) no-repeat center bottom;
}
#section-home .release-date {
  position: absolute;
  right: 20px;
  top: 450px;
}
#section-home .button-video {
  position: absolute;
  left: 0px;
  top: 500px;
  .no-touch &:hover {
    //transform: scale(1.14);
  }
}
.button-video {
  padding: 0;
  box-shadow: 0 0 0 0;
  border-radius: 0;
  background: url(images/trailer-button-over.png) no-repeat center;
}

/* ==========================================================================
/  About
========================================================================== */

#section-about {
  background: url(images/bg-section-about.jpg) no-repeat center bottom;

  .fg {
    position: absolute;
    bottom: 0;
    left: 50px;
    width: 448px;
    height: 516px;
    background: url(images/about-fg-monsters.png) no-repeat center top;
  }

  .subsection-content {
    position: absolute;
    top: 150px;
    right: 15px;
    width: 372px;
    height: 325px;
    padding: 70px 40px 70px 50px;
    font-size: 15px;
    background: url(images/bg-about-text.jpg) no-repeat;
    .bigger {
      font-size: 18px;
    }

    h2 {
      position: absolute;
      left: 0px;
      top: 15px;
      width: 100%;
      text-align: center;
      font-family: 'Player', 'Player_IE', serif;
      font-weight: normal;
      font-size: .90em;
      letter-spacing: 0.6px;
      color: #fff;
      text-transform: uppercase;
      height: 27px;
      line-height: 28px;
      background: url(images/bg-about-header.png) no-repeat center top;
    }

    .slider-container{
      overflow: hidden;
      width:375px;
      margin-left: -5px;
    }
    .slider{
      width:825px;
    }
    p{
      line-height: 26px;
      height: 330px;
      width:372px;
      float: left;
      display: block;
      overflow: hidden;
      margin-right: 40px;
      position: relative;
    }

    .slider-pagination{
      margin: 0 auto;
      width:100px;
      li{
        list-style: none;
        float:left;
        background: url(images/navi-dot.png) no-repeat center center;
        padding:10px;
        margin: 0 3px;
        cursor: pointer;
      }
      li.active{
        background: url(images/navi-dot-active.png) no-repeat center center;
      }
    }
  }
}

.section-about #nav-sub-container {
  height: 37px;
}

/* ==========================================================================
/  Video
========================================================================== */

#section-video {
  background: url(images/bg-section-video.jpg) no-repeat center bottom;

  .video-picker {
    opacity: 0;
    position: absolute;
    left: 0;
    top: 150px;
    width: 1024px;
    height: 425px;

    .video-player {
      position: absolute;
      top: 0; bottom: 0;
      left: 0; right: 268px;
      background: #000;
      z-index: 10;

      overflow: hidden;
    }

    .shadow {
      height: 10px;
      width: 100%;
      background: url(images/video-shadow.png) no-repeat center top;
      position: absolute;
      bottom: -10px;
    }

    .video-list-container {
      position: absolute;
      top: 0; bottom: 0;
      right: 0; width: 268px;
      background: #333 url(images/video-nav-bg.jpg);
      font-family: 'ProximaNova', sans-serif;
      font-weight: bold;

      h2,h3 {
        text-transform: uppercase;
        text-align: center;
      }
      h2 {
        height: 30px;
        padding-top: 10px;
        padding-right: 6px; // adjust centering because of jscrollbar
        font-family: 'Player', 'Player_IE', serif;
        font-weight: normal;
        font-size: 12pt;
        letter-spacing: 1px;
        color: #677989;
        text-shadow: 0px 1px 1px #4d4d4d;
        background: url(images/bg-texture-video-header.png);
        background: url(images/bg-texture-video-header.png);
        text-shadow: 0px 1px 1px #fff;
      }
      h3 {
        
        padding: 6px;
        font-size: 12px;
        font-weight: bold;
        letter-spacing: 1px;
        color: #fff;
        background: url(images/bg-texture-video-subheader.png);

        text-shadow: 0px 1px 1px rgba(255,255,255,0.3);
        border-top: 1px solid rgba(255,255,255,0.2);
        border-bottom: 1px solid rgba(0,0,0,0.2);
      }
      h3.collapsed {
        color: #004c82;
      }

      h3.child2 {
        margin-top: 135px;
      }

      .video-list {
        height: 385px;
        overflow-y: auto;
      }

      .video-label {
        margin-top: 16px;
      }

      .video-link {

        height: 49px;
        margin:1px 0 2px 0;
        display: block;
        background: #d2d2d2;
        font-size: 12px;
        color: #7a7a7a;
        padding: 15px;
        background: transparent;

        vertical-align: middle;

        .no-touch &:hover, &.active {
          background: #f3f3f3;
        }

        img {
          float: left;
          margin-right: 10px;
        }
      }

      .video-list-left-shadow {
        position: absolute;
        z-index: 10;
      }

      .video-list-item-shadow {
        position: absolute;
        margin: 0;
        height: 11px;
        z-index: 1;

        img {
          position: absolute;
          height: 11px;
        }
      }

      .jspHorizontalBar {
        display: none;
      }

    }




    /*share videos*/
    .share {
    position: absolute;
    bottom:-37px;
    float:left;
    z-index: 10;
    font-family: 'ProximaNova', sans-serif;
    font-size: 12px;
    font-weight: bold;
    line-height: 19px;
    color: #c8c8c8;
    text-transform: uppercase;
    margin-left: 20px;

    .label {
      float: left;
      margin-right: 7px;
      cursor: pointer;
    }
    .icons-container {
      float: left;
      overflow: hidden;
      position:relative;

      .icons{
        position: relative;
        left:-170px;
      }

    }
    .share-icon {
      float: left;
      position: relative;
      height: 21px;
      margin-right: 7px;
      margin-top: -3px;
    }
   /*mixin-gallery-sharer(facebook)
    mixin-gallery-sharer(twitter)
    mixin-gallery-sharer(pinterest)*/
    .share-facebook{background: url(images/fb.png)center center no-repeat; width:57px;}
    .share-twitter{background: url(images/tweet.png)center center no-repeat; width:50px;}
    .share-pinterest{background: url(images/pin.png)center center no-repeat; width:43px;}
  }


  }
}

/* ==========================================================================
/  Gallery
========================================================================== */

/*mixin-gallery-sharer(site)
  .share-{site}
    background: url('images/icon-gallery-share-'+site+'.png') no-repeat center center;
    width:55px;*/
#section-gallery {
  
  background: transparent;
  opacity: 1;
  .section-content{
    /*opacity: 0;*/
  }
  .large-image-container {
    position: relative;
    margin-left: -20px;
    margin-right: -20px;
    .large-image img {
      padding: 20px;
      background: #fff;
      img {
        width: 100%;
      }
    }
    .shadow {
      height: 15px;
      width: 100%;
      background: url(images/photo-shadow.png) no-repeat center top;
    }
  }
  .prev,.next {
    position: absolute;
    top: 285px;
    width: 51px;
    height: 51px;
    background: url(images/arrow-left-big.png) no-repeat center top;
    opacity: 0;
    transition:opacity 0.3s linear;*
    z-index: 10;
  }
  .deactivated{opacity: 0 !important}
  .no-touch &:hover {
    .prev{opacity:1;}
    .next{opacity:1;}
    .deactivated{opacity: 0 !important}
  }
  .prev {
    left: -110px;
/*    .no-touch &:hover {
      left: @left - 5;
    }*/
  }
  .next {
    right: -110px;
    background-image: url(images/arrow-right-big.png);
/*    .no-touch &:hover {
      right: @right - 5;
    }*/
  }

  .share {
    position: relative;
    float:left;
    z-index: 10;
    font-family: 'ProximaNova', sans-serif;
    font-size: 12px;
    font-weight: bold;
    line-height: 19px;
    color: #c8c8c8;
    text-transform: uppercase;
    margin-left: 20px;
    margin-top: -7px;

    .label {
      float: left;
      margin-right: 7px;
      cursor: pointer;
    }
    .icons-container {
      float: left;
      overflow: hidden;
      position:relative;

      .icons{
        position: relative;
        left:-170px;
      }

    }
    .share-icon {
      float: left;
      position: relative;
      height: 21px;
      margin-right: 7px;
      margin-top: -3px;
    }
   /*mixin-gallery-sharer(facebook)
    mixin-gallery-sharer(twitter)
    mixin-gallery-sharer(pinterest)*/
    .share-facebook{background: url(images/fb.png)center center no-repeat; width:57px;}
    .share-twitter{background: url(images/tweet.png)center center no-repeat; width:50px;}
    .share-pinterest{background: url(images/pin.png)center center no-repeat; width:43px;}
  }

  .deactivated {
    opacity: 0.2;
  }
}

.section-gallery {
  #nav-sub-container {
    height: 70px;
  }
  #content-pane {
    background: #000 url(images/bg-section-gallery.jpg) repeat center bottom;
    height: 615px;
    padding-top: 92px;
    padding-bottom: 33px;
  }
}

#nav-container .subnav-about {
  a{color: #004c82;}
}
#nav-container .subnav-gallery {
  position: relative;
  width: 460px;
  margin-left: 284px;
  li {
    padding: 0;
    margin: 0;
    display: block;
    float:left;
    a {
      display: block;
      float: left;
      margin: 0 4px 7px;
      border: 5px solid #004c82;
      transition: all 300ms;
      &.active,.no-touch &:hover {
        border-color: #fff;
      }
    }
    img {
      width: 74px;
      height: 43px;
    }
  }
  .prev,.next {
    position: absolute;
    top: 15px;
    width: 15px;
    height: 24px;
    background: url(images/arrow-left.png) no-repeat center top;
  }
  .prev {
    left: -40px;
    .no-touch &:hover {
      background-image: url(images/arrow-left-over.png);
      /*left: @left - 5;*/
    }
  }
  .next {
    right: -40px;
    background-image: url(images/arrow-right.png);
    .no-touch &:hover {
      background-image: url(images/arrow-right-over.png);
      /*right: @right - 5;*/
    }
  }
}



/* ==========================================================================
/  Overlays
========================================================================== */

#trailer-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%
  background: #000;
  background-color: rgba(0,0,0,0.9);
  z-index: 150;
}

#trailer-iframe-container {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 788px;
  height: 443px;
  margin-top: -(@height / 2);
  margin-left: -(@width / 2);
  background: #006fb9;

  #trailer-iframe {
    height: 100%;
  }

  .close-button {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 27px;
    height: 27px;
    background: url(images/close-overlay.png) no-repeat;
  }
}


/* ==========================================================================
/  Footers
========================================================================== */

#footer-callouts {
  height: 335px;
  background: url(images/bg-paper-promos.jpg) repeat-x center bottom;
  margin-bottom: 32px;
}

.social-widgets {
  position: relative;
  height: 85px;
  width: 1024px;
  margin: 0 auto;
}

.twitter-feed {
  position: absolute;
  left: 0;
  top: 33px;
  width: 36px;
  height: 28px;
  background: url(images/icon-twitter-feed.png) no-repeat left center;

  .tweet {
    position: absolute;
    top: 0;
    left: 50px;
    width: 625px;
    font-family: 'ProximaNovaCondensed', sans-serif;
    font-size: 15px;
    line-height: 17px;
    color: #677989;
    text-align: left;
    display: none;

    a {
      color: #0068af;
    }
  }
}

mixin-sharer(site)
  .sharer.{site}
    background: url('images/icon-share-'+site+'.png') no-repeat center center;

#footer-callouts .audio{
    position: absolute;
    top:36px;
    right: 0;
    width:30px;

    .audio-toggle {
      display: inline-block;
      width: 21px;
      height: 21px;
      margin-left: 10px;
      cursor: pointer;
      background: url('images/icon-audio-on.png') no-repeat center center;
    }
    .off{background: url('images/icon-audio-off.png') no-repeat center center;}
  }

#footer-callouts .sharers {
  position: absolute;
  top: 36px;
  right: 0;
  margin-right: 30px;


  .label-container {
    position: absolute;
    left: -8px;
    .label {
      position: absolute;
      right: 0;
      font-family: 'ProximaNova', sans-serif;
      font-size: 12px;
      text-transform: uppercase;
      color: #999;
      line-height: 21px;
      max-width: 0;
      overflow: hidden;
      transition: 100ms;
    }
  }
  .no-touch &:hover .label {
    max-width: 50px;
  }
  .sharer {
    display: inline-block;
    width: 21px;
    height: 21px;
  }
  mixin-sharer(facebook)
  mixin-sharer(twitter)
  mixin-sharer(youtube)
  mixin-sharer(pinterest)
}




#footer-callouts .promos {
  text-align: center;
}
#footer-callouts .promo {
  position: relative;
  display: inline-block;
  width: 328px;
  height: 195px;
  margin: 10px;
  background: #fff url(images/bg-promo-characters.jpg) no-repeat center top;
  box-shadow: 0px 1px 20px rgba(0,0,0,.1);
}
#footer-callouts .promos {
  .characters .caption {left: -2px; top: 148px;}
  .characters .caption b {padding-top: 9px;left:63px;}
  .video .caption {top: 149px;}
  .video .caption b {padding-top:8px;left:63px;}
  .gallery .caption {top: 148px;left:-5px;}
  .gallery .caption b {padding-top:9px;left:68px;}
}
#footer-callouts .promo {
  .caption {
    position: absolute;
    top: 147px; left: 0; right: 0;
    min-height: 30px;
    padding-left: 66px;
    background: url(images/icon-promo-characters.png) no-repeat 25px center;
    text-align: left;
    transition: all 200ms;

    font-family: 'ProximaNova', sans-serif;
    font-size: 12px;
    line-height: 15px;
    text-transform: uppercase;
    color: #bfbfbf;

    b {
      position: absolute;
      display: block;
      padding-top: 10px;
      font-family: 'Player', 'Player_IE', serif;
      font-size: 18px;
    }
  }
}
#footer-callouts .promo:hover .caption {
  padding-left: 74px;
}

#footer-callouts .coming-soon.promo:hover .caption {
  padding-left: 66px;
}



mixin-footer-callout(name){
  #footer-callouts {
    .promo.{name} {
      background-image: url('images/bg-promo-'+name+'.jpg');
      .caption {
        background-image: url('images/icon-promo-'+name+'.png');
      }
      &:hover .caption {
        background-image: url('images/icon-promo-'+name+'-over.png');
        color: #006eb7;
      }
    }
/*    .coming-soon.{name} {
      &:hover .caption {
        background-image: url('images/icon-promo-'+name+'.png') !important;
        color: #bfbfbf !important;
      }
    }*/
  }
}

mixin-footer-callout(characters)
mixin-footer-callout(video)
mixin-footer-callout(gallery)


footer .legal {
  padding-top: 120px;
  background: url(images/local/legal.jpg) no-repeat center top;
  text-align: center;
  font-size: 12px;
  color: #aeaeae;
  a {
    color: @color;
  }
  margin-bottom: 15px;
}


// disney footer
footer #gde_footerContents {
  background: none;
  color: #9c9c9c;

  #gde_footerFeaturedContainer {
    background-color: none;
    background-color: #E9E9E9;
    background-color: rgba(0,0,0,0.035);
  }

  .gde_footerFeaturedLinks, .gde_footerLegalLinks, #gde_footerLegalContainer {
    color: @color;
    span, a {
      color: @color;
    }
  }

  .gde_comScoreLogo {
    opacity: 0.15;
  }
}

footer {
  padding-bottom: 30px;
}


/*
 * CSS Styles that are needed by jScrollPane for it to operate correctly.
 *
 * Include this stylesheet in your site or copy and paste the styles below into your stylesheet - jScrollPane
 * may not operate correctly without them.
 */

.jspContainer {
  overflow: hidden;
  position: relative;
}

.jspPane {
  background: url(images/bg-playlist.png) left 31px repeat;
  position: absolute;
  width: 262px;
  height: 100%;
}

.jspVerticalBar {
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 100%;
}

.jspHorizontalBar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
}

.jspVerticalBar *,
.jspHorizontalBar * {
  margin: 0;
  padding: 0;
}

.jspCap {
  display: none;
}

.jspHorizontalBar .jspCap {
  float: left;
}

.jspTrack {
  background: #fcfcfc;
  position: relative;
}

.jspDrag {
  background: #5c5c5c;
  position: relative;
  top: 0;
  left: 0;
  cursor: pointer;
}

.jspHorizontalBar .jspTrack,
.jspHorizontalBar .jspDrag {
  float: left;
  height: 100%;
}

.jspArrow {
  background: #50506d;
  text-indent: -20000px;
  display: block;
  cursor: pointer;
}

.jspArrow.jspDisabled {
  cursor: default;
  background: #80808d;
}

.jspVerticalBar .jspArrow {
  height: 6px;
}

.jspHorizontalBar .jspArrow {
  width: 6px;
  float: left;
  height: 100%;
}

.jspVerticalBar .jspArrow:focus {
  outline: 0;
}

.jspCorner {
  background: #eeeef4;
  float: left;
  height: 100%;
}

/* Yuk! CSS Hack for IE6 3 pixel bug :( */
* html .jspCorner {
  margin: 0 -3px 0 0;
}

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

.clearfix2 {
  clear: both;
}

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