@import url("https://fonts.googleapis.com/css?family=Roboto:400,900italic,900,700italic,700,500italic,500,400italic,300italic,300,100italic,100");

* {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto';
  background: #151515;
}

.loading {
  display: none;
  position: relative;
}

.percent {
  color: #999;
  font-size: 12px;
  font-weight: 400;
  text-align: center;
}

.progress-bar {
  width: 100%;
  height: 20px;
  background: #111;
  border-radius: 13px;
  padding: 3px;
  box-sizing: border-box;
}

.progress {
  width: 0%;
  height: 12px;
  background: #0df620;
  border-radius: 13px;
}

/* New Loading Overlay for Services */
.service-loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.service-loading-content {
  text-align: center;
  color: white;
  padding: 20px;
  max-width: 90%;
}

.service-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #333;
  border-top: 4px solid rgb(255, 127, 127);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.service-percent {
  font-size: 24px;
  font-weight: bold;
  color: rgb(255, 127, 127);
  margin: 15px 0;
}

.service-message {
  font-size: 20px;
  color: rgb(255, 69, 69);
  font-weight: bold;
  margin-top: 10px;
  line-height: 1.4;
}

/* Mobile optimization */
@media (max-width: 768px) {
  .service-loading-content {
    padding: 15px;
  }

  .service-spinner {
    width: 50px;
    height: 50px;
  }

  .service-percent {
    font-size: 20px;
  }

  .service-message {
    font-size: 20px;
  }
}

.text {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%);
  color: #0e4800;
  font-size: 8px;
  letter-spacing: 1px;
  line-height: 21px;
  display: none;
}

.text-blink {
  animation: animate .7s ease-in-out .1s;
}

@keyframes animate {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.2;
  }

  100% {
    opacity: 1;
  }
}

.login-container {
  background: rgba(0, 0, 0, 0.65);
  padding: 10px;
  border-radius: 4px;
  overflow: auto;
  min-height: 68vh;
  max-height: 80vh;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.login-container::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.login-container {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

.service-container {
  /* min-width: 300px; */
  width: 100%;
  background: rgba(0, 0, 0, 0.65);
  padding: 10px;
  border-radius: 10px;
  min-height: 68vh;
}
h4 {
  color: rgb(222, 223, 255);
}

.ht168__img-app {
  display: inline-block;
  max-width: 100%;
  object-fit: cover;
}

.ht168__img-app-index {
  width: 200px;
  height: 200px;
  border-radius: 20px;
}

@media only screen and (max-width: 767.98px) {
  .ht168__img-app-index {
    width: 120px;
    height: 120px;
    border-radius: 20px;
  }
}
@media only screen and (max-width: 478.98px) {
  .ht168__img-app-index {
    width: 90px;
    height: 90px;
    border-radius: 20px;
  }
}
.ht168__img-app-login {
  width: 80px;
  height: 80px;
  border-radius: 15px;
}

.ht168-go-home a {
  text-decoration: none;
}

/* dich vu */
.ht168__img-app-service {
  width: 100px;
  height: 100px;
  border-radius: 15px;
}

.service-1, .service-2, .service-3 {
  display: none;
}

/**
  Card selection
**/

.ht168-service-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 8px;
}

.card-label {
  width: 100%;
}

.card-content {
  position: relative;
  height: 130px;
  display: flex;
  justify-content: center;
  align-items: center;
  vertical-align: middle;
  text-align: center;
}

.card-content .card-text {
  display: inline-block;
  font-size: 20px;
  font-weight: bold;
  color: rgb(219, 0, 0);

}

.card-content .card-subtext {
  position: absolute;
  left: 6px;
  top: 6px;
  font-size: 12px;
}

.card-input-element {
  display: none;
}

.card-input {
  padding: 0px;
}

.card-input:hover {
  cursor: pointer;
}

.card-input-element:checked+.card-input {
  /* box-shadow: 0 0 1px 5px #F99417; */
  color: #050038;
  background: #ffa3a3;

}

.code-header {
  background-image: linear-gradient(to right, #1B6DD9, #0492CC);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.header-form-code {
  width: 300px;
  height: 44px;
  border-radius: 5px;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.code-search-btn {
  all: unset;
  cursor: pointer;
}

.code-search-btn svg {
  color: #fff;
  fill: currentColor;
  line-height: 0;

}

.code-search-input {
  all: unset;
  font: 16px system-ui;
  color: #fff;
  height: 100%;
  width: 100%;
  padding: 6px 10px;
}

.code-search-input::placeholder {
  color: #fff;
  opacity: 0.7;
}

.header-icon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: white;
  line-height: 0;
}

/* form unlock by code */
.content-form-unlock-by-code {
  max-width: fit-content;
  margin: auto;
  display: flex;
  border: 1px solid #ced4da;
  border-radius: 4px;
  gap: 4px;
}

.input-unlock-by-code {
  border: none;
  outline: none;
  border-radius: 4px 0 0 4px;
}

.btn-unlock-by-code {
  width: 150px;
  border: none;
}

/* menu */
.menu-container {
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  border-top: 1px solid #ccc;
  background: rgb(253,252,252)
}
.menu-container-img {
  width: 100%;
  object-fit: contain;
  height: 42px;
}
.menu-list {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 350px;
  /* gap: 28px; */
  padding-left: 0;
  padding: 10px;
  ;
  margin-bottom: 0;
}

.menu-list li {
  list-style: none;
  width: max-content;
}

.menu-list li a svg {
  fill: black;
}

.menu-list .menu-item-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.menu-list .menu-item-link.active {
  color: #0492CC;
  fill: #0492CC;
}

.menu-list .menu-item-link.active svg {
  fill: #0492CC;
}

.menu-item-text {
  line-height: 1;
}
.menu-item-img{
  width: 40px;
  height: 40px;
}
main {
  display: flex;
}

main .content {
  margin: auto;
  margin-top: 100px;
  padding: 8px;
}
.ht168-break-line {
  display: none;
}
@media (min-width: 768px) and (max-width: 1240px) {
  .card-content .card-text {
    font-size: 18px;
  }
}

@media screen and (max-width: 767px) {

  /* For mobile phones: */
  .ht168-service-list {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 8px;
  }

  .card-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
  }

  .card-content .card-text {
    font-size: 30px;
    font-weight: bold;
  }
  .ht168-title-form {
    font-size: 20px;

  }
  .ht168-break-line {
    display: block;
  }
  .menu-item-img{
    width: 36px;
    height: 36px;
  }
}
