:root {
  --md-primary-fg-color:        #0054A6;
  --md-primary-fg-color--light: rgba(0, 51, 160, 0.267);
  --md-primary-fg-color--dark:  #0054A6;
}

@media screen and (min-width: 45em) {
  .md-copyright {
      width: 100% !important;
  }
}

.md-typeset details.note {
  font-size: 90%;
}

.md-typeset details.danger {
  font-size: 90%;
}

.md-typeset details.warning {
  font-size: 90%;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3 {
font-weight: bold;
}

.md-typeset a[target="_blank"] {
  &[href^="//"]::after,
  &[href^="http://"]::after,
  &[href^="https://"]::after {
      content: "↗";
      font-size: smaller;
      margin-left: .2em;
      vertical-align: top;
  }
}

/* image caption */
img + em {
  display: block;
  text-align: left;
  font-size: 0.8em;
  color: #666;
  margin-top: -8px;
  border-top: 1px solid #ccc;
}

/* p > img:not(.twemoji) {
  border: 1px solid #ccc;
} */

.md-typeset .admonition, .md-typeset details {
  font-size: .8rem;
/* index */ 
}
.cards.index li {
  background-color: #f5f5f5;
}

.cards.index li:first-child p:first-child .twemoji {
  color: orange;
}
.cards.index li:last-child p:first-child .twemoji {
  color: blue;
}

/* demo styles */
.demo-block,
.demo-inline {
  background-color: aliceblue;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  padding: 2px 5px;
}

.demo-block > .demo-block,
.demo-block > .demo-inline {
  border-color: #666;
}

.demo-red {
  color: red;
}

.demo-blue {
  color: blue;
}

.demo-green {
  color: green;
}

ul.demo-inline,
ol.demo-inline {
  margin: 0 !important;
}

img.demo-img {
  width: 425px !important;
  height: 239px !important;
}

table.demo-table {
  border-collapse: collapse;
  background-color: aliceblue;
  width: 100%;
}

table.demo-table th,
table.demo-table td {
  border-left: 1px solid #ccc !important;
  border-bottom: 1px solid #ccc !important;
  padding: 5px 10px !important;
  vertical-align: middle !important;
}
table.demo-table th:last-child,
table.demo-table td:last-child {
  border-right: 1px solid #ccc !important;
}
table.demo-table tr:first-child th,
table.demo-table tr:first-child td {
  border-top: 1px solid #ccc !important;
}

table.demo-table th {
  background-color: #f0f0f0 !important;
  font-weight: bold !important;
}

/* demo form */
form.demo-form {
  margin: 0;
  padding: 10px;
}

form.demo-form fieldset {
  border: 1px solid #ccc;
  margin: 0;
  padding: 10px;
}

form.demo-form legend {
  font-weight: bold;
}

form.demo-form label {
  display: block;
  margin: 0 0 5px;
}

form.demo-form input[type="text"],
form.demo-form input[type="password"],
form.demo-form input[type="email"],
form.demo-form textarea,
form.demo-form select {
  width: 100%;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 5px;
  font-size: 0.7rem;
}

form.demo-form input[type="submit"] {
  padding: 10px 20px;
  background-color: var(--md-primary-fg-color);
  border-radius: 5px;
  color: white;
  font-weight: bold;
  font-size: .8rem;
  cursor: pointer;
}

/* boxes */
.demo-boxing .margin {
  background: #a9c8ea;
  padding: 45px;
  position: relative;
  border: 2px dashed #ba6f6f;
  margin-bottom: 1rem;
}
.demo-boxing .margin:before {
  content: "margin:";
  font-size: 1.4em;
  position: absolute;
  left: 0;
  top: .7%;
  width: 100%;
  text-align: center;
}

.demo-boxing .border {
  padding: 4px;
  width: 100%;
  height: 100%;
  background: #d80241;
}

.demo-boxing .padding {
  color: black;
  padding: 40px;
  width: 100%;
  height: 100%;
  position: relative;
  background: #f1f1f1;
}
.demo-boxing .padding:before {
  content: "padding:";
  font-size: 1.4em;
  position: absolute;
  left: 0.5%;
  top: .7%;
  width: 100%;
  text-align: center;
}
.demo-boxing .content {
  padding: 20px;
  width: 100%;
  height: 100%;
  position: relative;
  background: #0275d8;
  opacity: 0.65;
}

.demo-boxing .content:before {
  content: "Contenu de l'élément HTML";
  font-size: 1.4em;
  display: block;
  color: white;
  text-align: center;
  line-height: 3.5;
}

/* demo-project */
.demo-projet-structure li {
  border-width: 2px !important;
}
.demo-projet-structure li:nth-child(2){
  border-color: red !important;
}
.demo-projet-structure li:nth-child(3){
  border-color: blue !important;
}
.demo-projet-structure li:nth-child(4){
  border-color: green !important;
}

/* demo flex */
.demo-flex-boxe {
  display: flex;
  color: white; 
  font-weight: bold; 
  padding: 10px; 
  border-radius: 5px; 
  background-color: #0054a7
}

.demo-flex-boxe > div {
  width: 14px;
  height: 14px;
  padding: 20px;
  border-radius: 5px;
  display:flex;
  align-items: center;
  justify-content: center;
  background-color: fuchsia;
}

/* exercice cards */
.exercice-cards ul > li {
  border-color: var(--md-primary-fg-color) !important;
  border-width: 4px !important;
  border-radius: 5px !important;
}
.exercice-cards ul > li + p {
  color: var(--md-primary-fg-color) !important;
}


/* exercice cards */
.doc-cards ul > li {
  border-color: #7c4dff !important;
  border-width: 4px !important;
  border-radius: 5px !important;
}
.doc-cards ul > li + p,
.doc-cards ul > li a {
  color: #7c4dff !important;
}

