-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathstyle.css
More file actions
101 lines (93 loc) · 1.58 KB
/
style.css
File metadata and controls
101 lines (93 loc) · 1.58 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
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: indigo;
flex-direction: column;
}
.memory-game {
width: 37vw;
height: 37vw;
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-gap: 10px;
place-items: center;
margin: 10px;
}
.card {
width: 100%;
height: 100%;
position: relative;
transform: scale(1);
transform-style: preserve-3d;
transition: transform 0.5s;
cursor: pointer;
}
.card.flip {
transform: rotateY(180deg);
}
.front-face, .back-face {
position: absolute;
width: 100%;
height: 100%;
border-radius: 5px;
backface-visibility: hidden;
}
.front-face {
transform: rotateY(180deg);
}
.front-face img {
width: 100%;
}
.back-face {
background-color: #ecf0f1;
display: flex;
justify-content: center;
align-items: center;
}
.back-face img {
width: 100%;
height: 100%;
}
.winning-message {
display: none;
flex-direction: column;
align-items: center;
background-color: rgba(233,233,233,0.8);
color: #ff006a;
position: absolute;
width: 30vw;
padding: 20px;
border-radius: 10px;
font-weight: bold;
font-size: 30px;
z-index: 1000;
}
.winning-message.show {
display: flex;
}
#resetButton {
width: 200px;
height: 50px;
border-radius: 5px;
border: none;
cursor: pointer;
font-weight: bold;
font-size: x-large;
color:darkcyan;
}
#moveCounter {
color: whitesmoke;
}
#timer {
color: whitesmoke;
width: 140px;
}
.gameInfo {
display: flex;
justify-content: space-between;
width: 37vw;
font-size: x-large;
font-weight: bold;
}