-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
119 lines (98 loc) · 1.7 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
#cards {
display: flex;
flex-wrap: wrap;
width: 85%;
margin: 0 auto;
}
.card {
box-sizing: border-box;
flex: 7% 1 1;
height: 8vw;
border: 2px solid #e0e0e0;
margin: 2px;
display: flex;
flex-direction: column;
justify-content: space-around;
}
.card img {
max-width: 30%;
align-self: center;
}
.card p {
margin: 3px;
font-size: 10px;
}
.card p:last-child {
transform: rotate(180deg);
}
.back {
background: url("https://assets-lighthouse.alphacamp.co/uploads/image/file/9222/ExportedContentImage_00.png");
background-size: cover;
}
.paired {
background-color: #dae0e3;
}
#header {
display: flex;
margin: 0 auto;
flex-direction: column;
align-items: flex-end;
width: 85%;
}
#header .title {
width: 100%;
display: flex;
justify-content: flex-end;
}
#header .title img {
max-width: 3em;
}
#header .title h2 {
padding-left: 0.5em;
}
#header .score {
margin: 0;
color: #6c90ac;
}
#header .tried {
margin-top: 0;
}
.wrong {
animation-name: wrongAnimation;
animation-duration: 0.2s;
animation-iteration-count: 5;
}
@keyframes wrongAnimation {
to {
border: 2px solid #ffd54f;
}
}
/** Game finished **/
.completed {
position: absolute;
z-index: 999;
top: 33vh;
background-color: RGBA(232, 246, 254, 0.8);
width: 100vw;
padding: 50px 0;
}
.completed>p {
font-size: 1.5em;
color: black;
text-align: center;
margin: 10px;
}
.a {
font-size: 2em;
text-align: center;
margin: auto;
}
a {
text-decoration: none;
color: #758d9a;
}
.completed>p:first-child {
font-size: 3em;
font-weight: 700;
color: #758d9a;
}