-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
66 lines (63 loc) · 1.04 KB
/
style.css
File metadata and controls
66 lines (63 loc) · 1.04 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
* {
margin: 0;
}
body {
background-color: #4a752c;
}
#container {
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
p {
padding: 10px;
font-weight: 900;
color: white;
font-size: 3em;
font-family: monospace;
}
#score-container {
width: 75vh;
display: flex;
justify-content: space-between;
}
.square {
box-sizing: border-box;
background-color: red;
}
#playground {
background-color: #aad751;
display: flex;
flex-wrap: wrap;
width: 75vh;
height: 75vh;
}
#snake {
border-radius: 5px;
display: flex;
flex-direction: column;
justify-content: space-around;
align-items: end;
position: absolute;
background-color: rgb(0, 17, 255);
}
.eye {
margin: 5px;
background-color: white;
width: 30%;
border-radius: 50px;
height: 30%;
}
.apple {
/* background-color: red; */
position: absolute;
transition: 1s;
/* border-radius: 50px; */
}
.tempSnake {
position: absolute;
border-radius: 15px;
background-color: hsla(260, 75%, 50%, 0.452);
}