/* --------- Import ---------- */
@import url("../fonts/font.css");
@import url("variables.css");

*{
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.update-content{
  position: relative;
  top: 300px;
  left: 13px;
  width: 200px;
}

body{
  font-size: var(--font-size); 
  font-family: var(--text-font);
  line-height: var(--line-height);
  color: var(--main-color);
}

img{
  max-width: 100%;
}

h1{
  font-size: 34px;
  font-family: var(--title-font);
  margin: 0px;
  margin-bottom: 1cm;
  font-weight: normal;
  line-height: var(--line-height);
}

h2{
  font-size: calc(var(--font-size) * var(--line-height));
  font-family: var(--title-font);
  text-align: center;
  margin-top: calc(var(--font-size) * var(--line-height) * 2);
  margin-bottom: 0;
/*  margin-bottom: 5cm;*/
  text-transform: uppercase;
  line-height: 1.2;
}

h2:first-child{
  margin-top: var(--font-size);
}

h2 + p{
  margin-top: 0.2cm;
}

h3{
  text-align: center;
  font-family: var(--title-font);
  margin-top: calc(var(--font-size) * var(--line-height));
  margin-bottom: 0;
  font-size: var(--font-size);
}

h3 + p{
  margin-top: 0.2cm;
}

.chapter h3:first-child{
  margin-top: 0;
}


p{
  hyphens : none;
}

p img{
  width: 90%;
  margin: auto;
  display: block;
}

p small{
/*  line-height: 1.4;*/
  font-size: var(--small-font-size);
  text-align: right;
  display: block;
  width: 80%;
  margin-left: 20%;
  margin-top: -15px;
}

a{
/*  color: #000;*/
  color: var(--main-color);
  text-decoration: none;
}

a:visited{
  color: var(--main-color);
}

.chapter p a, .chapter li a{
/*  text-decoration: underline;*/
  border-bottom: 1px dotted var(--main-color);
}

p + ul{
  margin-top: -5mm;
}

ul, figure, ol{
  margin: 0;
  padding: 0
}

ul, ol{
  margin-left: 4mm;
}

ul li{
  list-style: none;
}

ol li, ul li{
/*  margin-bottom: calc(var(--font-size) * var(--line-height) / 2);*/
}

ul > li > ul{
  margin-left: 0.9cm;
  margin-bottom: 0mm;
}

ol{
  counter-reset: item;
  margin-left: 1cm;
}

ol li{
  list-style: none;
  counter-increment: item;
}

ol li::before{
   content: counter(item);
   font-family: var(--title-font);
   font-size: 13pt;
   margin-right: 0.2cm;
   margin-left: -0.4cm;
}

ul li::before{
   content: "—";
   font-family: var(--title-font);
   font-size: 13pt;
   margin-right: 0.2cm;
   margin-left: -0.4cm;
}

/*figure {
   background: var(--main-color);
   mix-blend-mode: multiply;
}

figure img {
  mix-blend-mode: screen;
  -webkit-filter: grayscale(100%) contrast(200%);
  filter: grayscale(100%) contrast(150%);
  opacity: 1;
}

p img {
  mix-blend-mode: screen;
  -webkit-filter: grayscale(100%) contrast(150%);
  filter: grayscale(100%) contrast(150%);
  opacity: 1;
  display: block;
  margin:auto;
}*/

/*img{
  width: 95%;
  display: block;
  margin: auto;
}*/

figcaption{
  width: 90%;
  margin: auto;
  margin-top: 2mm;
  text-align: center;
  font-size: var(--small-font-size);
}

img.portrait{
  width: 60%;
  display: block;
  margin: auto;
}


pre{
  text-overflow: wrap-text;
  white-space: wrap;
}

path {
/*  fill: transparent;*/
  fill: orange;
}

svg.sticky-cane {
  transform: scale(0.8) rotate(-10deg);
  transform-origin: 0 0;
  position: absolute;
  left: 8cm;
}

svg.sticky-cane textPath{
  font-size: 40px;
  font-family: var(--text-font);
  fill: var(--main-color);
}

.text-margin{
/*  font-family: var(--ants-font);
  color: #000;
  color: #20db1c;
  text-transform: uppercase;*/
  font-family: var(--title-font);
  color: var(--main-color);
  background: var(--second-color);
  box-shadow: 5px 5px 7px var(--main-color-opacity);
  padding: 0.5em 0.7em;
  text-align: center;
  width: 4cm;
  min-height: 4cm;
  margin-left: -2cm;
  margin-right: 0.8cm;
  margin-bottom: 0.5cm;
  float: left;
/*  border-radius: 5px;*/
}

mark{
  background: var(--second-color);
  color: var(--main-color);
}

.body-text{
  padding: 0.2cm 0.5cm;
  font-size: 10pt;
  font-family: monospace;
}

.body-text::before{
  content:"<anotherbody>";
  font-family: monospace;
}

.body-text::after{
  content:"</anotherbody>";
  font-family: monospace;
}

blockquote{
  padding: 0.2cm 0cm;
  font-size: 10pt;
  font-family: 'Hack', monospace;
  margin-left: 0;
  font-size: 8.7pt;
}

blockquote p{
/*  margin-top: var(--font-size) !important;*/
  margin-top: 0;
  margin-bottom: var(--font-size);
  margin-left: 0.9cm;
  font-size: 8.7pt;
  width: 100%;
}

blockquote::before{
  content:"<anotherbody>";
  font-family: monospace;
  display: block;
  margin-bottom: var(--font-size);
}

blockquote::after{
  content:"</anotherbody>";
  font-family: monospace;
}


.images-grid p{
  margin-top:0;
  margin-bottom: calc(var(--font-size) * var(--line-height) * 2);
}

.images-grid h2{
  margin-bottom: 0;
  font-size: var(--font-size);
}

.tag{
  text-align: center;
/*  border: 1px solid var(--main-color);*/
  background: var(--main-color);
  font-weight: 500;
  color: #FFF;
  padding: 0.1cm 0.2cm;
  margin: auto;
  margin-top: -4mm;
  margin-bottom: 0.9cm;
  max-width: 7cm;
}


.snippet{
  padding: 0.05cm 0.3cm;
  box-shadow: 0px 0px 12px var(--main-color-opacity);
/*  margin-top: 1cm;*/
  margin-bottom: 1cm;
  width: 86%;
  margin-top: -4mm;
  font-size: 11pt;
}

.snippet:nth-child(even){
  margin-left: 1.6cm;
}

.snippet ul{
  padding-left: 0.5cm;
}

.snippet p{
  font-size: 11pt;
}

/*.images-mosaique{
  display: flex;
  flex-wrap: wrap;
}*/

.images-mosaique p:first-child{
  display: none;
}

.images-mosaique p{
  display: flex;
  flex-wrap: wrap;
}


.images-mosaique p img{
  width: calc(50% - 0.6cm);
  margin:0;
  margin-right: 0.3cm;
  margin-bottom: 0.3cm;
}

.images-mosaique figcaption{
  width: calc(50% - 0.6cm);
  margin-left: 0;
  margin-right: 0.3cm;
/*  font-size: 0.7em;*/
  margin-top: 0;
}

.half-left{
/*  page: halfLeft;
  break-before: left;*/
  position: absolute;
  top: calc((var(--pagedjs-bleed-top) + 3mm) * -1);
  left: calc((var(--pagedjs-bleed-left) + var(--pagedjs-margin-left)) * -1);
  width: calc(var(--pagedjs-width-left) - var(--pagedjs-bleed-left));
  height: calc(var(--pagedjs-height-left) + 10mm);
  overflow: hidden;
}

.half-left img{
  width: 200%;
  max-width: none;
}

.half-left figcaption{
  display: none;
}

@page halfLeft{
  margin: 0;
  @left-middle {content: none;}
  @right-middle {content: none;}
  @bottom-left-corner {content: none;}
  @bottom-left {content: none;}
  @bottom-center {content: none;}
  @bottom-right {content: none;}
  @bottom-right-corner {content: none;}
}

.half-right{
/*  page: halfRight;
  break-before: right;*/
  position: absolute;
  top: calc((var(--pagedjs-bleed-top) + 3mm) * -1);
  right:calc((var(--pagedjs-margin-right) + var(--pagedjs-bleed-right)) * -1);
  width: calc(var(--pagedjs-width-right) - var(--pagedjs-bleed-right));
  height: calc(var(--pagedjs-height-right) + 10mm);
  overflow: hidden;
}

.half-right img{
  width: 200%;
  max-width: none;
  margin-left: -100%;
}

.half-right figcaption{
  display: none;
}

@page halfRight{
  margin: 0;
  @left-middle {content: none;}
  @right-middle {content: none;}
  @bottom-left-corner {content: none;}
  @bottom-left {content: none;}
  @bottom-center {content: none;}
  @bottom-right {content: none;}
  @bottom-right-corner {content: none;}
}






