Update style.css
Browse files
style.css
CHANGED
|
@@ -1,28 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
body {
|
| 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 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
}
|