body { font-family: sans-serif; padding: 20px; background: #f4f4f4; }
h1, h2 { color: #333; }
.container { max-width: 300px; margin: auto; }
input, textarea { display: block; width: 100%; margin: 10px 0; padding: 8px; }
button { padding: 10px; margin: 5px 0; }
.menu button { display: block; width: 100%; margin: 10px 0; }

/* กำหนดพื้นฐานสำหรับทั้งหมด */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background:
    linear-gradient(to bottom, #d3dafb, #fff),  /* พื้นหลังไล่สี */
    url('images/favicon.png');   /* โลโก้ซ้ำ */
  background-repeat: repeat;
  background-size: 120px;
  background-position: center;
  background-attachment: fixed;
  opacity: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/Logo.png');
  background-repeat: repeat;
  background-size: 120px;
  opacity: 0.05;  /* ความโปร่งใส */
  z-index: -1;
}


/* คอนเทนเนอร์หลัก */
.container {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

/* หัวข้อ */
h2 {
  margin-bottom: 20px;
  font-size: 24px;
  color: #333;
}

/* รูปโลโก้ */
.logo {
  width: 120px;
  margin: 20px 0;
}

/* ฟอร์มอินพุต */
input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}

/* ปุ่มเข้าสู่ระบบ */
button {
  width: 100%;
  padding: 12px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #218838;
}

/* ลิงก์สมัครสมาชิก */
p {
  margin-top: 15px;
  font-size: 14px;
}

a {
  color: #007bff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Messenger */ 
.messenger-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

/* ซ่อนข้อความ tooltip โดยปกติ */
.tooltip-text {
  visibility: hidden;
  opacity: 0;
  background-color: black;
  color: white;
  text-align: center;
  border-radius: 12px;
  padding: 6px 10px;
  position: absolute;
  right: 60px; /* อยู่ซ้ายของไอคอน */
  bottom: 10px;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

/* กล่อง tooltip เมื่อ hover */
.messenger-tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

  