Update style.css
Browse files
style.css
CHANGED
@@ -1,54 +1,46 @@
|
|
1 |
-
* {
|
2 |
-
margin: 0;
|
3 |
-
padding: 0;
|
4 |
-
box-sizing: border-box;
|
5 |
-
}
|
6 |
-
|
7 |
body {
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
}
|
16 |
|
17 |
.game-container {
|
18 |
-
|
|
|
|
|
|
|
|
|
19 |
}
|
20 |
|
21 |
h1 {
|
22 |
-
|
23 |
-
font-size: 36px;
|
24 |
-
margin-bottom: 20px;
|
25 |
-
}
|
26 |
-
|
27 |
-
#gameCanvas {
|
28 |
-
border: 2px solid #00ff99;
|
29 |
-
background-color: #111;
|
30 |
-
display: block;
|
31 |
-
margin: 0 auto;
|
32 |
}
|
33 |
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
.game-over h2 {
|
40 |
-
color: #ff4444;
|
41 |
}
|
42 |
|
43 |
button {
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
|
|
50 |
}
|
51 |
|
52 |
button:hover {
|
53 |
-
|
|
|
|
|
|
|
|
|
54 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
body {
|
2 |
+
font-family: Arial, sans-serif;
|
3 |
+
background-color: #f0f8ff;
|
4 |
+
display: flex;
|
5 |
+
justify-content: center;
|
6 |
+
align-items: center;
|
7 |
+
height: 100vh;
|
8 |
+
margin: 0;
|
9 |
}
|
10 |
|
11 |
.game-container {
|
12 |
+
text-align: center;
|
13 |
+
background-color: #ffffff;
|
14 |
+
padding: 20px;
|
15 |
+
border-radius: 10px;
|
16 |
+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
17 |
}
|
18 |
|
19 |
h1 {
|
20 |
+
color: #333;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
}
|
22 |
|
23 |
+
input {
|
24 |
+
padding: 10px;
|
25 |
+
font-size: 16px;
|
26 |
+
margin-top: 10px;
|
27 |
+
margin-bottom: 10px;
|
|
|
|
|
28 |
}
|
29 |
|
30 |
button {
|
31 |
+
padding: 10px 20px;
|
32 |
+
font-size: 16px;
|
33 |
+
background-color: #4caf50;
|
34 |
+
color: white;
|
35 |
+
border: none;
|
36 |
+
border-radius: 5px;
|
37 |
+
cursor: pointer;
|
38 |
}
|
39 |
|
40 |
button:hover {
|
41 |
+
background-color: #45a049;
|
42 |
+
}
|
43 |
+
|
44 |
+
p {
|
45 |
+
font-size: 18px;
|
46 |
}
|