@import url('https://cdn.jsdelivr.net/gh/lazywasabi/thai-web-fonts@7/fonts/Anakotmai/Anakotmai.css');
@import url('https://fonts.cdnfonts.com/css/dk-rum-doodle');

body {
  font-family: 'Anakotmai', sans-serif;
}

body.en-font {
  font-family: 'DK Rum Doodle', cursive;
}

body {
  font-family: 'Tintin', sans-serif; /* ภาษาไทยเริ่มต้น */
}

/* เมื่อใช้ภาษาอังกฤษ ให้เพิ่ม class ชื่อ en-font ไปที่ body */
body.en-font {
  font-family: 'DK Rum Doodle', sans-serif;
}


body {
  margin: 0;
  padding: 0;
  font-family: 'DK Rum Doodle', sans-serif;
  background-image: url('https://preview.redd.it/fpe-with-the-background-v0-gie1wbi6mffd1.jpg?width=1080&crop=smart&auto=webp&s=2d9fa76515dfad357bf832e9d4670dab1bbcbf30'); /* ใส่ภาพพื้นหลังตรงกลางที่คุณต้องการ */
  background-size: cover;
  background-position: center;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.8);
  flex-wrap: wrap;
}

.title {
  font-size: 2.5rem;
}

.settings select {
  font-size: 1.2rem;
  padding: 0.5rem;
  margin-left: 1rem;
  min-width: 120px;
}

.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
}

.side-panel {
  width: 20%;
  height: 500px;
  background-color: rgba(200, 200, 200, 0.4);
  background-image: url('htts://media.discordapp.net/attachments/1335152601246732359/1398225064687702189/image.png?ex=68853ed1&is=6883ed51&hm=d19c17dfa30401270a74601de02deba6d35a4ec3347b8fee33ada25b965e0e0d&=&format=webp&quality=lossless'); /* กรอบซ้าย/ขวา */
  background-size: cover;
}

.generator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 60%;
}

.input-box {
  width: 80%;
  text-align: center;
  font-size: 2rem;
  padding: 1rem;
  border: 2px solid #333;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.9);
}

#generateButton {
  font-size: 2rem;
  padding: 1rem 2rem;
  background-color: #000;
  color: white;
  border: none;
  border-radius: 15px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  .side-panel {
    display: none;
  }
  .generator {
    width: 100%;
  }
  .settings {
    width: 100%;
    margin-top: 1rem;
  }
}
