/*
  1. sub title
  2. box layout
  3. css tag
  4. table
  5. color
  6. bootstrap-like
*/

/* 1. sub title */
.book__body h3.decor, .book__body h4.decor{
  margin-bottom: 1rem !important;
  padding:6px 15px 6px 15px;
  color: #3d3334;
  --notchSize: 6px;

  clip-path:
    polygon(
      100% calc(var(--notchSize) * 2),
      calc(100% - var(--notchSize) * 2) calc(var(--notchSize) * 2),
      calc(100% - var(--notchSize) * 2) 0%,
      0% 0%, 0% 100%,
      calc(100% - var(--notchSize) * 2) 100%,
      calc(100% - var(--notchSize) * 2) calc(100% - var(--notchSize) * 2),
      100% calc(100% - var(--notchSize) * 2),
      100% calc(100% - var(--notchSize)),
      calc(100% - var(--notchSize)) calc(100% - var(--notchSize)),
      calc(100% - var(--notchSize)) calc(var(--notchSize)),
      100% calc(var(--notchSize))
    );
}

.decor.decor-blue{
  background: #8dd7f7;
}

.decor.decor-pink{
  background: #f6cbd5;
}

/* 2. box layout */
/* kotak kepotong */
.book__body .module {
  position: relative;

  /* min-height: 100px; */
  max-width: 100%;

  --borderSize: 2px;
  --notchSize: 20px;

  clip-path:
    polygon(
      0% var(--notchSize),
      var(--notchSize) 0%,
      calc(100% - var(--notchSize)) 0%,
      100% var(--notchSize),
      100% calc(100% - var(--notchSize)),
      calc(100% - var(--notchSize)) 100%,
      var(--notchSize) 100%,
      0% calc(100% - var(--notchSize))
    );
}

.module.module-bordered::before{
  content: "";
  width: calc(100% - var(--borderSize) * 2);
  height: calc(100% - var(--borderSize) * 2);
  background-color: white;

  /* create a new stacking context */
  position: absolute;
  top: var(--borderSize);
  left: var(--borderSize);
  --border: calc(var(--borderSize) / 2);
  clip-path:
    polygon(
      0% calc(var(--notchSize) - var(--border)),
      calc(var(--notchSize) - var(--border)) 0%,
      calc(100% - var(--notchSize) + var(--border)) 0%,
      100% calc(var(--notchSize) - var(--border)),
      100% calc(100% - var(--notchSize) + var(--border)),
      calc(100% - var(--notchSize) + var(--border)) 100%,
      calc(var(--notchSize) - var(--border)) 100%,
      0% calc(100% - var(--notchSize) + var(--border))
    );
  z-index: -1;
}

.module > div.content{
  padding: 1.5rem;
}

.module div.content ol{
  padding-left: 15px;
}

.module .module.p module.ol module.li{
  vertical-align: middle;
  text-align: justify;
}

.module.module-blue{
  background: #8dd7f7;
}

.module.module-skyblue{
  background: #73ccd3;
}

.module.module-pink{
  background: #f6cbd5;
}

.module.module-red{
  background: #eb453d;
}

/* @custom.css box */
.box.box-fill-pink{
  background: #f6cbd5;
  border:2px solid #f6cbd5;
}

.box ol{
  padding-left: 15px;
}

.bordered small{
  margin-top: 10px;
  padding: 5px;
  border: 1px solid black;
  font-style: italic;
}
/* 3. css tag */

ol.bracket {
  counter-reset: list;
}

ol.bracket li {
  list-style: none;
  position: relative;
}

ol.bracket.start-3{
  counter-increment: list 2;
}

ol.bracket.start-4{
  counter-increment: list 3;
}

ol.bracket.start-5{
  counter-increment: list 4;
}

.bracket li:before{
  position: absolute;
  left: -17px;
  counter-increment: list;
  content: counter(list, decimal) ")";
}

ul.triangle-right li {
  list-style: none;
  position: relative;
}

.triangle-right li:before{
  position: absolute;
  left: -17px;
  content: "\25B8";
}

small{
  margin: 0;
  display: block;
  font-size: 11px;
}

small.s10{
  font-size: 10px;
}

.justify-last{
  text-align-last: justify;
}

/* 4. table  */
/* overriding bootstrap */
.table-bordered td,.table-bordered th{
  border:1px solid #000!important;
}

.table thead th,
.table-blue thead th,
.table-gold thead th,
.table-khaki thead th,
.table-orange thead th{
  text-align: center;
  vertical-align: middle;
}

.table.small-padding thead th,
.table.small-padding thead td,
.table.small-padding tbody th,
.table.small-padding tbody td{
  padding: 5px;
}


.table.table-blue thead th{
  background: #8dd7f7;
}

.table.table-gold thead th{
  background: #f9c139;
}

.table.table-khaki thead th{
  background: #d0e399;
}

.table.table-orange thead th{
  background: #f29545;
  color: white;
}



.table td:first-child {
  vertical-align: middle;
  text-align: center;
}

/* 5. color */

.skyblue{
  color: #73ccd3;
}

.bg-antiquewhite{
  background-color: #fcead9;
}

.bg-blue{
  background-color: #8dd7f7;
}

.bg-beige{
  background-color: #eaf2de;
}

.bg-lavender{
  background-color: #daf0f4;
}

.bg-lightpink{
  background-color: #e5b9b7;
}

.bg-mistyrose{
  background-color: #f4dbdb;
}

.bg-orange{
  background-color: #f29545;
}

.bg-peachpuff{
  background-color: #f9d3b2;
}

.bg-sienna{
  background-color: #b04845;
}

.bg-yellowgreen{
  background-color: #99bb57;

}

/* 6. bootstrap-like */
.ml-6,.mx-6{margin-left:3.5rem!important}
.ml-7,.mx-7{margin-left:4rem!important}
.ml-8,.mx-8{margin-left:4.5rem!important}
.ml-9,.mx-9{margin-left:5rem!important}

.daftar-pustaka{
  width: 100%;
}

.daftar-pustaka > p{
  text-indent: -30px;
  margin-left: 40px;
  margin-bottom: 7px;
}

ul.profil {
  list-style: none;
}

ul.profil > li::before {
  content: "\25A0";
  color: blue;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}
