forked from Diyaa-Gubarah/2--Memory-Game-JavaScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.css
More file actions
166 lines (143 loc) · 2.54 KB
/
Copy pathapp.css
File metadata and controls
166 lines (143 loc) · 2.54 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
html {
box-sizing: border-box;
}
/* asdfasdfasdf */
*,
*::before,
*::after {
box-sizing: inherit;
}
html,
body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
background: url(./img/geometry2.png);
}
body {
font-family: "Coda", cursive;
background-image: "/img/geometry2.png";
}
.container {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
h1 {
font-family: "Open Sans", sans-serif;
font-weight: 300;
}
/*
* Styles for the deck of cards
*/
.deck {
width: 660px;
min-height: 680px;
background: linear-gradient(160deg, #02ccba 0%, #aa7ecd 100%);
padding: 32px;
border-radius: 10px;
box-shadow: 12px 15px 20px 0 rgba(46, 61, 73, 0.5);
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
margin: 0 0 3em;
}
.deck .card {
height: 125px;
width: 125px;
background: #2e3d49;
font-size: 0;
color: #ffffff;
border-radius: 8px;
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
box-shadow: 5px 2px 20px 0 rgba(46, 61, 73, 0.5);
}
.deck .card:hover {
transform: scale(0.95);
}
.deck .card.open {
transform: rotateY(-180deg);
background: #02b3e4;
cursor: default;
/*display click event when card open */
pointer-events: none;
}
.deck .card.show {
font-size: 33px;
}
.deck .card.match {
cursor: default;
background: #02ccba;
font-size: 33px;
/*display click event when card match */
pointer-events: none;
}
.deck .card.match:hover {
transform: scale(1);
}
/*
* Styles for the Score Panel
*/
.score-panel {
text-align: left;
width: 345px;
margin-bottom: 10px;
}
.score-panel .stars {
margin: 0;
padding: 0;
display: inline-block;
margin: 0 5px 0 0;
}
.score-panel .stars li {
list-style: none;
display: inline-block;
}
.score-panel .restart {
float: right;
cursor: pointer;
}
/* Timer */
.timer {
text-align: center;
font-size: 60px;
font-family: cursive;
margin-top: 0px;
}
/* winning massege card */
.winning-card {
display: none;
background: linear-gradient(160deg, #02ccba 0%, #7fffd4 100%);
border-radius: 10px;
margin: 32px auto auto auto;
}
.button-part {
width: 100%;
height: 76px;
margin: auto;
}
.button-part .button {
display: inline-block;
box-sizing: border-box;
width: 100%;
line-height: 76px;
margin: 80% auto auto auto;
}
.button {
text-align: center;
font: 2em cursive;
color: #333;
cursor: pointer;
}
.button:hover {
background: rgba(0, 0, 0, 0.05);
}
.button:active {
background: rgba(0, 0, 0, 0.1);
}