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

/* el {
  transform-style: preserve-3d;
}
el:after {
  transform: translateZ(-1px);
} */
.element {
  position: relative;  /* optional */

  height: 100px;
  background-color: blue;
  max-width: 100%;
  /* padding: 1.5rem; */

  --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))
    );
}

.element::before {
  content: "";
  width: 150px;
  height: 150px;
  background-color: red;

  /* create a new stacking context */
  position: absolute;
  top:3px;
  left:3px;
  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))
    );
  z-index: -1;
}
.element > div{
  padding: 1.5rem;
}
/* 1. sub title */
.book__body h3.decor, .book__body h4.decor{
  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 {
  max-width: 100%;
  padding: 1.5rem;

  --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.p module.ol module.li{
  vertical-align: middle;
  text-align: justify;
}

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

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

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

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

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

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

/* 3. css tag */

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

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

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

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

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

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

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

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

/* 5. 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}
