-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
70 lines (60 loc) · 1.15 KB
/
index.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
* {
padding: 0;
margin: 0;
border: 0;
}
html,
body {
height: 100%;
overflow: hidden;
}
#screen {
position: relative;
background: black;
width: 100%;
height: 100%;
}
.snake {
position: absolute;
width: 40px;
height: 40px;
background: -webkit-linear-gradient(top, #00b09b, #96c93d);
opacity: 0.8;
box-shadow: 1px 1px 0 #000 inset;
filter: blur(1px);
}
#head {
background: -webkit-linear-gradient(top, #00b09b, #96c93d);
}
#food {
position: absolute;
background: -webkit-linear-gradient(left top, white, darkred );
border-radius: 10px;
width: 40px;
height: 40px;
left: 960px;
top: 480px;
}
.blur {
filter: blur(5px);
}
.btn {
position: absolute;
color: white;
cursor: pointer;
z-index: 99;
background: none;
display: block;
}
.start {
top: 50%;
left: 40%;
width: 20%;
padding: 5px;
letter-spacing: 30px;
font-size: 40px;
}
.stop {
top: 10px;
right: 10px;
}