@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600;700&family=Nunito:wght@400;700;900&display=swap');

:root {
  --primary: #6c5ce7;
  --primary-dark: #5b4bc4;
  --secondary: #fdcb6e;
  --accent: #ff7675;
  --success: #00b894;
  --bg-gradient: linear-gradient(135deg, #ed87eb 0%, #d862b7 50%, #bf4c8f 100%);
}

body {
  font-family: 'Fredoka', 'Nunito', sans-serif;
  background: var(--bg-gradient);
  min-height: 100vh;
  color: #2d3436;
  margin: 0;
  overflow-x: hidden;
}

/* Playful Bubbly Buttons & Cards */
.card-kids {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 12px 0 rgba(0, 0, 0, 0.12), 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border: 4px solid #f1f2f6;
  transition: all 0.2s ease;
}

.btn-kids {
  font-weight: 700;
  border-radius: 18px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.15);
  transition: all 0.15s ease;
  cursor: pointer;
  user-select: none;
}

.btn-kids:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 0 rgba(0, 0, 0, 0.15);
}

.btn-kids:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
}

.btn-primary-kids {
  background: #6c5ce7;
  color: #ffffff;
  border: 3px solid #5b4bc4;
}

.btn-yellow-kids {
  background: #fdcb6e;
  color: #2d3436;
  border: 3px solid #e1b12c;
}

.btn-green-kids {
  background: #00b894;
  color: #ffffff;
  border: 3px solid #009473;
}

.btn-pink-kids {
  background: #fd79a8;
  color: #ffffff;
  border: 3px solid #e84393;
}

/* Option Cards (4 Colors for Quizizz Style) */
.option-red {
  background: #ff7675;
  color: white;
  border: 4px solid #d63031;
}
.option-blue {
  background: #74b9ff;
  color: white;
  border: 4px solid #0984e3;
}
.option-yellow {
  background: #fdcb6e;
  color: #2d3436;
  border: 4px solid #e1b12c;
}
.option-green {
  background: #55efc4;
  color: #2d3436;
  border: 4px solid #00b894;
}

/* Animations */
@keyframes pulseGlow {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.pulse-animation {
  animation: pulseGlow 1.8s infinite ease-in-out;
}

@keyframes bounceShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.shake-animation {
  animation: bounceShake 0.4s ease-in-out;
}

@keyframes popSuccess {
  0% { transform: scale(0.8); opacity: 0; }
  70% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.pop-animation {
  animation: popSuccess 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Timer Bar */
.timer-bar-container {
  width: 100%;
  height: 16px;
  background: #dfe6e9;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #b2bec3;
}

.timer-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #00b894 0%, #fdcb6e 50%, #ff7675 100%);
  transition: width 0.1s linear;
}

/* Avatar Item Card */
.avatar-card {
  border: 3px solid #dfe6e9;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
}

.avatar-card:hover {
  transform: scale(1.08) rotate(-2deg);
  border-color: #6c5ce7;
}

.avatar-card.selected {
  border-color: #6c5ce7;
  background: #f0edff;
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.3);
  transform: scale(1.08);
}
