-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
94 lines (81 loc) · 1.6 KB
/
style.css
File metadata and controls
94 lines (81 loc) · 1.6 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Arial', sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
padding: 20px;
}
.container {
background: white;
padding: 30px;
border-radius: 15px;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
text-align: center;
}
h1 {
color: #667eea;
margin-bottom: 20px;
font-size: 2.5em;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}
.game-info {
display: flex;
justify-content: space-around;
margin-bottom: 20px;
font-size: 1.2em;
font-weight: bold;
color: #333;
}
#gameCanvas {
border: 3px solid #667eea;
border-radius: 10px;
background: #000;
display: block;
margin: 0 auto;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.controls {
margin-top: 20px;
}
.controls p {
margin-bottom: 15px;
color: #666;
font-size: 0.9em;
}
button {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border: none;
padding: 12px 30px;
font-size: 1.1em;
border-radius: 25px;
cursor: pointer;
transition: transform 0.2s, box-shadow 0.2s;
margin: 5px;
}
button:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}
button:active {
transform: translateY(0);
}
.message {
margin-top: 20px;
font-size: 1.5em;
font-weight: bold;
min-height: 30px;
}
.message.victory {
color: #28a745;
}
.message.defeat {
color: #dc3545;
}