Skip to content

Commit ab97e26

Browse files
committed
fixed the hidenseek componenet
1 parent 1976c26 commit ab97e26

File tree

2 files changed

+70
-69
lines changed

2 files changed

+70
-69
lines changed

src/assets/styles/hidenseek.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,4 +279,4 @@
279279
.help-button:hover {
280280
transform: scale(1.1);
281281
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
282-
}
282+
}

src/assets/styles/seeknhide.css

Lines changed: 69 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,90 +1,91 @@
1-
/* Full-page container - Always Centered */
2-
.container {
3-
display: flex;
4-
flex-direction: column;
5-
min-height: 100vh;
6-
width: 100%;
7-
justify-content: center;
8-
align-items: center;
9-
padding: 20px;
10-
text-align: center;
111

12-
main {
2+
/* Full-page container - Always Centered */
3+
.container {
134
display: flex;
145
flex-direction: column;
156
min-height: 100vh;
167
width: 100%;
178
padding: 20px;
189
text-align: center;
1910

20-
/* Each letter card */
21-
.word {
22-
width: 200px;
23-
height: 200px;
24-
display: flex;
25-
align-items: center;
26-
justify-content: center;
27-
font-size: 10rem;
28-
font-weight: bold;
29-
background: #0b1f54;
30-
border-radius: 12px;
31-
transition:
32-
all 0.3s ease-in-out,
33-
transform 0.2s ease;
34-
cursor: pointer;
35-
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
36-
position: relative;
37-
overflow: hidden;
38-
39-
.letter {
40-
opacity: 0;
41-
color: white;
42-
transition: opacity 0.3s ease-in-out;
43-
font-family: Arial, sans-serif;
44-
text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
45-
z-index: 2;
46-
user-select: none;
11+
main {
12+
display: flex;
13+
flex-wrap: wrap;
14+
justify-content: center;
15+
align-items: center;
16+
gap: 15px;
17+
width: 100%;
18+
max-width: none; /* Allows full expansion */
19+
padding: 10px;
20+
}
4721
}
4822

49-
&:hover {
50-
transform: translateY(-5px);
51-
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
23+
/* Each letter card */
24+
.word {
25+
width: 200px;
26+
height: 200px;
27+
display: flex;
28+
align-items: center;
29+
justify-content: center;
30+
font-size: 10rem;
31+
font-weight: bold;
32+
background: #0b1f54;
33+
border-radius: 12px;
34+
transition: all 0.3s ease-in-out, transform 0.2s ease;
35+
cursor: pointer;
36+
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
37+
position: relative;
38+
overflow: hidden;
5239

5340
.letter {
54-
opacity: 1;
41+
opacity: 0;
42+
color: white;
43+
transition: opacity 0.3s ease-in-out;
44+
font-family: Arial, sans-serif;
45+
text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
46+
z-index: 2;
47+
user-select: none;
5548
}
56-
}
5749

58-
&.active .letter {
59-
opacity: 1;
60-
}
50+
&:hover {
51+
transform: translateY(-5px);
52+
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
6153

62-
&:active {
63-
transform: scale(0.95);
64-
}
65-
}
54+
.letter {
55+
opacity: 1;
56+
}
57+
}
6658

67-
/* Responsive adjustments */
68-
@media (max-width: 768px) {
69-
.word {
70-
width: 150px;
71-
height: 150px;
72-
font-size: 7rem;
73-
}
59+
&.active .letter {
60+
opacity: 1;
61+
}
7462

75-
.container main {
76-
gap: 10px;
63+
&:active {
64+
transform: scale(0.95);
65+
}
7766
}
78-
}
7967

80-
@media (max-width: 480px) {
81-
.word {
82-
width: 100px;
83-
height: 100px;
84-
font-size: 5rem;
68+
/* Responsive adjustments */
69+
@media (max-width: 768px) {
70+
.word {
71+
width: 150px;
72+
height: 150px;
73+
font-size: 7rem;
74+
}
75+
76+
.container main {
77+
gap: 10px;
78+
}
8579
}
8680

87-
.container main {
88-
gap: 8px;
81+
@media (max-width: 480px) {
82+
.word {
83+
width: 100px;
84+
height: 100px;
85+
font-size: 5rem;
86+
}
87+
88+
.container main {
89+
gap: 8px;
90+
}
8991
}
90-
}

0 commit comments

Comments
 (0)