-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMemoryGame.css
More file actions
105 lines (94 loc) · 1.79 KB
/
MemoryGame.css
File metadata and controls
105 lines (94 loc) · 1.79 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
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
height: 100vh;
display: flex;
background-image: url("https://github.com/vrussillo/MemoryGame/blob/main/img/LinksAwakening.png?raw=true");
background-color: rgb(214, 180, 180);
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
h1 {
font-family: zeldaFont;
color: honeydew;
font-size: 5vh;
width: auto;
height: auto;
padding: 20px 20px 20px 20px;
margin: 50px 0 0 550px;
display: flex;
flex-wrap: wrap;
align-items: center;
position: absolute;
border-radius: 7px;
background-color: teal;
border: 3px solid white;
}
.memory-game {
width: 640px;
height: 640px;
margin: auto;
display: flex;
flex-wrap: wrap;
perspective: 1000px;
}
.memory-card {
width: calc(25% - 10px);
height: calc(33.333% - 10px);
margin: 5px;
position: relative;
transform: scale(1);
transform-style: preserve-3d;
transition: transform .5s;
padding: 40px 10px 40px 10px;
/* box-shadow: 1px 1px 1px rgba(0, 0, 0, .3); */
}
.memory-card:active {
transform: scale(0.97);
transition: transform .2s;
}
.memory-card.flip {
transform: rotateY(180deg);
}
.front-face,
.back-face {
width: auto;
height: auto;
padding: 40px 10px 40px 10px;
position: absolute;
border-radius: 7px;
border: 3px solid white;
background: teal;
backface-visibility: hidden;
}
/* .front-face {
background: linear-gradient(315deg, #ce29f7, white);
font-size: 3rem;
} */
.front-face {
transform: rotateY(180deg);
}
/* //old css */
/* .game {
display: flex;
flex-wrap: wrap;
width: 400px;
height: 300px;
/* border: 3px solid black;
margin: 10px;
display: inline-block; */
@font-face {
font-family: zeldaFont;
src: url(Triforce.ttf);
}
/*
#start {
height: 90vh;
font-family: 'Bungee', cursive;
color: #ce29f7;
position: relative;
} */