-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmemory-game.css
More file actions
122 lines (108 loc) · 1.77 KB
/
memory-game.css
File metadata and controls
122 lines (108 loc) · 1.77 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
/* you can add to or change this.
/* color palette:
Dark blue: #001219;
dark teal: #005f73;
teal: #0a9396;
aqua: #94d2bd;
neutral: #e9d8a6;
tangerine: #ee9b00;
pumpkin: #ca6702;
burnt sienna: #bb3e03;
brick: #ae2012;
burgundy: #9b2226;
*/
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
h1 {
margin-top: 20px;
margin-bottom: 10px;
text-decoration: underline;
}
body {
background-color: #e9d8a6;
color: #ae2012;
font-family: 'Comfortaa', cursive;
height: 100vh;
text-align: center;
}
table {
text-align: center;
margin: auto;
}
td {
padding: 10px;
color:#cebc89;
background-color: #9b2226;
width: 143px;
border: 2px solid #005f73;
border-radius: 10px;
font-size: 15px;
}
.section {
background-color: #cebc89;
margin: auto;
width: 580px;
height: auto;
display: flex;
flex-wrap: wrap;
perspective: 1000px;
padding: 10px;
border-radius: 10px;;
}
#game div {
width: 100px;
height: 167px;
margin: 6px;
display: inline-block;
position: relative;
transform: scale(1);
transform-style: preserve-3d;
transition: transform .3s;
}
#game div:active {
transform: scale(0.95);
transition: transform .3s;
}
#game div.flip {
transform: rotateY(180deg)
}
.faceUp,
.faceDown {
width: 100%;
height: 100%;
margin-left: -50px;
position: absolute;
border-radius: 10px;
backface-visibility: hidden;
}
.faceUp {
transform: rotateY(180deg);
}
.restart {
padding: 20px;
}
button {
background-color: #ae2012;
color:#cebc89;
font-size: 16px;
padding: 6px;
border-radius: 10px;
border: 2px solid #005f73;
transform: scale(1);
}
span {
margin: 20px;
}
button:active {
transform: scale(0.95);
background-color: #cebc89;
color: #9b2226;
}
input {
background: transparent;
border: none;
font-size: 16px;
}