/*!*******************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/app/menu/dimo.css ***!
  \*******************************************************************************************************************************************************************************************************************************************************************/
.box {
    display: inline-block;
    padding: 10px;
    box-sizing: border-box;
  }
  .img-preview {
    overflow: hidden;
  }
  .indexz0{
    z-index:0;
  }
  .indexz9999{
    z-index:50;
  }
  .indexz2{
    z-index: 9999;
  }
/*!******************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/components/styles/styles.css ***!
  \******************************************************************************************************************************************************************************************************************************************************************************/
/* styles.css หรือ global.css */
.group-link {
  display: flex;
  align-items: center;
  border-radius: 0.5rem;
  padding: 0.25rem;
  --tw-text-opacity: 1;
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.group-link:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(74 73 73 / var(--tw-bg-opacity, 1));
}

.group-link svg {
  height: 1.75rem;
  width: 1.75rem;
  flex-shrink: 0;
  --tw-text-opacity: 1;
  color: rgb(156 163 175 / var(--tw-text-opacity, 1));
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 75ms;
}

.group-link span {
  margin-inline-start: 0.25rem;
  font-weight: 700;
  --tw-text-opacity: 1;
  color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

.group-link span:hover {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.group-link:hover .group-link-span {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}


/* ______________________________________ */
.heading-title-1 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
}

.heading-divider-1 {
  width: 100%;
  height: 2px;
  background-color: black;
  margin-bottom: 16px;
}

/* แบบที่ 2: ตัวบาง (Thin) */
.heading-title-1-thin {
  font-size: 1.5rem;
  font-weight: 300;
  /* ใช้ 300 หรือ 100 เพื่อให้ตัวหนังสือบาง */
  color: #333;
  margin-bottom: 8px;
}

.heading-divider-1-thin {
  width: 100%;
  height: 2px;
  background-color: black;
  margin-bottom: 16px;
}

/* แบบที่ 3: ตัวหนา (Bold) */
.heading-title-bold {
  font-size: 1.5rem;
  font-weight: 700;
  /* ตัวหนา */
  color: #333;
  margin-bottom: 8px;
}

.heading-divider-bold {
  width: 100%;
  height: 2px;
  background-color: black;
  margin-bottom: 16px;
}

/* แบบที่ 4: ตัวบาง (Thin) */
.heading-title-thin {
  font-size: 1.5rem;
  font-weight: 300;
  /* ตัวบาง */
  color: #333;
  margin-bottom: 8px;
}

.heading-divider-thin {
  width: 100%;
  height: 2px;
  background-color: black;
  margin-bottom: 16px;
}

/* แบบที่ 5: ตัวหนา + ตัวใหญ่ */
.heading-title-bold-large {
  font-size: 2rem;
  font-weight: 700;
  /* ตัวหนา */
  color: #222;
  margin-bottom: 8px;
}

.heading-divider-bold-large {
  width: 100%;
  height: 3px;
  background-color: black;
  margin-bottom: 16px;
}

/* แบบที่ 6: ตัวบาง + ตัวใหญ่ */
.heading-title-thin-large {
  font-size: 2rem;
  font-weight: 300;
  /* ตัวบาง */
  color: #222;
  margin-bottom: 8px;
}

.heading-divider-thin-large {
  width: 100%;
  height: 3px;
  background-color: black;
  margin-bottom: 16px;
}

/* แบบที่ 7: ตัวหนา + ตัวเล็ก */
.heading-title-bold-small {
  font-size: 1.2rem;
  font-weight: 700;
  /* ตัวหนา */
  color: #444;
  margin-bottom: 8px;
}

.heading-divider-bold-small {
  width: 100%;
  height: 2px;
  background-color: black;
  margin-bottom: 16px;
}

/* ______________________________________ */
.swal-popup {
  z-index: 9999 !important;
}

.modal {
  z-index: 1050;
}

.image-wrapper {
  display: flex; /* ใช้ flexbox เพื่อจัดตำแหน่ง */
  justify-content: center; /* จัดให้อยู่กลางแนวนอน */
  align-items: center; /* จัดให้อยู่กลางแนวตั้ง */
  width: 100%;
  min-height: 80vh; /* ใช้ min-height แทน */
  flex-shrink: 0;
  position: relative; /* ใช้ relative เพื่อให้สามารถใช้ position กับลูกได้ */
}

.image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 80vh; /* กำหนดความสูงคงที่ */
  overflow: hidden; /* ป้องกันการขยายเกิน */
}
.image-main {
  width: auto;
  height: 80vh;
  max-width: 100%;
  max-height: 80vh; /* ป้องกันการขยายเกิน */
  -o-object-fit: contain;
     object-fit: contain;
  pointer-events: none; /* ป้องกันการโฟกัส */
  position: absolute; /* ใช้ absolute เพื่อจัดตำแหน่งแบบซ้อน */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* ทำให้ตรงกลาง */
}

/* รูปที่อัปโหลด */
.image-uploaded {
  position: absolute; 
  top: 50%;
  left: 50%;
  transform: translate(-60%, 130%) translate(10%, -100%);  /* ทำให้ตรงกลาง */
  width: 70%; 
  height: auto;
  -o-object-fit: cover;
     object-fit: cover;
  z-index: 10;
}

/* รูปซ้อนด้านบนสุด */
.image-overlay {
  position: absolute; 
  top: 50%;
  left: 50%;
  transform: translate(-60%, 130%) translate(10%, -100%); /* ทำให้ตรงกลาง */
  width: 10%; 
  -o-object-fit: cover; 
     object-fit: cover;
  z-index: 10;
}
/* Responsive สำหรับจอใหญ่ (เดสก์ท็อป) */
@media (min-width: 1024px) {
  .image-uploaded,
  .image-overlay {
    width: 55.5%;
    height: auto;
    left: 50.6%;
    top: 51%;
  }
}


@media (max-width: 768px) {
  .image-container {
    width: 100%;
    height: auto;
  }

  .image-main {
    width: 50%;
    height: auto;
  }

  .image-uploaded,
  .image-overlay {
    width: 38%;
    height: auto;
    top: 61%;
    left: 50.5%;
    transform: translateX(-50%);
  }
}

@media (max-width: 425px) {
  .image-container {
    width: 100%;
    height: auto;
  }

  .image-main {
    width: 100%;
    height: auto;
  }

  .image-uploaded,
  .image-overlay {
    width: 1999%;
    height: auto;
    top: 61%;
    left: 50.5%;
    transform: translateX(-50%);
  }
}

@media (max-width: 375px) {
  .image-container {
    width: 10%;
    height: auto;
  }

  .image-main {
    width: 100%;
    height: auto;
  }

  .image-uploaded,
  .image-overlay {
    width: 88%;
    height: auto;
    top: 57%;
    left: 51.2%;
    transform: translateX(-50%);
  }
}

@media (max-width: 320px) {
  .image-wrapper {
    min-height: 60vh; 
  }
  .image-container {
    width: 10%;
    height: auto;
  }

  .image-main {
    width: 100%;
    height: auto;
  }

  .image-uploaded,
  .image-overlay {
    width: 87.5%;
    height: auto;
    top: 59%;
    left: 51%;
    transform: translateX(-50%);
  }
}

/* iPhone SE */
@media (max-width: 375px) and (max-height: 667px) {
  .image-container {
    width: 10%;
    height: auto;
  }

  .image-main {
    width: 100%;
    height: auto;
  }

  .image-uploaded,
  .image-overlay {
    width: 80%;
    height: auto;
    top: 57%;
    left: 51.2%;
    transform: translateX(-50%);
  }
}
/* iPhone 12 Pro */
@media (max-width: 414px) and (max-height: 896px) {
  .image-container {
    width: 10%;
    height: auto;
  }

  .image-main {
    width: 100%;
    height: auto;
  }

  .image-uploaded,
  .image-overlay {
    width: 87.3%;
    height: auto;
    top: 57%;
    left: 51.2%;
    transform: translateX(-50%);
  }
}
/* iPhone 14 Pro Max */
@media (max-width: 430px) and (max-height: 932px) {
  .image-container {
    width: 80%;
    height: auto;
  }

  .image-main {
    width: 100%;
    height: auto;
  }

  .image-uploaded,
  .image-overlay {
    width: 87.2%;
    height: auto;
    top: 57%;
    left: 51.2%;
    transform: translateX(-50%);
  }
}
/* iPad Mini */
@media (max-width: 768px) and (max-height: 1024px) {
  .image-container {
    width: 80%;
    height: auto;
  }

  .image-main {
    width: 130%;
    height: auto;
  }

  .image-uploaded,
  .image-overlay {
    width: 53%;
    height: auto;
    top: 57%;
    left: 50.5%;
    transform: translateX(-50%);
  }
}
/* iPad Air */
@media (max-width: 820px) and (max-height: 1180px) {
  .image-container {
    width: 80%;
    height: auto;
  }

  .image-main {
    width: 130%;
    height: auto;
  }

  .image-uploaded,
  .image-overlay {
    width: 57%;
    height: auto;
    top: 61%;
    left: 50.7%;
    transform: translateX(-50%);
  }
}
/* iPad Pro */
@media (max-width: 1024px) and (max-height: 1366px) {
  .image-container {
    width: 80%;
    height: auto;
  }

  .image-main {
    width: 130%;
    height: auto;
  }

  .image-uploaded,
  .image-overlay {
    width: 87.3%;
    height: auto;
    top: 59%;
    left: 50.8%;
    transform: translateX(-50%);
  }
}
/* iPhone XR */
@media (max-width: 414px) and (max-height: 896px) {
  .image-container {
    width: 10%;
    height: auto;
  }

  .image-main {
    width: 100%;
    height: auto;
  }

  .image-uploaded,
  .image-overlay {
    width: 87.5%;
    height: auto;
    top: 57%;
    left: 51.2%;
    transform: translateX(-50%);
  }
}
/* Sumsung Galaxy Z Fold 5 */
@media (max-width: 344px) and (max-height: 882px) {
  .image-container {
    width: 10%;
    height: auto;
  }

  .image-main {
    width: 100%;
    height: auto;
  }

  .image-uploaded,
  .image-overlay {
    width: 87.5%;
    height: auto;
    top: 57%;
    left: 51.2%;
    transform: translateX(-50%);
  }
}

/* ___________________Overflow-y____________________ */
.overflow-y-auto::-webkit-scrollbar {
  width: var(--sb-size);
}

.overflow-y-auto::-webkit-scrollbar-track {
  background: var(--sb-track-color);
  border-radius: 3px;
}

.overflow-y-auto::-webkit-scrollbar-thumb {
  background: var(--sb-thumb-color);
  border-radius: 3px;
}
/* ___________________Overflow-x____________________ */

.overflow-x-auto::-webkit-scrollbar {
  width: var(--sb-size);
}

.overflow-x-auto::-webkit-scrollbar-track {
  background: var(--sb-track-color);
  border-radius: 3px;
}

.overflow-x-auto::-webkit-scrollbar-thumb {
  background: var(--sb-thumb-color);
  border-radius: 3px;
}

/* รองรับ Firefox */
@supports not selector(::-webkit-scrollbar) {
  .overflow-y-auto {
    scrollbar-color: var(--sb-thumb-color) var(--sb-track-color);
  }
}
:root {
  --sb-track-color: #ffffff;
  --sb-thumb-color: #575555;
  --sb-size: 5px;
}
