* {
  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.webp);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}
.title {
  width: 80%;
}

.content {
  background: url(./images/bg-btn.webp);
  background-size: 100% 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 30%;
  gap: 10px;
  position: absolute;
  top: 45%;
  right: 5%;
  transform: translateY(-80%);
  padding: 1%;
}

.btn1 {
  display: flex;
  gap: 30px;
}

.bg-qt {
  background: url(./images/bg-time.webp);
  background-size: 100% 100%;
  height: 40%;
  width: 20%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  position: absolute;
  top: 55%;
  left: 22.5%;
  transform: translateY(-80%);
}

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  gap: 60px;
  width: 90%;
  position: absolute;
  bottom: 10%;
  transform: translateY(-50%);
}

.time-block {
  border-radius: 10px;
  padding: 5px 0;
  text-align: center;
  width: 40%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0px;
}

.number {
  font-size: 7rem;
  font-weight: bold;
  color: #fff;
  padding: 0px;
}

#minute {
  display: inline-block;
  transform: skewY(28deg) rotateY(30deg);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

#second {
  display: inline-block;
  transform: skewY(-28deg) rotateY(30deg);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.btn,
.btn1 {
  width: 90%;
}

@keyframes scaleAnimation {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.btn a img,
.btn1 a img {
  animation: scaleAnimation 1.5s infinite ease-in-out;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
}

.popup {
  background: url("./images/popup-bg.webp");
  background-size: 100% 100%;
  height: 40vh;
  min-width: 30vw;
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 25%;
  padding: 30px;
  border-radius: 20px;
  flex-direction: column;
  gap: 30px;
}

.popup .close {
  position: absolute;
  top: 0px;
  right: -5%;
  font-size: 2.8rem;
  cursor: pointer;
  color: #fff;
  background: #838383;
  border-radius: 100%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.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: 20px 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: 90%;
}

.btn-km:hover {
  opacity: 0.7;
  cursor: pointer;
}

.app-mb {
  display: none;
}

@media screen and (max-width: 768px) {
  .app {
    background: url(./images/bg-mb.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 20px;
  }

  .number {
    font-size: 3rem;
    font-weight: bold;
    color: #fff;
    padding: 0px;
  }

  .bg-qt {
    position: relative;
    left: 0;
    top: 40%;
    width: 50%;
    height: 30%;
  }

  .countdown {
    gap: 20px;
    bottom: 3%;
  }

  .content {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    gap: 5px;
    bottom: 0;
    display: flex;
    transform: none;
  }

  .btn1 {
    gap: 10px;
  }

  .popup {
    width: 80vw;
  }
}
