-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
115 lines (96 loc) · 1.61 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
body{
font-family: 'Italiana', serif;
background: radial-gradient(#FAD8FF, #E899F4);
color: #FFF7C8;
}
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
#landing-page{
text-align: center;
width: 100%;
height: 100%;
}
#title{
font-size: 200px;
}
.info{
font-size: 80px;
}
button{
background: #4CCED4;
width: 250px;
height: 160px;
font-family: 'Italiana', serif;
font-size: 70px;
color: #FFF7C8;
}
header{
min-height: 100vh;
}
section{
min-height: 100vh;
}
.page-title{
font-size: 90px;
font-family: 'Italiana', serif;
text-align: center;
}
.highScore{
font-size: 40px;
font-family: 'Italiana', serif;
position: absolute;
left: 28%;
}
.memoryGame{
display: flex;
flex-wrap: wrap;
width: 800px;
height: 600px;
position: relative;
left: 28%;
perspective: 1000px;
}
img{
width: 70%;
}
.back{
width: 100%;
height: 100%;
}
.card{
height: 30.5%;
width: 23.4%;
margin: 5px;
position: relative;
overflow: hidden;
align-items: flex-start;
border-radius: 8px;
transform: scale(1);
transform-style: preserve-3d;
transition: transform .7s;
border: 2px solid greenyellow;
}
.card:active{
transform: scale(.95);
transition: transform .4s;
}
.front{
width: 100%;
height: 100%;
transform: rotateY(180deg);
}
.card.flip{
transform: rotateY(180deg);
}
.front,
.back{
align-items: center;
width: 100%;
padding: 20px;
position: absolute;
background-color: #B987F1;
/* backface-visibility: hidden; */
}