/* ===== CSS RESET & VARIABLES ===== */
:root {
  /* Pink Color Palette for Kids & Parents */
  --primary-pink: linear-gradient(135deg, #ff6b9d 0%, #ff8eb4 50%, #ffaec9 100%);
  --secondary-pink: linear-gradient(135deg, #ff9eb5 0%, #ffb6c8 100%);
  --accent-pink: #ff6b9d;
  --light-pink: #fff0f5;
  --dark-pink: #d63384;
  
  /* Enhanced Button Colors - More Vibrant & Attractive */
  --btn-primary: linear-gradient(135deg, #e91e63 0%, #ff4081 50%, #ff79a0 100%);
  --btn-secondary: linear-gradient(135deg, #ff5722 0%, #ff8a65 50%, #ffab91 100%);
  --btn-accent: linear-gradient(135deg, #9c27b0 0%, #e91e63 50%, #ff4081 100%);
  --btn-success: linear-gradient(135deg, #4caf50 0%, #8bc34a 50%, #cddc39 100%);
  
  /* Soft Glass Effects */
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px 0 rgba(255, 107, 157, 0.2);
  
  /* Text Colors */
  --text-dark: #4a1e35;
  --text-light: #7d3c5a;
  --text-white: #ffffff;
  
  /* Typography - Updated Bengali Font */
  --font-family: 'Kalpurush', 'SolaimanLipi', 'Segoe UI', 'Arial', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: var(--primary-pink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
  /* Remove 3D perspective to stop mouse movement effects */
}

/* ===== FIXED LAYOUT - NO 3D MOVEMENT ===== */
/* Centered Header Styles */
.main-header {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
  width: 100%;
  position: relative;
  box-shadow: var(--glass-shadow);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center; /* Center align text */
  padding: 0 1rem;
}

.header-container h1 {
  color: var(--text-white);
  font-size: 2rem;
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
  margin: 0 auto; /* Center the heading */
  max-width: 600px;
}

/* Main Content - Centered */
.main-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  width: 100%;
  min-height: calc(100vh - 140px);
}

.container {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border-radius: 1.5rem;
  border: 1px solid var(--glass-border);
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(255, 107, 157, 0.2);
  max-width: 550px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  /* Remove 3D transformations */
  transition: transform 0.3s ease;
}

.container:hover {
  transform: translateY(-5px); /* Simple hover effect only */
  box-shadow: 0 15px 40px rgba(255, 107, 157, 0.3);
}

.container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--secondary-pink);
}

/* Centered Footer Styles */
.main-footer {
  background: rgba(74, 30, 53, 0.9);
  backdrop-filter: blur(10px);
  color: var(--text-white);
  padding: 1.5rem 0;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center; /* Center align text */
  padding: 0 1rem;
}

.footer-container p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 600px;
  margin: 0 auto; /* Center the text */
}

/* ===== SOFT QUIZ COMPONENTS ===== */
.quiz-container h1, .wheel-container h1, .form-container h1 {
  text-align: center;
  color: var(--text-dark);
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
}

/* Progress Bar */
.quiz-progress {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--secondary-pink);
  border-radius: 50px;
  transition: width 0.6s ease;
  position: relative;
}

/* Questions - Softer Design */
.question {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(255, 107, 157, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.question:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.15);
}

.question h3 {
  margin-bottom: 1.25rem;
  color: var(--text-dark);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Options - Kid Friendly */
.options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.options label {
  display: flex;
  align-items: center;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(5px);
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.options label:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateX(5px);
}

.options input[type="radio"] {
  margin-right: 1rem;
  width: 20px;
  height: 20px;
  accent-color: var(--accent-pink);
  position: relative;
  z-index: 2;
}

.options span {
  position: relative;
  z-index: 2;
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-dark);
}

.options input[type="radio"]:checked + span {
  color: var(--dark-pink);
  font-weight: 600;
}

/* ===== ENHANCED BUTTON STYLES ONLY ===== */
.btn-next, .btn-spin, .btn-submit {
  width: 100%;
  padding: 1.25rem 2rem;
  background: var(--btn-primary);
  color: var(--text-white);
  border: none;
  border-radius: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.3);
}

.btn-next:hover, .btn-spin:hover, .btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(233, 30, 99, 0.4);
  background: var(--btn-accent);
}

.btn-next:active, .btn-spin:active, .btn-submit:active {
  transform: translateY(-1px);
}

.btn-spin {
  background: var(--btn-accent);
  box-shadow: 0 6px 20px rgba(156, 39, 176, 0.3);
}

.btn-spin:hover {
  background: var(--btn-primary);
}

.btn-submit {
  background: var(--btn-success);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.btn-submit:hover {
  background: linear-gradient(135deg, #388e3c 0%, #689f38 50%, #9ccc65 100%);
}

/* ===== WHEEL COMPONENTS ===== */
.wheel-container {
  text-align: center;
}

.wheel-wrapper {
  position: relative;
  width: min(280px, 70vw);
  height: min(280px, 70vw);
  margin: 2rem auto;
}

#wheel {
  width: 100%;
  height: 100%;
  transition: transform 3s cubic-bezier(0.2, 0.8, 0.3, 1);
  border-radius: 50%;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
  border: 6px solid rgba(255, 255, 255, 0.3);
}

.wheel-pointer {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: var(--accent-pink);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  z-index: 10;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.2));
}

/* ===== FORM COMPONENTS ===== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1rem;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  font-size: 1rem;
  font-family: var(--font-family);
  transition: all 0.3s ease;
  color: var(--text-dark);
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent-pink);
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.reward-message {
  text-align: center;
  background: rgba(212, 237, 218, 0.8);
  padding: 1.5rem;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
  color: #155724;
  border: 1px solid rgba(40, 167, 69, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .header-container h1 {
    font-size: 1.5rem;
    padding: 0 1rem;
  }
  
  .main-content {
    padding: 1rem;
  }
  
  .container {
    padding: 2rem 1.5rem;
    border-radius: 1rem;
  }
  
  .quiz-container h1, .wheel-container h1, .form-container h1 {
    font-size: 1.6rem;
  }
  
  .question {
    padding: 1.25rem;
  }
  
  .question h3 {
    font-size: 1.1rem;
  }
  
  .options label {
    padding: 1rem;
  }
  
  .btn-next, .btn-spin, .btn-submit {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
  
  .footer-container p {
    font-size: 0.8rem;
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .header-container h1 {
    font-size: 1.3rem;
  }
  
  .container {
    padding: 1.5rem 1rem;
  }
  
  .quiz-container h1, .wheel-container h1, .form-container h1 {
    font-size: 1.4rem;
  }
  
  .question h3 {
    font-size: 1rem;
  }
  
  .options label {
    padding: 0.875rem;
    font-size: 0.9rem;
  }
  
  .options span {
    font-size: 0.9rem;
  }
}

/* Remove all 3D and mouse movement effects */
.container, .question, .options label, .btn-next, .btn-spin, .btn-submit {
  transform-style: flat;
  perspective: none;
}

/* Ensure text is clear and readable */
.quiz-container h1, .wheel-container h1, .form-container h1,
.question h3, .options span, .form-group label {
  text-shadow: none;
  -webkit-text-fill-color: initial;
  background: none;
  color: var(--text-dark);
}

.header-container h1, .footer-container p {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  -webkit-text-fill-color: initial;
  background: none;
}

/* ===== SUCCESS PAGE STYLES ===== */
.success-body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8eb4 50%, #ffaec9 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.success-popup {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.2);
    text-align: center;
    max-width: 450px;
    width: 90%;
    position: relative;
    overflow: hidden;
}

.success-popup::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8eb4 100%);
}

.success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1.5rem;
    animation: bounce 1s ease-in-out;
}

.success-title {
    color: #4a1e35;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.success-message {
    color: #4a1e35;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.redirect-message {
    color: #7d3c5a;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.loading-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    overflow: hidden;
}

.loading-progress {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8eb4 100%);
    animation: loading 3s linear forwards;
    border-radius: 50px;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-20px);}
    60% {transform: translateY(-10px);}
}