-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsnake.css
More file actions
103 lines (83 loc) · 1.31 KB
/
Copy pathsnake.css
File metadata and controls
103 lines (83 loc) · 1.31 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
body {
margin: 0;
padding: 0;
}
h1 {
text-transform: uppercase;
font-size: 2.5rem;
color: brown;
font-weight: bold;
}
h2 {
color: brown;
text-transform: uppercase;
font-size: 1.5rem;
position: absolute;
top: -60px;
left: -230px;
}
canvas {
background-image: url(./images/green.jpg);
background-repeat: no-repeat;
background-size: cover;
}
.gamePage {
margin-top: 1rem;
}
.rel {
position: relative;
}
.modal-dialog {
max-width: 300px;
}
.modal-body {
text-align: center;
}
.btn {
display: block;
width: 15%;
font-size: 1rem;
background-color: brown;
color: #fff;
border: 1px solid brown;
}
.btn:hover {
color: brown;
background-color: #fff;
}
.modal-btn {
width: 20%;
}
.buttons {
margin-bottom: 10px;
position: absolute;
top: -70px;
left: 140px;
}
.result img{
height: 20px;
width: 20px;
margin-right: 10px;
}
#fruit, #virus {
display: none;
}
#snake {
height: 100px;
width: 100px;
margin-bottom: 20px;
}
#scoreModal {
color: brown;
font-weight: bolder;
}
#pauseBtn, #resumeBtn {
cursor: pointer;
padding: 10px;
border: 1px solid #ccc;
border-radius: 2px;
margin: 5px;
}
#pauseBtn:hover, #resumeBtn:hover {
background-color: #ccc;
}