yoon2566 commited on
Commit
37d0e24
·
verified ·
1 Parent(s): bc22475

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +51 -17
style.css CHANGED
@@ -1,28 +1,62 @@
1
  body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
 
 
 
 
 
 
 
4
  }
5
 
6
  h1 {
7
- font-size: 16px;
8
- margin-top: 0;
 
9
  }
10
 
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
 
 
16
  }
17
 
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
24
  }
25
 
26
- .card p:last-child {
27
- margin-bottom: 0;
 
28
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  body {
2
+ background-color: #2c3e50;
3
+ color: #ecf0f1;
4
+ font-family: 'Arial', sans-serif;
5
+ display: flex;
6
+ flex-direction: column;
7
+ align-items: center;
8
+ justify-content: center;
9
+ height: 100vh;
10
+ margin: 0;
11
  }
12
 
13
  h1 {
14
+ font-size: 3em;
15
+ color: #e74c3c;
16
+ text-shadow: 2px 2px 4px #000;
17
  }
18
 
19
+ .game-container {
20
+ display: flex;
21
+ align-items: flex-start;
22
+ border: 3px solid #ecf0f1;
23
+ padding: 20px;
24
+ border-radius: 10px;
25
+ background-color: #34495e;
26
  }
27
 
28
+ canvas {
29
+ border: 2px solid #95a5a6;
30
+ background-color: #000;
 
 
 
31
  }
32
 
33
+ .game-info {
34
+ margin-left: 20px;
35
+ width: 150px;
36
  }
37
+
38
+ .game-info h2 {
39
+ margin-top: 0;
40
+ color: #f1c40f;
41
+ }
42
+
43
+ #score {
44
+ font-size: 2em;
45
+ font-weight: bold;
46
+ }
47
+
48
+ #start-button {
49
+ background-color: #e74c3c;
50
+ color: white;
51
+ border: none;
52
+ padding: 15px 20px;
53
+ font-size: 1em;
54
+ cursor: pointer;
55
+ border-radius: 5px;
56
+ width: 100%;
57
+ transition: background-color 0.3s;
58
+ }
59
+
60
+ #start-button:hover {
61
+ background-color: #c0392b;
62
+ }