.loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

body.no-scroll {
  overflow: hidden;
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #402364;
  border-radius: 50%;
  margin-right: 6px;
  animation: pulse 0.8s infinite ease-in-out;
  color: rgb(255, 255, 255);
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.4;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
  }

  100% {
    transform: scale(0.8);
    opacity: 0.4;
  }
}

.container {
  background-image: url("./assets/v-3.webp") !important;
  /* background-color: #3B1A4F; */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 10px;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
  max-width: 100%;
  /* border: 3px solid gold; */
  text-align: center;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

h1 {
  color: gold;
  margin-bottom: 10px;
  text-shadow: 0 0 10px #ff0;
}

.button {
  /* background: linear-gradient(45deg, #ff9800, #e91e63); */
  /* background: linear-gradient(45deg, #88080c, #f04153); */
  background-color: #402364;
  color: #fff;
  border: none;
  padding: 5px 25px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  font-weight: normal;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s;
}

.button:hover {
  transform: scale(1.05);
}

.slot-container {
  position: relative;
  width: 300px;
  height: 150px;
  margin: 20px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slot-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("./assets/frame.png") no-repeat center center;
  background-size: contain;
  pointer-events: none;
}

.slot {
  background: #222;
  border: 2px solid #555;
  border-radius: 3px;
  width: 77%;
  height: 49px;
  overflow: hidden;
  position: relative;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 5px #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slot span {
  display: block;
  position: absolute;
  width: 100%;
  text-align: center;
}

.result {
  font-size: 22px;
  margin-top: 15px;
  font-weight: bold;
  color: gold;
  min-height: 30px;
}

.token-label {
  margin-top: 10px;
  font-size: 18px;
  color: #ffeb3b;
}

.custom-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: rgba(255, 255, 255, 0.97); */
  background-image: url("./assets/v-3.webp") !important;
  /* background-color: #000000; */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
}

#snow-container {
  z-index: 1000;
}

#popup {
  z-index: 9000;
}

#rulesPopup {
  z-index: 9500;
}

.text-start li {
  font-size: 13px;
}

.custom-popup-content p {
  font-size: 14px;
}

.custom-popup-content h2 {
  font-size: 1.2rem;
}

.custom-popup-content.oko,
.custom-popup-content {
  background: transparent;
  border-radius: 12px;
  padding: 20px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
  font-family: Arial, sans-serif;
  color: #333;
  text-align: center;
}

.custom-popup-content.oko {
  background-color: white !important;
}

.custom-popup-content h2 {
  color: #ffff00;
  font-family: "Abril Fatface", cursive;
}
/* .custom-text{
  font-family: "Abril Fatface", cursive !important;
} */

.pop-up-content {
  position: absolute;
  top: 30%;
  left: 5%;
  z-index: 1000;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  display: none;
  max-width: 300px;
}

.pop-up-content h1 {
  font-size: 24px;
  color: #27ae60;
  font-family: "Abril Fatface", cursive;
}

.pop-up-content p {
  font-size: 16px;
  margin: 10px 0;
  height: 70px;
}

#claim-prize {
  background-color: #ff4757;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-weight: 400;
  margin-top: 10px;
}

.error-message {
  color: red;
  font-size: 12px;
  margin-top: 5px;
  text-align: left;
}

#tcCheckbox,
#openRules {
  cursor: pointer;
}

#otp-input:focus,
.input-field:focus {
  border-color: #4caf50;
  box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
  background-color: #fff;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#user-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  margin-top: 1rem;
}

.slot-title {
  max-width: 165px;
  width: 100%;
  height: auto;
  margin-bottom: 10px;
}

#share-btn {
  margin-top: 2rem;
}

.popup-logo {
  max-width: 90px;
  height: auto;
  margin-bottom: 5px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.imageDiv {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#wishOutput {
  width: 100%;
  min-height: 130px;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #cbd5db;
  font-size: 14px;
  resize: none;
}

#snow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  top: -10px;
  font-size: 10px;
  opacity: 0.9;
  animation: fall linear infinite;
}

@keyframes fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0.4;
  }
}

#wishBox {
  position: relative;
  margin-top: 15px;
  width: 100%;
}

#wishBlurBg {
  display: none;
}

#wishLoader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  display: none;
  font-size: 16px;
  color: #402364;
}

#editWishBtn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  cursor: pointer;
}

.option {
  padding: 9px 14px;
  border-radius: 4px;
  border: 1px solid #cbd5db;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
}

.option.primary {
  background: #5f9ea0;
  color: #fff;
  border-color: #5f9ea0;
}

.option.active {
  border-color: 1f4f60;
  font-weight: 500;
}

.label {
  font-size: 14px;
  margin: 16px 0 8px;
  display: block;
}

input[type="text"],
.input-field {
  width: 100%;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #cbd5db;
  font-size: 14px;
}

@media (max-width: 768px) {
  .tc-wrapper {
    margin: 12px 0;
    font-size: 14px;
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .tc-wrapper input {
    cursor: not-allowed;
  }

  .container {
    height: auto;
    display: block;
  }
  .loader-text {
    color: #402364 !important;
    font-size: 1rem;
  }
  .title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 18px;
    text-align: left;
  }
  .message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: -14px;
    margin-top: -10px;
  }

  .counter {
    font-size: 12px;
    color: #6b7280;
  }

  .ai-wish-box {
    padding: 16px !important;
    height: auto !important;
  }

  .label {
    color: #000000;
    font-size: 14px;
    margin-bottom: 6px;
    display: block;
    text-align: left;
  }

  .option-row {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    margin-bottom: 14px;
  }

  .option-row select {
    position: sticky;
    left: 0;
    z-index: 5;
    min-width: 90px;
    padding: 8px 10px;
    border-radius: 4px;
    border: none;
    font-size: 13px;
    background: #ffffff;
    color: #333;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  }

  .option-row-buttons {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0;
  }

  .option-row-buttons::-webkit-scrollbar {
    display: none;
  }

  .option {
    white-space: nowrap;
    padding: 8px 14px;
    border-radius: 4px;
    border: 1px solid #cbd5db;
    background: transparent;
    color: #000000;
    font-weight: normal;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.25s ease;
  }

  .option:hover {
    background: #ffffff20;
  }

  .option.active {
    background: #402364;
    border-color: #402364;
    color: #fff;
    font-weight: normal;
  }

  #receiverName {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #cbd5db;
    font-size: 14px;
    margin-bottom: 1rem;
  }

  #wishBox {
    position: relative;
    margin-bottom: 15px;
  }

  #wishOutput {
    width: 100%;
    min-height: 130px;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #cbd5db;
    font-size: 14px;
    resize: none;
  }

  #wishLoader {
    font-size: 13px;
    margin-top: 6px;
  }
}

@media (max-width: 320px) {
  .optionsDiv {
    width: 100%;
    max-width: 17rem;
    margin: auto;
  }
}
