1
+ /* ===== General App Layout ===== */
1
2
.App {
2
3
text-align : center;
3
4
}
7
8
pointer-events : none;
8
9
}
9
10
11
+ /* Optional spinning logo animation */
10
12
@media (prefers-reduced-motion : no-preference) {
11
13
.App-logo {
12
14
animation : App-logo-spin infinite 20s linear;
13
15
}
14
16
}
15
17
18
+ @keyframes App-logo-spin {
19
+ from { transform : rotate (0deg ); }
20
+ to { transform : rotate (360deg ); }
21
+ }
22
+
23
+ /* App header style */
16
24
.App-header {
17
25
background-color : # 282c34 ;
18
26
min-height : 100vh ;
28
36
color : # 61dafb ;
29
37
}
30
38
31
- @keyframes App-logo-spin {
32
- from {
33
- transform : rotate (0deg );
34
- }
35
- to {
36
- transform : rotate (360deg );
37
- }
38
- }
39
-
39
+ /* ===== Base Body Style ===== */
40
40
body {
41
- background : # 653d8e ;
41
+ background : # 653d8e ; /* purple background */
42
42
font-family : 'Segoe UI' , 'Roboto' , 'Arial' , sans-serif;
43
43
margin : 0 ;
44
44
padding : 0 ;
45
45
}
46
46
47
+ /* ===== Auth Box (Used in Login, Register, CreateQuiz) ===== */
47
48
.auth-container {
48
- max-width : 400 px ;
49
+ max-width : 700 px ; /* ⬅️ Wider for CreateQuiz page */
49
50
margin : 60px auto;
50
51
background : # ffffff ;
51
52
border-radius : 12px ;
52
- box-shadow : 0 4px 24px rgba (0 , 0 , 0 , 0.08 );
53
- padding : 32px 28 px 24 px 28 px ;
53
+ box-shadow : 0 4px 24px rgba (0 , 0 , 0 , 0.08 );
54
+ padding : 32px 40 px 32 px 40 px ;
54
55
display : flex;
55
56
flex-direction : column;
56
57
align-items : center;
57
58
}
58
59
60
+ /* ===== Auth Form Fields ===== */
59
61
.auth-form {
60
62
width : 100% ;
61
63
display : flex;
64
66
margin-bottom : 12px ;
65
67
}
66
68
67
- .auth-form input {
69
+ .auth-form input ,
70
+ .auth-form textarea ,
71
+ .auth-form select {
68
72
padding : 10px 12px ;
69
73
border : 1px solid # d1d5db ;
70
74
border-radius : 6px ;
@@ -73,12 +77,15 @@ body {
73
77
transition : border 0.2s ;
74
78
}
75
79
76
- .auth-form input : focus {
80
+ .auth-form input : focus ,
81
+ .auth-form textarea : focus ,
82
+ .auth-form select : focus {
77
83
border : 1.5px solid # 6366f1 ;
78
84
outline : none;
79
- background : rgba (255 , 255 , 255 , 0.8 );
85
+ background : rgba (255 , 255 , 255 , 0.9 );
80
86
}
81
87
88
+ /* ===== Auth Form Buttons ===== */
82
89
.auth-form button {
83
90
padding : 10px 0 ;
84
91
background : # 6366f1 ;
@@ -95,6 +102,7 @@ body {
95
102
background : # 4f46e5 ;
96
103
}
97
104
105
+ /* ===== Link-style Button ===== */
98
106
.auth-link {
99
107
background : none;
100
108
border : none;
@@ -110,6 +118,7 @@ body {
110
118
color : # 4f46e5 ;
111
119
}
112
120
121
+ /* ===== Error Message Box ===== */
113
122
.auth-error {
114
123
color : # e11d48 ;
115
124
background : # fef2f2 ;
@@ -121,6 +130,7 @@ body {
121
130
font-size : 0.98em ;
122
131
}
123
132
133
+ /* ===== Headings / Paragraphs ===== */
124
134
h2 {
125
135
margin-bottom : 18px ;
126
136
color : # 22223b ;
135
145
margin-top : 10px ;
136
146
}
137
147
148
+ /* ===== Admin Dashboard Styling ===== */
138
149
.admin-dashboard {
139
150
max-width : 800px ;
140
151
margin : 40px auto;
187
198
background-color : # 4f46e5 ;
188
199
}
189
200
190
-
191
-
201
+ /* ===== Box used on Home Page ===== */
192
202
.main-box {
193
203
background : # ffffff ;
194
204
color : # 22223b ;
199
209
margin-bottom : 20px ;
200
210
}
201
211
212
+ /* ===== Announcement Popup ===== */
202
213
.announcement-box {
203
214
position : fixed;
204
215
bottom : 20px ;
237
248
color : # 6b7280 ;
238
249
font-size : 0.8rem ;
239
250
}
251
+
252
+ /* ===== NEW: Question Box for CreateQuiz Page ===== */
253
+ .question-box {
254
+ border : 1px solid # e5e7eb ;
255
+ padding : 20px ;
256
+ border-radius : 8px ;
257
+ margin-bottom : 24px ;
258
+ background : # f9fafb ;
259
+ }
260
+
261
+ .question-top-row {
262
+ display : flex;
263
+ gap : 12px ;
264
+ margin-bottom : 12px ;
265
+ align-items : center;
266
+ }
267
+
268
+ .question-type-select {
269
+ min-width : 180px ;
270
+ padding : 8px ;
271
+ }
272
+
273
+ .question-header-row {
274
+ display : flex;
275
+ gap : 12px ;
276
+ align-items : center;
277
+ margin-bottom : 10px ;
278
+ }
279
+
280
+ .helper-text {
281
+ color : # 6b7280 ;
282
+ font-size : 0.9em ;
283
+ margin-bottom : 10px ;
284
+ }
285
+
286
+ .option-row {
287
+ display : flex;
288
+ align-items : center;
289
+ gap : 10px ; /* space between text, checkbox, and button */
290
+ margin-bottom : 8px ;
291
+ }
292
+
293
+ .correct-checkbox {
294
+ display : flex;
295
+ align-items : center;
296
+ gap : 4px ;
297
+ }
298
+
299
+ .remove-option-btn {
300
+ background-color : # 4f46e5 ;
301
+ color : white;
302
+ border : none;
303
+ padding : 6px 10px ;
304
+ border-radius : 6px ;
305
+ cursor : pointer;
306
+ font-size : 0.9rem ;
307
+ transition : background-color 0.2s ease;
308
+ }
309
+
310
+ /* Add spacing between inner inputs/selects */
311
+ .question-box input ,
312
+ .question-box select ,
313
+ .question-box textarea {
314
+ margin-bottom : 12px ;
315
+ }
316
+
317
+
318
+ /* Add spacing between correct answer fields */
319
+ .correct-answer-group {
320
+ display : flex;
321
+ align-items : center;
322
+ gap : 5px ;
323
+ margin-bottom : 5px ;
324
+ }
325
+
0 commit comments