@charset "UTF-8";
@font-face {
  font-family: "Sarabun";
  src: url(../../../fonts/Sarabun/Sarabun-Light.ttf);
}
@font-face {
  font-family: "Kanit";
  src: url(../../../fonts/Kanit/Kanit-Light.ttf);
}
@font-face {
  font-family: "Prompt";
  src: url(../../../fonts/Prompt/Prompt-Light.ttf);
}
@font-face {
  font-family: "PlexSans";
  src: url(../../../fonts/IBM_Plex_Sans_Thai/IBMPlexSansThai-Regular.ttf);
}
@font-face {
  font-family: "NotoSerifThai_Condensed";
  src: url(../../../fonts/NotoSerifThai_Condensed/NotoSerifThai_Condensed-Light.ttf);
}
@font-face {
  font-family: "NotoSerifThai";
  src: url(../../../fonts/NotoSerifThai/NotoSerifThai-Regular.ttf);
}
html {
  margin: 0;
  color: hsl(0, 38%, 62%);
}

*, *:before, *:after {
  box-sizing: border-box;
}

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

body {
  margin: 3rem 2rem 1rem 2rem;
  background-color: #DEDAC4;
  font-family: Sarabun;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
}

nav ul li {
  text-align: center;
}

nav ul li a {
  font-family: monospace;
  font-size: 2rem;
  text-decoration: none;
  color: hsl(0, 21%, 41%);
  background-image: linear-gradient(#e5e1d0, #c0b88e);
  border: 1px solid hsl(71, 10%, 35%);
  border-right: none;
  padding: 0.5rem 1.5rem 0.2rem 1.5rem;
}

nav ul li a:hover {
  background-image: linear-gradient(#c0b88e, #e5e1d0);
}

nav ul li a.aFirst {
  border-radius: 1000px 0 0 1000px;
}

nav ul li a.aLast {
  border-right: 1px solid hsl(71, 10%, 35%);
  border-radius: 0 1000px 1000px 0;
}

h1, h2, h3, h4 {
  font-weight: 400;
}

h1 {
  font-size: 4rem;
  margin: 1rem 0rem 1rem 0rem;
  text-align: center;
  color: #544F73;
}

h2.chapterNum {
  font-size: 2rem;
  margin: 1rem 0rem 1rem 0rem;
  text-align: center;
  color: #C34820;
}

p {
  letter-spacing: 1px;
  font-size: 2.5rem;
  line-height: 4rem;
  color: hsl(71, 10%, 35%);
  font-family: Sarabun;
  margin: 0rem 0rem 2rem 0rem;
}

span {
  white-space: nowrap;
}

p.finishLine {
  text-align: center;
  color: #b9b183;
}

div.poem {
  padding: 0;
  margin: 0rem 0rem 2.5rem 0rem;
}

div.poem p {
  text-align: center;
  margin: 0rem 0rem 0rem 0rem;
  padding: 0;
}

div.poemFlex {
  display: flex;
  justify-content: center;
  column-gap: 1rem;
}

div.poemFlex div {
  font-family: "NotoSerifThai_Condensed";
}

div.poemFlex div p {
  color: hsl(114, 49%, 33%);
  line-height: 3.8rem;
  margin: 0;
}

img.floatR {
  float: right;
  max-width: 50%;
  margin-left: 30px;
}

img.floatL {
  float: left;
  max-width: 50%;
  margin-right: 30px;
}

img.center {
  position: relative;
  max-width: 100%;
  left: 50%;
  transform: translateX(-50%);
}

img.vertical {
  max-width: 50%;
  margin: auto;
}

figure {
  display: flex;
  flex-direction: column;
  margin-bottom: 3rem;
}

figcaption {
  font-size: 2rem;
  text-align: center;
  max-width: 50%;
  background: black;
  color: white;
  transform: translateX(50%);
  padding: 1rem 1rem 1rem 1rem;
}

u {
  text-decoration: none;
  position: relative;
  display: inline-block;
  border-bottom: 2px dotted #807d97;
  line-height: 3rem;
}

u > em, u > i {
  font-size: 1rem;
  font-style: normal;
  font-weight: 300;
  line-height: 1.2em;
  opacity: 0;
  transition: opacity 0.5s;
  background-color: hsl(248, 11%, 64%);
  color: white;
  text-align: center;
  border-radius: 5px;
  padding: 0.25rem 0.5rem 0.5rem 0.5rem;
  position: absolute;
  z-index: 1;
  top: 100%;
  width: calc(100% - 15px);
  left: 50%;
  margin-left: -50%;
  display: table;
}

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

u:hover {
  border-bottom: none;
}

u:hover > em, u:hover > i {
  visibility: visible;
  opacity: 1;
}

#fcFromUBtn {
  background-color: #cfc9a9;
  color: hsl(0, 100%, 21%);
}

p.maneeDir {
  color: hsl(294, 75%, 34%);
  font-size: 2rem;
  line-height: 2.4rem;
  margin: 2rem 0rem 1.5rem 0rem;
  border-bottom: 2px dotted;
}

p.maneeDir::before {
  content: "ชั้นประถมศึกษาปีที่ ";
}

p.maneeFile {
  font-size: 2rem;
  line-height: 2rem;
  margin: 0rem 0rem 0.5rem 2rem;
}

p.maneeFile a {
  text-decoration: none;
  color: hsl(13, 80%, 40%);
}