-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
238 lines (209 loc) · 4.46 KB
/
style.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
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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
/* Basic Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
/* Body Styling */
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: #f4f4f9;
color: #333;
transition: background-color 0.5s ease, color 0.5s ease;
font-size: 16px;
font-weight: 400;
}
/* Container Styling */
.container {
width: 100%;
max-width: 600px;
background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.5));
padding: 30px;
border-radius: 15px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
text-align: center;
transition: background 0.5s ease, color 0.5s ease;
}
/* Heading */
h1 {
font-size: 2.5rem;
margin-bottom: 20px;
color: #3b5998;
text-transform: uppercase;
letter-spacing: 2px;
font-weight: 600;
transition: color 0.5s ease;
}
/* Challenge Sentence and Timer Display */
#challengeSentence, #timerDisplay {
font-size: 1.2rem;
margin: 15px 0;
font-weight: 500;
}
/* Typing Area */
#typingArea {
width: 100%;
height: 120px;
margin: 20px 0;
padding: 15px;
font-size: 1.2rem;
border: 1px solid #ddd;
border-radius: 10px;
background-color: #fafafa;
transition: background-color 0.5s ease, border 0.5s ease;
resize: none;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
#typingArea:focus {
outline: none;
border-color: #3b5998;
}
/* Notes Section */
.notes-section {
margin-top: 20px;
}
.notes-section h2 {
font-size: 1.5rem;
margin-bottom: 10px;
color: #444;
}
#notesArea {
width: 100%;
height: 200px;
padding: 15px;
font-size: 1rem;
border-radius: 10px;
border: 1px solid #ddd;
background-color: #fafafa;
resize: none;
transition: background-color 0.5s ease, border 0.5s ease;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
/* Info Box (Instructions) */
#instructionsBox {
background-color: #f0f0f0;
border-radius: 10px;
margin-top: 20px;
padding: 15px;
font-size: 1.1rem;
color: #333;
border: 1px solid #ddd;
}
#instructionsBox p {
margin: 0;
}
/* Overlay Message Styling */
.overlay-message {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: rgba(0, 0, 0, 0.6);
color: #fff;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
display: none;
z-index: 2;
}
.overlay-message.show {
display: block;
}
/* Buttons */
.button-container {
display: flex;
gap: 20px;
justify-content: center;
margin-top: 20px;
}
.button-container button {
padding: 15px 30px;
font-size: 1rem;
color: #fff;
background-color: #3b5998;
border: none;
border-radius: 50px;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.3s ease;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.button-container button:hover {
background-color: #2d4373;
transform: scale(1.05);
}
.hidden {
display: none;
}
/* Dark Mode Styling */
body.dark-mode {
background-color: #1c1c1c;
color: #f4f4f9;
}
body.dark-mode .container {
background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5));
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.dark-mode #typingArea, .dark-mode #notesArea {
background-color: #333;
color: #fff;
border-color: #555;
}
.dark-mode #instructionsBox {
background-color: #333;
color: #fff;
border-color: #555;
}
.dark-mode button {
background-color: #555;
transition: background-color 0.3s ease, transform 0.3s ease;
}
.dark-mode button:hover {
background-color: #666;
transform: scale(1.05);
}
/* Success Message */
#successMessage {
margin-top: 20px;
padding: 20px;
border: 2px solid #4caf50;
border-radius: 15px;
background-color: #e8f5e9;
color: #2e7d32;
font-size: 1.2rem;
font-weight: 600;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
#completionTime {
font-size: 1.1rem;
margin-top: 10px;
}
#playAgainButton {
margin-top: 15px;
padding: 10px 20px;
background-color: #4caf50;
border: none;
border-radius: 50px;
color: white;
font-size: 1rem;
cursor: pointer;
}
#playAgainButton:hover {
background-color: #388e3c;
}
/* Error Message styling */
#errorMessage {
display: none; /* Hidden by default */
margin-top: 20px;
padding: 20px;
border: 2px solid #f44336; /* Red border for error */
border-radius: 15px;
background-color: #ffebee; /* Light red background */
color: #d32f2f; /* Dark red text color */
font-size: 1.2rem;
font-weight: 600;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}