/* My custom */
@import url(https://fonts.googleapis.com/css?family=Kanit&subset=thai,latin);

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 150px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Kanit', sans-serif;
}

p,
div {
  font-family: 'Kanit', sans-serif;
}

header>.jumbotron {
  padding-top: 15px;
  padding-bottom: 15px;
  margin-bottom: -1px;
}

footer>.jumbotron {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 80px;
  min-width: 1170px;
  padding-top: 30px;
  padding-bottom: 30px;
}

#logo-container {
  visibility: hidden;
}

.logo-title {
  margin-bottom: 0;
}

#logo-title:hover {
  color: #fff;
  text-shadow: #fff 0 0 4px, #fff 0 0 20px;
}

.logo-slogan {
  margin-top: 0;
  padding-left: 50px;
}

/* Topic list */
.topic-list-separate {
  margin-top: 5px;
  margin-bottom: 5px;
}

.topic-list-photo {
  padding-left: 5px;
  padding-right: 0;
}

.topic-list-icon {
  padding-right: 0;
  padding-left: 0;
}

.topic-list-icon h3 {
  margin-top: 10px;
}

/* Topic view */
.topic-view-photo {
  display: inline-block;
  margin-bottom: 2px;
}

.topic-view-user-stats .col-xs-6 {
  padding-right: 5px;
  padding-left: 5px;
}

.topic-view-user-stats span {
  width: 100px;
  display: inline-block;
}

.topic-view-user-stats .progress {
  margin-top: 10px;
  margin-bottom: 0;
}

.topic-view-posted-datetime,
.topic-view-comment-number {
  margin-top: -8px;
}

.topic-view-min-height {
  min-height: 300px;
}

.topic-view-comment-min-height {
  min-height: 350px;
}

.topic-view-like {
  display: inline-block;
  vertical-align: bottom;
}

.topic-view-comment-editor-submit {
  margin-top: 20px;
}

.blockquote-author-hr {
  margin-top: 5px;
  margin-bottom: 5px;
  border: none;
  height: 1px;
  color: #0c0d0e;
  background-color: #0c0d0e;
}

/* Member list */
.member-list-separate {
  margin-top: 10px;
  margin-bottom: 10px;
}

.member-view-photo {
  width: 150px;
  height: 150px;
}

/* User CP */
.user-cp-separate {
  margin-top: 0;
  margin-bottom: 10px;
}

/* Store */
.store-program-icon {
  width: 48px;
  height: 48px;
}

/* Home */
.home-status-program-icon {
  width: 30px;
  height: 30px;
}

/* Thumbnail */
.thumbnail-photo-40 {
  width: 40px;
  height: 40px;
}

.thumbnail-photo-60 {
  width: 60px;
  height: 60px;
}

.thumbnail-photo-120 {
  width: 120px;
  height: 120px;
}

.thumbnail-photo-150 {
  width: 150px;
  height: 150px;
}

/* Helper class */
.text-overflow-hide {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.no-select {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.bbcode-content {
  word-wrap: break-word;
}

.pd-bot-10 {
  padding-bottom: 10px;
}

.mg-bot-2 {
  margin-bottom: 2px;
}

.mg-top-0 {
  margin-top: 0;
}

.mg-top-10 {
  margin-top: 10px;
}

.mg-top-20 {
  margin-top: 20px;
}

.mg-top-30 {
  margin-top: 30px;
}

.clear-padding-left {
  padding-left: 0;
}

.font-size-90 {
  font-size: 90%;
}

.font-size-100 {
  font-size: 100%;
}

.valign-mid {
  vertical-align: middle !important;
}

/* color */
.text-vip {
  color: #00FF00;
}

.text-free {
  color: #FFFF00;
}

.bg-black {
  background-color: black;
}

/* Browse Button */
.btn-file {
  position: relative;
  overflow: hidden;
}

.btn-file input[type=file] {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 100%;
  min-height: 100%;
  font-size: 100px;
  text-align: right;
  filter: alpha(opacity=0);
  opacity: 0;
  outline: none;
  background: white;
  cursor: inherit;
  display: block;
}

/* Bootstrap Slate disabled button overide fix by jeans */
.btn-default[disabled] {
  opacity: 0.4;
}

.btn-default[disabled]:hover {
  background-color: #3a3f44;
  border-color: rgba(0, 0, 0, 0.6);
  background-image: -webkit-linear-gradient(#484e55, #3a3f44 60%, #313539);
  background-image: -o-linear-gradient(#484e55, #3a3f44 60%, #313539);
  background-image: -webkit-gradient(linear, left top, left bottom, from(#484e55), color-stop(60%, #3a3f44), to(#313539));
  background-image: linear-gradient(#484e55, #3a3f44 60%, #313539);
  background-repeat: no-repeat;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff484e55', endColorstr='#ff313539', GradientType=0);
  -webkit-filter: none;
  filter: none;
}

.btn-danger[disabled] {
  opacity: 0.4;
}

.btn-danger[disabled]:hover {
  background-color: #ee5f5b;
  border-color: rgba(0, 0, 0, 0.6);
  background-image: -webkit-linear-gradient(#f17a77, #ee5f5b 60%, #ec4d49);
  background-image: -o-linear-gradient(#f17a77, #ee5f5b 60%, #ec4d49);
  background-image: -webkit-gradient(linear, left top, left bottom, from(#f17a77), color-stop(60%, #ee5f5b), to(#ec4d49));
  background-image: linear-gradient(#f17a77, #ee5f5b 60%, #ec4d49);
  background-repeat: no-repeat;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff17a77', endColorstr='#ffec4d49', GradientType=0);
  -webkit-filter: none;
  filter: none;
}

.form-input {
  width: 90%;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 8px;
}

.form-button {
  width: 90%;
  margin-bottom: 8px;
}

.bg-danger {
  background-color: #ee5f5b;
  font-size: 35px;
}

.TopupRightBody {
  padding-top: .5rem !important;
  margin-right: auto !important;
  margin-left: auto !important;
  flex: 0 0 auto;
  width: 83.33333333%;
}

.swal2-popup.swal2-modal.swal-wide {
  font-size: 20px;
}

.rollbox {
  box-shadow: inset 0 0 15px #fa0724;
  margin-top: 50px;
  height: 200px;
  /*background: url(https://www.bellz.net/images/asfalt.png);*/
  border: 1px solid #fa0724;
  overflow-x: auto;
  overflow: hidden;
  position: relative;
  padding: 0;
}

.rollbox>table {
  height: 200px;
  margin: 0;
  padding: 0;

}

#loadout {
  position: absolute;
  top: 9px;
  left: 5px;
  z-index: 1;
}

.roller {
  position: relative;
  display: block;
  height: 100%;
  text-align: center;
  color: white;
  line-height: 180px;
  font-size: 18px;
  font-family: sans-serif;
}

.roller div {
  display: block;
  height: 50px;
  line-height: 50px;
  position: absolute;
  bottom: 0;
  width: 100%;
  left: 0;

}

.line {
  width: 2px;
  height: 198px;
  top: 1px;
  left: 50%;
  position: absolute;
  background: #FF0000;
  z-index: 2;

}

#log {
  margin-top: 10px;
  text-align: center;
  font-size: 1.5em;
  color: white;

}

.roller {
  height: 180px;
  width: 180px;
  margin-right: 10px;
  box-shadow: 0 0 5px 0 black;
  border: 4px solid gold;
  color: #fcfcfa;
}

tr,
table,
td {
  margin: 0;
  padding: 0;
}

td:nth-child(even) .roller {
  color: #fcfcfa;
}

.panel-scb>.panel-heading {
  color: #ffffff;
  background-color: #4e2a82;
  border-color: rgba(0, 0, 0, 0.6);
}

.panel-kbank>.panel-heading {
  color: #ffffff;
  background-color: #008940;
  border-color: rgba(0, 0, 0, 0.6);
}

.panel-bbl>.panel-heading {
  color: #ffffff;
  background-color: #00339b;
  border-color: rgba(0, 0, 0, 0.6);
}

.swal2-input {
  text-align: center;
}

div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm {
  background-color: #009112;
}

div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm:focus {
  box-shadow: 0 0 10px 1px #575757;
}

div:where(.swal2-container) div:where(.swal2-popup) {
  background-color: #2c2c2f;
  color: #ffffff;
}

div:where(.swal2-container) button:where(.swal2-close) {
  font-size: 1.8em;
}

.swal-random-items {
  width: 850px !important;
  max-width: 90% !important;
}

.random-items-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 10px;
}

.random-items-row {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.random-item-wrapper {
  width: 140px;
}

.random-item-box {
  border: 2px solid #ff002d;
  border-radius: 15px;
  padding: 15px;
  width: 140px;
  height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #1a1a1c;
  box-shadow: 0 0 15px rgba(255, 0, 45, 0.3);
}

.spinner {
  border: 4px solid #3a3a3d;
  border-top: 4px solid #ff002d;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  position: absolute;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.random-item-content {
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.8s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  position: absolute;
}

.random-item-content.show {
  opacity: 1;
  transform: scale(1);
}

.random-item-content img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
}

.random-item-content span {
  color: #ffffff;
  font-weight: 500;
  text-shadow: 0 0 10px rgba(255, 0, 45, 0.5);
  margin-top: 5px;
  font-size: 11px;
  text-align: center;
  line-height: 1.2;
}

.spinner.hide {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mission-card> :last-child {
  margin-top: auto;
}

.mission-row {
  display: flex;
  flex-wrap: wrap;
}

.mission-row > [class*='col-'] {
  display: flex;
  flex-direction: column;
}

.mission-card {
  background-color: rgba(13, 14, 16, 0.5);
  /*background-image: url('../image/mission_card_bg.png');*/
  /* Add background image */
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  /* Blend with background color for readability */
  border: 1px solid #1f2023;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
  min-height: 210px;
  height: 100%;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.mission-card h4 {
  color: #ffffff;
  /* Red color for title */
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 10px;
  text-shadow: 0 0 10px rgba(230, 46, 46, 0.8);
  letter-spacing: 1px
}

.mission-card .mission-desc {
  color: #aeaeae;
  margin-bottom: 15px;
  font-size: 14px;
  word-wrap: break-word; 
  word-break: break-all;
}

.mission-stats {
  display: flex;
  justify-content: space-between;
  color: #ff002d;
  font-weight: bold;
  font-size: 14px;
  margin-top: auto;
  margin-bottom: 5px;
}

.mission-stats .target {
  color: #ff002d;
}

.mission-stats .current {
  color: #00df1a;
}

.mission-progress-container {
  background-color: #1f2023;
  border-radius: 5px;
  height: 8px;
  width: 100%;
  margin-bottom: 10px;
  overflow: hidden;
  position: relative;
  border: 1px solid #333;
}

.mission-progress-bar {
  background-color: #333;
  height: 100%;
  width: 100%;
  display: block;
}

.mission-progress-bar-fill {
  height: 100%;
  background-color: #f61940;
  width: 0%;
}

.mission-status-running {
  color: #e62e2e;
  font-style: italic;
}

.mission-status-completed-text {
  color: #ff3333;
  font-size: 24px;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(255, 51, 51, 0.6);
  text-transform: uppercase;
  position: absolute;
  right: 20px;
  bottom: 20px;
}

.mission-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
}

.mission-overlay-text {
  color: #ff3333;
  font-size: 30px;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
  border: 3px solid #ff3333;
  padding: 5px 20px;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  transform: rotate(-10deg);
}

.mission-reward-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.mission-reward-btn:hover {
    background-color: #e9322d;
    border-color: #701512;
    color: #fff;
    transform: scale(1.1);
}