
/******************************************************************************/
/* Global */
/******************************************************************************/

html {
  margin: 0;
  font-size: 1em;
}

body {
  height: 100%;
  text-rendering: optimizeLegibility;
}

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

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

/******************************************************************************/
/* Text */
/******************************************************************************/

h1, h2, h3, h4, h5, h6 {
  margin: 10px 0 0;
  padding: 0;
  font-weight: normal;
  cursor: text;
  position: relative;
}

h1 {
  font-size: 2em;
}

h2 {
  font-size: 1.2em;
}

h3 {
  font-size: 1.2em;
}

h4 {
  font-size: 1em;
}

h5 {
  font-size: 1em;
}

h6 {
  font-size: 1em;
}

/******************************************************************************/

p {
  margin: 5px 0 5px 0;
  padding: 0;
}

h1 p, h2 p, h3 p, h4 p, h5 p, h6 p {
  margin-top: 0;
}

/******************************************************************************/

a {
  text-decoration: none;
}


a:hover, a:active {
  text-decoration: underline;
}

a:link, a:visited {
  
}

/******************************************************************************/

ul, ol, dl {
  margin: 10px 0;
}

ul, ol {
  padding-left: 30px;
}

li {
  margin: 0;
}

ul :first-child, ol :first-child {
  margin-top: 0;
}

ul :last-child, ol :last-child {
  margin-bottom: 0;
}

ul.flat-dl {
  list-style: none;
}

ul.flat-dl li {
  margin: 0;
}

/******************************************************************************/

dl {
  padding: 0;
}

dl dt {
  margin: 15px 0 5px;
  padding: 0;
  font-weight: bold;
}

dl dt:first-child {
  padding: 0;
}

dl dt > :first-child {
  margin-top: 0;
}

dl dt > :last-child {
  margin-bottom: 0;
}

dl dd {
  margin: 0 0 15px;
  padding: 0 15px;
}

dl dd > :first-child {
  margin-top: 0;
}

dl dd > :last-child {
  margin-bottom: 0;
}

/******************************************************************************/

hr {
  display: block;
  margin: 1px 0;
  padding: 0;
  border: 0;
  height: 1px;
  background-color: #000000;
}

/******************************************************************************/

blockquote {
  margin: 15px 0;  
  padding: 0 15px;
  border-left: 4px solid #dddddd;
  color: #777777;
}

blockquote > :first-child {
  margin-top: 0;
}

blockquote > :last-child {
  margin-bottom: 0;
}

/******************************************************************************/

textarea {
  resize: vertical;
}

/******************************************************************************/

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

/******************************************************************************/
/* Images */
/******************************************************************************/

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

img {
  max-width: 100%;
}

/******************************************************************************/
/* Tables */
/******************************************************************************/

table {
  margin: 15px 0;
  padding: 0;
  border-collapse: collapse;
}

table tr {
  margin: 0;
  padding: 0;
  border-top: 1px solid #cccccc;
  background-color: white;
}

table tr:nth-child(2n) {
  background-color: #f8f8f8;
}

table tr th {
  font-weight: bold;
  text-align: left;
  margin: 0;
  padding: 6px 13px;
  border: 1px solid #cccccc;
}

table tr td {
  text-align: left;
  margin: 0;
  padding: 6px 13px;
  border: 1px solid #cccccc;
}

table tr th :first-child, table tr td :first-child {
  margin-top: 0;
}

table tr th :last-child, table tr td :last-child {
  margin-bottom: 0;
}

/******************************************************************************/
/* Helper */
/******************************************************************************/

.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;
}

.container:after {
  content:"";
  display:block;
  clear:both;
}

/******************************************************************************/
/* Media */
/******************************************************************************/

@media
only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and (   min--moz-device-pixel-ratio: 2),
only screen and (   -moz-min-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) { 
}

@media print {
  *, *:before, *:after {
    background: transparent !important;
    color: #000 !important;
    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) ")";
  } */

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

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

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

  @page {
    margin: 0.5cm;
  } 
}

