-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsnake.css
More file actions
132 lines (113 loc) · 2.11 KB
/
snake.css
File metadata and controls
132 lines (113 loc) · 2.11 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
body {
font-family: system-ui;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background-color: #e5d2e9;
overflow: hidden;
}
.container {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
}
.left-column {
text-align: center;
padding: 20px;
height: 100%;
width: 20%;
display: flex;
/* Enable flex layout */
flex-direction: column;
/* Vertically align items */
justify-content: center;
/* Center items vertically */
}
.right-column {
display: flex;
flex-direction: column;
align-items: center;
}
h1 {
margin: 0;
font-size: 70px;
}
.scores h2,h3 {
margin: 0;
}
#gameOver {
font-size: 4em;
}
hr {
border: 1px solid rgb(162, 13, 162);
margin-top: 15px;
width: 80%;
}
button {
align-self: center;
margin-top: 10px;
width: 40%;
height: 6%;
background-color: black;
color: white;
font-size: 20px;
border: 3px solid grey;
border-radius: 5px;
cursor: pointer;
}
.options-dropdown {
width: 100%;
height: 4%;
/* background-color: red; */
margin-top: 10px;
}
#options {
height: 100%;
margin-top: 0;
}
.options-content {
margin-top: 10px;
display: none;
/* background-color: lightgreen; */
text-align: center;
position: relative;
}
#board {
border-radius: 2.5%;
max-width: 80%;
border: 10px solid grey;
/* Set a maximum width for the board */
}
@media (max-width: 768px) {
.left-column {
width: 40%;
/* Adjust the width for smaller screens */
}
/* Define styles for screens smaller than 768px */
#board {
max-width: 70%;
}
}
@media (max-width: 480px) {
.left-column {
width: 60%;
/* Further adjust the width for even smaller screens */
}
/* Define styles for screens smaller than 480px */
#board {
max-width: 60%;
}
}
label {
font-weight: bold;
vertical-align: middle;
}
input {
scale: 1.5;
vertical-align: middle;
}