-
Notifications
You must be signed in to change notification settings - Fork 1
/
styles.css
196 lines (167 loc) · 2.8 KB
/
styles.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
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
body {
display: flex;
justify-content: center;
background-color: rgb(211,190,130);
font-family: 'Star', sans-serif;
}
div {
/* border: 1px solid black; */
}
@font-face {
font-family: 'Star';
src: url('./resources/fonts/Starjedi.ttf') format("truetype");
}
/* game page */
#points, #health, #timer {
margin-top: 10px;
margin-left: 20px;
width: 130px;
}
#gameboard {
display: flex;
flex-wrap: wrap;
align-items: center;
max-width: 920px;
height: 220px;
width: 900px;
margin-top: 100px;
}
.front img {
width: 80%;
}
.back img {
width: 100%;
height: 100%;
border-radius: 8px;
}
.cardvalue {
display: none;
}
/* flip animation */
/* entire container, keeps perspective */
.flip-container {
perspective: 1000px;
border-radius: 8px;
width: 20%;
}
.flipped {
transform: rotateY(180deg);
}
.flip-container, .front, .back {
width: 16%;
height: 100%
}
/* flip speed goes here */
.flipper {
transition: 0.5s;
transform-style: preserve-3d;
position: relative;
width: 100%;
height: 100%;
}
/* hide back of pane during swap */
.front, .back {
backface-visibility: hidden;
position: absolute;
top: 0;
left: 0;
border-radius: 8px;
width: 100%;
}
/* front pane, placed above back */
.front {
z-index: 2;
/* for firefox 31 */
transform: rotateY(180deg);
background-color: rgb(120, 160, 136);
border: 1px solid rgb(83, 111, 94);
display: flex;
justify-content: center;
align-items: center;
}
/* back, initially hidden pane */
.back {
transform: rotateY(0deg);
background-color: rgb(227, 230, 206);
}
/* add rebel char in middle of each card*/
.back:before {
content: '$';
position: absolute;
top: 42%;
left: 37.5%;
font-size: 36px;
}
/* start page */
.container-start {
display: flex;
flex-direction: column;
position: relative;
height: 500px;
margin-top: 10%;
margin-left: 5%;
min-width: 580px;
}
.icon-buttons {
position: absolute;
left: 24px;
top: 40px;
z-index: 60;
}
#speaker, #backBtn {
width: 16px;
position: absolute;
top: 100px;
margin-left: -30px;
}
#backBtn {
top: 125px;
left: -2px;
}
h1 {
font-size: 60px;
}
h3 {
font-size: 40px;
}
button, input {
padding: 20px;
font-family: 'Star';
margin: 20px;
width: 350px;
border: 1px solid rgb(239, 147, 72);
background-color: rgb(120, 167, 104);
box-shadow: 2px 2px 2px rgb(136, 136, 136);
font-size: 25px;
outline: none;
}
.mode-buttons {
display: flex;
flex-direction: column;
align-items: center;
position: absolute;
top: 100px;
z-index: 100;
}
button:active, input:active {
box-shadow: inset 2px 2px 2px rgb(136, 136, 126);
padding-top: 22px;
padding-bottom: 18px;
padding-left: 21px;
padding-right: 19px;
}
.hide {
display: none;
}
.unmatched .front {
background-color: red;
transition: background-color 2s;
}
#r2 {
margin-left: -900px;
top: 500px;
position: absolute;
}
#r2 img {
width: 150px;
}