@media only screen and (max-width: 992px) {
  .hide-nav,
  .login-pc {
    display: none !important;
  }
  body {
    padding-bottom: 100px;
  }
}

@media only screen and (min-width: 992px) {
  .mobile-botbar,
  .login-mobile,
  .mobile-menu {
    display: none !important;
  }
}

body {
  font-family: "Kanit", sans-serif;
  background-image: url("../images/background.jpg");
  background-size: cover;
  background-attachment: fixed;
  color: #e9e9e9;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul,
li {
  line-height: 1.6;
}

.container {
  background: rgb(0, 0, 0, 0.5);
}

.container.top-bar {
  background: rgb(0, 0, 0, 0);
}

.mobile-botbar {
  position: fixed;
  bottom: 0;
  z-index: 99999999;
  width: 100%;
/*  height: 100px;*/
  text-align: center;
  border-top: 1px solid #d49792;
  background: #800600;
  float: left;
}

.mobile-botbar a {
  float: left;
  width: 20%;
}

.game-bg {
  background: radial-gradient(
      ellipse farthest-corner at right bottom,
      #fedb37 0%,
      #fdb931 8%,
      #9f7928 30%,
      #8a6e2f 40%,
      transparent 80%
    ),
    radial-gradient(
      ellipse farthest-corner at left top,
      #ffffff 0%,
      #ffffac 8%,
      #d1b464 25%,
      #5d4a1f 62.5%,
      #5d4a1f 100%
    );
  padding: 3px;
}

.login-pc {
  height: 100px;
}

.loginbtn-pc {
  background: #e52d27; /* fallback for old browsers */
  background: -webkit-linear-gradient(
    to top,
    #b31217,
    #e52d27
  ); /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(
    to top,
    #b31217,
    #e52d27
  ); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

  height: 36px;
  color: #fff;
}

.loginbtn-mobile {
  background: #e52d27; /* fallback for old browsers */
  background: -webkit-linear-gradient(
    to top,
    #b31217,
    #e52d27
  ); /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(
    to top,
    #b31217,
    #e52d27
  ); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  height: 36px;
  color: #fff;
  width: 100%;
}

.form-input {
  border: 2px solid #e52d27;
  background: #000;
  color: white !important;
}

.form-control:focus {
  border-color: #e52d27;
  background: #000;
}

.nav-bar {
  background: rgb(0, 0, 0, 0.8);
}

.bg-nav {
  background-color: #000000 !important;
}

.nav-link {
  color: rgba(255, 255, 255) !important;
}

.howto-head {
  background-color: #000;
  border-top: 1px solid #e52d27;
  border-bottom: 1px solid #e52d27;
  padding: 5px 10px 0px 10px;
}
/*=======================  menu  =====================*/
nav.nav-bar {
  text-align: center;
  width: 100%;
  padding: 0;
  margin: 0;
  position: relative;
}
nav ul {
  list-style: none;
  padding: 0px;
  margin: auto;
}
nav ul li {
  display: inline-block;
  font-size: 16px;
  padding: 0px 16px;
}
nav ul li.nav-item {
  padding: 0px !important;
}

nav ul li.nav-item > .nav-link,
nav ul li.nav-item > .dropdown > .nav-link {
  padding-left: 10px !important;
}

nav ul li.nav-item:hover {
  background-color: #b10000;
}
nav ul li:nth-child() {
  border: 1px solid yellow;
}
nav ul li.home-img a {
  color: #dab867;
}
nav ul li.home-img img {
  position: absolute;
  top: 0px;
  margin-left: -46px;
}
nav ul li.home-img2 img {
  position: absolute;
  top: 0px;
  margin-left: -35px;
}
nav ul li a {
  color: #fff;
  display: block;
  padding: 0px;
  text-decoration: none;
  margin: auto;
  padding-top: 10px;
}
nav ul li a:hover {
  color: #000;
}
nav ul li a.text {
  padding: 10px 3px 11px;
  font-size: 16px;
  cursor: pointer;
}
nav ul li a.text:hover {
  background: #003147;
  color: #fff;
}
nav ul li:hover > ul {
  display: block;
}
nav ul ul {
  z-index: 100;
  background-color: #6c0004;
  padding: 0;
  text-align: center;
  display: none;
  width: 100%;
  position: absolute;
  top: 44px;
  left: 0px;
  border-bottom: rgba(0, 0, 0, 0.92) solid 2px;
}
span.menu-btn {
  padding: 8px 5px 5px;
  width: 100%;
  display: block;
}

nav ul .submenu li {
  width: auto;
}
nav ul .submenu li a img {
  width: 100%;
}
nav ul .submenu li:hover {
  /*background:#333;background-image: -webkit-gradient(radial, center center, 0, center center, 286, color-stop(0, #ffef68), color-stop(100, #886115));
background-image: -webkit-radial-gradient(center, ellipse farthest-corner, #ffef68 0%, #886115 100%);
background-image: -moz-radial-gradient(center, ellipse farthest-corner, #ffef68 0%, #886115 100%);*/
  background-color: #b10000;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E") !important;
}
/*======================= end  menu  =====================*/

.qrcode {
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 999;
  padding: 10px 0px 0px 0px;
}
@media only screen and (max-width: 1024px) {
  .qrcode {
    display: none;
  }
}

footer {
  color: white;
  text-align: center;
  padding: 10px;
}

.line-link {
  color: #00b900;
}

/*======================= hover effect  =====================*/
figure {
  overflow: hidden;
  position: relative;
}
figure::before {
  position: absolute;
  top: 0;
  left: -75%;
  z-index: 2;
  display: block;
  content: "";
  width: 50%;
  height: 100%;
  background: -webkit-linear-gradient(
    left,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 100%
  );
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 100%
  );
  -webkit-transform: skewX(-25deg);
  transform: skewX(-25deg);
}
figure:hover::before {
  -webkit-animation: shine 0.75s;
  animation: shine 0.75s;
}
@-webkit-keyframes shine {
  100% {
    left: 125%;
  }
}
@keyframes shine {
  100% {
    left: 125%;
  }
}
/*======================= end hover effect  =====================*/

/*======================= start Marquee  =====================*/
.marquee {
  margin: 0 auto;
  white-space: nowrap;
  overflow: hidden;
  box-sizing: border-box;
}

.marquee p {
  display: inline-block;
  padding-left: 100%;
  will-change: transform;
  /* show the marquee just outside the paragraph */
  animation: marquee 15s linear infinite;
}

.marquee p:hover {
  animation-play-state: paused;
}

/* Make it move */

@keyframes marquee {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-100%, 0);
  }
}

/* Respect user preferences about animations */

@media (prefers-reduced-motion: reduce) {
  .marquee {
    white-space: normal;
  }
  .marquee p {
    animation: none;
    padding-left: 0;
  }
}
/*======================= end Marquee  =====================*/
