/*
 * I add this to html files generated with pandoc.
 */

html {
  font-size: 100%;
  overflow-y: scroll;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  color: #444;
  font-family: Georgia, Palatino, 'Palatino Linotype', Times, 'Times New Roman', serif;
  font-size: 12px;
  line-height: 1.7;
  padding: 1em;
  margin: auto;
  max-width: 42em;
  background: #fefefe;
}

a {
  color: #0645ad;
  text-decoration: none;
}

a:visited {
  color: #0b0080;
}

a:hover {
  color: #06e;
}

a:active {
  color: #faa700;
}

a:focus {
  outline: thin dotted;
}

*::-moz-selection {
  background: rgba(255, 255, 0, 0.3);
  color: #000;
}

*::selection {
  background: rgba(255, 255, 0, 0.3);
  color: #000;
}

a::-moz-selection {
  background: rgba(255, 255, 0, 0.3);
  color: #0645ad;
}

a::selection {
  background: rgba(255, 255, 0, 0.3);
  color: #0645ad;
}

p {
  margin: 1em 0;
}

img {
  max-width: 100%;
}

.doctitle {
  color: #111;
  line-height: 125%;
  margin-top: 2em;
  margin-bottom: 2em;
  font-weight: normal;
  font-size: 3em;
}

h1, h2, h3, h4, h5, h6 {
  color: #111;
  line-height: 125%;
  margin-top: 2em;
  font-weight: normal;
}

h4, h5, h6 {
  font-weight: bold;
}

h1 {
  font-size: 2.2em;
}

h2 {
  font-size: 2em;
}

h3 {
  font-size: 1.5em;
}

h4 {
  font-size: 1.2em;
}

h5 {
  font-size: 1em;
}

h6 {
  font-size: 0.9em;
}

blockquote {
  color: #666666;
  margin: 0;
  padding-left: 3em;
  border-left: 0.5em #EEE solid;
}

hr {
  display: block;
  height: 2px;
  border: 0;
  border-top: 1px solid #aaa;
  border-bottom: 1px solid #eee;
  margin: 1em 0;
  padding: 0;
}

pre, code, samp {
  color: #000;
  font-family: monospace, monospace;
  _font-family: 'courier new', monospace;
  font-size: 0.98em;
}

code {
  background-color: #eee;
}

pre {
  white-space: pre;
  white-space: pre-wrap;
  word-wrap: break-word;
  background-color: #eee;
  padding: 0.5em; /* Since we have a background color */
  border-radius: 5px; /* Softens it */
  /* Give it a some definition */
  border: 1px solid #aaa;
  /* Set it off left and right, seems to look a bit nicer when we have a background */
  margin-left:  0.5em;
  margin-right: 0.5em;
}

/* Source: https://stackoverflow.com/questions/40842277/create-line-numbers-on-pre-with-css-only */
pre{
    counter-reset: line;
}
pre .sourceLine {
  /*display: block;*/
  line-height: 1.5rem;
}
code.sourceCode{
    position: static;
}
pre .sourceLine:before {
  counter-increment: line;
  content: counter(line);
  display: inline-block;
  border-right: 1px solid #ddd;
  padding: 0 .5em;
  margin-right: .5em;
  width: 1.2em;
  text-align: right;
  /*
  background-color: #fff;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
  */
  color: #aaa;
}
.sourceLine:before{
    -webkit-user-select: none;
}
a.sourceLine::before {
    text-decoration: none;
}

pre.root {
  border-color: red;
}

/*ENd of line numbering in code*/

b, strong {
  font-weight: bold;
}

dfn {
  font-style: italic;
}

ins {
  background: #ff9;
  color: #000;
  text-decoration: none;
}

mark {
  background: #ff0;
  color: #000;
  font-style: italic;
  font-weight: bold;
}

sub, sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

ul, ol {
  margin: 1em 0;
  padding: 0 0 0 2em;
}


kbd {
  font-family: monospace, monospace;
  border-bottom: 2px solid #aaa;
  border-right: 2px solid #ccc;
  font-size: 0.98em;
  background-color: #ddd;
    display: inline-block;
    padding: .1em .6em;
    /*line-height: var(--s-prose-line-height);*/
    /*text-shadow: 0 1px 1px #888;*/
    border-radius: 3px;
    box-shadow: inset 1px 1px 2px 0 #fff;
    overflow-wrap: break-word;
    /*
    margin: 0 .1em;
    background-color: var(--black-075);
    color: #800;
    font-size: 0.98em;
    */
}

li p:last-child {
  margin-bottom: 0;
}

ul ul, ol ol {
  margin: .3em 0;
}

dl {
  margin-bottom: 1em;
}

dt {
  font-weight: bold;
  margin-bottom: .8em;
}

dd {
  margin: 0 0 .8em 2em;
}

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

img {
  border: 0;
  -ms-interpolation-mode: bicubic;
  vertical-align: middle;
}

figure {
  display: block;
  text-align: center;
  margin: 1em 0;
}

figure img {
  border: none;
  margin: 0 auto;
}

figcaption {
  font-size: 0.8em;
  font-style: italic;
  margin: 0 0 .8em;
}

table {
  margin-bottom: 2em;
  border-bottom: 1px solid #ddd;
  border-right: 1px solid #ddd;
  border-spacing: 0;
  border-collapse: collapse;
}

table th {
  padding: .2em 1em;
  background-color: #eee;
  border-top: 1px solid #ddd;
  border-left: 1px solid #ddd;
  text-align: left;
}

table td {
  padding: .2em 1em;
  border-top: 1px solid #ddd;
  border-left: 1px solid #ddd;
  vertical-align: top;
}

.author {
  font-size: 1.2em;
  text-align: center;
}

@media only screen and (min-width: 480px) {
  body {
    font-size: 14px;
  }
}
@media only screen and (min-width: 768px) {
  body {
    font-size: 16px;
  }
}
@media print {
  * {
    background: transparent !important;
    color: black !important;
    filter: none !important;
    -ms-filter: none !important;
  }

  body {
    font-size: 12pt;
    max-width: 100%;
  }

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

  hr {
    height: 1px;
    border: 0;
    border-bottom: 1px solid black;
  }

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

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

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

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

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

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

  @page :left {
    margin: 15mm 20mm 15mm 10mm;
}

  @page :right {
    margin: 15mm 10mm 15mm 20mm;
}

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

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



div.important {
    background-image:url('icons/important.svg');
    background-repeat: no-repeat;
    background-size: 48px 48px;
    /*margin:0; /* If you want no margin */
    /*padding:0; /*if your want to padding */
  background-color: #FFEDED;
  padding: 0.5em; /* Since we have a background color */
  padding-left: 64px;
  border-radius: 5px; /* Softens it */
  /* Give it a some definition */
  border: 1px solid #faa;
  /* Set it off left and right, seems to look a bit nicer when we have a background */
  margin-left:  0.5em;
  margin-right: 0.5em;
}

div.warning {
    background-image:url('icons/attention.svg');
    background-repeat: no-repeat;
    background-size: 48px 48px;
    /*margin:0; /* If you want no margin */
    /*padding:0; /*if your want to padding */
  background-color: #FFA70B16;
  padding: 0.5em; /* Since we have a background color */
  padding-left: 64px;
  border-radius: 5px; /* Softens it */
  /* Give it a some definition */
  border: 1px solid #ffa70b;
  /* Set it off left and right, seems to look a bit nicer when we have a background */
  margin-left:  0.5em;
  margin-right: 0.5em;
}

div.information {
    background-image:url('icons/information.svg');
    background-repeat: no-repeat;
    background-size: 48px 48px;
    /*margin:0; /* If you want no margin */
    /*padding:0; /*if your want to padding */
  background-color: #FAFCFE;
  padding: 0.5em; /* Since we have a background color */
  padding-left: 64px;
  border-radius: 5px; /* Softens it */
  /* Give it a some definition */
  border: 1px solid #00b4fa;
  /* Set it off left and right, seems to look a bit nicer when we have a background */
  margin-left:  0.5em;
  margin-right: 0.5em;
}

div.big {
  font-size: 2em;
}

div.practice {
    background-image:url('icons/practice.svg');
    background-repeat: no-repeat;
    background-size: 48px 48px;
    /*margin:0; /* If you want no margin */
    /*padding:0; /*if your want to padding */
  background-color: #d1f4e3;
  padding: 0.5em; /* Since we have a background color */
  padding-left: 64px;
  border-radius: 5px; /* Softens it */
  /* Give it a some definition */
  border: 1px solid #2bb771;
  /* Set it off left and right, seems to look a bit nicer when we have a background */
  margin-left:  0.5em;
  margin-right: 0.5em;
}

#TOC {
    background-image:url('icons/sommaire.svg');
    background-repeat: no-repeat;
    background-size: 64px 20px;
    /*margin:0; /* If you want no margin */
    /*padding:0; /*if your want to padding */
  background-color: #FAFCFE;
  padding: 0.5em; /* Since we have a background color */
  padding-left: 64px;
  border-radius: 5px; /* Softens it */
  /* Give it a some definition */
  border: 1px solid #00b4fa;
  /* Set it off left and right, seems to look a bit nicer when we have a background */
  margin-left:  0.5em;
  margin-right: 0.5em;
}

.commit-msg {
    fill: #d3d3d3;
    color: #333;
}

div.solution {
  background-color: #EDFFFF;
  padding: 0.5em;
  padding-left: 64px;
  border-radius: 5px;
  border: 1px solid #aff;
  margin-left:  0.5em;
  margin-right: 0.5em;
  position:relative;
  z-index:1;
}

div.solution::after{
	content: "Solutions possibles";
  position: absolute; top: 0; left: 0.2em; bottom: 0; right: 0;
  height: 2em;
  z-index: 3;
  overflow: hidden;
  font-size: 8pt;
  color: #7bb;
  /*text-align: center;*/
  /*text-shadow: 0px 0px 5px black; */
  /*background: #0a0a0aff; padding: 5px;*/
}

div.solution > * {
  display: none ;
}

div.solution-show > * {
  display: block ;
}

div.webpage {
  background-color: #FEFEFE;
  padding: 0.5em;
  padding-left: 64px;
  border-radius: 5px;
  border: 2px solid #aaa;
  margin-left:  0.5em;
  margin-right: 0.5em;
  position:relative;
}

div.shortcut {
  font-size: 0.8em;
  position: fixed;
  top: 10px;
  left: 10px;
  border: solid 1px #e1e1e1;
  vertical-align: left;
  background: #eeeeee;
  text-align: left;
  border-radius: 5px; /* Softens it */
  padding: 0.5em; /* Since we have a background color */
  z-index:2;
}

table.wikitable {

    background-color: #f8f9fa;
    color: #222;
    margin: 1em 0;
        margin-top: 1em;
        margin-right: 0px;
        margin-bottom: 1em;
        margin-left: 0px;
    border: 1px solid #a2a9b1;
        border-top-color: rgb(162, 169, 177);
        border-top-style: solid;
        border-top-width: 1px;
        border-right-color: rgb(162, 169, 177);
        border-right-style: solid;
        border-right-width: 1px;
        border-bottom-color: rgb(162, 169, 177);
        border-bottom-style: solid;
        border-bottom-width: 1px;
        border-left-color: rgb(162, 169, 177);
        border-left-style: solid;
        border-left-width: 1px;
        border-image-outset: 0;
        border-image-repeat: stretch;
        border-image-slice: 100%;
        border-image-source: none;
        border-image-width: 1;
    border-collapse: collapse;

figure img {
  background-color: #FFF;
  /*border: solid 1px #FA6900;*/
  border-radius: 2px;
  position: relative;
}

figure img:after {
    /*position: absolute;*/
    top: 0;
    /*
    bottom: 0;
    left: 2em;
    right: 0;
    */
    /*width: 15em;*/
    background-repeat: no-repeat;
    background-size: 120px 120px;
    background-color: #FFFF00;
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 20px;
    padding-right: 20px;
    content: "\274c missing image";
    font-size: 50px;
    color: #C00;
    text-align: left;
}
