@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");
* {
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100vh;
  height: auto;
  font-family: 'Kanit', sans-serif;
}

/* ให้โครงหน้าหลักซ้อนกันแบบ header > main > footer */
body {
  display: flex;
  height: auto;
  flex-direction: column;
  overflow-x: hidden;
}

/* main กินพื้นที่ที่เหลือ และกันไม่ให้โดน footer ทับ */
main#page-main {
  flex: 1 0 auto;
  padding-bottom: 80px; /* กัน footer ทับเนื้อหา ปรับเลขได้ตามจริง */
  transition: opacity 0.3s ease;
  width: 100%;
}

main#page-main.is-loading {
  opacity: 0;
}


/* ใช้กับเนื้อหาตรงกลางเท่านั้น */
#page-main {
  transition: opacity 0.3s ease;
}

#page-main.is-loading {
  opacity: 0;
}


/* a blue color as a generic focus style */
button:focus-visible {
    outline: 2px solid #4a90e2 !important;
    outline: -webkit-focus-ring-color auto 5px !important;
}
a {
    text-decoration: none;
}

/* ใช้ร่วมกันทุกหน้าได้ */
.form-container {
  border-radius: 16px;
}

/* เฉพาะหน้า wallet */
body[data-page="wallet"] .form-container {
  width: 100%;
  background: rgba(255,255,255,0.08);
}

/* เฉพาะหน้า deposit */
body[data-page="deposit"] .form-container {
  width: auto;
  height: auto;
  background: #ffffff00;
}
