-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhquiz.css
139 lines (119 loc) · 2.25 KB
/
hquiz.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
/* General styles */
body {
font-family: 'Arial', sans-serif;
background: radial-gradient(circle at center, #e8f5e9 0%, #81c784 100%);
margin: 0;
padding: 20px;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.quiz-container {
background-color: white;
border-radius: 10px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
padding: 30px;
max-width: 800px;
width: 90%;
}
/* Header styles */
.header {
text-align: center;
margin-bottom: 30px;
}
.header h1 {
color: #2e7d32;
margin-bottom: 20px;
}
/* Progress bar */
.progress-bar {
background-color: #e0e0e0;
height: 10px;
border-radius: 5px;
margin: 20px 0;
overflow: hidden;
}
.progress {
background-color: #4caf50;
height: 100%;
width: 0;
transition: width 0.3s ease;
}
/* Question styles */
.question-container {
margin-bottom: 30px;
}
.question-container h2 {
color: #1b5e20;
font-size: 1.3rem;
margin-bottom: 20px;
}
/* Options styles */
.options-container {
display: grid;
gap: 15px;
}
.option {
background-color: #f1f8e9;
border: 2px solid #a5d6a7;
border-radius: 8px;
padding: 15px;
font-size: 1.1rem;
cursor: pointer;
transition: all 0.2s ease;
}
.option:hover {
background-color: #c8e6c9;
transform: translateY(-2px);
}
.option.selected {
background-color: #81c784;
color: white;
border-color: #2e7d32;
}
/* Controls */
.controls {
display: flex;
justify-content: space-between;
margin-top: 30px;
}
.nav-btn, .submit-btn {
padding: 12px 25px;
border: none;
border-radius: 5px;
font-size: 1rem;
cursor: pointer;
transition: background-color 0.2s;
}
.nav-btn {
background-color: #66bb6a;
color: white;
}
.nav-btn:disabled {
background-color: #c8c8c8;
cursor: not-allowed;
}
.submit-btn {
background-color: #2e7d32;
color: white;
}
.submit-btn:hover {
background-color: #1b5e20;
}
/* Results section */
.results {
text-align: center;
margin-top: 30px;
padding: 20px;
background-color: #f1f8e9;
border-radius: 8px;
}
.results h2 {
color: #2e7d32;
margin-bottom: 15px;
}
.results p {
font-size: 1.2rem;
color: #1b5e20;
}