
.tools-parent-container body {
  font-family: "Segoe UI", "Arial", sans-serif;
  background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 50%, #fdcb6e 100%);
  min-height: 100vh;
  overflow-x: hidden;
}
.tools-parent-container .container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
}
.tools-parent-container {
  /* Header Styles */
}
.tools-parent-container .header {
  background: linear-gradient(90deg, #ff9ff3, #feca57, #48dbfb, #ff6b9d);
  background-size: 300% 100%;
  animation: gradientShift 8s ease infinite;
  padding: 15px 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.tools-parent-container .title {
  color: white;
  font-size: clamp(1.8rem, 4vw, 3rem);
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
  margin: 0;
  font-weight: bold;
  letter-spacing: 2px;
}
.tools-parent-container .subtitle {
  color: white;
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  margin-top: 5px;
  opacity: 0.95;
}
.tools-parent-container .star-decoration {
  display: inline-block;
  animation: sparkle 2s ease-in-out infinite;
  margin: 0 10px;
}
@keyframes sparkle {
  0%, 100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.2) rotate(180deg);
  }
}
.tools-parent-container {
  /* Level Selector */
}
.tools-parent-container .level-selector {
  background: white;
  padding: 15px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.tools-parent-container .level-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
}
.tools-parent-container .level-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.tools-parent-container .level-btn.active {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  transform: scale(1.05);
}
.tools-parent-container .level-desc {
  font-size: 0.75rem;
  margin-top: 3px;
  opacity: 0.9;
}
.tools-parent-container {
  /* Control Panel */
}
.tools-parent-container .control-panel {
  background: linear-gradient(90deg, #a8edea 0%, #fed6e3 100%);
  padding: 15px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.tools-parent-container .control-btn {
  background: white;
  color: #333;
  border: 3px solid;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}
.tools-parent-container .control-btn.run {
  border-color: #55a3ff;
  background: linear-gradient(135deg, #667eea 0%, #55a3ff 100%);
  color: white;
}
.tools-parent-container .control-btn.clear {
  border-color: #e74c3c;
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
}
.tools-parent-container .control-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.tools-parent-container {
  /* Main Content */
}
.tools-parent-container .main-content {
  flex: 1;
  display: flex;
  gap: 10px;
  padding: 10px;
  min-height: 0;
}
.tools-parent-container {
  /* Workspace Area */
}
.tools-parent-container .workspace-area {
  flex: 1;
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  min-width: 0;
}
.tools-parent-container #blocklyDiv {
  width: 100%;
  height: 100%;
}
.tools-parent-container {
  /* Quiz Area */
}
.tools-parent-container .quiz-area {
  width: 400px;
  background: white;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.tools-parent-container .quiz-header {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tools-parent-container .quiz-header h2 {
  color: white;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  margin: 0;
}
.tools-parent-container .score-display {
  background: white;
  color: #333;
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: bold;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.tools-parent-container {
  /* Quiz Container */
}
.tools-parent-container .quiz-container {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: linear-gradient(135deg, #ffeaa7 0%, #fff 100%);
}
.tools-parent-container .welcome-message {
  text-align: center;
  padding: 40px 20px;
}
.tools-parent-container .welcome-icon {
  font-size: 60px;
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}
.tools-parent-container .welcome-message h3 {
  color: #333;
  font-size: 1.8rem;
  margin-bottom: 10px;
}
.tools-parent-container .welcome-message p {
  color: #666;
  font-size: 1.1rem;
}
.tools-parent-container {
  /* Question Styles */
}
.tools-parent-container .question-container {
  background: white;
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  animation: slideIn 0.5s ease;
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.tools-parent-container .question-text {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 15px;
  font-weight: bold;
}
.tools-parent-container .question-image {
  max-width: 100%;
  max-height: 300px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.tools-parent-container .options-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tools-parent-container .image-option {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px !important;
}
.tools-parent-container .image-option img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}
.tools-parent-container .option-text {
  flex: 1;
  text-align: left;
}
.tools-parent-container .question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.tools-parent-container .question-number {
  color: #666;
  font-size: 0.9rem;
}
.tools-parent-container .multiplier-badge {
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  animation: pulse 1s infinite;
}
.tools-parent-container .option-btn {
  background: linear-gradient(135deg, #74b9ff 0%, #a29bfe 100%);
  color: white;
  border: none;
  padding: 15px 20px;
  border-radius: 15px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}
.tools-parent-container .option-btn:hover {
  transform: translateX(10px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.tools-parent-container .option-btn.correct {
  background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
  animation: correctAnswer 0.5s ease;
}
.tools-parent-container .option-btn.incorrect {
  background: linear-gradient(135deg, #d63031 0%, #e17055 100%);
  animation: incorrectAnswer 0.5s ease;
}
@keyframes correctAnswer {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}
@keyframes incorrectAnswer {
  0%, 20%, 40%, 60%, 80%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
}
.tools-parent-container {
  /* Timer */
}
.tools-parent-container .timer-display {
  background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}
.tools-parent-container .timer-display.warning {
  animation: timerWarning 1s infinite;
}
.tools-parent-container .timer-bar-container {
  width: 100%;
  height: 8px;
  background: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}
.tools-parent-container .timer-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #00b894, #00cec9);
  transition: width 1s linear;
}
.tools-parent-container .timer-text {
  font-weight: bold;
}
@keyframes timerWarning {
  0%, 100% {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
  }
  50% {
    background: linear-gradient(135deg, #d63031 0%, #e17055 100%);
  }
}
.tools-parent-container {
  /* Quiz Results */
}
.tools-parent-container .quiz-results {
  text-align: center;
  padding: 30px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}
.tools-parent-container .quiz-results h3 {
  color: #333;
  font-size: 2rem;
  margin-bottom: 20px;
}
.tools-parent-container .final-score {
  font-size: 2.5rem;
  font-weight: bold;
  color: #f39c12;
  margin: 20px 0;
  animation: scorePopup 0.5s ease;
}
@keyframes scorePopup {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}
.tools-parent-container .result-message {
  font-size: 1.3rem;
  color: #666;
  margin-top: 15px;
}
.tools-parent-container .hidden {
  display: none;
}
.tools-parent-container {
  /* Responsive Design */
}
@media (max-width: 1024px) {
  .tools-parent-container .main-content {
    flex-direction: column;
  }
  .tools-parent-container .quiz-area {
    width: 100%;
    max-height: 50vh;
  }
  .tools-parent-container .workspace-area {
    min-height: 300px;
  }
}
@media (max-width: 768px) {
  .tools-parent-container .level-selector {
    padding: 10px 5px;
  }
  .tools-parent-container .level-btn {
    min-width: 100px;
    padding: 10px 15px;
  }
  .tools-parent-container .control-panel {
    padding: 10px 5px;
    gap: 8px;
  }
  .tools-parent-container .control-btn {
    padding: 8px 15px;
    font-size: 0.9rem;
  }
  .tools-parent-container .quiz-area {
    max-height: 40vh;
  }
  .tools-parent-container .title {
    font-size: 1.5rem;
  }
}
@media (max-width: 480px) {
  .tools-parent-container .header {
    padding: 10px;
  }
  .tools-parent-container .star-decoration {
    display: none;
  }
  .tools-parent-container .level-btn {
    min-width: 80px;
    font-size: 0.85rem;
  }
  .tools-parent-container .quiz-container {
    padding: 15px;
  }
  .tools-parent-container .option-btn {
    padding: 12px 15px;
    font-size: 1rem;
  }
}
.tools-parent-container {
  /* TV and Large Screen Optimization */
}
@media (min-width: 1920px) {
  .tools-parent-container .container {
    max-width: 1920px;
    margin: 0 auto;
  }
  .tools-parent-container .title {
    font-size: 3.5rem;
  }
  .tools-parent-container .control-btn {
    padding: 15px 30px;
    font-size: 1.3rem;
  }
  .tools-parent-container .quiz-area {
    width: 500px;
  }
}
.tools-parent-container {
  /* Print Styles */
}
@media print {
  .tools-parent-container .control-panel,
  .tools-parent-container .level-selector {
    display: none;
  }
}
.tools-parent-container {
  /* Accessibility */
}
@media (prefers-reduced-motion: reduce) {
  .tools-parent-container * {
    animation: none !important;
    transition: none !important;
  }
}
.tools-parent-container {
  /* High Contrast Mode */
}
@media (prefers-contrast: high) {
  .tools-parent-container .control-btn,
  .tools-parent-container .option-btn {
    border: 2px solid currentColor;
  }
}
.tools-parent-container {
  /* Enhanced Quiz Results Card */
}
.tools-parent-container .result-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  animation: slideUp 0.5s ease;
  max-width: 400px;
  margin: 0 auto;
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.tools-parent-container .result-title {
  color: #333;
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
}
.tools-parent-container .stars-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 25px;
  font-size: 2.5rem;
}
.tools-parent-container .star {
  transition: all 0.3s ease;
  animation: starPop 0.5s ease;
}
.tools-parent-container .star.filled {
  color: #ffd700;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}
.tools-parent-container .star.empty {
  color: #ddd;
  font-size: 2.5rem;
}
@keyframes starPop {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}
.tools-parent-container .score-details {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
  color: white;
}
.tools-parent-container .score-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 1.1rem;
}
.tools-parent-container .score-item.main-score {
  font-size: 1.3rem;
  font-weight: bold;
  padding-top: 10px;
  border-top: 2px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 0;
}
.tools-parent-container .score-label {
  opacity: 0.9;
}
.tools-parent-container .score-value {
  font-weight: bold;
  font-size: 1.2rem;
}
.tools-parent-container .correct-count {
  color: #4ade80;
}
.tools-parent-container {
  /* Circular Progress */
}
.tools-parent-container .percentage-circle {
  width: 150px;
  margin: 20px auto;
}
.tools-parent-container .circular-chart {
  display: block;
  max-width: 100%;
}
.tools-parent-container .circle-bg {
  fill: none;
  stroke: #eee;
  stroke-width: 3.8;
}
.tools-parent-container .circle {
  fill: none;
  stroke-width: 2.8;
  stroke-linecap: round;
  animation: progress 1s ease-out forwards;
  stroke: #4ade80;
}
.tools-parent-container .result-card.excellent .circle {
  stroke: #4ade80;
}
.tools-parent-container .result-card.good .circle {
  stroke: #60a5fa;
}
.tools-parent-container .result-card.fair .circle {
  stroke: #fbbf24;
}
.tools-parent-container .result-card.needs-improvement .circle {
  stroke: #fb923c;
}
@keyframes progress {
  0% {
    stroke-dasharray: 0 100;
  }
}
.tools-parent-container .percentage {
  fill: #333;
  font-size: 0.5em;
  text-anchor: middle;
  font-weight: bold;
}
.tools-parent-container .result-message {
  text-align: center;
  font-size: 1.2rem;
  margin: 20px 0;
  padding: 15px;
  border-radius: 10px;
  font-weight: bold;
}
.tools-parent-container .result-message.excellent {
  background: linear-gradient(135deg, #4ade80, #22c55e);
  color: white;
}
.tools-parent-container .result-message.good {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  color: white;
}
.tools-parent-container .result-message.fair {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
}
.tools-parent-container .result-message.needs-improvement {
  background: linear-gradient(135deg, #fb923c, #f97316);
  color: white;
}
.tools-parent-container {
  /* Celebration Animations */
}
.tools-parent-container .celebration-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}
.tools-parent-container .confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  top: -10px;
  animation: confettiFall linear infinite;
}
@keyframes confettiFall {
  to {
    transform: translateY(100vh) rotate(360deg);
  }
}
.tools-parent-container .balloon {
  position: absolute;
  font-size: 3rem;
  bottom: -100px;
  animation: balloonFloat 6s ease-in-out infinite;
}
@keyframes balloonFloat {
  to {
    bottom: 100vh;
    transform: translateX(50px) rotate(10deg);
  }
}
.tools-parent-container .celebration-star {
  position: absolute;
  font-size: 2rem;
  animation: sparkle 2s ease-in-out infinite;
}
.tools-parent-container .firework {
  position: absolute;
  font-size: 4rem;
  bottom: 0;
  animation: fireworkLaunch 3s ease-out infinite;
}
@keyframes fireworkLaunch {
  0% {
    bottom: 0;
    opacity: 1;
    transform: scale(0.5);
  }
  50% {
    bottom: 60vh;
    opacity: 1;
    transform: scale(1);
  }
  100% {
    bottom: 70vh;
    opacity: 0;
    transform: scale(2);
  }
}
.tools-parent-container .celebration-message {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 3rem;
  font-weight: bold;
  color: #ff6b6b;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
  animation: celebrationPulse 2s ease-in-out infinite;
}
@keyframes celebrationPulse {
  0%, 100% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.2);
  }
}
.tools-parent-container .media-container {
  margin: 20px 0;
  text-align: center;
}