-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
261 lines (224 loc) · 5.3 KB
/
style.css
File metadata and controls
261 lines (224 loc) · 5.3 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
/* --- Base Layout --- */
body {
font-family: 'Cinzel', serif;
background-color: black;
color: white;
text-align: center;
margin: 0;
padding: 0;
}
.container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
}
h1 {
font-size: 1.8rem;
margin-top: 20px;
color: #ccc; /* restored bright grey */
}
/* --- Buttons --- */
button {
background-color: #9c27b0;
color: white;
border: none;
border-radius: 8px;
padding: 8px 16px;
font-size: 15px;
font-family: 'Cinzel', serif;
cursor: pointer;
transition: all 0.2s ease;
}
button:hover {
background-color: #6666;
transform: scale(1.05);
}
/* --- Fortune text --- */
p#fortune {
font-size: 17px;
margin-top: 25px;
max-width: 600px;
padding: 0 20px;
line-height: 1.5;
color: #f0e6ff;
}
/* --- Music button --- */
.music-button {
position: absolute;
top: 15px;
left: 15px;
background: transparent;
border: none;
color: #9c27b0;
font-size: 22px;
cursor: pointer;
transition: transform 0.2s ease;
}
.music-button:hover {
transform: scale(1.1);
}
/* --- Footer --- */
footer {
margin-top: 40px;
font-size: 14px;
color: #aaa;
}
footer a {
color: #aaa; /* restored to grey */
text-decoration: none;
}
footer a:hover {
text-decoration: underline;
}
/* --- Language Menu with 🌐 Toggle --- */
.lang-wrapper {
position: absolute;
top: 15px;
right: 15px;
z-index: 10;
}
.lang-toggle {
background: transparent;
border: none;
color: #9c27b0;
font-size: 22px;
cursor: pointer;
transition: transform 0.2s ease;
}
.lang-toggle:hover {
transform: scale(1.1);
}
.lang-switcher {
display: none;
flex-direction: column;
gap: 6px;
margin-top: 6px;
background-color: rgba(0, 0, 0, 0.8);
padding: 8px;
border-radius: 8px;
border: 1px solid #9c27b0;
}
.lang-switcher.active {
display: flex;
}
.lang-switcher button {
background-color: #444;
color: white;
border: none;
border-radius: 6px;
padding: 5px 10px;
font-family: 'Courier New', monospace;
font-size: 12px;
cursor: pointer;
transition: background-color 0.2s ease;
}
.lang-switcher button:hover {
background-color: #666;
}
.lang-switcher button.active {
background-color: #9c27b0;
}
/* --- GIF --- */
img#fortune-gif {
width: 250px; /* restored normal size */
height: auto;
margin-top: 15px;
}
/* === Small overrides for music icon + language layout ===
- Keep existing lang-switcher look/shape intact (we do not change that)
- Place music icon left of language toggle
- Force language menu item hover to grey (not purple)
*/
/* Make the wrapper horizontal so music icon sits left of the globe */
.lang-wrapper {
position: absolute; /* keep top-right placement */
top: 15px;
right: 15px;
z-index: 50;
display: flex;
align-items: center;
gap: 8px; /* space between music icon and globe */
}
/* --- Music button --- */
.lang-wrapper .music-btn {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 24px;
line-height: 1;
background: transparent; /* MATCH PAGE */
border: none;
color: #68bde5; /* emoji color */
cursor: pointer;
transition: all 0.2s ease;
padding: 6px; /* match globe button halo size */
border-radius: 50%; /* ensures halo is circular like the globe */
}
/* Hover halo */
.lang-wrapper .music-btn:hover {
background-color: #6666; /* your hover halo */
border-radius: 8px;
transform: scale(1.08);
}
/* Diagonal line when muted */
.lang-wrapper .music-btn.muted::after {
content: "";
position: absolute;
top: 50%;
left: 50%;
width: 2px;
height: 24px;
background-color: #68bde5;
transform: translate(-50%, -50%) rotate(-45deg);
pointer-events: none;
}
/* diagonal line over the ♬ only if muted */
.lang-wrapper .music-btn.muted::after {
content: "";
position: absolute;
top: 50%;
left: 50%;
width: 2px; /* thickness of the line */
height: 24px; /* adjust for size of ♬ */
background-color: #68bde5; /* same color as ♬ */
transform: translate(-50%, -50%) rotate(-45deg); /* diagonal / */
pointer-events: none; /* so it doesn't block clicks */
}
/* Keep the globe exactly as before (no change) */
.lang-toggle {
background: transparent;
border: none;
color: #9c27b0;
font-size: 20px;
cursor: pointer;
padding: 4px;
}
/* Position the existing menu relative to the wrapper (no visual changes) */
.lang-wrapper .lang-switcher {
position: absolute; /* was earlier absolute in your CSS — keep it */
top: 40px; /* drop below the icons */
right: 0;
display: none; /* default hidden — your JS toggles .active */
}
/* Ensure visible uses the same existing .active behavior */
.lang-wrapper .lang-switcher.active {
display: flex;
flex-direction: column;
}
/* FORCE language button hover to grey so it never turns purple.
We use !important to guarantee this override without editing original rules. */
.lang-wrapper .lang-switcher button:hover {
background-color: #666 !important;
color: #fff !important;
}
/* Also make sure active (selected) language still uses your purple */
.lang-wrapper .lang-switcher button.active {
background-color: #9c27b0; /* unchanged */
color: #fff;
}
.lang-wrapper .music-btn {
font-size: 24px; /* slightly larger for balance */
}