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

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

body {
  font-family: "Roboto", sans-serif;
  background-color: #f5f5f5;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

.app {
  background: url(./images/bg-cf.webp);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

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

.title {
  width: 90%;
}

.join {
  background: #fff;
  width: 90%;
  border: 2px solid #ffb9d7;
  border-radius: 50px;
  display: flex;
  align-items: center;
  padding: 5px;
}

.join__marquee {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  width: 100%;
}

.join__track {
  display: inline-flex;
  gap: 150px;
  white-space: nowrap;
  will-change: transform;
}

.join__item {
  white-space: nowrap;
  color: #000;
  font-size: 1.2rem;
}

.main__content {
  display: flex;
}

.main__content__left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 50%;
}

.box {
  flex: 1;
  display: block;
}

.bell {
  width: 50px;
  height: 100%;
  display: flex;
}

.gift {
  background: url(./images/bg-gift.webp);
  background-size: 100% 100%;
  width: 90%;
  text-align: center;
  border-radius: 20px;
  padding: 40px 5px;
  color: #fff;
}

.gift__title,
.gift__reg {
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: bold;
}

.gift__reg {
  margin-top: 2%;
  font-size: 2.2rem;
}

.gift__title__number {
  background: #fffc18;
  color: #076c00;
  border-radius: 10px;
  padding: 5px 15px;
}

.bg-qt {
  background: url(./images/bg-qt.webp);
  background-size: 100% 100%;
  width: 90%;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.colon {
  font-size: 7rem;
  font-weight: bold;
  color: #fff;
  margin: 0;
}

.main__content {
  width: 100%;
}

.qt {
  width: 90%;
}

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

.time-block {
  border-radius: 50px;
  padding: 15px 0;
  text-align: center;
  width: 25%;
  background-color: #ff5da186;
  border: 2px #fff solid;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.number {
  font-size: 2.6rem;
  font-weight: bold;
  color: #fff;
  padding: 6px;
  border-radius: 10px;
}

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

.label {
  font-size: 1.6rem;
  color: #fff;
  margin-top: 4px;
}

.btn {
  display: flex;
  align-items: center;
  width: 90%;
  gap: 30px;
}

.btn div:hover {
  cursor: pointer;
}

#cancelBtn:hover {
  cursor: pointer;
}

.title-mb,
.qt-mb {
  display: none;
}

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

.register a img {
  animation: scaleAnimation 1.5s infinite ease-in-out;
}

@media screen and (max-width: 768px) {
  .app {
    background: url(./images/bg-cf-mb.webp);
    height: auto;
    overflow: auto;
    background-position: center top;
  }

  .btn {
    display: block;
  }

  .main__content__left {
    width: 100%;
  }

  .box {
    display: none;
  }

  .bg-qt {
    background-size: 100% 100%;
    width: 100%;
    padding: 10px 5px 15px;
    gap: 5px;
  }

  .content {
    gap: 2px;
    padding: 0px 10px;
    width: 100%;
  }

  .register {
    width: 90%;
  }

  .gift {
    width: 100%;
    justify-content: center;
  }

  .title {
    display: none;
  }

  .title-mb {
    width: 85%;
    display: block;
  }

  .join {
    text-align: start;
    padding: 0 20px 0 0;
  }

  .join__track {
    gap: 50px;
  }

  .join__text {
    display: block;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .join__item {
    font-size: 0.8rem;
  }

  .money {
    display: inline-block;
    margin-left: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    color: yellow;
  }

  .time-block {
    width: 50%;
    padding: 5px 0;
    border-radius: 20px;
    gap: 0px;
  }

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

  .label {
    font-size: 1.2rem;
  }

  .btn {
    width: 90%;
    flex-direction: column;
    gap: 0px;
  }

  .qt {
    display: block;
  }

  .colon {
    font-size: 3rem;
  }

  .countdown {
    gap: 4px;
    width: 80%;
    gap: 10px;
  }
  .gift {
    padding: 20px 0;
    margin: 1% 0;
  }

  .gift__reg {
    font-size: 1.4rem;
  }

  .popup-content {
    width: 90%;
    padding: 10px;
    gap: 10px;
  }

  .popup-content .btn {
    display: flex;
    flex-direction: row;
    gap: 10px;
  }
}
