/* assets/css/style.css */

/* Reset & Global */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
  font-family:'Segoe UI',sans-serif;
  background: linear-gradient(to bottom right,#f0f8ff,#ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Container */
.container {
  width: 90%;
  max-width: 420px;
  background: #fff;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  text-align: center;
}

/* Headings */
h1,h2 {
  color: #0073e6;
  margin-bottom: 24px;
  font-weight: bold;
}

/* Inputs */
input[type="tel"],
input[type="text"],
input[type="password"],
input[type="number"] {
  width: 100%;
  padding: 14px;
  margin: 8px 0;
  font-size: 16px;
  border: 2px solid #ccc;
  border-radius: 12px;
}

/* Buttons */
.btn {
  width: 100%;
  padding: 14px;
  margin: 8px 0;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s, transform 0.1s;
  background: #0073e6;
  color: #fff;
}
.btn:hover {
  background: #005bb5;
  transform: translateY(-1px);
}

/* Link-style buttons */
.btn.link {
  background: #e0e0e0;
  color: #333;
}
.btn.link:hover {
  background: #ccc;
}

/* Lists */
ul {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}
ul li {
  margin-bottom: 8px;
}
ul li .btn {
  text-align: left;
}

/* Separator */
hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 24px 0;
}
.logo {
  display: block;
  margin: 16px auto 8px;  /* ไม้บรรทัด: บน 16px / ซ้าย-ขวา auto / ล่าง 8px */
  max-width: 180px;
}
/* ปรับเพิ่ม padding ด้านขวาให้คอลัมน์ วันที่ กับ เวลา */
.history-table td:nth-child(1),
.history-table td:nth-child(2) {
  padding-right: 24px;
}

/* จัดให้คอลัมน์ จำนวนแต้ม ชิดขวา และมี padding ซ้าย */
.history-table td:nth-child(3) {
  text-align: right;
  padding-left: 24px;
}

.logo {
  display: block;
  margin: 0 auto 0.25rem;  /* เดิม 0.5rem ลดเหลือ 0.25rem หรือจะเป็น 0 ก็ได้ */
}

.container h1 {
  margin: 0 0 24px;       /* บน 0 / ซ้าย-ขวา 0 / ล่าง 24px */
}

/* แต่งตัวเลขแต้มให้เด่นขึ้น */
#pointDisplay {
  display: block;               /* ขึ้นบรรทัดใหม่ */
  font-size: 2.5rem;            /* ปรับขนาดตามชอบ */
  font-weight: bold;            /* หนาเด้ง */
  color: #e91e63;               /* เปลี่ยนสี ตามตัวอย่างเป็นชมพูส้ม */
  margin-top: 0.5rem;           /* เว้นบรรทัดล่างนิดหน่อย */
}

/* ถ้าอยากให้คำว่า "แต้ม:" มีสีอื่น ก็เพิ่ม */
p strong {
  color: #333333;               /* สีเทาเข้ม */
  font-size: 1.2rem;            /* ขนาดใหญ่ขึ้นนิด */
}

/* สีบวก = เขียว */
.history-table td.positive {
  color: #4ae555;
  font-weight: bold;
}

/* สีลบ = แดง */
.history-table td.negative {
  color: #e91e63;
  font-weight: bold;
}
/* วางท้ายไฟล์ assets/css/style.css */

body {
  position: relative;
  /* ให้ content อยู่เหนือ watermark */
  z-index: 1;
}

.watermark {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 4rem;
  color: #000;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
}
.container {
  position: relative;
  z-index: 1; /* เก็บเนื้อหาให้เหนือ watermark */
}


