-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
211 lines (180 loc) · 3.9 KB
/
style.css
File metadata and controls
211 lines (180 loc) · 3.9 KB
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
body {
font-family: sans-serif;
display: flex;
flex-direction: column;
align-items: center;
margin-top: 20px;
}
#game-container {
text-align: center;
}
#category-selection {
text-align: center;
margin-bottom: 30px;
}
#category-selection h2 {
margin-bottom: 15px;
}
#category-selection button {
padding: 10px 20px;
font-size: 1.1em;
margin: 0 10px;
cursor: pointer;
border: 1px solid #ccc;
border-radius: 5px;
}
#category-selection button:hover {
background-color: #f0f0f0;
}
#level-display {
font-size: 1.5em;
margin-bottom: 10px;
color: #333;
font-weight: bold;
}
#word-display {
font-size: 2em;
margin-bottom: 20px;
}
#score-display { /* Add styling for score */
font-size: 1.2em;
margin-bottom: 10px;
color: #555;
}
#image-options {
display: flex;
justify-content: center;
gap: 15px;
margin-bottom: 20px;
}
.quiz-image {
width: 150px;
height: 150px;
object-fit: cover; /* This is fine for body parts */
border: 2px solid #ccc;
cursor: pointer;
transition: border-color 0.3s, background-color 0.3s; /* Added background-color transition */
display: inline-block; /* Ensure it behaves as a block for background color */
vertical-align: top; /* Align items nicely if they have different content types */
background-color: #fff; /* Default background, will be overridden by color game */
}
/* Container for quiz options that might have emojis */
.quiz-option-wrapper {
position: relative;
display: inline-block;
width: 150px;
height: 150px;
flex-shrink: 0;
}
/* Emoji overlay for pets */
.emoji-overlay {
position: absolute;
top: 2px;
left: 2px;
width: calc(100% - 4px);
height: calc(100% - 4px);
display: flex;
align-items: center;
justify-content: center;
font-size: 80px;
pointer-events: none;
user-select: none;
}
.quiz-image:hover {
border-color: #888;
}
#feedback {
margin-top: 15px;
font-weight: bold;
}
#next-button {
padding: 10px 20px;
font-size: 1em;
cursor: pointer;
}
#new-game-button { /* Style for the new game button */
padding: 10px 20px;
font-size: 1em;
cursor: pointer;
margin-top: 10px; /* Add some space above */
display: none; /* Hide by default */
}
#level2-container {
display: flex;
flex-direction: column;
align-items: center;
gap: 15px;
margin-bottom: 20px;
}
#color-box {
width: 200px;
height: 200px;
border: 3px solid #333;
border-radius: 10px;
}
#bodypart-image {
width: 250px;
height: 250px;
object-fit: cover;
border: 3px solid #333;
border-radius: 10px;
display: none;
}
#color-input {
padding: 10px 15px;
font-size: 1.1em;
border: 2px solid #ccc;
border-radius: 5px;
width: 250px;
text-align: center;
}
#color-input:focus {
outline: none;
border-color: #4CAF50;
}
#submit-answer {
padding: 10px 30px;
font-size: 1.1em;
cursor: pointer;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 5px;
transition: background-color 0.3s;
}
#submit-answer:hover {
background-color: #45a049;
}
#submit-answer:disabled {
background-color: #ccc;
cursor: not-allowed;
}
.correct {
border-color: green;
}
.incorrect {
border-color: red;
}
/* Responsive adjustments for smaller screens */
@media (max-width: 600px) {
#image-options {
flex-direction: column; /* Stack images vertically */
align-items: center; /* Center images vertically */
gap: 10px; /* Adjust gap for vertical layout */
}
.quiz-option-wrapper {
width: 70%;
max-width: 200px;
height: 200px;
}
.quiz-image {
width: 100%;
height: 100%;
}
.emoji-overlay {
font-size: 100px;
}
#word-display {
font-size: 1.8em; /* Slightly smaller text */
}
}