pre.half, div.half, ul.half, p.half, table.half {
  margin-top: -10px;
  vertical-align: top;
  display: inline-block;
  width: 49%;
}

pre.quarter, div.quarter, ul.quarter, p.quarter, table.quarter {
  margin-top: -10px;
  vertical-align: top;
  display: inline-block;
  width: 24%;
}

pre.third, div.third, ul.third, p.third, table.third {
  margin-top: -10px;
  vertical-align: top;
  display: inline-block;
  width: 32%;
}

pre.twothird, div.twothird, ul.twothird, p.twothird, table.twothird {
  margin-top: -10px;
  vertical-align: top;
  display: inline-block;
  width: 65%;
}

.label {
  color:#ff8855;
  background-color: #770000;
  font-size: 20px !important;
  padding: 2px 2px 2px 2px;
  border-radius: 4px;
}

.green {
  background-color: #007700;
  color: white;
}

.orange {
  background-color: orange;
  color: white;
}

p.title {
  text-align: left; background-color: #ffeebb; color: black;
  margin-left: 1.5em;
  margin-right: 1.5em;
  margin-bottom: -.45em;
  padding-left: 1em;
  font-size: 28px;
}

/* Paragraphs aligned on the left */
.reveal ul {
  display: block;
}
.reveal ol {
  display: block;
}

.reveal section img { background:none; border:none; box-shadow:none; }

/* Adjust font sizes */
.reveal {
    font-size: 34px !important;
}

.small {
  font-size: 28px !important;
}
.verysmall {
  font-size: 26px !important;
}

/* Special highlighting class */
.reveal strong {
    color:#ff6600;
    font-weight: bold;
}

.alert { color: red; font-weight: bold; }

.reveal section img {
  border: 0px;
}

.no-border {
  border: 0px;
}

code {
  color: #aa2222;
}

ul code {
  font-size: 32px;
  font-weight: bold;
}

.ribbon {
    position: absolute;
    top: 0px;
    right: 0px;
    margin: 3px;
    padding: 2px;
    border-radius: 4px;
}

a.ribbon {
    position: absolute;
    top: 0px;
    right: 0px;
    margin: 3px;
    padding: 2px;
    border-radius: 4px;
    color: white;
}

.ribbon-principle {
    background-color: blue;
    color: white;
}
.ribbon-principle:before {
  content: "Principe";
}

.ribbon-exercise {
    background-color: green;
    color: white;
  }
.ribbon-exercise:before {
  content: "Exercice";
}

.ribbon-advice {
    background-color: #aa2222;
    color: white;
}
.ribbon-advice:before {
  content: "Conseils";
}

.ribbon-ref {
    background-color: #aa22aa;
    color: white;
}
.ribbon-ref:before {
  content: "Référence";
}

li.fill {
  list-style-type: none; padding: .5em;
}

.reveal hr {
  padding: .5em;
  visibility: hidden;
}

aside.bubble {
  border-radius: 50px 15px;
  background: #99daf0;
  padding: 20px;
  position: absolute;
  left: 60%;
  width: 40%;
  font-size: 70%;
}

aside.bubble code {
  font-size: 90%;
}

.x {
  visibility: hidden;
}

div.half.overlay {
  position: relative;
  height: 60vh;
}

div.half.overlay > p {
  margin: 0;
  width: 100%;
  height: 100%;
}

div.half.overlay > p > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  margin: 0;
}

