@import url("https://fonts.googleapis.com/css2?family=Anton&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Mogra&family=Playwrite+NZ+Basic+Guides&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&family=Seymour+One&display=swap");

/*** Landing Page Screen ***/
#landingPageScreen {
  display: block;
  visibility: visible;
  opacity: 1;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  background-color: #a5060e;
  background-image: url("https://cdn.makear.ai/mcdonalds/assets/images/landingBg.png");
  background-size: cover;
  background-position: top;
  transition:
    visibility 400ms ease-in-out,
    opacity 400ms ease-in-out;
}

.start-btn {
  font-family: "Inter", sans-serif;
  position: absolute;
  bottom: 5%;
  left: 0;
  right: 0;
  margin: auto;

  display: flex;
  align-items: center;
  gap: 6px;

  width: fit-content;
  padding: 12px 22px;
  border-radius: 20px;
  border: none;
  background: #fdb309;
  color: #b6090f;
  font-weight: 900;
  font-size: 1rem;
}

.start-btn::after {
  content: "";
  width: 6px;
  height: 6px;

  border-top: 3px solid #b6090f;
  border-right: 3px solid #b6090f;

  transform: rotate(45deg);
  margin-left: 4px;
}

.start-btn:active {
  background: #d79500;
  color: #b6090f;
}

/*** Game Page Screen ***/
#gamePageScreen {
  display: none;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  background-color: #a5060e;
  background-image: url("https://cdn.makear.ai/mcdonalds/assets/images/gameBackgrounds/bgOne.png");
  background-size: cover;
  background-position: center;
  transition:
    visibility 400ms ease-in-out,
    opacity 400ms ease-in-out;
}

.icecream-img {
  position: absolute;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.icecream-img.found {
  opacity: 0;
  transform: scale(1.4);
}

.instruction-box {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  text-align: center;
  position: absolute;
  bottom: 5%;
  right: 0;
  left: 0;
  margin: auto;
  background-color: rgba(0, 0, 0, 0.75);
  padding: 12px 25px;
  border-radius: 50px;
  color: white;
  width: fit-content;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.countdown-container {
  position: absolute;
  right: 0;
  top: 4dvh;
  width: 180px;
  background: #b10104;
  height: 50px;
  border-radius: 30px 0 0 30px;
}
.countdown-container .logo-img {
  position: absolute;
  left: 10%;
  width: 30px;
  top: 24%;
}
#countDownNumber {
  position: absolute;
  right: 5%;
  top: 20%;
  font-size: 1.5rem;
  color: white;
  font-family: "Inter", sans-serif;
  font-weight: 900;
}

.timer {
  width: 20vw;
  height: 20vw;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 27%;
  top: -24%;
}

.outer-circle {
  width: 90%;
  height: 90%;
  border-radius: 50%;
  box-shadow: 0px 2.26px 2.26px 0px #00000040 inset;
  background: #ffbc0d;
  display: flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(#db0007e5 360deg, #ffbc0d 0deg);
  transition: background 1s ease;
}

@keyframes fillAnimation {
  0% {
    background: conic-gradient(#db0007e5 0deg, #ffbc0d 0deg);
  }

  100% {
    background: conic-gradient(#db0007e5 360deg, #ffbc0d 0deg);
  }
}

@keyframes show-modal {
  0% {
    top: 120dvh;
  }

  100% {
    top: 5dvh;
  }
}

@keyframes hide-modal {
  0% {
    top: 5dvh;
  }

  100% {
    top: 120dvh;
  }
}

.inner-circle {
  width: 15vw;
  height: 15vw;
  border-radius: 50%;
  background: #b10104;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inner-circle img {
  margin: 0;
  height: 80%;
  width: 80%;
  object-fit: contain;
  background-color: #660000;
  border-radius: 50%;
}

/*** Congrats Page ***/
#CongratsPage {
  display: none;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  background: linear-gradient(180deg, #bc050d 0%, #a9030b 100%);
  background-size: cover;
  background-position: center;
  transition:
    visibility 400ms ease-in-out,
    opacity 400ms ease-in-out;
}

.offer-container {
  position: absolute;
  inset: 0;
  margin: auto;
  width: fit-content;
  height: fit-content;
}

.offer-image {
  width: 100vw;
  pointer-events: none;
}

.claim-btn {
  font-family: "Inter", sans-serif;
  position: absolute;
  bottom: 6%;
  left: 0;
  right: 0;
  margin: auto;

  display: flex;
  align-items: center;
  gap: 6px;

  width: fit-content;
  padding: 12px 22px;
  border-radius: 20px;
  border: none;
  background: #fdb309;
  color: #b6090f;
  font-weight: 900;
  font-size: 1rem;
}

.claim-btn::after {
  content: "";
  width: 6px;
  height: 6px;

  border-top: 3px solid #b6090f;
  border-right: 3px solid #b6090f;

  transform: rotate(45deg);
  margin-left: 4px;
}

.claim-btn:active {
  background: #d79500;
  color: #b6090f;
}

/*** Form Page Screen ***/
#formPageScreen {
  display: none;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  background-color: linear-gradient(180deg, #bc050d 0%, #a9030b 100%);
  background-image: url("https://cdn.makear.ai/mcdonalds/assets/images/commonBg.png");
  background-size: cover;
  background-position: top;
  transition:
    visibility 400ms ease-in-out,
    opacity 400ms ease-in-out;
}

#formPageScreen .logo-img {
  width: 50vw;
  position: absolute;
  right: 0;
  left: 0;
  top: 5dvh;
  margin: auto;
}

.form-container {
  position: absolute;
  top: 35dvh;
  right: 0;
  left: 0;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto;
  width: 80vw;
  height: fit-content;
  background-color: #fff;
  border-radius: 20px;
  padding: 20px;
  font-family: "Inter", sans-serif;
}

.form-container p {
  font-family: "Inter", sans-serif;
  text-align: center;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.form-container .input-group {
  width: 100%;
  margin-bottom: 15px;
}

.form-container .input-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #2c2c2c;
}

.form-container label img {
  width: 10px;
  margin-left: 5px;
}

.form-container .input-group input {
  width: 100%;
  padding: 8px 16px;
  border: 1px solid #dddddd;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  box-sizing: border-box;
}

.input-group input::placeholder {
  color: #b0b0b0;
  font-size: 0.8rem;
}

.input-group input:focus {
  outline: none;
  border-color: #be0108;
}

.submit-btn {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  background: #be0108;
  width: 100%;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  margin-top: 5px;
}

.submit-btn:active {
  background: #8f0207;
}

.btn-loader {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/*** OTP Screen ***/
#otpScreen {
  display: none;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  background-color: linear-gradient(180deg, #bc050d 0%, #a9030b 100%);
  background-image: url("https://cdn.makear.ai/mcdonalds/assets/images/commonBg.png");
  background-size: cover;
  background-position: top;
  transition:
    visibility 400ms ease-in-out,
    opacity 400ms ease-in-out;
}

#otpScreen .logo-img {
  width: 50vw;
  position: absolute;
  right: 0;
  left: 0;
  top: 5dvh;
  margin: auto;
}

.otp-container {
  position: absolute;
  top: 35dvh;
  right: 0;
  left: 0;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: auto;
  width: 80vw;
  height: fit-content;
  background-color: #fff;
  border-radius: 20px;
  padding: 20px;
  font-family: "Inter", sans-serif;
}

.otp-container img {
  width: 150px;
}

.otp-container p {
  font-family: "Inter", sans-serif;
  text-align: center;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.otp-container .input-group {
  width: 100%;
  margin-bottom: 15px;
}

.otp-container .input-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #2c2c2c;
}

.otp-container .input-group input {
  width: 100%;
  padding: 8px 16px;
  border: 1px solid #dddddd;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  box-sizing: border-box;
}

.input-group input::placeholder {
  color: #b0b0b0;
  font-size: 0.8rem;
}

.input-group input:focus {
  outline: none;
  border-color: #be0108;
}

.generate-code-btn {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  background: #be0108;
  width: 100%;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  margin-top: 5px;
}

.generate-code-btn:active {
  background: #8f0207;
}

/***Batch Code Screen***/
#batchCodeScreen {
  display: none;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  background-color: linear-gradient(180deg, #bc050d 0%, #a9030b 100%);
  background-image: url("https://cdn.makear.ai/mcdonalds/assets/images/commonBg.png");
  background-size: cover;
  background-position: top;
  transition:
    visibility 400ms ease-in-out,
    opacity 400ms ease-in-out;
}

#batchCodeScreen .logo-img {
  width: 50vw;
  position: absolute;
  right: 0;
  left: 0;
  top: 5dvh;
  margin: auto;
}

#ssContainer {
  position: absolute;
  top: 20dvh;
  bottom: 0;
  right: 0;
  left: 0;
  height: 50%;
  margin: auto;
}

.code-display-container {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto;
  width: 80vw;
  height: fit-content;
  background-color: #fff;
  border-radius: 20px;
  padding: 40px 20px 20px;
  font-family: "Inter", sans-serif;
}

.code-display-container .gift-box-icon {
  position: absolute;
  top: -13%;
  width: 60px;
}

.code-display-container p {
  font-family: "Inter", sans-serif;
  text-align: center;
}

.batch-code-text {
  font-size: 2rem;
  padding: 10px 20px;
  border-radius: 20px;
  border: 3px #bd2727 dashed;
  color: #bd2727;
  font-weight: 900;
  width: 100%;
  margin-bottom: 10px;
}

.download-share-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
  margin-bottom: 12px;
}

.download-share-container img {
  width: 15px;
}

.download-button {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  font-weight: 600;
  color: #b40109;
  border: 2px solid #b40109;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.share-button {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  font-weight: 600;
  background-color: #b40109;
  border: 2px solid #b40109;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.share-text {
  font-weight: 300;
}

.store-direction-btn {
  font-family: "Inter", sans-serif;
  position: absolute;
  bottom: 5%;
  left: 0;
  right: 0;
  margin: auto;
  width: fit-content;

  display: flex;
  align-items: center;
  gap: 6px;

  padding: 12px 22px;
  border-radius: 20px;
  border: none;
  background: #fdb309;
  color: #b6090f;
  font-weight: 900;
  font-size: 1rem;
}

.store-direction-btn::after {
  content: "";
  width: 6px;
  height: 6px;

  border-top: 3px solid #b6090f;
  border-right: 3px solid #b6090f;

  transform: rotate(45deg);
  margin-left: 4px;
}

.store-direction-btn:active {
  background: #d79500;
  color: #b6090f;
}

/*** Try Again Popup ***/
.try-again-overlay {
  display: none;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 100;
  justify-content: center;
  align-items: center;
  transition: opacity 0.4s ease;
}

.try-again-content {
  background: #fff;
  width: 80vw;
  padding: 30px 20px;
  border-radius: 20px;
  text-align: center;
  font-family: "Inter", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.try-again-img {
  width: 100px;
  margin-bottom: 10px;
}

.try-again-content h2 {
  color: #be0108;
  font-weight: 900;
  margin: 0;
}

.try-again-content p {
  font-size: 0.9rem;
  color: #333;
  margin: 0;
}

.try-again-btn {
  background: #ffbc0d;
  color: #b6090f;
  border: none;
  padding: 12px 30px;
  border-radius: 20px;
  font-weight: 900;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.retry-icon {
  width: 18px;
  height: 18px;
}

.try-again-btn:active {
  background: #fdb309;
}

.try-again-btn:active .retry-icon {
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
}
