-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
100 lines (86 loc) · 1.82 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
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
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap');
* {
padding: 0;
margin: 0;
box-sizing: border-box;
font-family: 'Open Sans', sans-serif;
}
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #E3F2FD;
flex-direction: column;
}
.wrapper {
width: 65vmin;
height: 80vmin;
display: flex;
overflow: hidden;
flex-direction: column;
border-radius: 5px;
background: #293447;
text-align: center;
}
span i {
font-size: 2rem;
margin: 10px 0;
color: crimson;
cursor: pointer;
text-shadow: 1px 1px 10px black;
/* transform: rotate(90deg); */
transition: 1.2s all ease;
}
.game-details {
color: #B8C6DC;
font-size: 1.2rem;
font-weight: 500;
padding: 20px 27px;
display: flex;
justify-content: space-between;
}
.play-board {
width: 100%;
height: 100%;
display: grid;
grid-template: repeat(30, 1fr) / repeat(30, 1fr);
background: #212837;
}
.play-board .food {
background: #FF003D;
border-radius: 10px;
}
.play-board .head {
background: #60CBFF;
}
.controls {
display: none;
justify-content: space-between;
}
.controls i {
padding: 25px 0;
color: #b8b8b8;
text-align: center;
cursor: pointer;
font-size: 1.3rem;
width: calc(100% / 4);
border-right: 1px solid #171b26;
}
@media screen and (max-width: 800px) {
.wrapper {
width: 90vmin;
height: 130vmin;
}
.game-details {
font-size: 1rem;
padding: 15px 27px;
}
.controls {
display: flex;
}
.controls i {
padding: 15px 0;
font-size: 1rem;
}
}