-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStyle.css
More file actions
165 lines (143 loc) · 3.05 KB
/
Style.css
File metadata and controls
165 lines (143 loc) · 3.05 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
/* ================================ */
/* Body and general styles */
body {
text-align: center;
font-family: Arial, sans-serif;
background-color: #f5f5f5; /* solid light gray background */
margin: 0;
padding: 0;
}
/* Title */
h1 {
font-family: 'Times New Roman', Times, serif;
color: #333;
}
/* Game container */
#game {
background: white;
padding: 25px;
width: 350px;
margin: 50px auto;
border-radius: 15px;
box-shadow: 0 0 15px rgba(0,0,0,0.2);
}
/* Instructions block */
#instructions {
text-align: left; /* left-align text */
width: 80%;
margin: 20px auto;
padding: 15px;
background-color: #ffffff;
border-radius: 10px;
box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}
#instructions h2 {
text-align: center;
}
/* Start button - bubble style */
#startBtn {
background-color: #37474F;
color: white;
font-size: 16px;
padding: 15px 25px;
border-radius: 50px;
border: none;
cursor: pointer;
display: block;
width: 80%;
margin: 20px auto;
box-shadow: 0 5px 15px rgba(0,0,0,0.3);
transition: all 0.3s ease;
}
#startBtn:hover {
background-color: #263238;
transform: scale(1.08);
box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}
#startBtn:active {
transform: scale(0.95);
box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}
/* Question text enlarged */
#question {
font-size: 22px;
font-weight: bold;
margin: 20px 0;
}
/* Option buttons */
#options button {
display: block;
margin: 10px auto;
width: 80%;
font-size: 16px;
padding: 12px;
border-radius: 8px;
border: none;
cursor: pointer;
color: white;
background-color: #37474F;
transition: 0.2s;
}
#options button:hover {
background-color: #263238;
transform: scale(1.05);
}
#options button:active {
transform: scale(0.95);
}
/* Next button same as options */
#nextBtn {
background-color: #37474F;
color: white;
font-size: 16px;
padding: 12px 25px;
border-radius: 8px;
border: none;
cursor: pointer;
display: block;
width: 80%;
margin: 20px auto;
transition: all 0.2s ease;
}
#nextBtn:hover {
background-color: #263238;
transform: scale(1.05);
}
#nextBtn:active {
transform: scale(0.95);
}
/* Correct / Wrong feedback */
.correct {
background-color: #4CAF50 !important;
animation: blinkGreen 0.5s;
}
@keyframes blinkGreen {
0% { background-color: #4CAF50; }
50% { background-color: #b6f1b2; }
100% { background-color: #4CAF50; }
}
.wrong {
background-color: #f44336 !important;
animation: blinkRed 0.5s;
}
@keyframes blinkRed {
0% { background-color: #f44336; }
50% { background-color: #f7a3a3; }
100% { background-color: #f44336; }
}
/* Timer, score, question number */
#result {
font-weight: bold;
margin-top: 10px;
}
#questionNumber, #level, #score, #timer {
font-weight: bold;
margin: 5px 0;
}
/* End / Exit screen buttons */
#endScreen, #exitScreen {
margin-top: 20px;
}
#endScreen button, #exitScreen button {
margin: 10px;
}