@font-face {
  font-family: "Sarabun";
  src: url(../../../../../fonts/Sarabun/Sarabun-Regular.ttf);
}
@font-face {
  font-family: "Kanit";
  src: url(../../../../../fonts/Kanit/Kanit-Regular.ttf);
}
@font-face {
  font-family: "Prompt";
  src: url(../../../../../fonts/Prompt/Prompt-Regular.ttf);
}
@font-face {
  font-family: "PlexSans";
  src: url(../../../../../fonts/IBM_Plex_Sans_Thai/IBMPlexSansThai-Medium.ttf);
}
@font-face {
  font-family: "NotoSansThai";
  src: url(../../../../../fonts/NotoSansThai/NotoSansThai-Regular.ttf);
}
@font-face {
  font-family: "Fraunces";
  src: url(../../../../../fonts/Fraunces_72pt/Fraunces_72pt-Regular.ttf);
}
:root {
  margin: 0;
}

*, *:before, *:after {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  background-color: #4d4d4d;
  overflow-x: clip;
}

h1, h2 {
  font-family: serif;
  font-weight: normal;
  color: hsl(76, 19%, 55%);
  text-align: center;
  margin: 1rem 1rem 1rem 1rem;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 4rem;
}

h2 {
  font-size: 2rem;
  margin: 0rem 0rem 2rem 0rem;
  padding: 0.5rem 1rem 0rem 1rem;
  text-align: left;
}

ul {
  margin: 0rem 1rem 1rem 1rem;
}

li {
  color: hsl(0, 0%, 81%);
  font-size: 2rem;
  margin-top: 2rem;
}

p {
  color: hsl(76, 19%, 55%);
  font-size: 2rem;
  margin-top: 0.5rem;
}

p em {
  font-style: normal;
  color: hsl(130, 100%, 76%);
}

u {
  position: relative;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 2px dotted;
}

u i {
  font-family: sans-serif;
  font-size: 1rem;
  line-height: 1.1rem;
  text-align: center;
  font-style: normal;
  white-space: normal;
  position: absolute;
  left: 50%;
  top: 2.35rem;
  -webkit-transform: translateX(-50%);
      -ms-transform: translateX(-50%);
          transform: translateX(-50%);
  width: clamp(6.5rem, 100%, 120%);
  color: #ededed;
  background-color: hsl(0, 0%, 25%);
  padding: 0.25rem;
  border-radius: 0.5rem;
  opacity: 0;
}

u:hover i {
  display: block;
  opacity: 1;
  z-index: 1;
}

u > i:after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  border-width: 10px;
  margin-left: -10px;
  border-style: solid;
  border-color: transparent transparent hsl(0, 0%, 25%) transparent;
}

@media (min-width: 320px) {
  figure {
    width: 32%;
  }
}
@media (min-width: 1025px) { /* big landscape tablets, laptops, and desktops */
  figure {
    width: 24%;
  }
}