-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathstyles.css
127 lines (121 loc) · 2.37 KB
/
styles.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
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
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background-color: #000;
color: #fff;
font-family: Arial, sans-serif;
}
#game-container {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
position: relative;
touch-action: none; /* Move touch-action: none here */
}
#maze-canvas {
border: 2px solid #fff;
}
#config-screen {
display: flex;
flex-direction: column;
align-items: center;
background-color: #000;
color: #fff;
padding: 20px;
border: 2px solid #fff;
}
#config-screen label {
margin: 5px 0;
}
#config-screen input {
margin: 5px 0;
padding: 5px;
width: 50px;
text-align: center;
}
#config-screen button {
margin-top: 20px;
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
}
#mobile-controls {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
position: absolute;
right: 20px;
top: 50%;
transform: translateY(-50%);
}
#mobile-controls button {
width: 50px;
height: 50px;
margin: 5px;
font-size: 24px;
background-color: #333;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
}
#mobile-controls div {
display: flex;
justify-content: center;
align-items: center;
}
#instructions-modal {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: #000;
color: #fff;
padding: 20px;
border: 2px solid #fff;
z-index: 1000;
display: none;
}
#instructions-content {
text-align: center;
}
#instructions-content button {
margin-top: 20px;
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
background-color: white;
color: black;
border: none;
border-radius: 5px;
}
#instructions-button {
position: absolute;
top: 10px;
left: 10px;
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
background-color: white;
color: black;
border: none;
border-radius: 5px;
}
#language-select {
padding: 5px;
font-size: 16px;
cursor: pointer;
background-color: white;
color: black;
border: none;
border-radius: 5px;
}
#language-select,
#instructions-button {
touch-action: auto; /* Ensure touch-action is auto for these elements */
}