@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&amp;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&amp;display=swap');



/* new code */

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #08081dd9;
  color: white;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

.main-container {
  background-color: #0d0c2b;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  min-height: 100vh;
}

.header {
  background-color: #fc20d1;
  padding: 15px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header h1 {
  margin: 0;
  font-size: 1.4rem;
  color: #ffffff;
}

/* .ad-section {
      background-color: #1e1d4d;
      padding: 10px;
      margin: 10px 0;
      border-radius: 8px;
      text-align: center;
      min-height: 200px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #ccc;
      font-size: 14px;
      border: 1px solid #333;
    } */

.spinner-section {
  /* padding: 17px; */
  margin: 20px 0;
  position: relative;
  /* background-color: #2b2a6b; */
  border-radius: 15px;
  margin: 10px;
}

.spinner-wrapper {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  aspect-ratio: 1;
}

#wheel {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50%;
}

#spin-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(45deg, #fff, #f0f0f0);
  border: 3px solid #333;
  color: #000;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  z-index: 100;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

#spin-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

#spin-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.spinner-arrow {
  position: absolute;
  top: -10px;
  right: 50%;
  transform: translateX(50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 25px solid #ff0066;
  z-index: 50;
}

#final-value {
  text-align: center;
  margin-top: 20px;
  font-size: 1.2rem;
  color: #fff;
  font-weight: 600;
}

.content-section {
  padding: 20px;
}

.content-section h2 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  text-align: center;
  color: #fbd700;
  text-transform: uppercase;
}

.content-section h4 {
  font-size: 1rem;
  margin: 20px 0 15px 0;
  color: #e3e3e3;
  font-weight: 600;
}

.description {
  border: 1px solid #444;
  padding: 15px;
  border-radius: 10px;
  color: #e3e3e3;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.6;
  letter-spacing: 0.5px;
}

/* Enhanced Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-content {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  max-width: 350px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.5s ease-out;
  position: relative;
  overflow: hidden;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-content::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }

  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.modal-icon {
  font-size: 80px;
  margin-bottom: 20px;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-20px);
  }

  60% {
    transform: translateY(-10px);
  }
}

.modal-title {
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 20px #ffd700;
  }

  to {
    text-shadow: 0 0 30px #ffd700, 0 0 40px #ffd700;
  }
}

.modal-prize {
  font-size: 48px;
  font-weight: bold;
  color: #ffd700;
  margin: 20px 0;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

.modal-message {
  font-size: 18px;
  color: #fff;
  margin-bottom: 30px;
  opacity: 0.9;
}

.modal-button {
  background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
  animation: buttonGlow 2s ease-in-out infinite;
  position: relative;
  /* Ensure it's clickable */
  z-index: 100000;
  /* Bring to front */
  pointer-events: auto;
  /* Allow clicks */
}

@keyframes buttonGlow {

  0%,
  100% {
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
  }

  50% {
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.6);
  }
}

.modal-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(255, 107, 107, 0.6);
}

.modal-button:active {
  transform: translateY(-1px);
}

/* Try Again Modal Styles */
.try-again-modal {
  background: linear-gradient(135deg, #ff7b7b 0%, #ff9a9a 100%);
}

.try-again-icon {
  color: #fff;
}

.try-again-title {
  color: #fff;
}

.try-again-message {
  color: #fff;
}

.try-again-button {
  background: linear-gradient(45deg, #4ecdc4, #44a08d);
  box-shadow: 0 10px 30px rgba(78, 205, 196, 0.4);
  animation: buttonGlow2 2s ease-in-out infinite;
}

@keyframes buttonGlow2 {

  0%,
  100% {
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.4);
  }

  50% {
    box-shadow: 0 15px 40px rgba(78, 205, 196, 0.6);
  }
}

.try-again-button:hover {
  box-shadow: 0 15px 40px rgba(78, 205, 196, 0.6);
}

/* Floating elements */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-star {
  position: absolute;
  color: #ffd700;
  font-size: 20px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

.floating-star:nth-child(1) {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.floating-star:nth-child(2) {
  top: 20%;
  right: 10%;
  animation-delay: 1s;
}

.floating-star:nth-child(3) {
  bottom: 20%;
  left: 15%;
  animation-delay: 2s;
}

.floating-star:nth-child(4) {
  bottom: 10%;
  right: 15%;
  animation-delay: 0.5s;
}

/* Confetti Canvas */
#confettiCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10000;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .wrapper {
    font-size: 12px;
  }

  .modal-content {
    padding: 30px 20px;
  }

  .modal-title {
    font-size: 24px;
  }

  .modal-prize {
    font-size: 36px;
  }

  .modal-icon {
    font-size: 60px;
  }

  .modal-overlay {
    width: 100% !important;
  }

  .topics1 h2 {
    margin-top: 28px;
  }
}

footer a {
  text-decoration: none;
}


.try-again-section {
  background-color: #1e1d4d;
  padding: 30px 20px;
  text-align: center;
  margin: 20px 0;
  border-radius: 10px;
  border: 2px solid #fbd700;
}


.try-again-section h3 {
  color: #fbd700;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.try-again-section p {
  color: #e3e3e3;
  margin-bottom: 20px;
  font-size: 16px;
}

.try-again-btn {
  background-color: #fbd700;
  color: #000;
  border: none;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.try-again-btn:hover {
  background-color: #e6c200;
  transform: scale(1.05);
}

.hidden {
  display: none;
}


.show-result {
  background-color: #fbd700;
  color: #000;
  border: none;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  /* animation: pulse 2s infinite; */
}

.center-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;

}

.cantinue-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}


.topic {
    border-color: #fc20d1;
    background-color: #fc20d1;
    padding: 10px 12px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    border: 2px solid #fc20d1;
    transition: all 0.2s ease-in-out;
    animation: zoomPulse 1.5s infinite;
}
.topic-continue {
    border-color: #fc20d1;
    background-color: #fc20d1;
    padding: 10px 12px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    border: 2px solid #fc20d1;
    transition: all 0.2s ease-in-out;
    animation: zoomPulse 1.5s infinite;
}

@keyframes zoomPulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}


.hidden {
  display: none;
}

