forked from MUHAMMED-FARIZ-KP/SnakeGame
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
86 lines (78 loc) · 1.69 KB
/
style.css
File metadata and controls
86 lines (78 loc) · 1.69 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
@import url('https://fonts.googleapis.com/css2?family=New+Tegomin&display=swap');
*{
padding: 0;
margin: 0;
}
.body{
background: url("bg.jpg");
min-height: 100vh;
background-size: 100vw 100vh;
background-repeat: no-repeat;
display: flex;
justify-content: center;
align-items: center;
}
#scoreBox{
border: 2px solid black;
position: absolute;
top: 9px;
right: 200px;
font-size: 39px;
font-weight: bold;
font-family: 'New Tegomin', serif;
}
#hiscoreBox{
border: 2px solid black;
position: absolute;
top: 9px;
right: 400px;
font-size: 39px;
font-weight: bold;
font-family: 'New Tegomin', serif;
}
#board{
background-color: rgba(0, 0, 0, 0.4);
width: 100vmin;
height: 87vmin;
border: 10px solid black ;
display: grid;
grid-template-rows: repeat(18, 1fr);
grid-template-columns: repeat(18, 1fr);
margin-right: 550px;
}
.head{
background-image: url("snakehead.png");
background-size: cover;
transform: scale(1.02);
}
.snake{
background-color: rgb(20, 137, 18);
border: .25vmin solid black;
border-radius: 12px;
}
.food{
background-image: url("apple.png");
background-size: contain;
background-repeat: no-repeat;
}
input[type=button], input[type=submit], input[type=reset] {
background-color: #04AA6D;
border: none;
color: white;
padding: 16px 32px;
text-decoration: none;
margin: 4px 2px;
cursor: pointer;
font-size: 40px;
margin-top: 600px;
}
#status{
font-family: 'Coiny', cursive;
float: left;
font-size: 50px;
color:red;
font-weight:bold;
position: absolute;
left:13%;
top: 49%;
}