Files
quiz/src/components/QuizResults.css
T
2026-06-15 12:41:51 +03:00

133 lines
2.0 KiB
CSS

.results-container {
max-width: 800px;
margin: 0 auto;
padding: 20px;
min-height: 100vh;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.results-card {
background: white;
border-radius: 20px;
padding: 40px;
box-shadow: 0 20px 40px rgba(0,0,0,0.1);
text-align: center;
}
.results-card h2 {
color: #333;
margin-bottom: 30px;
}
.score-circle {
width: 150px;
height: 150px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 30px;
background: conic-gradient(from 0deg, #667eea 0deg, #e0e0e0 0deg);
}
.score-number {
font-size: 48px;
font-weight: bold;
color: white;
}
.score-total {
font-size: 24px;
color: white;
margin-left: 5px;
}
.result-message {
margin-bottom: 30px;
}
.result-message p {
font-size: 1.2rem;
color: #555;
margin: 10px 0;
}
.percentage {
font-size: 1rem;
color: #666;
}
.answers-review {
text-align: left;
margin: 30px 0;
}
.answers-review h3 {
color: #333;
margin-bottom: 20px;
}
.review-item {
background: #f8f9fa;
border-radius: 10px;
padding: 15px;
margin-bottom: 15px;
border-left: 4px solid;
}
.review-item.correct {
border-left-color: #4caf50;
}
.review-item.incorrect {
border-left-color: #f44336;
}
.review-question {
margin-bottom: 10px;
}
.question-number {
font-weight: bold;
color: #666;
margin-right: 10px;
}
.review-answers {
font-size: 0.9rem;
}
.user-answer, .correct-answer {
margin: 5px 0;
}
.restart-button {
padding: 15px 40px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border: none;
border-radius: 30px;
font-size: 1.1rem;
cursor: pointer;
transition: all 0.3s ease;
}
.restart-button:hover {
transform: translateY(-2px);
box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}
@media (max-width: 768px) {
.results-card {
padding: 20px;
}
.score-circle {
width: 120px;
height: 120px;
}
.score-number {
font-size: 36px;
}
}