@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);
}
html {
  margin: 0;
}

body {
  font-family: Sarabun;
  margin: 1rem 3rem 3rem 3rem;
  background-color: hsl(253, 6%, 29%);
}

h1, h2, h3, h4 {
  font-family: Kanit;
  font-weight: normal;
  color: hsl(322, 100%, 50%);
}

h1, h2 {
  font-size: 2.5rem;
  margin: 1rem 0rem 1rem 0rem;
  text-align: center;
}

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

p {
  font-size: 2rem;
  line-height: 3rem;
  margin: 1rem 0rem 1rem 0rem;
}

p.g {
  color: hsl(0, 0%, 81%);
}

p.g:before {
  content: "G. ";
  font-family: sans-serif;
  font-size: 80%;
  color: hsl(253, 6%, 64.5%);
}

p.k, p.k1 {
  color: hsl(300, 44%, 78%);
}

p.k1:before {
  content: "K. ";
  font-family: sans-serif;
  font-size: 80%;
  color: hsl(253, 6%, 64.5%);
}

p.karaoke, p.translation {
  display: none;
  font-size: 1.5rem;
  line-height: 1.8rem;
  margin: 0.5rem 0rem 0rem 0rem;
  color: hsl(322, 100%, 90%);
}

p.translation {
  margin-bottom: 2rem;
}

div.buttonRow {
  display: flex;
}

button {
  font-family: sans-serif;
  font-size: 1rem;
  padding: 0.3em 0.5rem 0.1rem 0.5rem;
  color: hsl(253, 6%, 64.5%);
  background-color: hsla(249, 95%, 89%, 0);
  border-radius: 5px;
  border: 1px solid hsl(253, 6%, 64.5%);
  display: inline-block;
  margin: 0.5rem 0.5rem 0rem 0rem;
}

button:hover {
  color: hsl(253, 6%, 29%);
  background-color: hsl(253, 6%, 64.5%);
  cursor: pointer;
}

s {
  text-decoration: none;
  color: hsl(322, 100%, 75%);
}

u {
  text-decoration: none;
  font-weight: normal;
  position: relative;
  display: inline-block;
  line-height: 2rem;
  border-bottom: 2px dotted;
}

ul {
  font-size: 2rem;
  line-height: 3rem;
  list-style: none;
  padding: 0rem 0rem 0rem 0rem;
  margin: 0rem 0rem 0rem 0rem;
}

ul.ul1 {
  counter-reset: counter;
}

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

li::before {
  counter-increment: counter;
  content: "วันที่ " counter(counter, thai) ". ";
  color: hsl(253, 6%, 64.5%);
}

u i {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(100% - 8px);
  width: calc(100% - 0.4rem);
  clip-path: polygon(0% calc(0% + 8px), calc(50% - 8px) calc(0% + 8px), 50% 0%, calc(50% + 8px) calc(0% + 8px), 100% calc(0% + 8px), 100% 100%, 0% 100%);
  border-radius: 9px;
  padding: calc(0.2rem + 8px) 0.2rem 0.2rem 0.2rem;
  font-family: sans-serif;
  font-style: normal;
  font-size: 0.7rem;
  line-height: 0.84rem;
  text-align: center;
  background-color: hsl(322, 100%, 25%);
  color: hsl(322, 100%, 90%);
}

u:hover {
  border-bottom-color: hsl(253, 6%, 29%);
}

u:hover i {
  display: inline-block;
}

p.divider {
  color: hsl(253, 6%, 50.3%);
  white-space: nowrap;
  text-align: center;
}

img.center {
  display: block;
  margin: 2rem auto 2rem auto;
  width: 100%;
  height: auto;
}

img.center50 {
  display: block;
  margin: 2rem auto 2rem auto;
  width: 50%;
  height: auto;
}

div.gallery {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

div.gallery img {
  width: 100%;
  flex: 0 0 calc(33.3333% - 13.3333333333px);
}

textarea {
  box-sizing: border-box;
  field-sizing: content;
  width: 100%;
  min-height: 5vh;
  max-height: 70vh;
  font-size: 2rem;
}

@media (max-width: 768px) {
  div.gallery img {
    flex: 0 0 calc(50% - 10px);
  }
}
