/* =======================================
   Global Styles
======================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* =======================================
   Container Styles
======================================= */
.container {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem 3rem;
  border-radius: 16px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
  width: 90%;
  max-width: 500px;
  text-align: center;
  animation: fadeIn 1s ease forwards;
}

/* =======================================
   Heading Styles
======================================= */
h1, h2 {
  color: #3A0CA3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
  margin-top: 0.5rem;
}

/* =======================================
   Challenge Box Styles
======================================= */
.challenge {
  background: #fff;
  border: 2px solid #3A0CA3;
  padding: 1.5rem;
  border-radius: 12px;
  margin: 1rem 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.challenge:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(58,12,163,0.2);
}

/* =======================================
   Input & Button Styles
======================================= */
input[type="text"], input[type="number"] {
  padding: 0.7rem 1rem;
  width: 80%;
  margin: 0.5rem 0;
  border: 2px solid #3A0CA3;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="number"]:focus {
  border-color: #7209B7;
}

button {
  padding: 0.7rem 1.5rem;
  margin-top: 1rem;
  background: #3A0CA3;
  color: #fff;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

button:hover {
  background: #7209B7;
  transform: translateY(-2px);
}

/* =======================================
   Slider Styles
======================================= */
.slider-container {
  position: relative;
  width: 100%;
  height: 40px;
  background: #eee;
  border-radius: 25px;
  margin: 1.5rem 0;
}

.slider {
  position: absolute;
  height: 40px;
  width: 40px;
  background: #3A0CA3;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.2s ease;
}

.slider.dragging {
  background: #7209B7;
  box-shadow: 0 0 10px rgba(114,9,183,0.5);
}

/* =======================================
   Countdown / Redirect Styles
======================================= */
.countdown {
  font-size: 1.2rem;
  margin-top: 1rem;
  color: #FF4D6D;
  font-weight: bold;
}

/* =======================================
   Confetti / Animation Styles
======================================= */
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* =======================================
   Responsive Styles
======================================= */
@media (max-width: 480px) {
  .container {
    padding: 1.5rem 1.5rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  input[type="text"], input[type="number"] {
    width: 100%;
  }

  button {
    width: 100%;
  }
}

/* =======================
   Footer
======================= */
footer {
  background-color: #1e1e1e;
  padding: 32px;
  text-align: center;
  margin-top: 80px;
}

footer p {
  margin-bottom: 16px;
}

.footer-social a {
  margin: 0 12px;
  color: #f0f0f0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: #3a0ca3;
}
