-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
212 lines (185 loc) · 3.6 KB
/
Copy pathstyle.css
File metadata and controls
212 lines (185 loc) · 3.6 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
body {
background-color: #2B7A0B;
text-align: center;
margin: 0;
}
/* Text styling */
h1 {
background-color: #876445;
padding: 25px;
width: auto;
margin-top: 0;
margin-bottom: 0px;
color: white;
font-family: 'Fredoka One', cursive;
font-size: 3.5rem;
font-weight: 100;
text-shadow: 5px 5px 10px rgba(0, 0, 0, 0.45);
box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.35);
}
h3 {
top: 0;
align-self: center;
display: inline;
font-family: 'Fredoka One', cursive;
font-weight: 100;
color: white;
text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.25);
}
#score-display-frame {
align-content: center;
padding-top: 10px;
height: 30px;
top: 0;
margin-top: 0;
margin-bottom: 10px;
box-shadow: 4px 4px 10px rgba(250, 250, 250, 0.3), inset 0px 4px 4px rgba(0, 0, 0, 0.25);
}
#score-display {
align-self: center;
top: 0;
position: relative;
left: 20px;
}
#number-of-attempts {
left: 40%;
padding: 10px;
width: 20px;
}
#best-score {
padding: 10px;
}
/* Overlay and Game Start Button */
.overlay {
position: fixed;
display: block;
width: 100%;
height: 100%;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0,0,0,0.3);
z-index: 1;
cursor: pointer;
}
/* Cards field and cards Display */
#game div {
border: None;
width: 136px;
height: 204px;
margin: 10px;
display: inline-block;
border-radius: 10%;
transition: transform 0.6s;
box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.35);
}
/* Start Game button */
#start-game {
position: relative;
align-self: center;
top: 45%;
width: 300px;
height: 80px;
background-color: #EAE509;
border: none;
border-radius: 10px;
box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.35);
color: #2B7A0B;
font-size: 1.5rem;
font-family: 'Fredoka One', cursive;
}
#start-game:hover {
background-color: #2B7A0B;
color: #EAE509;
}
#start-game:active {
filter: blur(8px);
}
/* card disply area */
#game {
width: auto;
}
/* Face up cards animation and blocking clicking events */
.face-up {
transition: transform 0.6s;
transform: rotate(180deg) scaleY(1.1);
}
/* user feedback */
#user-feedback-frame {
position: fixed;
display: block;
align-content: center;
align-items: center;
z-index: 1;
pointer-events: none;
}
#nice-work {
visibility: hidden;
color: #2B7A0B;
text-align: center;
font-family: 'Fredoka One', cursive;
font-weight: 100;
background-color: #EAE509;
border-radius: 10px;
width: 200px;
height: 50px;
box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.35);
}
#try-again {
visibility: hidden;
position: relative;
color: white;
text-align: center;
font-family: 'Fredoka One', cursive;
font-weight: 100;
background-color: #D61C4E;
border-radius: 10px;
width: 200px;
height: 50px;
box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.35);
z-index: 1;
}
.user-feedback-text {
padding-top: 10px;
padding-bottom: 10px;
}
#congratulations {
visibility: hidden;
color: #2B7A0B;
text-align: center;
font-family: 'Fredoka One', cursive;
font-weight: 100;
position: relative;
align-self: center;
top: 30%;
margin-left: auto;
margin-right: auto;
padding: 20px;
background-color: #EAE509;
border-radius: 10px;
width: 300px;
height: 50px;
box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.35);
pointer-events: none;
}
/* Responsive website text management */
@media screen and (min-width: 320px) {
h3 {
font-size: 4vw;
width: auto;
}
#user-feedback-frame {
left: 15%;
top: 25%;
}
}
@media screen and (min-width: 601px) {
h3 {
font-size: 1.3rem;
}
#user-feedback-frame {
left: 45%;
top: 35%;
}
}