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

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

body {
  font-size: 1em;
  line-height: 1.4;
  background: #4f3b22;
  color: #bbbbbb;
}

html {
  min-height: 100%;
}
body {
  min-height: 100%;
}

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

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

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

img {
  vertical-align: middle;
}

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

textarea {
  resize: vertical;
}

.oldieframe {
  margin: 0;
  background: #ddd;
  color: #800;
  padding: 1em;
  font-size: 2em;
}

/* ===== Initializr Styles ==================================================
   Author: Jonathan Verrecchia - verekia.com/initializr/responsive-template
   ========================================================================== */

body {
  font:
    16px/26px Helvetica,
    Helvetica Neue,
    Arial;
}

.wrapper {
  width: 90%;
  margin: 0 5%;
}

/* ===================
    ALL: Theme
   =================== */

.cssgradients body {
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0) 400px,
      rgba(0, 0, 0, 0) -300px,
      rgba(0, 0, 0, 0.5) 100%
    ),
    #4f3b22;
}

.cssgradients .header-container {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.58) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.58) 100%
  );
}

.no-cssgradients .header-container {
  background: #000;
  background: rgba(0, 0, 0, 0.58);
}

.header-container {
  margin-top: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.71);
  border-bottom: 1px solid rgba(0, 0, 0, 0.71);
  -webkit-box-shadow: rgba(160, 160, 160, 0.44) 0 0 5px;
  -moz-box-shadow: rgba(160, 160, 160, 0.44) 0 0 5px;
  box-shadow: rgba(160, 160, 160, 0.44) 0 0 5px;
}

.footer-container {
  border-top: 20px solid rgba(0, 0, 0, 0.5);
  background: #222;
  background: rgba(0, 0, 0, 0.58);
  text-shadow: 0 0 5px #000;
}

.mainpage .footer-container {
  display: none;
}

.footer-container p {
  color: #888;
  text-align: center;
}

.footer-container p a {
  color: #aaa;
  text-decoration: underline;
}

.footer-container p em {
  color: #fff;
  font-style: normal;
  font-weight: bold;
}

/*
.header-container {
    border-bottom: 20px solid #e44d26;
}

.footer-container,
.main aside {
    border-top: 20px solid #e44d26;
}

.header-container,
.footer-container,
.main aside {
    background: #f16529;
}

.title {
    color: white;
}
*/

/* ADMIN */

body.bg-admin {
  background-color: #555;
}
/*body.bg-admin a { color: #fff; }*/
body.bg-admin input,
body.bg-admin textarea {
  box-sizing: border-box;
  background: #000;
  color: #bbb;
  padding: 3px 5px;
  border: 1px solid #888;
}
body.bg-admin input.submit {
  padding: 8px 12px;
  color: #eee;
  font-weight: bold;
  background: #666;
}
/* A form that reads as a link: admin actions that change state are POSTs. */
form.as-link {
  display: inline;
}
form.as-link input[type='submit'] {
  padding: 0;
  border: 0;
  background: none;
  color: LinkText;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
table.grey {
  border: 1px solid #111;
}
table.grey th {
  background: #9ca498;
  text-align: left;
  font-family: Tahoma;
  vertical-align: middle;
  padding: 5px 8px;
  color: #fff;
  font-weight: bold;
}
table.grey th.strong {
  background: #abb19b;
}
table.grey td {
  background: #222;
  padding: 5px 8px;
  font-family: Tahoma;
  vertical-align: middle;
}
table.grey td .dim {
  color: #888;
}
table.grey td.strong {
  background: #222;
}
table.grey tr.strong td {
  background: #161616;
}
table.grey tr.strong td.strong {
  background: #161616;
}
input.checkbox,
.wrtext input.radio {
  background: transparent;
}
table.grey tr.footnote td {
  background: #292929;
  border-top: 1px dashed #555;
}
table.grey tr.footnote td.strong {
  background: #292929;
}
table.grey tr.headnote td {
  background: #292929;
  border-bottom: 1px dashed #555;
}
table.grey tr.headnote td.strong {
  background: #292929;
}
table.grey tr.midnote td {
  background: #292929;
  border-top: 1px dashed #aaa;
  border-bottom: 1px dashed #555;
}
table.grey tr.midnote td.strong {
  background: #292929;
}

/* ==============
    MOBILE: Menu
   ============== */

.title {
  color: white;
  margin: 0 0 0 10px;
  padding: 18px 32px 3px 92px;
  /*background: rgba(0,71,125,0.20);*/
  font-family: Arial;
  font-size: 1em;
  font-weight: normal;
  line-height: 1.6em;
  min-height: 41px;
  margin-bottom: 19px;
  text-shadow: 0 0 8px #000000;
}

#fblink {
  margin-right: 8px;
  color: #fff;
  text-decoration: none;
}
#fblink:hover {
  text-decoration: underline;
}

.title iframe {
  border: none;
  overflow: hidden;
  width: 130px;
  height: 21px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}
.fblike-container {
  width: 240px;
  height: 21px;
  margin: 0 auto;
  position: relative;
  left: 36px;
  top: -11px;
}
.fblike-container iframe {
  border: none;
  overflow: hidden;
  width: 240px;
  height: 21px;
}

nav.top ul {
  margin: 0;
  padding: 0;
}

nav.top a {
  display: block;
  margin-bottom: 10px;
  padding: 15px 0;

  text-align: center;
  text-decoration: none;
  font-weight: bold;
  font-family: Tahoma, Helvetica, Arial;

  color: white;
  background: #1e4363;
}

nav.top a:hover,
nav.top a:visited {
  color: white;
}

nav.top a:hover {
  text-decoration: underline;
}

nav.album-tags {
  display: block;
  margin: 30px 0;
}
nav.album-tags ul {
  margin: 0;
  padding: 0;
  display: inline-block;
}
nav.album-tags li {
  float: left;
  width: 50%;
}
nav.album-tags a {
  display: block;
  margin: 6px;
  padding: 10px 0;

  text-align: center;
  text-decoration: none;
  font-weight: normal;
  font-family: Arial;

  color: white;
  background: rgb(142, 102, 64);
  background: rgba(142, 102, 64, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
nav.album-tags a:hover,
nav.album-tags a:visited {
  color: white;
}
nav.album-tags a:hover {
  text-decoration: none;
  background: rgb(71, 51, 32);
  background: rgba(142, 102, 64, 1);
}
nav.album-tags a.selected {
  background: rgb(255, 204, 128);
  background: rgba(255, 204, 128, 0.7);
  color: #000;
}

.center-children {
  text-align: center;
}

.center-children > * {
  display: inline-block;
}

.wr-tooltip {
  border-radius: 8px;
  background: rgb(255, 255, 200);
  background: rgba(255, 255, 200, 0.95);
  color: #333;
  box-shadow: 2px 0px 16px rgba(0, 0, 0, 0.6);
}
.wr-tooltip .tooltipster-content {
  font-family:
    Segoe UI,
    Arial,
    sans-serif;
  font-size: 15px;
  line-height: 22px;
  padding: 10px 15px 14px 15px;
}
.wr-tooltip .ua-note {
  opacity: 0.7;
  font-size: 11px;
  line-height: 1.3em;
}

/* ==============
    MOBILE: Main
   ============== */

.main {
  padding: 30px 0;
}

.main article h1 {
  font-size: 3em;
  font-weight: normal;
  color: #ffc;
  text-shadow:
    3px 1px 10px #000,
    0 0 50px #fff;
  line-height: 1.2em;
  clear: both;
  font-family: Arial;
  text-align: center;
  margin: 50px 20px 40px 20px;
}

section.album-intro {
  margin: 20px 0 80px 0;
}
p.tagline {
  text-align: center;
  color: #fff;
  max-width: 580px;
  margin: 30px auto;
  font-family: Times;
  font-size: 1.3em;
  font-style: italic;
  text-shadow:
    1px 1px 5px #000,
    0 0 30px #fff;
}
p.showall-link {
  text-align: center;
  color: #fff;
  font-family:
    Tahoma,
    Segoe UI,
    Arial;
  opacity: 0.7;
  margin: 20px auto;
  text-shadow:
    1px 1px 10px #000,
    0 0 30px #fff;
}
section.album-intro a,
p.showall-link a {
  color: #fff;
  text-decoration: underline;
}

.main aside {
  color: white;
  padding: 0px 5% 10px;
}

.footer-container footer {
  color: white;
  padding: 20px 0;
}

.fancybox-title .desc {
  text-align: center;
  background: #000000;
  background: rgba(0, 0, 0, 0.7);
  padding: 5px 20px 8px 20px;
  border-radius: 5px;
  font-family:
    Segoe UI,
    Arial;
  font-size: 1.4em;
  line-height: 1.3em;
  color: #ffa;
}
.fancybox-title .desc a {
  color: #fff;
  font-weight: bold;
  text-decoration: underline;
}

/* ===============
    ALL: IE Fixes
   =============== */

.ie7 .title {
  padding-top: 20px;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

.album-dates {
  background: #000;
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 12px;
  border-radius: 5px;
  color: #aaa;
  color: rgba(180, 180, 180, 0.5);
  font-size: 11px;
  line-height: 15px;
  font-family:
    Segoe UI,
    Tahoma,
    Arial;
  text-shadow: 2px 1px 3px rgba(0, 0, 0, 0.4);
  text-align: center;
}
.album-dates b {
  font-weight: normal;
  color: #fff;
  color: rgba(255, 255, 255, 0.5);
}

.playpause_btn {
  width: 40px;
  height: 40px;
  background-image: url(play_pause.png);
  opacity: 0.15;
  cursor: pointer;
}
.playpause_btn:hover {
  opacity: 0.4;
}
.playpause_btn.play {
  background-position: 40px 0;
}
.playpause_btn.pause {
  background-position: 0 0;
}
.loading_notice {
  color: #fff;
  opacity: 0.2;
  position: absolute;
  text-shadow: 0 0 3px black;
}

.gravatar-container {
  position: relative;
}

.gravatar-container .gravatar {
  position: absolute;
  top: -10px;
  border: 1px solid rgba(0, 0, 0, 0.58);
  -webkit-box-shadow: rgba(160, 160, 160, 0.8) 0 0 2px;
  -moz-box-shadow: rgba(160, 160, 160, 0.8) 0 0 2px;
  box-shadow: rgba(160, 160, 160, 0.8) 0 0 2px;
}

section.related {
  background: rgba(255, 196, 128, 0.3);
  border: 5px solid rgba(0, 0, 0, 0.6);
  border-radius: 20px;
  padding: 50px 20px 20px 20px;
}

section.related > h2 {
  margin: 0 0 60px 0;
  text-align: center;
  color: #222;
  font-size: 30px;
  font-weight: normal;
  font-family: Times;
  font-style: italic;
}

section.albums {
  margin-top: 20px;
  text-align: center;
}
section.albums .album {
  text-decoration: none;
  display: inline-block;
  text-align: left;
  width: 304px;
  vertical-align: middle;
  margin: 0 auto 30px auto;
  min-height: 330px;
  position: relative;
}
section.albums .album-year {
  position: absolute;
  display: table-cell;
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 8px 1px 8px;
  top: -27px;
  opacity: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  transition: all 0.4s ease;
}
section.albums .album-year.visible {
  opacity: 1;
}

section.albums .album .clip {
  width: 300px;
  height: 199px;
  border: 2px solid rgb(0, 0, 0);
  border: 2px solid rgba(0, 0, 0, 0.58);
  box-shadow: 5px 5px 25px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

section.albums .album img {
  position: absolute;
  clip: rect(0, 300px, 199px, 0);
  min-height: 199px;
  min-width: 300px;
}

.mainpage a.album-thumbs {
  display: block;
  position: absolute;
  white-space: nowrap;
  overflow: hidden;
  text-decoration: none;
}
.mainpage a.album-thumbs img {
  margin: 0 10px 0 0;
  border: 1px solid #000;
  border: 1px solid rgba(0, 0, 0, 0.5);
}

.mainpage .playpause_btn {
  position: absolute;
}
.mainpage a.album-info {
  display: block;
  text-decoration: none;
  padding: 12px 18px;
  width: 400px;
  min-height: 74px;
  background: #000;
  background: rgba(0, 0, 0, 0.58);
  border-radius: 3px;
  position: absolute;
  opacity: 0.01;
  box-shadow: 3px 3px 25px rgba(255, 255, 255, 0.1);
}
.mainpage a.album-info h2 {
  margin: 0 0 0.5em 0;
  padding: 0;
  font-size: 1.5em;
  font-style: italic;
  font-family: Times;
  font-weight: normal;
  color: #ddac37;
}
.mainpage a.album-info p {
  margin: 0;
  line-height: 1.3em;
  font-size: 0.9em;
  color: #bbb;
}

section.albums .album .desc {
  margin-top: 5px;
  padding: 7px 12px 10px 12px;
  width: 280px;
  background: #000;
  background: rgba(0, 0, 0, 0.58);
  border-radius: 5px;
}

section.albums .album p {
  margin: 0;
  line-height: 1.3em;
  font-size: 0.9em;
  color: #ddd;
}

section.albums .album.tag-h .desc {
  background: #222;
  background: rgba(20, 20, 20, 0.58);
  opacity: 0.8;
}
section.albums .album.tag-h h2 {
  color: #999;
}

section.albums .album h2 {
  margin: 0 0 0.3em 0;
  padding: 0;
  font-size: 1em;
  font-weight: normal;
  color: #ddac37;
}

section.album-desc {
  margin: 0 0 20px 0;
  background: rgb(255, 255, 200);
  background: rgba(255, 255, 200, 0.85);
  color: rgb(0, 0, 0);
  color: rgba(0, 0, 0, 0.9);
  padding: 25px 28px;
  border-radius: 15px;
  font-family: Tahoma;
  font-size: 1em;
  line-height: 1.6em;
  box-shadow: 5px 5px 25px rgba(0, 0, 0, 0.5);
}

.white-primary {
  margin: 0 0 20px 0;
  background: #fff;
  background: rgba(255, 255, 255, 0.7);
  color: #000;
  color: rgba(0, 0, 0, 0.9);
  padding: 25px 28px;
  border-radius: 15px;
  font-family: Tahoma;
  font-size: 1em;
  line-height: 1.6em;
  box-shadow: 5px 5px 25px rgba(0, 0, 0, 0.5);
}
.white-primary.yellow {
  background: #ffc;
  background: rgba(255, 255, 170, 0.8);
}
.white-primary a {
  color: rgb(0, 0, 128);
  color: rgba(0, 0, 128, 0.7);
  text-decoration: underline;
  font-weight: bold;
}
.paragraphs > *:first-child {
  margin-top: 0;
}
.paragraphs > *:last-child {
  margin-bottom: 0;
}
.white-primary h2 {
  font-size: 1.2em;
  font-weight: bold;
}
.bg-about .white-primary {
  margin-top: 40px;
}
.bg-about .gallery {
  padding-top: 40px;
}

section.album-desc > p:first-child {
  margin-top: 0;
}
section.album-desc > h2:first-child {
  margin-top: 4px;
}
section.album-desc > p:last-child {
  margin-bottom: 0;
}
section.album-desc ul {
  margin: 0;
  padding: 0 0 0 18px;
}
section.album-desc li {
  margin: 10px 0 0 0;
}
section.album-desc img.gmap {
  display: block;
  width: 100%;
  border: 1px solid #999;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.25);
}

section.gallery {
  clear: both;
  text-align: center;
}

section.gallery .photo {
  width: 304px;
  display: inline-block;
  vertical-align: middle;
  margin: 0 auto 30px auto;
}

section.gallery .photo.colspan-2 {
  width: 654px;
}

section.gallery .photo > a:first-child {
  text-decoration: none;
  display: block;
  margin: 0 auto;
  border: 2px solid #000;
  border: 2px solid rgba(0, 0, 0, 0.58);
  box-shadow: 5px 5px 25px rgba(0, 0, 0, 0.5);
}

section.gallery .photo img {
}

section.gallery .photo .desc {
  padding: 8px 12px;
  width: 280px;
  background: #000;
  background: rgba(0, 0, 0, 0.58);
  border-radius: 5px;
  line-height: 1.3em;
  font-size: 0.9em;
  color: #ddd;
  margin: 5px auto 0 auto;
}
section.gallery .photo .desc a {
  color: #fff;
  text-decoration: underline;
  font-weight: bold;
}
section.gallery .photo .desc p {
  line-height: 1.3em;
  font-size: 1em;
  color: #ddd;
}
section.gallery .photo .desc p strong {
  color: #ffa;
}
section.gallery .photo.colspan-2 .desc {
  width: 620px;
}

section.album-editor {
}

section.album-editor div.threecols {
  margin: 0 0 50px 0;
}

section.album-editor div.threecols > div {
  margin: 0 0 5px 0;
  text-align: center;
}

section.album-editor div.threecols > div:first-child {
  color: #fff;
  font-size: 1.5em;
}

section.album-editor input,
section.album-editor textarea {
  width: 100%;
}
textarea.dyna-field {
  min-height: 60px;
}
.dyna-field {
  outline: green solid 1px;
}
.dyna-field.saving {
  outline: yellow solid 3px;
}
.dyna-field.success {
  outline: green solid 3px;
}
.dyna-field.error {
  outline: red solid 5px;
}
section.album-editor .tag-x,
section.album-editor .tag-h {
  opacity: 0.3;
}
section.album-editor .bad-cover {
  background: rgba(255, 0, 0, 0.2);
}
.admin-albums .tag-x,
.admin-albums .tag-h {
  opacity: 0.3;
}
.admin-albums input {
  background: transparent;
}
.admin-albums .tag-f td {
  background: #242;
}
.admin-albums .tag-ff td {
  background: #020;
}

section.album-editor .photo {
  width: 304px;
  display: inline-block;
  vertical-align: middle;
  margin: 0 auto 0 auto;
}
section.album-editor .photo a:first-child {
  text-decoration: none;
  display: block;
  margin: 0 auto;
  border: 2px solid rgba(0, 0, 0, 0.58);
  box-shadow: 5px 5px 25px rgba(0, 0, 0, 0.5);
}

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

@media only screen and (min-width: 480px) {
  /* ====================
    INTERMEDIATE: Menu
   ==================== */

  .album-dates {
    float: right;
  }

  .header-container {
    padding-bottom: 15px;
  }

  nav.top {
    padding-top: 5px;
  }

  nav.top li {
    float: left;
    width: 33%;
  }

  nav.top a {
    display: block;
    text-align: center;
    margin: 0 3px;
    padding: 5px 0;
    font-weight: normal;
  }

  nav.top li:first-child a {
    margin-left: 0;
  }

  nav.top li:last-child a {
    margin-right: 0;
  }

  nav.album-tags {
    text-align: center;
  }
  nav.album-tags ul {
    display: inline-block;
    text-align: center;
  }
  nav.album-tags li {
    display: inline-block;
    float: none;
    width: auto;
  }
  nav.album-tags a {
    display: block;
    text-align: center;
    margin: 3px;
    padding: 5px 10px;
  }

  section.albums {
    clear: both;
    margin-right: -50px;
    margin-top: 50px;
  }

  section.albums .album {
    margin: 0 50px 50px 0;
  }

  section.gallery {
    margin-right: -50px;
    margin-top: 50px;
  }

  section.gallery .photo {
    margin: 0 50px 50px 0;
  }
}

@media only screen and (min-width: 850px) {
  .header-container {
    padding-bottom: 0;
  }

  .backgroundsize body.bg-albums {
    background:
      linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0) 400px,
        rgba(0, 0, 0, 0) -300px,
        rgba(0, 0, 0, 0.5) 100%
      ),
      url(layout/background-for-albums.jpg) 55% 0% / cover no-repeat,
      #4f3b22;
  }
  .backgroundsize body.bg-about {
    background:
      url(/ac16aee6a23fff4eddc2a3afd2a2d8e6) 50% 0% / cover fixed no-repeat,
      #4e3b22;
  }

  /* ====================
    WIDE: CSS3 Effects
   ==================== */

  /*
    .header-container,
    .main aside {
        -webkit-box-shadow: 0 5px 10px #aaa;
           -moz-box-shadow: 0 5px 10px #aaa;
                box-shadow: 0 5px 10px #aaa;
    }
*/

  /* ============
    WIDE: Menu
   ============ */

  .title {
    float: left;
    margin-bottom: 0;
  }

  nav.top {
    float: right;
    width: auto;
  }

  nav.top ul {
    margin: 12px 0 0 auto;
  }

  nav.top li {
    width: auto;
  }

  nav.top a {
    display: inline;
    text-align: left;
    margin: 0 10px;
    padding: 0 5px 0 5px;
    background: transparent;
    text-shadow: 0 0 8px #000000;
  }

  section.album-editor div.threecols {
    float: left;
    width: 100%;
  }

  section.album-editor div.threecols > div {
    float: left;
    margin: 0 10px 5px 0;
    width: 31%;
  }
  section.album-editor div.threecols > div.extra {
    width: 50%;
  }

  section.album-editor textarea {
    min-height: 110px;
  }

  .bg-about .column {
    width: 48%;
    padding: 10px;
    float: left;
    margin-top: 30px;
  }

  .bg-about .column .white-primary {
    margin: 0 0 20px 0;
  }

  /* ============
    WIDE: Main
   ============ */

  /*
    .main article {
        float: left;
        width: 57%;
    }

    .main aside {
        float: right;
        width: 28%;
    }
    */
}

@media only screen and (min-width: 1140px) {
  section.album-desc {
    float: left;
    width: 50%;
    margin: 0 50px 50px 0;
  }
  section.gallery {
    clear: none;
  }
}

@media only screen and (min-width: 1300px) {
  section.album-desc {
    float: left;
    width: 404px;
    margin: 0 50px 50px 0;
  }
  .wrapper {
    width: 1170px; /* 1300px - 10% for margins */
    margin: 0 auto;
  }
  /*
    nav.album-tags {
        float: left;
        width: 100px;
        margin-top: 50px;
        display: block;
    }
    nav.album-tags a,
    nav.album-tags li,
    nav.album-tags ul {
        display: block;
        margin-left: 0;
        margin-right: 0;
    }
    section.albums {
        float: right;
        clear: none;
        width: 1100px;
    }
    */
}

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

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

.ir:before {
  content: '';
  display: block;
  width: 0;
  height: 150%;
}

.hidden {
  display: none !important;
  visibility: hidden;
}

.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

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

.invisible {
  visibility: hidden;
}

.clearfix:before,
.clearfix:after {
  content: ' ';
  display: table;
}

.clearfix:after {
  clear: both;
}

.clearfix {
  *zoom: 1;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
  * {
    background: transparent !important;
    color: #000 !important; /* Black prints faster: h5bp.com/s */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]:after {
    content: ' (' attr(href) ')';
  }

  abbr[title]:after {
    content: ' (' attr(title) ')';
  }

  /*
     * Don't show links for images, or javascript/internal links
     */

  .ir a:after,
  a[href^='javascript:']:after,
  a[href^='#']:after {
    content: '';
  }

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

  thead {
    display: table-header-group; /* h5bp.com/t */
  }

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

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

  @page {
    margin: 0.5cm;
  }

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

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