@charset "utf-8";
/* CSS Document */
/* Quiz Components - Enhanced Mobile-First Approach */

/* === MOBILE FIRST (Base Styles) === */

/* Progress Bar - Mobile */
.quiz-progress {
    margin-bottom: 1.5rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-text {
    font-size: 0.8rem;
    color: #6c757d;
    text-align: center;
    display: block;
}

/* Question Container - Mobile */
.question-text {
    font-size: 1.5rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.question-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 6px;
    margin: 1rem auto;
    display: block;
}

/* Options - Mobile */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.option-btn {
    display: flex;
    align-items: center;
    padding: 0.875rem;
    background: #003366;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
    min-height: 44px; /* Touch target minimum */
}

.option-letter {
    width: 1.75rem;
    height: 1.75rem;
    background: #DA9434;
    color: white;
    border-radius: 50%;
    font-weight: 600;
    margin-right: 0.75rem;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.option-text {
    flex: 1;
    font-size: 1.15rem;
    line-height: 1.4;
}

/* Action Buttons - Mobile */
.question-actions,
.result-actions,
.results-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn-primary,
.btn-secondary,
.btn-share {
    padding: 0.875rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
    width: 100%;
}


.feedback-icon{
	font-size: 1.5rem;
	margin-top: 15px;
}

.feedback-text{
	margin-top: 10px;
}

.feedback-text h4{
	font-size:2rem;
}


/* Timeline - Mobile First Responsive Design */
.timeline-events {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 0 0.5rem;
    min-height: 200px;
    position: relative;
}

.timeline-event {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0.875rem;
    background: linear-gradient(135deg, #003366 0%, #003366 100%);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: grab;
    min-height: 60px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    user-select: none;
    touch-action: none;
    
    /* Drag handle indicator */
    &::before {
        content: '';
        position: absolute;
        left: 0.5rem;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 20px;
        background: linear-gradient(to bottom, #dee2e6 0%, #dee2e6 25%, transparent 25%, transparent 50%, #dee2e6 50%, #dee2e6 75%, transparent 75%);
        background-size: 100% 4px;
        border-radius: 2px;
        opacity: 0.6;
    }
}

.event-text { 
	padding: 0 8px;
	color: white;
}

/* Enhanced interaction states */
.timeline-event:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
    background: linear-gradient(135deg, #DA9434 0%, #E2AB60 100%);
}

.timeline-event:active,
.timeline-event.dragging {
    cursor: grabbing;
    transform: scale(1.02) rotate(2deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #0056b3;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    z-index: 1000;
}

/* Drag placeholder/ghost */
.timeline-event.drag-placeholder {
    opacity: 0.5;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    transform: none;
    box-shadow: none;
}

/* Drop zone indicators */
.timeline-events.drag-over {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05) 0%, rgba(0, 123, 255, 0.1) 100%);
    border: 2px dashed #007bff;
    border-radius: 8px;
}

.timeline-event.drop-target {
    border-color: #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, #e8f5e8 100%);
}

/* Event content styling */
.timeline-event-content {
    flex: 1;
    padding-left: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #495057;
    font-weight: 500;
}

.timeline-event-date {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 600;
    white-space: nowrap;
    margin-left: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: rgba(108, 117, 125, 0.1);
    border-radius: 4px;
}

/* Correct/Incorrect states for quiz feedback */
.timeline-event.correct {
    border-color: #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, #e8f5e8 100%);
}

.timeline-event.incorrect {
    border-color: #dc3545;
    background: linear-gradient(135deg, #fff8f8 0%, #f8e8e8 100%);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}


/* Results - Mobile */
.score-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 500;
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.score-number {
    font-size: 2rem;
}

.score-total {
    font-size: 1.25rem;
    opacity: 0.8;
}

.question-results {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}


/* Responsive breakpoints */
@media (min-width: 480px) {
    .timeline-events {
        gap: 1.25rem;
        padding: 0 1rem;
    }
    
    .timeline-event {
        padding: 1.25rem 1rem;
        min-height: 70px;
        border-radius: 16px;
    }
    
    .timeline-event-content {
        font-size: 1rem;
        padding-left: 1.25rem;
    }
    
    .timeline-event-date {
        font-size: 0.85rem;
    }
}

/* === TABLET STYLES === */
@media (min-width: 768px) {
    .quiz-progress {
        margin-bottom: 2rem;
    }
    
    .progress-bar {
        height: 8px;
    }
    
    .progress-text {
        font-size: 0.875rem;
    }
    
    .question-text {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .question-image {
        max-width: 300px;
    }
    
    .option-btn {
        padding: 1rem;
    }
    
    .option-letter {
        width: 2rem;
        height: 2rem;
        margin-right: 1rem;
        font-size: 1rem;
    }
    
    .option-text {
        font-size: 1rem;
    }
    
    .question-actions,
    .result-actions,
    .results-actions {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-share {
        width: auto;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .timeline-events {
        gap: 1.5rem;
        padding: 0 1.5rem;
        margin: 2rem 0;
    }
    
    .timeline-event {
        padding: 1.5rem 1.25rem;
        min-height: 80px;
        border-radius: 20px;
    }
    
    .timeline-event-content {
        font-size: 1.1rem;
        padding-left: 1.5rem;
    }
    
    .timeline-event-date {
        font-size: 0.9rem;
        margin-left: 1rem;
    }
    
    /* Desktop hover effects are more pronounced */
    .timeline-event:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    }
    
    .score-circle {
        width: 120px;
        height: 120px;
    }
    
    .score-number {
        font-size: 2.5rem;
    }
    
    .score-total {
        font-size: 1.5rem;
    }
    
    .question-results {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* === DESKTOP STYLES === */
@media (min-width: 1024px) {
    .question-text {
        font-size: 1.375rem;
    }
    
    .question-image {
        max-width: 350px;
    }
    
    .options-container {
        gap: 1rem;
    }
    
    .option-btn {
        padding: 1.25rem;
    }
    
    .timeline-events {
        max-width: 800px;
        margin: 2rem auto;
    }
    
    .timeline-event {
        padding: 1.75rem 1.5rem;
        min-height: 90px;
    }
    
    .timeline-event-content {
        font-size: 1.2rem;
    }
    
    .score-display {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }
}

/* === LARGE DESKTOP STYLES === */
@media (min-width: 1200px) {
    .question-text {
        font-size: 1.5rem;
    }
    
    .modal-content {
        padding: 3rem 2.5rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .timeline-event {
        transition: none;
    }
    
    .timeline-event:hover {
        transform: none;
    }
    
    .timeline-event:active,
    .timeline-event.dragging {
        transform: none;
    }
    
    .timeline-event.incorrect {
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .timeline-event {
        border-width: 3px;
        background: #ffffff;
    }
    
    .timeline-event:hover {
        border-color: #000000;
    }
    
    .timeline-event.dragging {
        border-color: #000000;
        background: #f0f0f0;
    }
}

/* Focus states for keyboard navigation */
.timeline-event:focus {
    outline: 3px solid #007bff;
    outline-offset: 2px;
}

.timeline-event:focus:not(:focus-visible) {
    outline: none;
}

/* Loading state */
.timeline-events.loading .timeline-event {
    opacity: 0.6;
    pointer-events: none;
    cursor: not-allowed;
}

/* Empty state */
.timeline-events:empty::after {
    content: 'Drop timeline events here';
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #6c757d;
    font-style: italic;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    background: #f8f9fa;
}

/*map game*/
.map-quiz-container {
  width: 100%;
  max-width: 600px; /* or whatever max width you want */
  margin: 0 auto;
  overflow: hidden; /* prevent overflow */
}

#wv-map {
  width: 100%;
  height: auto; /* maintain aspect ratio */
  display: block;
  max-height: 400px; /* optional max height */
}

/* Base county styling */
.county {
    fill: rgba(0,51,102,1.00);
    stroke: #da9434;
    stroke-width: 3;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mapquiz-end {
    text-align: center;
    padding: 30px;
    border: 2px solid #ccc;
    border-radius: 12px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 50px auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.mapquiz-end p {
    margin: 15px 0;
    font-size: 1.2rem;
}

.mapquiz-end .score {
    font-weight: bold;
    font-size: 1.4rem;
    color: #333;
}

.mapquiz-end .excellent {
    color: green;
    font-size: 1.3rem;
    font-weight: bold;
}

.mapquiz-end .good {
    color: #2a9d8f;
    font-size: 1.3rem;
    font-weight: bold;
}

.mapquiz-end .okay {
    color: #e9c46a;
    font-size: 1.3rem;
    font-weight: bold;
}

.mapquiz-end .keep-trying {
    color: #e76f51;
    font-size: 1.3rem;
    font-weight: bold;
}
