:root {
  --theme-color: #be0000;
  --theme-color2: #880000;
  --theme-color3: #6d0000;
  --bg-color: #2e0000;
  --nav-color: #630000;
  --top-nav-color: #161616;
  --second-color: #fdac16;
  --third-color: #e66f00;
  --w-color: #fff;
  --b-color: #000;
}

@font-face {
  font-family: "digits";
  src: url("../fonts/digits.otf");
}

body {
  background: var(--bg-color);
  color: var(--w-color);
}

main {
  margin-top: 10rem;
  position: relative;
}

#en:hover,
#cn:hover {
  cursor: pointer;
}

.bg-vietnam {
  position: absolute;
  width: 71rem;
  max-width: 100%;
  border: 3px solid var(--theme-color);
  z-index: -1;
  border-radius: 100%;
  top: -12.8rem;
  left: 50%;
  transform: translate(-50%, -50%);
}

.counter-time span {
  font-size: 1.7rem;
  color: var(--second-color);
  font-family: "digits";
}

.icon-time {
  color: var(--second-color);
}

.bg-timer-header {
  background: var(--nav-color);
}

.btn-livedraw::before {
  content: "";
  background: linear-gradient(
    100deg,
    var(--third-color),
    var(--second-color),
    var(--third-color)
  );
  color: var(--w-color);
  position: absolute;
  top: -2px;
  left: -2px;
  background-size: 200%;
  z-index: -1;
  filter: blur(0px);
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  animation: glowing 6s linear infinite;
  opacity: 1;
  transition: opacity 0.1s;
  border-radius: 5px 109px 5px 107px;
}

.btn-livedraw {
  position: absolute;
  border: none;
  border-radius: 5px 109px 5px 107px;
  background: var(--second-color);
  top: -6.5rem;
  left: 50%;
  color: var(--b-color);
  padding: 1rem 3rem;
  font-weight: bold;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
}

.btn-livedraw:hover {
  background: var(--theme-color);
  color: var(--w-color);
}

.page-content-1,
.page-content-3 {
  padding: 1rem;
  height: 100%;
}

.page-content-2 {
  background: var(--theme-color2);
  padding: 2rem;
  height: 100%;
}

.nav-tops {
  padding: 0.5rem;
  background: var(--top-nav-color);
}

.nav-desktop-list,
.lang-header-desktop {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
}

.nav-desktop-list li {
  margin-left: 1.6rem;
  font-size: 1.2rem;
  font-weight: bold;
  text-transform: uppercase;
}

.nav-desktop-list li:hover {
  cursor: pointer;
  color: var(--second-color);
}

.lang-header-desktop {
  justify-content: end;
}

.middle-content {
  font-size: 0.9rem;
}

.middle-content h1,
.middle-content h2,
.middle-content h3,
.middle-content h4,
.middle-content h5,
.middle-content h6 {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--second-color);
}

.more-result {
  color: var(--b-color);
  padding: 1rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: var(--second-color);
}

.more-result h3 {
  color: var(--b-color);
}

.lang-header-desktop li {
  margin-left: 2rem;
  text-transform: uppercase;
  font-size: 1.6rem;
  border-bottom: 2px solid var(--top-nav-color);
}

hr {
  opacity: 1;
  border-top: 2px solid var(--second-color);
}

.lang-header-desktop li:hover {
  cursor: pointer;
  color: var(--second-color);
  border-bottom: 2px solid var(--second-color);
}

#nprogress .bar {
  background: var(--second-color);
}

#nprogress .peg {
  box-shadow: 0 0 10px var(--second-color), 0 0 5px var(--second-color);
}

#nprogress .spinner-icon {
  border-top-color: var(--second-color);
  border-left-color: var(--second-color);
}

.nav-desktop {
  padding: 0.7rem;
  background: var(--nav-color);
  border-bottom: 2px solid var(--theme-color2);
}

.logo img {
  width: 11rem;
  max-width: 100%;
}

.offcanvas.offcanvas-end {
  width: 200px;
}

footer {
  margin-top: 5rem;
  border-top: 2px solid var(--theme-color);
  background: var(--nav-color);
  padding: 2rem;
}

.result-card {
  padding: 0.4rem 1.3rem;
  margin-bottom: 0.8rem;
  border-bottom: 3px solid var(--theme-color);
  border-radius: 5px;
  background: var(--theme-color3);
  height: 100%;
}

.result-card h1,
.result-card h3,
.result-card h4,
.result-card h5,
.result-card h6 {
  font-size: 1rem;
}

.result-card h2 {
  text-transform: uppercase;
  font-size: 1.3rem;
}

.btn-result {
  padding: 0.3rem 0.6rem;
  text-transform: uppercase;
  font-size: 0.7rem;
  border-radius: 0.2rem;
  border: none;
  background: var(--second-color);
  font-weight: bold;
}

.btn-result:hover {
  background: var(--third-color);
  color: var(--w-color);
}

.ball-draw li {
  color: var(--w-color);
  background: linear-gradient(
    0deg,
    var(--theme-color) 0%,
    var(--theme-color2) 100%
  );
  margin-bottom: 6px;
  margin-top: 7px;
  list-style-type: none;
  display: inline-flex;
  padding: 10px 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-left: 2px;
  border: 2px solid var(--theme-color);
  font-weight: 700;
}

.ball-draw li:hover {
  background: var(--theme-color2);
  cursor: pointer;
}

.ball-draw li:first-child {
  margin-left: 0;
}

.ball-draw li:last-child {
  background: linear-gradient(
    0deg,
    var(--second-color) 0%,
    var(--third-color) 100%
  );
  color: var(--b-color);
  position: relative;
  border-color: var(--second-color);
}

.ball-draw li:last-child:hover {
  background: var(--second-color);
}

.ball-draw li:last-child::after {
  content: "Lucky Ball";
  width: 10rem;
  text-transform: uppercase;
  color: var(--second-color);
  font-size: 0.55rem;
  position: absolute;
  bottom: -1.3rem;
}

.day-card {
  color: var(--w-color);
}

.copyright-text {
  font-size: 0.8rem;
}

.footer-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  list-style-type: none;
}

.footer-list li img {
  width: 6rem;
  max-width: 100%;
}

.footer-list li {
  margin-right: 1rem;
}

.footer-list li:last-child {
  margin-right: 0;
}

#table-result {
  width: 100% !important;
}

#table-result thead,
#table-result tbody {
  text-align: center;
}

#table-result thead tr th,
#table-result tbody tr td {
  padding: 0.8rem;
}

#table-result thead tr th {
  background: linear-gradient(
    0deg,
    var(--nav-color) 0%,
    var(--theme-color2) 100%
  );
  border-bottom: 1px solid var(--second-color);
  text-transform: uppercase;
  font-size: 0.9rem;
}

#table-result tbody tr td ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
}

#table-result tbody tr td ul li {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  padding: 0.5rem;
  padding-left: 8px;
  line-height: 0.7rem;
  margin-left: 2px;
  font-weight: bold;
  border: 1px solid var(--theme-color);
  background: linear-gradient(
    0deg,
    var(--theme-color) 0%,
    var(--theme-color2) 100%
  );
}

#table-result tbody tr td ul li:last-child {
  background: linear-gradient(
    0deg,
    var(--second-color) 0%,
    var(--third-color) 100%
  );
  color: var(--b-color);
  position: relative;
  border-color: var(--second-color);
}

#table-result tbody tr td ul li:last-child::after {
  content: "Lucky Ball";
  width: 3rem;
  text-transform: uppercase;
  color: var(--second-color);
  font-size: 0.46rem;
  position: absolute;
  bottom: -0.8rem;
  left: -0.55rem;
}

#table-result tbody tr td {
  font-size: 0.9rem;
  font-weight: 600;
}

#table-result tbody tr:nth-child(odd) {
  background: var(--bg-color);
  border-bottom: 1px solid var(--theme-color);
}

#table-result tbody tr:nth-child(even) {
  background: var(--theme-color3);
  border-bottom: 1px solid var(--bg-color);
}

#table-result tbody tr:hover {
  background: var(--third-color);
  color: var(--bg-color);
  cursor: pointer;
}

.title-404 {
  font-size: 6rem;
  text-align: center;
  color: var(--second-color);
  font-weight: bold;
}

.active > .page-link,
.page-link.active {
  background-color: var(--theme-color);
  border-color: var(--theme-color);
}

.page-link {
  color: var(--theme-color3);
}

.form-control:focus {
  background: var(--nav-color);
  color: var(--w-color);
  border: 1px solid var(--second-color);
}

.form-select {
  background-color: var(--nav-color);
  color: var(--w-color);
  font-weight: bold;
  border: 1px solid var(--nav-color);
}

.form-select:focus {
  border: var(--second-color) 1px solid;
}

.form-control {
  background-color: var(--theme-color3);
  color: var(--w-color);
  border: 1px solid var(--theme-color3);
  font-weight: bold;
}

@keyframes glowing {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 200% 0;
  }
  100% {
    background-position: 0 0;
  }
}

/* Responsive */
/* For Mobile Portrait View */
@media screen and (max-device-width: 480px) and (orientation: portrait) {
  #table-result {
    width: 336px;
  }

  #table-result thead tr th,
  #table-result tbody tr td {
    padding: 0.5rem;
  }

  #table-result thead tr th,
  #table-result tbody tr td {
    font-size: 0.65rem;
  }

  #table-result tbody tr td ul li {
    width: 20px;
    height: 20px;
    line-height: 3px;
    padding-left: 6px;
  }

  #table-result tbody tr td ul li:last-child::after {
    bottom: -0.5rem;
    left: -0.8rem;
    width: 3rem;
    font-size: 0.4rem;
  }

  div.dataTables_wrapper div.dataTables_paginate ul.pagination {
    flex-wrap: wrap !important;
  }

  .page-content-2 {
    padding: 0.5rem;
  }

  .nav-desktop-list {
    display: none;
  }

  main {
    margin-top: 6rem;
  }
  .page-content-3 {
    margin-top: 3rem;
  }

  .ball-draw {
    text-align: start;
  }

  .ball-draw li {
    width: 40px;
    height: 40px;
    padding: 8px 5px;
  }

  .ball-draw li:last-child::after {
    left: -0.3rem;
  }

  .result-card h1,
  .result-card h3,
  .result-card h4,
  .result-card h5,
  .result-card h6 {
    font-size: 0.75rem;
  }

  .btn-livedraw {
    padding: 0.6rem;
    top: -2.7rem;
    width: 18rem;
    max-width: 100%;
  }
}

/* For Mobile Landscape View */
@media screen and (max-device-width: 898px) and (orientation: landscape) {
  .page-content-3 {
    margin-top: 3rem;
  }

  .nav-desktop-list {
    display: none;
  }

  .bg-china {
    top: -17.8rem;
  }
}

/* For Mobile Phones Portrait or Landscape View */
@media screen and (max-device-width: 640px) {
}
