Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
280 lines (258 loc) · 5.73 KB
/
Copy pathstyle.css
File metadata and controls
280 lines (258 loc) · 5.73 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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
html, body {
height: 100%;
padding: 0;
margin: 0;
}
#map {
width: 100%;
height: 100%;
position: relative;
}
/* Style for the button */
.custom-button {
position: absolute;
top: 2vh;
left: 2vw;
z-index: 1000;
background-color: white;
border: 1px solid #ccc;
border-radius: 5px;
padding: 10px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
width: 5vh;
height: 5vh;
}
.custom-button img {
width: 80%;
height: 80%;
display: block;
}
/* Style for the sliding menu */
.menu {
position: fixed;
top: 0;
left: -100vw; /* Hidden by default on the left side */
width: 60vw;
height: 100%;
background-color: #fff;
box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2); /* Adjusted shadow to match left side */
transition: left 0.3s ease; /* Smooth sliding animation */
z-index: 1000;
overflow-y: auto;
padding: 20px;
}
.menu.open {
left: 0; /* Slide into view from the left */
}
/* Close button for the menu */
.menu .close-button {
position: absolute;
top: 2vh;
left: 2vw; /* Position close button on the left side */
margin-bottom: 5vh;
bottom: 10vw;
background-color: #f44336;
color: white;
border: none;
border-radius: 50%;
width: 5vh;
height: 5vh;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
line-height: 1;
}
/* Search bar styles */
.search-bar {
position: absolute;
top: 2vh;
left: 50%;
transform: translateX(-50%);
z-index: 1000;
width: 80%;
display: flex;
background-color: white;
border: 1px solid #ccc;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
height: 7vh;
}
.search-bar input {
flex: 9;
padding: 10px;
border: none;
border-radius: 5px 0 0 5px;
outline: none;
}
.search-bar button {
flex: 1;
background-color: #007bff;
color: white;
border: none;
padding: 10px;
border-radius: 5px;
cursor: pointer;
}
/* Style for the search results */
.search-results {
position: absolute;
top: 10vh;
left: 50%;
transform: translateX(-50%);
z-index: 1000;
width: 80%;
margin-top: 0px;
overflow: hidden;
}
/* Container for each result item */
.search-result-item {
display: flex;
align-items: center;
margin-bottom: 1vh;
border: 1px solid #ccc;
border-radius: 5px;
height: 7vh;
background-color: #f8f8f8;
overflow: hidden;
}
/* Main button (90% width) */
.search-results .main-button {
flex: 9; /* Takes 90% of the width */
border: none;
text-align: left;
background-color: transparent;
cursor: pointer;
outline: none;
padding: 10px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.search-results .main-button:hover {
background-color: #c3cac5; /* Darker green on hover */
}
/* Plus button (10% width) */
.search-results .plus-button {
flex: 1; /* Takes the remaining 10% of the width */
background-color: #28a745; /* Green background */
height: 100%;
border-radius: 5px;
color: white; /* White text */
border: none; /* No border */
display: flex;
align-items: center;
justify-content: center;
cursor: pointer; /* Pointer cursor on hover */
transition: background-color 0.3s ease; /* Smooth transition for hover effect */
padding: 10px;
font-size: 12px;
}
.search-results .plus-button:hover {
background-color: #218838; /* Darker green on hover */
}
.search-results .plus-button:active {
background-color: #1e7e34; /* Even darker green when active */
}
/* Style for the hint box */
.hint-box {
position: absolute;
bottom: 2vh;
left: 2vw;
width: 20vw;
padding: 10px;
background-color: white;
border: 1px solid #ccc;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
z-index: 1000;
font-family: Arial, sans-serif;
font-size: 14px;
color: #333;
}
.hint-box h3 {
margin-top: 0;
margin-bottom: 10px;
font-size: 16px;
color: #000;
text-align: center;
}
.hint-box ul {
list-style: none;
padding: 0;
margin: 0;
}
.hint-box li {
margin-bottom: 8px;
display: flex;
align-items: center;
word-break: break-word;
white-space: normal;
}
.hint-box li span {
display: inline-block;
width: 15px;
height: 15px;
margin-right: 8px;
border-radius: 50%;
}
/* Red circle for game area */
.hint-box .red-circle {
background-color: red;
opacity: 0.5;
}
/* Blue circle for area preview */
.hint-box .blue-circle {
background-color: blue;
opacity: 0.5;
}
/* Style for the submit input container */
.submit-input-container {
position: absolute;
bottom: 2vh;
right: 2vw;
z-index: 1100;
display: flex;
align-items: center;
}
/* Style for the input field */
.submit-input-container input {
padding: 10px 15px;
background-color: #ffffff;
color: #333;
border: 2px solid #007bff;
border-radius: 5px;
font-size: 14px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
outline: none;
transition: border-color 0.3s ease, box-shadow 0.3s ease;
max-width: 35vw;
}
.submit-input-container input:focus {
border-color: #0056b3; /* Darker border on focus */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
/* Style for the submit button */
.submit-input-container button {
padding: 10px 15px;
background-color: #007bff;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 14px;
font-weight: bold;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
transition: background-color 0.3s ease;
}
.submit-input-container button:hover {
background-color: #0056b3; /* Darker blue on hover */
}
.submit-input-container button:active {
background-color: #004085; /* Even darker blue when active */
}