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

html
{
  height: 100%;
	font-family: 'Arimo', sans-serif;
}

body {
  height: 100%;
  /* background: rgb(204,204,204);  */
  padding-top: 40px;
  padding-bottom: 40px;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-image: linear-gradient(#eeeeee,#bbbbbb);
}

page[size="A4"] {
  position: relative;
  background: white;
  width: 21cm;
  height: 29.7cm;
  display: block;
  margin: 20px auto;
  margin-bottom: 1.5cm;
  box-shadow: 0.2cm 0.2cm 0.5cm rgba(0,0,0,0.5);
  border-radius: 2px;
}


@media only screen and (max-width: 900px) {

  body {
    background-color: #ffffff;
    padding: 0px;
    margin:0px;    
    background-image: none;
  }

  page[size="A4"] {
    background: white;
    width: 100%;
    height: auto;
    display: block;
    margin: 0px auto;
    margin-bottom: 0cm;
    box-shadow: 0cm 0cm 0cm rgba(0,0,0,0);
    border-radius: 0px;
  }

}


@media print {

  html { height: auto; }

  body {
    background-color: #ffffff;
    padding: 0px;
    margin: 0cm;
    padding-top: 0px;
    padding-bottom: 0px;
    height: auto;
  }

  page[size="A4"] {
    background: white;
    margin: 0px;
    margin-bottom: 0cm;
    box-shadow: 0cm 0cm 0cm rgba(0,0,0,0);
    border-radius: 0px;
    page-break-after: auto;
  }

  page[size="A4"]:last-child
  {
    page-break-after: avoid;
  }

  @page { margin: 0; }

}

/* ------------------------------------------------- */
/* Page Variants                                     */
/* ------------------------------------------------- */

div.page
{
  position:relative;
  width: 100%;
  height: 100%;
}

div.page.content
{
  -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
  -moz-box-sizing: border-box;    /* Firefox, other Gecko */
  box-sizing: border-box;
  padding: 2cm;
}

div.page.text
{
  text-align: justify;
  text-justify: inter-word;
}

div.rows
{
  display:flex; 
  flex-direction: column;
  justify-content: space-between;
}

div.page.columns
{
	display: flex;
  justify-content: space-between;
}

div.columns_raw
{
  display: flex;
  justify-content: space-between; 
}

div.column50
{
  width:50%;
  margin-left: 0.5cm;
  margin-right: 0.5cm;
}

div.column50:first-child
{
  margin-left: 0cm;
}

div.column50:last-child
{
  margin-right: 0cm;
}

@media only screen and (max-width: 900px) {



  div.page
  {
    height: auto;
  }

  div.page.content
  {
    padding: 1cm;
    padding-bottom: 0px;
    padding-top: 0px;
  }

  div.page.columns
  {
    flex-wrap: wrap;
  }

  div.columns_raw
  {
    flex-wrap: wrap;
  }

  div.column50
  {
    width:100%;
    margin: 0px;
    padding-top: 0px;
    padding-bottom: 0px;
  }


}

/* ------------------------------------------------- */
/* Table of Contents                                 */
/* ------------------------------------------------- */


ul.toc
{
  list-style-type: none;
  padding-left: 0px;
}

ul.toc>li
{
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
}

ul.toc>li>span
{
  white-space: nowrap;
  overflow: hidden;
}

ul.toc>li>span.toc_page
{
  padding-left: 0.1cm;
}

ul.toc>li>span.toc_title
{
  padding-right: 0.1cm;
}

ul.toc>li>span.toc_spacer
{
  width: 0;
  flex-grow: 1;
  overflow-x: hidden;
}

/* ------------------------------------------------- */
/* Timeline                                          */
/* ------------------------------------------------- */

div.timeline.container
{
  position: relative;
  padding-top: 1cm;
  margin-bottom: 1cm;
}

div.timeline.line
{
    z-index: 8;
    left: 4.835cm;
    position: absolute;
    border-left: 2px solid rgba(0, 0, 0, 0.3);
    height: 100%;
}

div.timeline.row
{
  display:flex;
  flex-direction: row;
  width: 100%;
  padding-bottom: 0.2cm;
}

div.timeline.date
{
  color: rgba(0, 0, 0, 0.6);
  width:4.5cm;
  align-self: flex-start;
  text-align: right;
  padding-right: 0.2cm;
  flex-shrink: 0;
  font-weight: bold;
}

div.timeline.text
{
  width: 100%;
  text-align: left;
  padding-left: 0.2cm;
}

span.timeline.subtext
{
   color: rgba(0, 0, 0, 0.6);
}

div.timeline.separator
{
  z-index: 10;
  flex-shrink: 0;
  margin-top: 2px;
  width: 0.2cm;
  height: 0.2cm;
  display: block;
  border-radius: 0.2cm;
  content: '';
  border: 2px solid rgba(0, 0, 0, 0.3);
  background: white;
}

/* ------------------------------------------------- */
/* Footer                                            */
/* ------------------------------------------------- */

div.footer
{
  height:1cm;
  position: relative;
  bottom: 1.5cm;
  padding-left:2cm;
  padding-right:2cm;
  display: block;
  left:0px;
  right: 0px;
}

div.footer>div>div.left
{
   float:left;
}


div.footer>div>div.right
{
   float:right;
}

@media only screen and (max-width: 900px) {
  div.footer
  {
    display:none;
  }
}
