@charset "utf-8";
/* CSS Document */
/* Quiz Landing Page Styles - Mobile First */

/* Main Section */
.quiz-landing {
    text-align: center;
    padding: 1.2rem 0 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-bottom: 0;
}


@media (min-width:1024px) {
	.quiz-landing {
		margin-top: 15vh;
		position:relative;
		z-index: 5;
	}
}

/* Hero Section with Background Image */
.games-hero {
  background-image: linear-gradient(rgba(0, 51, 102, 0.65), rgba(0, 51, 102, 0.85)), url('images/ed-room-screens.jpg');
  background-size: cover;
  background-position: 20% 30%;
  color: #ffffff;
  padding: 4rem 0;
  margin-bottom: 2rem;
  position: relative;
	width:100vw;
	margin-left:calc(-50vw + 50%);
	box-sizing:border-box;
}

.games-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
	margin:0;
	padding: 0 1rem;
}

.games-hero h1, 
.games-hero .gov-lead {
  color: #ffffff;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.games-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.games-hero .games-lead {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Quiz Grid */
.quiz-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
    margin-bottom: 3rem;
}

/* Quiz Cards */
.quiz-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.quiz-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.quiz-card:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.quiz-card-image {
    background: linear-gradient(135deg, #003366 0%, #00A6ED 100%);
    padding: 2rem;
    text-align: center;
    position: relative;
}

.quiz-icon {
    font-size: 3rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.quiz-card-content {
    padding: 1.5rem;
}

.quiz-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.quiz-description {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.quiz-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quiz-difficulty {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quiz-difficulty.easy {
    background-color: #d4edda;
    color: #155724;
}

.quiz-difficulty.medium {
    background-color: #fff3cd;
    color: #856404;
}

.quiz-difficulty.hard {
    background-color: #f8d7da;
    color: #721c24;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 2.5rem;
    font-weight: 500;
    margin: 0;
}


.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-content {
    padding: 2rem 1.5rem;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

.option-text{
	color: white;
}

/* Tablet Styles */
@media (min-width: 768px) {
    .quiz-landing .hero-section {
        padding: 3rem 2rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .quiz-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 0 2rem;
    }
    
    .quiz-card-content {
        padding: 2rem;
    }
    
    .quiz-title {
        font-size: 1.375rem;
    }
    
    .quiz-description {
        font-size: 1rem;
    }
    
    .modal-container {
        max-width: 600px;
    }
    
    .modal-content {
        padding: 2.5rem 2rem;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .quiz-landing .hero-section {
        padding: 4rem 2rem;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .quiz-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
    }
    
    .quiz-card-image {
        padding: 2.5rem;
    }
    
    .quiz-icon {
        font-size: 3.5rem;
    }
    
    .modal-container {
        max-width: 700px;
    }
}

/* Large Desktop Styles */
@media (min-width: 1200px) {
    .quiz-landing .hero-section {
        padding: 5rem 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .quiz-grid {
        gap: 3rem;
    }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    .quiz-card,
    .modal-overlay,
    .modal-container {
        transition: none;
    }
    
    .quiz-card:hover {
        transform: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .quiz-card {
        border: 2px solid #000;
    }
    
    .quiz-card:hover {
        border-color: #0066cc;
    }
    
    .quiz-difficulty.easy {
        background-color: #000;
        color: #fff;
    }
    
    .quiz-difficulty.medium {
        background-color: #666;
        color: #fff;
    }
    
    .quiz-difficulty.hard {
        background-color: #333;
        color: #fff;
    }
}

/* Focus Management */
.quiz-card:focus-visible {
    outline: 3px solid #007bff;
    outline-offset: 2px;
}

/* Loading State (for future use) */
.quiz-card.loading {
    opacity: 0.6;
    pointer-events: none;
}

.quiz-card.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/*progress bar*/
.quiz-progress {
  margin-bottom: 1rem;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background-color: #eee;  /* the “track” */
  border-radius: 5px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;  /* will be overwritten by JS */
  background-color: #4caf50;  /* the actual fill */
  transition: width 0.3s ease-in-out;  /* smooth animation */
}


/*results sumamry*/
.question-results.scrollable {
    max-height: 300px;   /* adjust height as needed */
    overflow-y: auto;
    padding-right: 10px; /* optional: space for scrollbar */
    margin-top: 10px;
    border-top: 1px solid #ccc; /* optional visual separation */
}
.question-result {
    margin-bottom: 10px;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.question-text {
    margin-top: 5px;
}

.answer-text {
    margin-left: 15px;
    color: #007BFF; /* optional color for answers */
}


