diff --git a/package-lock.json b/package-lock.json index e835e02..ba023bd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5352,7 +5352,6 @@ "version": "1.7.7", "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.7.tgz", "integrity": "sha512-S4kL7XrjgBmvdGut0sN3yJxqYzrDOnivkBiN0OFs6hLiUam3UPvswUo0kqGyhqUZGEOytHyumEdXsAkgCOUf3Q==", - "license": "MIT", "dependencies": { "follow-redirects": "^1.15.6", "form-data": "^4.0.0", diff --git a/src/app/components/quiz/quiz.component.css b/src/app/components/quiz/quiz.component.css index e8f3fc9..a659743 100644 --- a/src/app/components/quiz/quiz.component.css +++ b/src/app/components/quiz/quiz.component.css @@ -1,7 +1,8 @@ +/* Importing Google Font */ @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap'); -body, -button { +/* Base font styles */ +body, button { font-family: Arial, sans-serif; } @@ -10,21 +11,32 @@ button { font-weight: 500; } +body { + display: flex; + justify-content: center; + align-items: center; + min-height: 100vh; /* Full viewport height */ + margin: 0; + background-color: #f0f0f0; /* Light background for contrast */ +} + +/* Quiz container layout */ .quiz-container { display: flex; flex-direction: column; align-items: center; - margin: 8rem auto; - max-width: 800px; padding: 2rem; background-color: #13eea9; border-radius: 10px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); + width: 100%; /* Allow the container to take full width of the viewport */ + max-width: 800px; /* Limit max-width to 800px */ + box-sizing: border-box; /* Ensure padding doesn't overflow */ } /* Scrollbar styling */ ::-webkit-scrollbar { - width: 10px; + width: 8px; } ::-webkit-scrollbar-track { @@ -52,14 +64,14 @@ header { } header h1 { - font-size: 1.8rem; + font-size: 2rem; color: #333; margin-bottom: 1rem; } .progress-bar { height: 6px; - background-color: #007bff; + background-color: #6b16a4; border-radius: 4px; margin-top: 8px; } @@ -67,14 +79,16 @@ header h1 { /* Sidebar styling */ .sidebar { margin-top: 100px; - width: 250px; + width: 400px; /* Reduced sidebar width */ background-color: #333; color: #fff; - padding: 20px; + padding: 15px; + border-radius: 8px; + box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); } .sidebar h2 { - font-size: 1.5rem; + font-size: 1.3rem; margin-bottom: 1rem; color: #ff66b2; } @@ -99,35 +113,38 @@ header h1 { .quiz-layout { display: flex; min-height: 100vh; + } .quiz-content { flex: 1; - padding: 20px; + padding: 30px 20px; /* More padding on top and sides */ background-color: #f9f9f9; + margin-left: 20px; /* Add space between sidebar and content */ + border-radius: 10px; + box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); } -.question-section, -.results-section { - margin-top: 100px; +/* Question Section */ +.question-section, .results-section { + margin-top: 40px; /* Reduced space between sections */ } .question-text { font-size: 18px; margin-bottom: 20px; + line-height: 1.6; } -/* Options styling */ .options { display: flex; flex-direction: column; gap: 10px; - margin: 20px; } button { width: 100%; - padding: 10px; + padding: 12px; border: none; border-radius: 5px; background-color: #007bff; @@ -149,9 +166,8 @@ button:disabled { cursor: not-allowed; } -/* Results section styling */ +/* Results Section */ .results-section { - margin-top: 100px; padding: 20px; background-color: #ffffff; border: 1px solid #ccc; @@ -195,8 +211,8 @@ button:disabled { } .results-action button { - padding: 10px 20px; - font-size: 1rem; + padding: 12px 25px; + font-size: 1.1rem; border-radius: 5px; background-color: #007bff; color: white; @@ -219,4 +235,6 @@ button:disabled { height: 100%; justify-content: center; align-items: center; -} \ No newline at end of file + font-size: 1.2rem; + color: #555; +} diff --git a/src/app/components/quiz/quiz.component.html b/src/app/components/quiz/quiz.component.html index 9653ea5..da56ca0 100644 --- a/src/app/components/quiz/quiz.component.html +++ b/src/app/components/quiz/quiz.component.html @@ -19,9 +19,9 @@

Ultimate Graph Theory Challenge

-
+

Question {{ currentQuestionIndex + 1 }} of {{ questions.length }}

-

{{ currentQuestion.text }}

+

{{ currentQuestion.text }}

- +
-
+

No Questions Available For This Level

@@ -42,7 +41,176 @@

No Questions Available For This Level

Quiz Completed!

Your score: {{ score }} out of {{ questions.length }}

- +
- \ No newline at end of file + + +