* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: #000;
}

body {
  font-family: "Roboto", sans-serif;
  background-color: #f5f5f5;
  display: flex;
  justify-content: center;
  align-items: center;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

.app {
  background: url(./images/bg.webp) no-repeat center center;
  background-size: 100% 100%;
  background-position: center bottom;
  height: auto;
  max-width: 450px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.content {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 0;
}

.footer {
  background: url(./images/bg-footer.webp) no-repeat center center;
  background-size: 100% 100%;
  background-position: center bottom;
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 0;
}

.logo {
  width: 90%;
}

.btn {
  width: 90%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 5%;
  animation: scaleAnimation 1.2s infinite linear;
}

.btn-km,
.btn1 {
  animation: scaleAnimation 1.2s infinite linear;
}

.slide {
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 12px;
  padding: 10px;
}

.slide img {
  width: 60%;
  flex: 0 0 calc(100% / 1.5);
  height: auto;
  border-radius: 12px;
  scroll-snap-align: start;
  object-fit: contain;
}

.slide {
  display: flex;
  gap: 12px;
  padding: 10px;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
.slide.active {
  cursor: grabbing;
}

/* hiện thanh scrollbar ngang */
.slide::-webkit-scrollbar {
  height: 8px; /* chiều cao scrollbar ngang */
}

.slide::-webkit-scrollbar-track {
  background: #e0e0e0; /* màu nền track */
  border-radius: 4px;
}

.slide::-webkit-scrollbar-thumb {
  background: #888; /* màu nút kéo */
  border-radius: 4px;
}

.slide::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.text {
  width: 90%;
}

.btn1 {
  margin-top: 2%;
  width: 70%;
}

@keyframes scaleAnimation {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.text-mb {
  display: none;
}

.bg-qt {
  background: url(./images/bg-qt.webp);
  background-size: 100% 100%;
  width: 90%;
  height: 22vh;
  padding: 3% 5%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  gap: 10px;
  width: 100%;
  position: relative;
  top: 10px;
}

.time-block {
  border-radius: 20px;
  padding: 15px 0;
  text-align: center;
  width: 30%;
  height: 80%;
  background: linear-gradient(to bottom, #f70a04 20%, #9f0806);
  border: 1px #eeff02 solid;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0px;
  flex-direction: column;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.8);
}

.number {
  font-size: 3rem;
  font-weight: bold;
  color: #ffcc17;
  border-radius: 10px;
  margin-top: 5%;
}

.register {
  margin-top: 2%;
  width: 90%;
}

.label {
  font-size: 1.2rem;
  color: #ffcc17;
  font-weight: bold;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 20;
}

.popup {
  display: none;
  background: url("./images/popup-bg.webp");
  background-size: 100% 100%;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20%;
  padding: 30px;
  border-radius: 20px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
  background-color: #fff;
  z-index: 20;
}

.popup .close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2.2rem;
  cursor: pointer;
  color: #008f32;
  background: #fff;
  border-radius: 100%;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.title-popup {
  text-align: center;
  text-transform: uppercase;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #df251e;
}

.title-popup img {
  width: 35%;
}

.description {
  font-size: 2.5rem;
  line-height: 1.2;
  color: #000;
  text-align: center;
  font-weight: 500;
  margin: 5% 0;
}

.btn-km {
  display: block;
  text-align: center;
  font-size: 2rem;
  border-radius: 10px;
  color: #fff;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-km img {
  width: 100%;
}

.btn-km:hover {
  opacity: 0.7;
  cursor: pointer;
}

@media screen and (max-width: 768px) {
  .bg-qt {
    /* height: 30vh; */
  }

  .logo {
    width: 75%;
  }

  .number {
    font-size: 1.8rem;
    padding: 0;
  }

  .label {
    font-size: 1rem;
    bottom: -3px;
  }

  .btn {
    width: 78%;
    gap: 0px;
  }

  .popup {
    width: 90%;
  }

  .popup .close {
    width: 15px;
    height: 15px;
    font-size: 1.5rem;
    padding: 10px;
  }

  .description {
    font-size: 1.5rem;
  }

  .title-popup {
    font-size: 2rem;
  }
  .btn-km img {
    width: 100%;
  }
}
