ManiAz09 commited on
Commit
4fa8361
·
verified ·
1 Parent(s): 0f9b3ac

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +72 -21
style.css CHANGED
@@ -1,28 +1,79 @@
 
 
 
 
 
 
 
 
1
  body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
 
 
 
4
  }
5
-
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
 
 
 
 
 
 
9
  }
10
-
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
 
16
  }
17
-
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
 
 
 
 
 
24
  }
25
 
26
- .card p:last-child {
27
- margin-bottom: 0;
 
28
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Import Google font */
2
+ @import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap');
3
+ * {
4
+ margin: 0;
5
+ padding: 0;
6
+ box-sizing: border-box;
7
+ font-family: 'Open Sans', sans-serif;
8
+ }
9
  body {
10
+ display: flex;
11
+ align-items: center;
12
+ justify-content: center;
13
+ min-height: 100vh;
14
+ background: #E3F2FD;
15
  }
16
+ .wrapper {
17
+ width: 65vmin;
18
+ height: 70vmin;
19
+ display: flex;
20
+ overflow: hidden;
21
+ flex-direction: column;
22
+ justify-content: center;
23
+ border-radius: 5px;
24
+ background: #293447;
25
+ box-shadow: 0 20px 40px rgba(52, 87, 220, 0.2);
26
  }
27
+ .game-details {
28
+ color: #B8C6DC;
29
+ font-weight: 500;
30
+ font-size: 1.2rem;
31
+ padding: 20px 27px;
32
+ display: flex;
33
+ justify-content: space-between;
34
  }
35
+ .play-board {
36
+ height: 100%;
37
+ width: 100%;
38
+ display: grid;
39
+ background: #212837;
40
+ grid-template: repeat(30, 1fr) / repeat(30, 1fr);
41
+ }
42
+ .play-board .food {
43
+ background: #FF003D;
44
+ }
45
+ .play-board .head {
46
+ background: #60CBFF;
47
  }
48
 
49
+ .controls {
50
+ display: none;
51
+ justify-content: space-between;
52
  }
53
+ .controls i {
54
+ padding: 25px 0;
55
+ text-align: center;
56
+ font-size: 1.3rem;
57
+ color: #B8C6DC;
58
+ width: calc(100% / 4);
59
+ cursor: pointer;
60
+ border-right: 1px solid #171B26;
61
+ }
62
+
63
+ @media screen and (max-width: 800px) {
64
+ .wrapper {
65
+ width: 90vmin;
66
+ height: 115vmin;
67
+ }
68
+ .game-details {
69
+ font-size: 1rem;
70
+ padding: 15px 27px;
71
+ }
72
+ .controls {
73
+ display: flex;
74
+ }
75
+ .controls i {
76
+ padding: 15px 0;
77
+ font-size: 1rem;
78
+ }
79
+ }