.quiz-container {
max-width: 800px;
margin: 0 auto;
padding: 20px;
font-family: 'Arial', sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
}
.quiz-header {
text-align: center;
margin-bottom: 40px;
background: linear-gradient(135deg, #e52d27, #b31217);
color: white;
padding: 40px 20px;
border-radius: 15px;
box-shadow: 0 10px 30px rgba(0,0,0,0.2);
position: relative;
overflow: hidden;
}
.quiz-header::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
opacity: 0.3;
}
.quiz-header h1 {
font-size: 3em;
margin: 0;
text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
position: relative;
}
.quiz-header p {
font-size: 1.2em;
margin: 10px 0 0 0;
opacity: 0.9;
position: relative;
}
.game-info {
background: rgba(255,255,255,0.1);
padding: 15px;
border-radius: 8px;
margin-top: 20px;
backdrop-filter: blur(10px);
}
.game-info p {
margin: 0;
font-size: 0.9em;
}
.category-selection h2 {
text-align: center;
color: white;
margin-bottom: 30px;
font-size: 2em;
text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.categories-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
margin-bottom: 40px;
}
.category-card {
background: rgba(255,255,255,0.95);
padding: 30px 20px;
border-radius: 12px;
text-align: center;
cursor: pointer;
transition: all 0.3s ease;
border: 2px solid transparent;
box-shadow: 0 4px 15px rgba(0,0,0,0.1);
backdrop-filter: blur(10px);
position: relative;
overflow: hidden;
}
.category-card::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
transition: left 0.5s;
}
.category-card:hover::before {
left: 100%;
}
.category-card:hover {
transform: translateY(-5px) scale(1.02);
border-color: #e52d27;
box-shadow: 0 8px 25px rgba(229, 45, 39, 0.3);
}
.category-card h3 {
color: #333;
margin: 0 0 10px 0;
font-size: 1.4em;
}
.category-card p {
color: #666;
margin: 0;
font-size: 0.9em;
}
.category-icon {
font-size: 2em;
margin-top: 10px;
opacity: 0.7;
}
.quiz-progress {
background: rgba(255,255,255,0.95);
padding: 20px;
border-radius: 12px;
margin-bottom: 20px;
box-shadow: 0 4px 15px rgba(0,0,0,0.1);
backdrop-filter: blur(10px);
}
.progress-bar {
background: #f0f0f0;
height: 8px;
border-radius: 4px;
overflow: hidden;
margin-bottom: 15px;
}
.progress-fill {
background: linear-gradient(90deg, #e52d27, #b31217);
height: 100%;
width: 0%;
transition: width 0.3s ease;
border-radius: 4px;
}
.quiz-stats {
display: flex;
justify-content: space-between;
align-items: center;
font-weight: bold;
color: #333;
}
.timer {
background: #e52d27;
color: white;
padding: 5px 15px;
border-radius: 20px;
font-family: monospace;
font-weight: bold;
}
.question-container {
background: rgba(255,255,255,0.95);
padding: 40px;
border-radius: 12px;
margin-bottom: 20px;
box-shadow: 0 4px 15px rgba(0,0,0,0.1);
backdrop-filter: blur(10px);
}
.question-text {
font-size: 1.4em;
color: #333;
margin-bottom: 30px;
line-height: 1.5;
text-align: center;
}
.options-grid {
display: grid;
gap: 15px;
}
.option {
background: #f8f9fa;
padding: 20px;
border-radius: 8px;
cursor: pointer;
transition: all 0.3s ease;
border: 2px solid transparent;
font-size: 1.1em;
display: flex;
align-items: center;
gap: 15px;
}
.option:hover {
background: #e9ecef;
border-color: #dee2e6;
transform: translateX(5px);
}
.option.selected {
border-color: #007bff;
background: #e7f3ff;
}
.option.correct {
border-color: #28a745;
background: #d4edda;
color: #155724;
}
.option.wrong {
border-color: #dc3545;
background: #f8d7da;
color: #721c24;
}
.option-letter {
background: #333;
color: white;
width: 30px;
height: 30px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
font-size: 0.9em;
}
.option.correct .option-letter {
background: #28a745;
}
.option.wrong .option-letter {
background: #dc3545;
}
.next-btn {
background: linear-gradient(135deg, #e52d27, #b31217);
color: white;
border: none;
padding: 15px 40px;
border-radius: 8px;
font-size: 1.1em;
cursor: pointer;
transition: all 0.3s ease;
display: block;
margin: 0 auto;
font-weight: bold;
}
.next-btn:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(229, 45, 39, 0.4);
}
.quiz-results {
text-align: center;
}
.results-card {
background: rgba(255,255,255,0.95);
padding: 50px;
border-radius: 15px;
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
max-width: 500px;
margin: 0 auto;
backdrop-filter: blur(10px);
}
.score-display {
font-size: 3em;
font-weight: bold;
color: #e52d27;
margin: 20px 0;
text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}
.time-display {
font-size: 1.2em;
color: #666;
margin-bottom: 20px;
}
.performance-rating {
margin: 20px 0;
}
.rating-badge {
background: linear-gradient(135deg, #ffd700, #ffed4a);
color: #333;
padding: 10px 20px;
border-radius: 25px;
font-weight: bold;
font-size: 1.2em;
display: inline-block;
}
.name-input {
margin-top: 30px;
}
.name-input input {
width: 100%;
padding: 15px;
border: 2px solid #ddd;
border-radius: 8px;
font-size: 1.1em;
margin-bottom: 15px;
text-align: center;
transition: border-color 0.3s ease;
}
.name-input input:focus {
outline: none;
border-color: #e52d27;
box-shadow: 0 0 0 3px rgba(229, 45, 39, 0.1);
}
#save-result {
background: linear-gradient(135deg, #28a745, #20c997);
color: white;
border: none;
padding: 15px 30px;
border-radius: 8px;
font-size: 1.1em;
cursor: pointer;
transition: all 0.3s ease;
width: 100%;
font-weight: bold;
}
#save-result:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}
.results-actions {
display: flex;
gap: 15px;
margin-top: 20px;
}
#play-again, #view-dashboard {
flex: 1;
padding: 12px 20px;
border: none;
border-radius: 8px;
font-size: 1em;
cursor: pointer;
transition: all 0.3s ease;
font-weight: bold;
}
#play-again {
background: #007bff;
color: white;
}
#play-again:hover {
background: #0056b3;
transform: translateY(-2px);
}
#view-dashboard {
background: #6c757d;
color: white;
}
#view-dashboard:hover {
background: #545b62;
transform: translateY(-2px);
} #quiz-dashboard {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
}
.dashboard-header {
text-align: center;
margin-bottom: 40px;
background: linear-gradient(135deg, #e52d27, #b31217);
color: white;
padding: 40px 20px;
border-radius: 15px;
box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.dashboard-header h1 {
font-size: 2.5em;
margin: 0;
text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.stats-overview {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 20px;
margin-bottom: 40px;
}
.stat-card {
background: rgba(255,255,255,0.95);
padding: 30px;
border-radius: 12px;
text-align: center;
box-shadow: 0 4px 15px rgba(0,0,0,0.1);
backdrop-filter: blur(10px);
transition: transform 0.3s ease;
}
.stat-card:hover {
transform: translateY(-5px);
}
.stat-card h3 {
color: #666;
margin: 0 0 10px 0;
font-size: 1.1em;
}
.stat-number {
font-size: 2.5em;
font-weight: bold;
color: #e52d27;
}
.leaderboard {
background: rgba(255,255,255,0.95);
border-radius: 12px;
overflow: hidden;
box-shadow: 0 4px 15px rgba(0,0,0,0.1);
backdrop-filter: blur(10px);
}
.leaderboard table {
width: 100%;
border-collapse: collapse;
}
.leaderboard th,
.leaderboard td {
padding: 15px;
text-align: left;
border-bottom: 1px solid #eee;
}
.leaderboard th {
background: #f8f9fa;
font-weight: bold;
color: #333;
font-size: 0.9em;
}
.leaderboard tr:hover {
background: #f8f9fa;
}
.leaderboard tr:first-child {
background: linear-gradient(135deg, #ffd700, #ffed4a);
font-weight: bold;
}
.leaderboard tr:nth-child(2) {
background: #f8f9fa;
}
.leaderboard tr:nth-child(3) {
background: #fff3cd;
}
@media (max-width: 768px) {
.quiz-container {
padding: 10px;
}
.quiz-header h1 {
font-size: 2em;
}
.categories-grid {
grid-template-columns: 1fr;
}
.question-container {
padding: 20px;
}
.leaderboard table {
font-size: 0.9em;
}
.leaderboard th,
.leaderboard td {
padding: 10px 5px;
}
.results-actions {
flex-direction: column;
}
}