-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
61 lines (61 loc) · 1.3 KB
/
style.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
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
html{
font-size: 62.5%;
}
.container{
width: 100vw;
height: 100vh;
background: linear-gradient(rgb(69, 175, 69), rgb(255, 255, 127));
display: flex;
justify-content: center;
align-items: center;
}
.snake-board{
width: 45vw;
height: 90vh;
background: rgb(237, 237, 148);
border: 0.2rem solid rgb(0, 0, 0);
margin: 0 auto;
display: grid;
grid-template-rows: repeat(20, 1fr);
grid-template-columns: repeat(20, 1fr);
}
.snake-head{
background-color: red;
border-radius: 1rem;
-webkit-border-radius: 1rem;
-moz-border-radius: 1rem;
-ms-border-radius: 1rem;
-o-border-radius: 1rem;
}
.snake-body{
background-color: purple;
border-radius: 1rem;
-webkit-border-radius: 1rem;
-moz-border-radius: 1rem;
-ms-border-radius: 1rem;
-o-border-radius: 1rem;
}
.snake-food{
background-color: aqua;
}
.score-div{
position: absolute;
top: 4rem;
right: 10rem;
padding: 1rem 2rem;
border: 3px solid black;
border-radius: 5rem;
font-size: 2.5rem;
font-weight: bolder;
letter-spacing: 0.2rem;
background: transparent;
-webkit-border-radius: 5rem;
-moz-border-radius: 5rem;
-ms-border-radius: 5rem;
-o-border-radius: 5rem;
}