body {
   font-family:Kanit-Medium
}

/* Custom styles */
.number-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
  place-items: center;
}
.toggle-number-button {
  	padding: 10px;
  	font-size: 20px;
  	width: 50px;
  	height: 50px;
	background-color: orange;
    color: white;
    cursor: pointer;
    border: 2px solid red;
    border-radius: 25px;
}


.toggle-number-button-hide {
  	padding: 10px;
  	font-size: 20px;
  	width: 50px;
  	height: 50px;
	background-color: transparent;
    color: transparent;
    cursor: pointer;
	border: 0px transparent;
}


.toggle-number-button:disabled {
  background-color: grey;
  cursor: not-allowed;
}
.display-area {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: center;
  min-height: 30px;
}
.display-area span {
    display: inline-block;
    width: 22px;
    height: 22px;
    line-height: 22px;
    margin: 1px;
    border: 2px solid red;
    border-radius: 50%;
    text-align: center;
    background-color: orange;
    color: white;
}
.jubwin-popup {
  background-color: darkslategray; /* Custom background color */
}

#apply-button {
  margin-top: 20px;
}


.aff_member_next{
	border: 1px solid black;
    min-width: 100px !important;
    padding: 5px;
	background-color:yellow;
}


.aff_member_back{
	border: 1px solid black;
    min-width: 100px !important;
    padding: 5px;
	background-color:yellow;
}

/* Define the animation for showing the alert */
@keyframes fadeInAffi {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Define the animation for hiding the alert */
@keyframes fadeOutAffi {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* Define classes that use the animations */
.swal2-show-affi {
  animation: fadeInAffi 0.5s;
}

.swal2-hide-affi {
  animation: fadeOutAffi 0.5s forwards; /* 'forwards' makes sure the element stays hidden */
}

.goldpattern-super {
    /* background: url(https://cdn.duoplay.co/gold-pattern.jpeg) top center; */
    background-image: linear-gradient(to bottom, gold, white);
    background-size: 100%;
}

.grandpattern {
    /* background: url(https://cdn.duoplay.co/gold-pattern.jpeg) top center; */
    background-image: linear-gradient(to bottom, orange, gold);
    background-size: 100%;
}

/* Main Table Style */
.superpoys-table {
    width: 100%;
    border-collapse: collapse;
    color: #333333; /* Charcoal Grey Text */
}

/* Table Headers */
.superpoys-th {
    background-color: #353048; /* Muted Gold for Headers */
	color:white;
    padding: 2px;
    text-align: left;
    font-weight: bold; /* Bold Text for Header */
}

/* Table Data Cells */
.superpoys-td {
    padding: 2px;
	background-color:#f5f5f5;
}

/* Highlighted Row or Cell */
.superpoys-td .highlight {
	background-color: transparent !important;
}

.superpoys-td-wait {
    padding: 2px;
	background-color:#ffffff;
}

/* Highlighted Row or Cell */
.superpoys-td-wait .highlight {
	background-color: transparent !important;
}

.superpoy-item{
	border: 1px solid lightgrey;
}


.swal2-radio label {
  border-color: #3085d6;
  padding: 2px;
  border: 2px solid ; /* Default state has no visible border */
  border-radius: 3px; /* Optional: if you want rounded corners */
}

.swal2-radio label.selected {
  background-color:lawngreen
}

.huay-step3-table-header{
    width: 100%;
    background-color: orangered;
}
.realpoy-row{
	padding-top:2px;
	padding-bottom:2px;
}

.huay-step3-table-body{
    width: 100%;
    background-color: darkslategray;
    color: bisque;
}

.icon-calendar{
	position:absolute;
	right:0px;
	top:3px;
}


body:not(.nohover) tbody tr:hover {
  background-color: forestgreen;
}


.huay-step3-table-body td:hover::after,
.huay-step3-table-body th:hover::after {
  background-color: forestgreen;
}

.huay-step3-table-body td:focus::after,
.huay-step3-table-body th:focus::after {
  background-color: forestgreen;
}

/* Focus stuff for mobile */
.huay-step3-table-body td:focus::before,
.huay-step3-table-body tbody th:focus::before {
  background-color: forestgreen;
  content: '';  
  height: 100%;
  top: 0;
  left: -5000px;
  position: absolute;  
  width: 10000px;
  z-index: -1;
}


.huay-result-date-picker{
	width: 98%;
    background-color: white;
    border: 0px;
    color: black;
    text-align: center;
	font-family:Kanit-Medium;
	
}

.huay-result-date-picker::placeholder {
  color: black;
  opacity: 1; /* Firefox */
  font-family:Kanit-Medium;
}

.huay-result-date-picker::-ms-input-placeholder { /* Edge 12 -18 */
  color: black;
	 font-family:Kanit-Medium;
}

.huay-result-picker-container{
	width: 100%;
	border:1px black solid;
	background-color: white;
}


.icon-calendar {
   position: absolute;
    right: 4px;
    top: px;
    height: 16px;
    width: 16px;
    color: black;
    transform: rotate(90deg);
}

.icon-calendar::before,
.icon-calendar::after {
    content: '';
    position: absolute;
}

.icon-calendar::before {
    top: 3px;
    left: 2px;
    right: 2px;
    height: 3px; /* Small strip at the top of calendar icon */
}


.type-container {
  display: flex;
  flex-wrap: nowrap; /* Prevents the columns from wrapping */
  width: 100%;
  font-size:small;
  color:white;
  height: 14vh;
}

.type-side {
  box-sizing: border-box;
  margin: 2px;
  padding: 2px;
  border: 1px solid #ccc;
  height: auto;
  text-align:center;
  flex-direction: column; /* Stack children vertically */
  justify-content: center; /* Center children vertically */
}
.type-side p{
  margin: 0px;
  padding: 0px;
  font-weight:bold;
  font-size:small
}

/* Fixed width for the left column */
.type-side:first-child {
  flex-shrink: 0; /* Prevents the column from shrinking */
}

/* Right column takes the remaining space */
.type-side:last-child {
  flex-grow: 1;
  min-width: 0; /* Prevents overflow */
  max-height: 150px; /* Replace with the calculated height */
  overflow-x: auto;
}
.type-side:last-child .some-inner-element {
  /* Example style to allow horizontal expansion, adjust as needed */
  white-space: nowrap;
}

.checkbox-type-group {
  display: inline-block;
}
.checkbox-type-group label{
  padding: 0.3vh;
  margin: 0.2vh;
  height: 3vh;
  line-height: 3vh;
  display: inline-block;
  align-items: center;
  cursor: pointer;

  border-radius: 2px;
  cursor: pointer;
	
  color:#a42125;
	
  background-image: linear-gradient(to bottom, white, lightgrey);
	
}


.checkbox-type:checked + label {
  background-image: linear-gradient(to bottom, #f6d155, #f6d155);

}
.checkbox-spe:checked + label {
     background-image: linear-gradient(to bottom, #f6d155, #f6d155);
}

.checkbox-type {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.checkbox-spe {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Media query for smaller screens */
@media (max-width: 5000px) {
  .type-side {
    width: calc(50% - 10px); /* Adjusts the width of each column */
  }
}



.wp-block-image img {
    width: 100% !important;
    height: auto;
}

figure{
    margin-block-start: 0em;
    margin-block-end: 0em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
}

figure.aligncenter.size-full.is-resized img {
    width: 100% !important;
    height: auto;
}

figure.aligncenter.size-full.is-resized a {
    display: none;
}

.buy-huay{
    display:none
}

figure.aligncenter.size-full {
    width: 100%;
    height: auto;
    margin: 0 !important;
}

ul#news-list {
    padding-left: 5px;
}

 .news-list-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px; /* Space between items */
	 
  }
  .news-list-item img {
    height: 80px; /* Set your desired image height */
    margin-right: 10px; /* Space between image and text */
  }

  .news-list-item-content {
    /* Content styling */
	color:white;
  }
  
  .news-list-item-title {
    color:white;
/*     margin: 0 0 5px 0;  */
  }
  .news-list-item-desc {
    /* Description styling */
	      color:white;
  }

.no-transition {
  transition: none !important;

}



/* Fade-in animation */
.swal2-fade-in {
  animation: swal2-fadeIn 0.3s;
}

@keyframes swal2-fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Fade-out animation */
.swal2-fade-out {
  animation: swal2-fadeOut 0.3s;
}

@keyframes swal2-fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
/* Hero Slider styles */
.hero-slider {
  position: relative;
  width: 100%;
  height: 28vh; /* 1/3 of the viewport height */
  overflow: hidden;
}

.hero-slider a .slide {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease-in-out;
  transform: translateX(100%);
}

.hero-slider a .slide.active {
  transform: translateX(0);
}

.prev-button, .next-button {
  cursor: pointer;
  font-size: 2em;
  color: white;
  user-select: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
 padding: 15px;
}

.prev-button {
  left: 10px;
}

.next-button {
  right: 10px;
}


/* Additional styles for slide content */
.hero-slider .slide .slide-content {
    position: absolute;
    bottom: 0px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 8px;
    width: 100%;
}

.hero-slider .slide h2 {
  margin-top: 0;
}

.hero-slider .slide p {
  font-size: 1em;
}


/* Slider Controls styles */
.slider-controls {
  position: absolute;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  z-index: 10;
}


/* Slider Dots styles */
.slider-dots {
  text-align: center;
  position: absolute;
  bottom: 2px;
  width: 100%;
}

.slider-dots .dot {
  height: 8px;
  width: 8px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.slider-dots .dot.active {
  background-color: #717171; /* Active dot color */
}


/* Banner styles */
.banner {
  background: #ddd; /* Placeholder color */
  padding: 20px;
  text-align: center;
}

/* News List styles */
.news-list {
  display: flex;
  flex-direction: column;
}

.news-item {
  border-bottom: 1px solid #ccc;
  padding: 15px;
}
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px red; 
  border-radius: 10px;
}
 
/* Handle */
::-webkit-scrollbar-thumb {
  background: red; 
  border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: red; 
}
.del_item_chosen{
	color:red;
}

.login-button {
  background-color: #4CAF50;
  border: none;
  color: white;
  padding: 5px 10px;
  width:150px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  margin: 4px 2px;
  cursor: pointer;
}

.icon-grid {
	display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3vh;
    padding-top: 2vh;
    padding-left: 3vh;
    padding-right: 3vh;
	padding-bottom: 1vh;
    border-bottom: white 1px solid;
    border-top: white 1px solid;
}

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.icon {
  width: 100%;
  padding-top: 100%; /* This keeps the aspect ratio 1:1 */
  background-size: cover; /* This will cover the area without stretching the image */
  background-position: center; /* Center the image within the div */
  position: relative; /* Needed for the background image */
  box-sizing: border-box;
}

.icon-item p {
	text-align: center;
	margin-top: 4px;
	margin-bottom: 0px;
	color: white;
}

/* Responsive adjustments */
@media (max-width: 800px) {
  .icon-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

video::-webkit-media-controls-start-playback-button {
    display: none !important;
	opacity: 1 !important;
}
video{
	border: 1px outset #ddd;
}

.wrapper {
  width: 100%;
  height: 98%;
  margin-right:5%;
/*   display: flex; */
  flex-wrap: wrap;
 overflow-y: scroll;
}

@arrowColor: #ffcc00;
@arrow: escape('@{arrowColor}');


.customtextbox{
	text-align:center;
	display:block;
	background-color:white;

  border-radius:2px;
  border: medium solid;
  color: black;
  border-color:yello;
  font-size: 4vmin;
}

.customdropdown{
	text-align:center;
    display:block;
	background-color:white;

  border-radius:2px;
  border: medium solid;
  color: black;
  border-color:yello;
  font-size: 4vmin;
}
/* .wrapper > div {
  flex: 1 1 50%;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
  transition: 0.3s;
} */

/* .cc-kegp{
display:none !important;
} */

.wrapper-annouce {
  width: 100%;
  height: 98%;
  padding-right:5%;
  display: flex;
  flex-wrap: wrap;
 overflow-y: scroll;
}

.wrapper-annouce > div {
  flex: 1 1 50%;
  transition: 0.3s;
}

.styled-table {
    border-collapse: collapse;
/*     margin: 25px 0; */
    font-size: 0.9em;

	width: 95%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.styled-table thead tr {
    background-color: #009879;
    color: #ffffff;
    text-align: left;
}

.styled-table th{
    font-size: 12px;
}

.styled-table th,
.styled-table td {
    padding: 1vh;
	color: #ffffff;
	text-align: center;
}

.styled-table tbody tr {
    border-bottom: 1px solid #dddddd;
}

/* .styled-table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
} */

.styled-table tbody tr:last-of-type {
    border-bottom: 2px solid #009879;
}

.styled-table tbody tr.active-row {
    font-weight: bold;
    color: #009879;
}

.affiliate-container{
 color: black;
}



/* ====================================== */
/* on/off switch toggle */
/* ====================================== */
.parent-div {
 
    width: 200px; /* or any desired width */
    height: 150px; /* or any desired height */
    /* Just to visualize the parent div */
		
}


.dropup {
    position: absolute;
    bottom: 0;
    right: 0;
	border: 2px solid white;
	border-radius: 5px;
}
.dropup-content {
    display: none;
    position: absolute;
    bottom: 100%;
    right: 0; /* Position the drop-up content to the right of the button */
    background-color: #555;
    border: 2px solid white;
	z-index: 1;
    white-space: nowrap; 
    text-align: right; /* Align the content to the right */
	margin-right: -2px;
}

.dropup-button {
    background: grey;
    color: white;
    padding: 4px 6px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
	
}


.dropup-content .toggle-sound-group {
    padding: 10px 16px;
    display: flex;        
    justify-content: flex-end; /* Align content to the right within the flex container */
    align-items: center;  
	color: white;
}

/* Toggle Switch */
.toggle-sound-group input[type="checkbox"] {
    display: none;
}

.slider-sound {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    background-color: #ccc;
    cursor: pointer;
    vertical-align: middle;
    margin-left: 10px;
}

.slider-sound:before {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    background-color: white;
    transition: 0.4s;
}

input:checked + .slider-sound {
    background-color: #2196F3;
}

input:checked + .slider-sound:before {
    transform: translateX(30px);
}