body {
  padding: 0;
  margin: 0;

  font-family: "Sarabun", sans-serif;
  font-weight: 400;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
}

/* Split Cell */

.split-cell {
  position: relative;
}

.split-cell > * {
  padding: 0.25em;
  box-sizing: border-box;
}

.split-cell *:nth-child(1) {
  position: absolute;
  top: 0;

  width: 100%;
  height: 100%;
  clip-path: polygon(3% 0, 100% 0, 100% 97%);

  text-align: right;
}

.split-cell *:nth-child(2) {
  position: absolute;
  top: 0;

  width: 100%;
  height: 100%;
  clip-path: polygon(97% 100%, 0 100%, 0 3%);

  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Table */

.consonant-table {
  margin-inline: auto;
  font-size: clamp(1rem, 3vw, 1.25rem);
  border-width: 3px;
}

.consonant-table > caption {
  font-size: 3rem;
  font-weight: bold;
  margin-block: .25em;
}

.consonant-table, th, td {
  border-color: rgb(0, 0, 0);
  border-style: solid;
  border-collapse: collapse;

  min-width: 3.5em;
  padding-block: clamp(0rem, 2vw, 0.5rem);
  text-align: center;

  transition: 0.5s;
}

th:empty, td:empty {
  border: none;
}

.consonant-table td {
  font-size: 1.5em;
}

.sukhothai-left {
  border-right-width: 1px;
}

.sukhothai-right {
  border-left-width: 1px
}

.extra-row {
  border-inline-width: 1px;
}

.group-highlight {
  background-color: rgb(160, 121, 172);
}

.group-trigger-highlight {
  background-color: rgb(255, 243, 210);
  border-color: rgb(255, 217, 0);
  font-weight: bold;
}

.k-protocol {
  background-color: rgb(255, 121, 121);
}

.ng-protocol {
  background-color: rgb(94, 255, 129);
}
.t-protocol {
  background-color: rgb(132, 169, 255);
}

.n-protocol {
  background-color: rgb(255, 172, 117);
}

.p-protocol {
  background-color: rgb(255, 223, 136);
}

.m-protocol {
  background-color: rgb(196, 146, 123);
}

.y-protocol {
  background-color: rgb(158, 131, 255);
}

.w-protocol {
  background-color: rgb(255, 182, 243);
}

.no-protocol {
  background-color: rgb(196, 196, 196);
}

.unhighlight {
  background-color:rgb(78, 74, 74);
}

@media only screen and (max-width: 1440px) {
  .consonant-table {
      font-size: 12px;
  }
}

/* Consonant Info */

.consonant-information {
  background-color: lightgreen;
  padding: 2.5em;
  font-size: 1.25rem;
}

.consonant-appearance-container {
  display: flex;
  gap: 1em;
}

.name-form-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.info-name {
  font-size: 3rem;
  margin: 0;
}

.consonant-handwriting {
  width: 10vw;
}

.consonant-forms {
  height: 6vw;
}

.toggle-block {
  background-color: lightskyblue;
  padding-inline: 1.5em;
  padding-block: 0.001em;
}

.toggle-trigger {
  
}

.toggle-trigger:hover {
  cursor: pointer;
}

.toggle-affected {
  display: none;
}

.show {
  display: block;
}


.main-footer {
  bottom: 0;
  padding: 2rem;
  margin-top: 3rem;
  color: black;
  text-align: right;
}