-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
137 lines (127 loc) · 2.59 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
*{
font-family: "Poppins", sans-serif;
}
body {
height: 100%
display: flex;
}
h3{
font-weight: bold;
text-shadow: 2px 4px 4px rgba(114, 42, 161, 0.6);
}
nav {
display: flex;
align-items: center;
justify-content: center;
background-color: lavender;
text-shadow: 2px 4px 4px rgba(190, 177, 199, 0.6);
height: 10vh;
color:rgb(192, 134, 192);
text-align: center;
font-size: 1.3em;
border-radius: 5px;
}
.buttons {
display: flex;
justify-content: center;
align-items: center;
height: 10vh;
}
button {
color:palevioletred;
font-size: 1.3em;
margin-right: 10px;
font-weight: bold;
background-color: aliceblue;
border-radius: 5px;
text-shadow: 1px 1px 1px rgba(29, 28, 30, 0.6);
}
.disabled {
color:white;
background-color: rgb(219, 215, 215);
}
.disabledSelected {
color:rgb(150, 73, 160);
background-color: rgb(219, 215, 215);
}
main {
height: 80vh;
display: flex;
}
.row {
display: flex;
justify-content: space-around;
align-items: center;
}
.board {
background-color: white;
width: 81.3vw;
height: 81.3vh;
}
.score-board {
display: flexbox;
text-align: center;
background-color: rgb(192, 134, 192);
height: 81.5vh;
width: 25vw;
border-radius: 10px;
}
.score{
background-color: none;
color:black;
}
.flip-card {
display: flex;
justify-content: space-between;
height: 20vh;
width: 20vw;
perspective: 1000px;
}
.card {
display: flex;
align-items: center;
justify-content: center;
background-color:lightpink;
border:1px gray solid;
height: 100%;
width: 100%;
text-align: center;
font-size: 3.5em;
border-radius: 10px;
margin: 2px;
position: relative;
transition: transform 0.8s;
transform-style: preserve-3d;
box-shadow: 0 4px 4px 0 rgba(0,0,0,0.2);
cursor: pointer;
}
.flip{
transform: rotateY(180deg);
}
.matched {
transform: rotateY(180deg);
/* backface-visibility: visible; */
}
.card-front, .card-back{
display: flex;
align-items: center;
justify-content: center;
position: absolute;
width:100%;
height:100%;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
}
.card-front {
background-color: lavender;
color:rgb(192, 134, 192);
text-shadow: 1px 2px 2px rgba(177, 166, 185, 0.6);
}
.card-back {
text-align: center;
background-color: #fff;
color:black;
transform: rotateY(180deg);
user-select: none;
}