:root {
  --primary-color: #2cb3e2;
  --secondary-color: #9967fe;
  --title-color: #2d3693;
  --back-btn: #d9d9d9;
  --font-normal: #1e1e1e;
  --description: #888;
}
body {
  font-family: "Prompt";
  line-height: 1.4;
overflow-x: hidden;
}
span.title {
  font-size: 28px !important;
  color: var(--title-color);
  font-weight: 700;
  padding: 8px 8px 0px 8px;
}
span.sub-title {
  font-size: 20px !important;
  color: var(--secondary-color);
  padding: 8px;
}

.footbar {
  button {
    border-radius: 0px !important;
    font-size: 20px !important;
    font-weight: 500;
    padding: 8px;
  }
  button.back-btn {
    background-color: var(--back-btn) !important;
    color: #717171 !important;
  }
  button.crg-btn {
    background-color: var(--secondary-color);
    color: #fff;
  }
}
.bg-style-1 {
  background-image: url(/css/crg/assets/image/bg-2.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  -moz-box-shadow: 0 0 5px 5px #888;
  -webkit-box-shadow: 0 0 5px 5px#888;
  box-shadow: 0 0 5px 5px #888;
}
.nav-white {
  background: linear-gradient(180deg, rgba(221, 200, 230, 1) 1%, rgba(229, 211, 232, 1) 17%, rgba(242, 242, 242, 1) 100%);
  text-align: center;

  span {
    display: block;
  }
}
.nav-spin {
  background-color: rgba(0, 0, 0, 0.25);
  text-align: center;
  span {
    display: block;
  }
  span.title {
 
    color: #fff !important;
  
 
  }
  span.sub-title {
    
    color: #ffc107  !important;

  }
}
h3.page-title {
  color: var(--secondary-color);
}
/* daily reward page */
.countdown-box {
  text-align:right;
  padding: 8px 10px 8px 4px;
  width: 110px;
  border-color: var(--secondary-color);
  border-width: 3px 0 3px 3px;
  border-style: solid;
  background-color: #fff;
  color: #ff5c5c;
  float: right;
  position: fixed;
  right: 0;
  top: 50%;
  border-radius: 50px 0 0 50px;
  font-size: 20px !important;
}
.daily-progress {
  position: fixed;
  bottom: 0;
  height: 0.6rem !important;
  width: 100%;
  border-radius: 0px !important;

  .progress-bar {
    background-color: var(--secondary-color);
    border-radius: 0 20px 20px 0;
  }
}

/* spin wheel page */

.spin-content {
  position: fixed;
  height: 100vh;
  align-content: center;
  box-shadow: inset 0px 150px 150px 0px rgba(0, 0, 0, 1);
  top: 0;
  width: 100vw;

  .spin-bg {
    width: 100%;
    max-width: 350px;
    display: block;
    margin: 0 auto;
  }
  .spin-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 50px;
  }
}
.spin-detail {
  a.term-link {
    padding: 8px 0;
    display: block;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
  }
}

.modal-dialog.reward-popup {
  transform: translateY(50%) !important;

    margin-top: 10vh;

  .modal-title {
    color: var(--success);
  }
  .modal-body > * {
    padding: 8px 0;
  }
  .collect-time {
    color: #717171;
  }
  .modal-close {
    color: #fff;
    background-color: var(--primary-color);
    border-radius: 30px;
    padding: 8px 16px;
  }
  .btn-danger{
    color: #fff;
    background-color: red;
    border-radius: 30px;
    padding: 8px 16px;
  }
  .modal-footer {
    justify-content: center;
  }
	.modal-body {
padding:0px !important;
	h4 img{
	width:150px !important;
}
}
}

/* question list page */
.quest-list {
  padding-top:100px;
  .card .flex-row {
    background-color: rgb(191, 234, 255, 10%);
    padding: 8px;
    border: 1px solid rgb(205, 205, 205, 20%);
  }
  .card .flex-row.item-disable {
    background-color: rgb(163, 163, 163, 10%);
    padding: 8px;
    border: 1px solid rgb(205, 205, 205, 20%);
  }
.item-inactive{
background-color:#f5f5f5 !important;
}
div.item-title{
	font-size:18px;
	font-weight:500\;
	
}	
.item-inactive {
.item-title,.description{
	color:var(--secondary);
}


}
.item-active .item-title{
	color:var(--secondary-color);
}

	

  .reward-status {
    align-content: center;
    margin: 0 8px;
  }
  .item-point img {
    margin-right: 8px;
  }
  .item-point.complete {
    color: var(--success);
  }
  .item-point {
    color: var(--secondary);
  }

  .item-point img,
  .reward-status img {
    width: 32px;
  }
}

/* spin reward conditiond page */
.term-container {
    padding: 140px 8px 100px 8px;
  /*background-color: #F6E6FF;*/

  .detail {
    margin-bottom: 16px;
    color: var(--description);
  }
  .row {
    margin: 8px 0;
  }
  .row > .col {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: center;
    border: 1px solid #c7c7c7;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
    padding: 8px;
    margin: 4px 8px;
    background-color: #fff;
  }
  .col img {
    margin: 8px 0;
  }

  img.reward-img {
    width: 120px;
  }
}
.timeline{
	margin:8px 0;
	padding-right:28px;

}
.location-list {
  height: auto;
 
  .card.d-flex.flex-row {
    padding: 16px 0px;
  }
  .location-img img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    max-height: 200px;
    object-fit: cover;
}
  .location-status {
    width: 32px !important;
    height: 32px !important;
    position: absolute;
    bottom: 10px;
    right: 20px;
  }
.location-img,.location-detail{
		padding:0 8px;
}
}

.location-detail {
  span {
    display: block;
  }
  .title {
    font-size: 20px !important;
    padding: 0;
    margin-bottom: 8px;
    color: var(--font-normal) !important;
    font-weight: 400 !important;
	line-height:1.2;
  }
  .link {
    color: var(--secondary-color);
    margin-top: 16px;
    text-decoration: underline;
    i {
      margin-right: 8px;
    }
 img{
      width: 24px;
      margin-right: 8px;
    }
.link.text-success{
      text-decoration: none !important;
    }
  }

  .description {
    color: var(--description);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
  }
}
.reward-timeline {
  background-color: var(--secondary-color);
}
.start-point{
 
    height: 24px;
    width: 24px;
    align-self: center;

}
button.btn.reward-timeline.text-white.rounded-circle {


    width: 50px;
    align-self: center;
    height: 30px;


}
.reward-popup {
  .modal-header,
  .modal-footer {
    border: none !important;
    padding: 8px;
  }
  .modal-content {
    width: 90%;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.9);
  }
  .reward-img {
    width: 150px;
    height: auto;
    margin: 0 auto;
  }
  .modal-close {
    padding: 8px 24px !important;
  }
  .modal-body > * {
    padding: 4px 0 !important;
  }

}
.vote-container{
  padding: 100px 8px 80px 8px;
  background-color: #F6E6FF;
  min-height: 100vh;
}
.checkin-container{
  padding: 100px 8px 80px 8px;
  background-color: rgba(247,247,247,1);
  .reward-img{
    width: 48px;
  }
	.get-coin{
	color:#888;
font-size:14px;
}
}

.location-list .card{
  border-radius: 0px !important;
}
.reward-box {
    margin: 0 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reward-box img {
  width:40px;
}
.reward-box span{
  white-space: nowrap;
   text-align: center;
   display: block;
    width: 80px;
}

.mypoint-container {
      padding: 120px 8px 80px 8px;
  .detail {
    color: var(--description);
  }
  .nav-tabs {
   border-bottom: none !important;
    justify-content: center;
flex-wrap: nowrap !important;
  }

  .nav-tabs li {
    display: flex;
    flex-direction: row;
    margin-right: 8px;
    
  }
  .nav-tabs li .tab-link {
    padding: 8px 12px;
    white-space: nowrap;
    color: var(--description);
    border: 1px solid rgb(187 187 187 / 50%);
    border-radius: 10px;
  }
  .nav-tabs li .tab-link.active {
   background-color: var(--primary-color);
    color: #fff;
    border: 1px solid rgb(187 187 187 / 100%);
    text-decoration: none;
  }
}
#redeem {
  .reward-item {
    width: 100%;
    border-width: 1px 0 1px 0;
    border-style: solid;
    border-color: #dee2e6;
    padding: 16px 0;
    justify-content: space-around;
  }
  .reward-item button {
    padding: 8px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    height: fit-content;
    align-self: center;
    border-radius: 30px;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
	white-space: nowrap;
  }
  .reward-img {
    width: 80px;
    object-fit: contain;	
  }
  .reward-detail {
    align-self: center;
        margin-left: 16px;
        width: 200px;
  }
  .reward-detail span {
    margin-bottom: 8px;
  }
  .reward-detail .point-request {
    color: var(--secondary-color);
  }
}
#redeem_history{
  
  span.title{
    color:var(--title-color);
    font-size: 16px !important;
    font-style: bold;
  }
  .flex-item{
    display: inline-flex;
    border-bottom: 1px solid #dee2e6;
    padding:8px 0;
  }
  .flex-item img{
    width: 80px;
    object-fit: contain;
    
  }
  .item-detail{
    display: flex;
    flex-direction: column;
    align-self: center;
    padding: 32px;
    strong{
      margin-bottom: 8px;
    }
  }
}
.table.point-history {
  th{
    color: var(--title-color);
background-color:#f8edff;
  }
  td{
    padding: 1.5rem .375rem !important;
  }
  td.point{
    text-align: center;
  }
  td.point{
    text-align: center;
  }
  td.timestamp{
    width: 80px;
    font-size: 14px;
  }
  
}
.tab-content .title{
  font-weight: 700;
    padding: 12px;
    color: var(--title-color);
    border-top: 1px solid #dee2e6;
    border: 1px solid #dee2e6;
border-width:1px 0 1px 0px;
  background-color: #f8edff;
}

.term-container h5.title{
  color: var(--title-color);
}
.waiting-bg{
  align-content: center;
  height: 100vh;
  background-image: url(/css/crg/assets/image/waiting-1.webp), linear-gradient(rgba(0,0,0,0.5),rgba(0,0,0,0.5));
    background-blend-mode: overlay;
}
.waiting-box{
  display: flex;
  flex-direction: column;
  align-items: center;
  
  h1,h3{
    color:#fff;
  }
  img{
    width: 250px;
    margin: 0 auto;
  }
  .term-link{
    color:#fff;
    padding: 8px 24px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 30px;
  }
}
.item-not-found {
    display: flex;
        flex-direction: column;
        align-items: center;
    padding: 80px 0;
  }
  .item-not-found img {
    margin: 20px auto;
    width: 120px;
    opacity: 40%;
  }
    .item-not-found span{
      color:#bac0c6;
      font-weight: 500;
    }
/*--section responsive rule--*/
/* Small tablets and larger mobile devices (481px - 768px) */
@media (min-width: 481px) {
}

/* Tablets and small laptops (769px - 1024px) */
@media (min-width: 769px) {
  .spin-bg {
    max-width: 800px !important;
  }
  .spin-indicator {
    max-width: 100px !important;
  }
  .countdown-box {
    padding: 16px !important;
  }
}

/* Large desktops and high-resolution screens (1025px and up) */
@media (min-width: 1025px) {
}

/* Extra-large screens (1440px and up) */
@media (min-width: 1440px) {
}


/*  Loader bg */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* ✅ loader spinner */
.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #eee;
  border-top: 6px solid #B38DED;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

/* ✅ loader spinner */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
