forked from visualdenniss/pychess-memoryGame
-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
95 lines (83 loc) · 1.62 KB
/
styles.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
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans&display=swap');
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
height: 100vh;
background: #161512 linear-gradient(to bottom, #2e2a24, #161512 116px)
no-repeat;
font-family: 'Noto Sans', Sans-Serif;
}
a {
font-size: 25px;
padding: 20px;
height: 60px;
width: 150px;
color: #bababa;
text-decoration: none;
display: flex;
justify-content: center;
align-items: center;
}
#replay {
margin: auto;
text-transform: uppercase;
padding: 15px 2px;
font-size: 1.1rem;
background: linear-gradient(to bottom, #3c3934, #33312e 100%);
color: #999;
border: none;
border-radius: 3px;
width: 200px;
cursor: pointer;
margin-top: 50px;
margin-bottom: 50px;
}
#replay:hover {
background: linear-gradient(rgb(68, 65, 59), rgb(59, 57, 53) 100%);
color: #ccc;
}
#replay:active {
transform: scale(0.97);
}
.memory-game {
width: 350px;
height: 350px;
display: flex;
flex-wrap: wrap;
margin: auto;
margin-top: 50px;
perspective: 1000px;
background: url(img/zen.png);
background-size: cover;
border-radius: 3px;
}
.memory-card {
width: calc(25% - 10px);
height: calc(25% - 10px);
position: relative;
margin: 5px;
transform: scale(1);
transform-style: preserve-3d;
transition: transform 0.5s;
}
.memory-card:active {
transform: scale(0.97);
transition: transform 0.2s;
}
.memory-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);
}