
/* Quote text styling */
/*.quote-text {*/
/*    font-size: 1.1rem !important;*/
/*    line-height: 1.6 !important;*/
/*    color: #555 !important;*/
/*    font-style: italic !important;*/
/*    margin: 1.5rem 0 2rem 0 !important;*/
/*    padding: 1rem !important;*/
/*    background: #f8f9fa !important;*/
/*    border-left: 4px solid #007bff !important;*/
/*    border-radius: 4px !important;*/
/*    text-align: left !important;*/
/*}*/


/* Fix for game buttons text visibility */
/*.game-btn h3 {*/
/*    color: white !important;*/
/*    font-size: 1.5rem !important;*/
/*    margin-bottom: 0.5rem !important;*/
/*    font-weight: 600 !important;*/
/*}*/

/*.game-btn p {*/
/*    color: rgba(255, 255, 255, 0.9) !important;*/
/*    font-size: 0.95rem !important;*/
/*    margin: 0 !important;*/
/*    line-height: 1.4 !important;*/
/*}*/
/* WordPress Reset - Container Level */
/*#enhanced-quiz-container {*/
/*    max-width: 800px !important;*/
/*    margin: 0 auto !important;*/
/*    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;*/
/*    background: #fff !important;*/
/*    border-radius: 12px !important;*/
/*    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;*/
/*    overflow: hidden !important;*/
/*    position: relative !important;*/
/*    z-index: 1 !important;*/
/*}*/

/* WordPress Reset - All Elements */
/*#enhanced-quiz-container * {*/
/*    box-sizing: border-box !important;*/
/*}*/

/*#enhanced-quiz-container button {*/
/*    font-family: inherit !important;*/
/*    font-size: inherit !important;*/
/*    line-height: inherit !important;*/
/*    margin: 0 !important;*/
/*    overflow: visible !important;*/
/*    text-transform: none !important;*/
/*    -webkit-appearance: button !important;*/
/*    cursor: pointer !important;*/
/*}*/

/* Section Management */
/*.quiz-section {*/
/*    display: none;*/
/*    padding: 2rem;*/
/*}*/

/*.quiz-section.active {*/
/*    display: block;*/
/*}*/

/* Game Selector */
/*#game-selector {*/
/*    text-align: center;*/
/*    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
/*    color: white;*/
/*}*/

/*#game-selector h2 {*/
/*    margin-bottom: 2rem;*/
/*    font-size: 2rem;*/
/*    font-weight: 300;*/
/*    font-weight: bold !important;*/
/*    color: white !important;*/
/*}*/

/*#enhanced-quiz-container .game-buttons {*/
/*    display: grid !important;*/
/*    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;*/
/*    gap: 1.5rem !important;*/
/*    margin-top: 2rem !important;*/
/*    width: 100% !important;*/
/*    padding: 0 !important;*/
/*}*/

/* WordPress Theme Override - High Specificity */
/*#enhanced-quiz-container .game-btn {*/
/*    background: rgba(255, 255, 255, 0.15) !important;*/
/*    border: 2px solid rgba(255, 255, 255, 0.3) !important;*/
/*    border-radius: 12px !important;*/
/*    padding: 2rem !important;*/
/*    color: white !important;*/
/*    cursor: pointer !important;*/
/*    transition: all 0.3s ease !important;*/
/*    backdrop-filter: blur(10px) !important;*/
/*    margin: 0px !important;*/
/*    display: flex !important;*/
/*    flex-direction: column !important;*/
/*    align-items: center !important;*/
/*    justify-content: center !important;*/
/*    text-align: center !important;*/
/*    min-height: 150px !important;*/
/*    width: 100% !important;*/
/*    box-sizing: border-box !important;*/
/*    text-decoration: none !important;*/
/*    font-family: inherit !important;*/
/*    line-height: normal !important;*/
/*    vertical-align: baseline !important;*/
/*    outline: none !important;*/
/*}*/

/*#enhanced-quiz-container .game-btn:hover {*/
/*    background: rgba(255, 255, 255, 0.25) !important;*/
/*    border-color: rgba(255, 255, 255, 0.5) !important;*/
/*    transform: translateY(-2px) !important;*/
/*    color: white !important;*/
/*    text-decoration: none !important;*/
/*}*/

/*.game-btn h3 {*/
/*    margin: 0 0 0.5rem 0;*/
/*    font-size: 1.5rem;*/
/*    font-weight: 600;*/
/*}*/

/*.game-btn p {*/
/*    margin: 0;*/
/*    opacity: 0.9;*/
/*    font-size: 0.95rem;*/
/*}*/

/* Quiz Header */
/*#quiz-header {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: space-between;*/
/*    margin-bottom: 2rem;*/
/*    padding-bottom: 1rem;*/
/*    border-bottom: 2px solid #f0f0f0;*/
/*}*/

/*.back-btn {*/
/*    background: #6c757d;*/
/*    color: white;*/
/*    border: none;*/
/*    padding: 0.75rem 1rem;*/
/*    border-radius: 8px;*/
/*    cursor: pointer;*/
/*    font-size: 0.9rem;*/
/*    transition: all 0.3s ease;*/
/*}*/

/*.back-btn:hover {*/
/*    background: #5a6268;*/
/*    transform: translateX(-2px);*/
/*}*/

/*#progress-bar {*/
/*    flex: 1;*/
/*    height: 8px;*/
/*    background: #e9ecef;*/
/*    border-radius: 4px;*/
/*    margin: 0 1rem;*/
/*    overflow: hidden;*/
/*}*/

/*#progress-fill {*/
/*    height: 100%;*/
/*    background: linear-gradient(90deg, #28a745, #20c997);*/
/*    border-radius: 4px;*/
/*    transition: width 0.3s ease;*/
/*    width: 10%;*/
/*}*/

/*#question-counter {*/
/*    font-weight: 600;*/
/*    color: #495057;*/
/*    min-width: 120px;*/
/*    text-align: right;*/
/*}*/

/* Quiz Content */
/*.question-container {*/
/*    text-align: center;*/
/*}*/

/*.question-text {*/
/*    font-size: 1.5rem;*/
/*    margin-bottom: 2rem;*/
/*    color: #343a40;*/
/*    line-height: 1.4;*/
/*    font-weight: 400;*/
/*}*/

/*.options-container {*/
/*    display: grid;*/
/*    gap: 1rem;*/
/*    max-width: 500px;*/
/*    margin: 0 auto;*/
/*}*/

/*.option-btn {*/
/*    background: #f8f9fa;*/
/*    border: 2px solid #dee2e6;*/
/*    border-radius: 12px;*/
/*    padding: 1.25rem;*/
/*    font-size: 1.1rem;*/
/*    font-weight: 500;*/
/*    cursor: pointer;*/
/*    transition: all 0.3s ease;*/
/*    color: #495057;*/
/*}*/

/*.option-btn:hover:not(:disabled) {*/
/*    background: #e9ecef;*/
/*    border-color: #6c757d;*/
/*    transform: translateY(-2px);*/
/*    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);*/
/*}*/

/*.option-btn:disabled {*/
/*    cursor: not-allowed;*/
/*}*/

/*.option-btn.correct {*/
/*    background: #d4edda;*/
/*    border-color: #28a745;*/
/*    color: #155724;*/
/*}*/

/*.option-btn.incorrect {*/
/*    background: #f8d7da;*/
/*    border-color: #dc3545;*/
/*    color: #721c24;*/
/*}*/

/* Results */
/*#quiz-results {*/
/*    text-align: center;*/
/*}*/

/*.results-summary {*/
/*    margin-bottom: 2rem;*/
/*    padding: 2rem;*/
/*    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
/*    color: white;*/
/*    border-radius: 12px;*/
/*    margin: -2rem -2rem 2rem -2rem;*/
/*}*/

/*.results-summary h2 {*/
/*    margin: 0 0 0.5rem 0;*/
/*    font-size: 2rem;*/
/*    font-weight: 300;*/
/*}*/

/*.results-summary h3 {*/
/*    margin: 0 0 1.5rem 0;*/
/*    opacity: 0.9;*/
/*    font-weight: 400;*/
/*}*/

/*.score-display {*/
/*    margin-bottom: 1rem;*/
/*}*/

/*.score-number {*/
/*    font-size: 3rem;*/
/*    font-weight: 700;*/
/*    line-height: 1;*/
/*}*/

/*.score-percentage {*/
/*    font-size: 1.5rem;*/
/*    opacity: 0.9;*/
/*}*/

/*.performance-message {*/
/*    font-size: 1.2rem;*/
/*    font-weight: 500;*/
/*}*/

/*.detailed-results {*/
/*    text-align: left;*/
/*}*/

/*.detailed-results h4 {*/
/*    margin-bottom: 1rem;*/
/*    color: #343a40;*/
/*    font-size: 1.25rem;*/
/*}*/

/*.results-list {*/
/*    display: grid;*/
/*    gap: 1rem;*/
/*}*/

/*.result-item {*/
/*    display: grid;*/
/*    grid-template-columns: auto 1fr auto;*/
/*    gap: 1rem;*/
/*    padding: 1rem;*/
/*    border-radius: 8px;*/
/*    border-left: 4px solid;*/
/*}*/

/*.result-item.correct {*/
/*    background: #f8f9fa;*/
/*    border-left-color: #28a745;*/
/*}*/

/*.result-item.incorrect {*/
/*    background: #f8f9fa;*/
/*    border-left-color: #dc3545;*/
/*}*/

/*.result-number {*/
/*    width: 30px;*/
/*    height: 30px;*/
/*    background: #6c757d;*/
/*    color: white;*/
/*    border-radius: 50%;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    font-weight: 600;*/
/*    font-size: 0.9rem;*/
/*}*/

/*.result-item.correct .result-number {*/
/*    background: #28a745;*/
/*}*/

/*.result-item.incorrect .result-number {*/
/*    background: #dc3545;*/
/*}*/

/*.result-details {*/
/*    min-width: 0;*/
/*}*/

/*.result-question {*/
/*    font-weight: 600;*/
/*    margin-bottom: 0.25rem;*/
/*    color: #343a40;*/
/*}*/

/*.result-answer {*/
/*    font-size: 0.9rem;*/
/*    color: #6c757d;*/
/*}*/

/*.result-status {*/
/*    font-size: 1.5rem;*/
/*    font-weight: bold;*/
/*    display: flex;*/
/*    align-items: center;*/
/*}*/

/*.result-item.correct .result-status {*/
/*    color: #28a745;*/
/*}*/

/*.result-item.incorrect .result-status {*/
/*    color: #dc3545;*/
/*}*/

/*.results-actions {*/
/*    display: flex;*/
/*    gap: 1rem;*/
/*    justify-content: center;*/
/*    margin-top: 2rem;*/
/*}*/

/*.action-btn {*/
/*    background: #007bff;*/
/*    color: white;*/
/*    border: none;*/
/*    padding: 1rem 2rem;*/
/*    border-radius: 8px;*/
/*    font-size: 1rem;*/
/*    font-weight: 500;*/
/*    cursor: pointer;*/
/*    transition: all 0.3s ease;*/
/*}*/

/*.action-btn:hover {*/
/*    background: #0056b3;*/
/*    transform: translateY(-2px);*/
/*}*/

/*.action-btn.secondary {*/
/*    background: #6c757d;*/
/*}*/

/*.action-btn.secondary:hover {*/
/*    background: #5a6268;*/
/*}*/

/* Loading */
/*#loading {*/
/*    text-align: center;*/
/*    padding: 4rem 2rem;*/
/*}*/

/*.spinner {*/
/*    width: 50px;*/
/*    height: 50px;*/
/*    border: 4px solid #f3f3f3;*/
/*    border-top: 4px solid #667eea;*/
/*    border-radius: 50%;*/
/*    animation: spin 1s linear infinite;*/
/*    margin: 0 auto 1rem;*/
/*}*/

/*@keyframes spin {*/
/*    0% { transform: rotate(0deg); }*/
/*    100% { transform: rotate(360deg); }*/
/*}*/

/* Responsive Design */
/*@media (max-width: 768px) {*/
/*    #enhanced-quiz-container {*/
/*        margin: 1rem;*/
/*        border-radius: 8px;*/
/*    }*/
    
/*    .quiz-section {*/
/*        padding: 1rem;*/
/*    }*/
    
/*    #game-selector {*/
/*        padding: 1.5rem 1rem;*/
/*    }*/
    
/*    .game-buttons {*/
/*        grid-template-columns: 1fr;*/
/*        gap: 1rem;*/
/*    }*/
    
/*    .game-btn {*/
/*        padding: 1.5rem;*/
/*    }*/
    
/*    #quiz-header {*/
/*        flex-direction: column;*/
/*        gap: 1rem;*/
/*        align-items: stretch;*/
/*    }*/
    
/*    #question-counter {*/
/*        text-align: center;*/
/*    }*/
    
/*    .question-text {*/
/*        font-size: 1.25rem;*/
/*    }*/
    
/*    .results-actions {*/
/*        flex-direction: column;*/
/*        align-items: center;*/
/*    }*/
    
/*    .action-btn {*/
/*        width: 100%;*/
/*        max-width: 250px;*/
/*    }*/
    
/*    .result-item {*/
/*        grid-template-columns: auto 1fr;*/
/*        gap: 0.75rem;*/
/*    }*/
    
/*    .result-status {*/
/*        grid-column: 1 / -1;*/
/*        justify-content: center;*/
/*        margin-top: 0.5rem;*/
/*    }*/
/*}*/


/* Replace your existing CSS with this updated version */

/* Quote text styling */
.quote-text {
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    color: #555 !important;
    font-style: italic !important;
    margin: 1.5rem 0 2rem 0 !important;
    padding: 1rem !important;
    background: #f8f9fa !important;
    border-left: 4px solid #007bff !important;
    border-radius: 4px !important;
    text-align: left !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    padding-bottom: 20px !important;
}

.quiz-content{
    margin-bottom: 20px !important;
    font-weight: bold !important;
}

.quiz-content p {
    font-weight: bold !important;
}
/* WordPress Reset - Container Level */
#enhanced-quiz-container {
    max-width: 800px !important;
    margin: 0 auto !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
    position: relative !important;
    z-index: 1 !important;
}

/* WordPress Reset - All Elements */
#enhanced-quiz-container * {
    box-sizing: border-box !important;
}

#enhanced-quiz-container button {
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    margin: 0 !important;
    overflow: visible !important;
    text-transform: none !important;
    -webkit-appearance: button !important;
    cursor: pointer !important;
}

/* Section Management */
.quiz-section {
    display: none;
    padding: 2rem;
}

.quiz-section.active {
    display: block;
}

/* Game Selector */
#game-selector {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

#game-selector h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: bold !important;
    color: white !important;
}

#enhanced-quiz-container .game-buttons {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 1.5rem !important;
    margin-top: 2rem !important;
    width: 100% !important;
    padding: 0 !important;
}

/* WordPress Theme Override - High Specificity */
#enhanced-quiz-container .game-btn {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    color: white !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
    margin: 0px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    min-height: 150px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    font-family: inherit !important;
    line-height: normal !important;
    vertical-align: baseline !important;
    outline: none !important;
}

#enhanced-quiz-container .game-btn:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-2px) !important;
    color: white !important;
    text-decoration: none !important;
}

/* Fix for game buttons text - UPDATED */
#enhanced-quiz-container .btn_quiz {
    color: white !important;
    font-size: 1.3rem !important;
    margin: 0 0 0.5rem 0 !important;
    font-weight: 600 !important;
    text-shadow: none !important;
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
}

#enhanced-quiz-container .btn_quiz {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.95rem !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    opacity: 0.9 !important;
    text-shadow: none !important;
    display: block !important;
    visibility: visible !important;
}

/* Quiz Header */
#quiz-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.back-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #5a6268;
    transform: translateX(-2px);
}

#progress-bar {
    flex: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    margin: 0 1rem;
    overflow: hidden;
}

#progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 10%;
}

#question-counter {
    font-weight: 600;
    color: #495057;
    min-width: 120px;
    text-align: right;
}

/* Quiz Content */
.question-container {
    text-align: center;
}

.question-text {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #343a40;
    line-height: 1.4;
    font-weight: 400;
}

.options-container {
    display: grid;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.option-btn {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 1.25rem;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #495057;
}

.option-btn:hover:not(:disabled) {
    background: #e9ecef;
    border-color: #6c757d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.option-btn:disabled {
    cursor: not-allowed;
}

.option-btn.correct {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.option-btn.incorrect {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

/* Results */
#quiz-results {
    text-align: center;
}

.results-summary {
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    margin: -2rem -2rem 2rem -2rem;
}

.results-summary h2 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-weight: 300;
}

.results-summary h3 {
    margin: 0 0 1.5rem 0;
    opacity: 0.9;
    font-weight: 400;
}

.score-display {
    margin-bottom: 1rem;
}

.score-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.score-percentage {
    font-size: 1.5rem;
    opacity: 0.9;
}

.performance-message {
    font-size: 1.2rem;
    font-weight: 500;
}

.detailed-results {
    text-align: left;
}

.detailed-results h4 {
    margin-bottom: 1rem;
    color: #343a40;
    font-size: 1.25rem;
}

.results-list {
    display: grid;
    gap: 1rem;
}

.result-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid;
}

.result-item.correct {
    background: #f8f9fa;
    border-left-color: #28a745;
}

.result-item.incorrect {
    background: #f8f9fa;
    border-left-color: #dc3545;
}

.result-number {
    width: 30px;
    height: 30px;
    background: #6c757d;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.result-item.correct .result-number {
    background: #28a745;
}

.result-item.incorrect .result-number {
    background: #dc3545;
}

.result-details {
    min-width: 0;
}

.result-question {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #343a40;
}

.result-answer {
    font-size: 0.9rem;
    color: #6c757d;
}

.result-status {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.result-item.correct .result-status {
    color: #28a745;
}

.result-item.incorrect .result-status {
    color: #dc3545;
}

.results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.action-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.action-btn.secondary {
    background: #6c757d;
}

.action-btn.secondary:hover {
    background: #5a6268;
}

/* Loading */
#loading {
    text-align: center;
    padding: 4rem 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    #enhanced-quiz-container {
        margin: 1rem;
        border-radius: 8px;
    }
    
    .quiz-section {
        padding: 1rem;
    }
    
    #game-selector {
        padding: 1.5rem 1rem;
    }
    
    #enhanced-quiz-container .game-buttons {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    #enhanced-quiz-container .game-btn {
        padding: 1.5rem !important;
    }
    
    #quiz-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    #question-counter {
        text-align: center;
    }
    
    .question-text {
        font-size: 1.25rem;
    }
    
    .results-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 250px;
    }
    
    .result-item {
        grid-template-columns: auto 1fr;
        gap: 0.75rem;
    }
    
    .result-status {
        grid-column: 1 / -1;
        justify-content: center;
        margin-top: 0.5rem;
    }
}