-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
142 lines (123 loc) · 3.17 KB
/
style.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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
* {
padding: 0;
margin: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
.welcome-text {
font-size: 3em; /* Large font size */
font-weight: bold; /* Bold text */
color: #41eaf6; /* Bright color */
cursor: pointer; /* Pointer cursor on hover */
transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease; /* Smooth transitions */
/* Special effects on hover */
&:hover {
color: #ffffff; /* Bright color on hover */
transform: scale(1.1); /* Scale effect on hover */
text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2); /* Text shadow on hover */
}
}
.credit-text {
font-size: 0.8em; /* Small font size */
color: #ffffff; /* Dark gray color */
}
body {
background: #040c4a; /* Fallback for browsers that don't support gradients */
background: linear-gradient(to bottom right, #040c4a, #ba0091); /* Gradient background */
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.wrapper {
width: 90%;
max-width: 37em;
background-color: #ffffff;
padding: 7em 3em;
text-align: center;
border-radius: 1em;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); /* Add a subtle box shadow */
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.controls-container {
background-color: rgb(98, 8, 110); /* Semi-transparent background */
position: absolute;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
top: 0;
}
#start {
font-size: 1.2em;
padding: 1em 3em;
background-color: #ffffff;
border: none;
outline: none;
border-radius: 2em;
cursor: pointer;
}
#start:hover {
background-color: #e0e0e0; /* Lighter shade on hover */
}
#letter-container {
display: flex;
flex-wrap: wrap;
gap: 0.8em 0.4em;
justify-content: center;
margin-top: 2em;
}
#letter-container button {
background-color: #ffffff;
border: 2px solid #7786f5;
color: #7786f5;
outline: none;
border-radius: 0.3em;
cursor: pointer;
height: 3em;
width: 3em;
}
#letter-container button:hover {
background-color: #f0f0f0; /* Lighter background on hover */
}
#letter-container .correct {
background-color: #008000;
color: #ffffff;
border: 2px solid #008000;
}
#letter-container .incorrect {
background-color: #8a8686;
color: #ffffff;
border: 2px solid #8a8686;
}
.hint-ref {
margin-bottom: 1em;
}
.hint-ref span {
font-weight: 600;
}
#chanceCount {
margin: 1em 0;
position: absolute;
top: 0.62em;
right: 2em;
background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
padding: 0.5em 1em;
border-radius: 0.5em;
}
#word {
font-weight: 600;
margin: 1em 0 2em 0;
}
#word span {
text-transform: uppercase;
font-weight: 400;
}
.hide {
display: none;
}