@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css");
 * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        :root {
            --primary: #A250A0;
            --primary-dark: #7C3C7A;
            --secondary: #61dafb;
            --accent: #FA60A8;
            --light: #F8F5FC;
            --dark: #160a3d;
            --success: #71cf87;
            --error: #ff9a6e;
            --border-radius: 12px;
            --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            }
        
        body {
        background: linear-gradient(135deg, #afcced99, #315627ab, #2e55f0a1);
            
            color: #333;
            line-height: 1.6;
            padding: 20px;
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .container {
            max-width: 800px;
            margin: 0 auto;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            padding: 30px;
            position: relative;
            overflow: hidden;
        }
        
        .header {
            text-align: center;
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 3px solid #4a69bd;
        }
        
        .header h1 {
            color: #1a2a6c;
            font-size: 2.5rem;
            margin-bottom: 10px;
            background: linear-gradient(90deg, #51609c, #f87bb3);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        
        
        .header p {
            color: #555;
            font-size: 1.1rem;
            max-width: 600px;
            margin: 0 auto;
        }
        
        .quiz-container {
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            padding: 25px;
            margin-bottom: 30px;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            border-left: 5px solid #4a69bd;
            position: relative;
            overflow: visible !important;
            display: none; /* Initially hide all quizzes */
        }
        
        .quiz-container.active {
            display: block; /* Show only active quiz */
        }
        
        .quiz-container:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        }
        
        .section-title {
            display: flex;
            align-items: center;
            gap: 10px;
            color: #1a2a6c;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #f0f0f0;
        }
        
        .section-title i {
            font-size: 1.8rem;
            color: #b21f1f;
        }
        
        .section-content {
            margin-bottom: 20px;
        }
        
        .section-content p {
            margin-bottom: 15px;
            line-height: 1.7;
        }
        
        .highlight-box {
            background: #f8f9fa;
            border-left: 4px solid #4a69bd;
            padding: 15px;
            margin: 15px 0;
            border-radius: 0 8px 8px 0;
            font-style: italic;
        }
        
        .quiz-choices {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin: 25px 0;
            overflow: visible !important;
        }

        css
/* 1. Fix the quiz choice container */
.quiz-choice {
  position: relative; /* Creates new stacking context */
  overflow: visible !important; /* Allows tooltip to escape */
  z-index: auto; /* Resets any inherited z-index */
}

.tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
  color: #1b1518;
  border-bottom: 1px dotted #fa60a8;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 200px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 14px;
  font-weight: normal;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

        
        .quiz-choice {
            display: flex;
            align-items: flex-start;
            padding: 15px;
            border-radius: 8px;
            background: #f8f9fa;
            cursor: pointer;
            transition: all 0.2s ease;
            border: 2px solid transparent;
            position: relative; /* Creates new stacking context */
            overflow: visible !important; /* Allows tooltip to escape */
            z-index: auto; 
        }
        
        .quiz-choice:hover {
            background: #e9ecef;
            transform: translateX(5px);
        }
        
        .quiz-choice.selected {
            border-color: #4a69bd;
            background: #e3f2fd;
            box-shadow: 0 0 0 3px rgba(74, 105, 189, 0.2);
        }
        
        .quiz-choice.correct {
            border-color: #73e68e;
            background: #d4edda;
        }
        
        .quiz-choice.incorrect {
            border-color: #f47e08;
            background: #ecb782;
        }
       
        .choice-letter {
            display: inline-flex;
            justify-content: center;
            align-items: center;
            width: 30px;
            height: 30px;
            background: #4a69bd;
            color: white;
            border-radius: 50%;
            font-weight: bold;
            margin-right: 15px;
            flex-shrink: 0;
        }
        
        .choice-text {
            padding-top: 3px;
        }
        
        .quiz-feedback {
            padding:5px;
            border-radius: 8px;
            margin-top: 20px;
            font-size: 0.95rem;
            display: none;
            animation: fadeIn 0.5s ease;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .feedback-correct {
            background: #d4edda;
            color: #155724;
            border-left: 4px solid #28a745;
            display: block !important;
            padding-left: 20px;
        }
        
        .feedback-incorrect {
            background: #f8d7da;
            color: #721c24;
            border-left: 4px solid #ec9d4d;
            display: block !important;
            padding-left:20px;
        }
        
        .instructions {
            background: #e3f2fd;
            padding: 20px;
            border-radius: 8px;
            margin: 30px 0;
            border-left: 4px solid #4a69bd;
        }
        
        .instructions h3 {
            color: #1a2a6c;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .footer {
            text-align: center;
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px;
            color: #666;
            font-size: 0.9rem;
        }
        /* Section Divider - This will now definitely appear */
/* DIVIDER - This version WILL work */
.section-divider {
  display: block;
  height: 3px;
  width: 100%;
  margin: 1.5rem 0;
  border: none;
  
  /* Modern browsers */
  background-image: linear-gradient(90deg, 
    #dc32a9, #7e1994, 
    #f7bebe, #9400D3,  #dc32a9);
  
  /* Fallback for older browsers */
  background-color: #FF0000; /* Solid red fallback */
  
  /* Add these properties to ensure visibility */
  opacity: 1 !important;
  visibility: visible !important;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
        
        .confetti {
            position: absolute;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            z-index: 100;
        }
        
        .quiz-end-message {
            background: #fff3cd;
            padding: 20px;
            border-radius: 8px;
            margin: 20px 0;
            border-left: 4px solid #ffc107;
            display: none;
        }
 
        
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .quiz-container {
        padding: 20px;
    }
    
    .quiz-choice {
        padding: 12px;
    }
}


