-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
87 lines (69 loc) · 1.32 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
*{
padding: 0;
margin: 0;
box-sizing: border-box;
}
:root{
--bg-main:#464646;
--bg-card:#2D2727;
--border-color:#efc745;
}
body{
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
gap: 5rem;
background-color: var(--bg-main);
}
h1{
color: #fff;
font-family: Arial, Helvetica, sans-serif;
font-size: 4rem;
}
span{
color: var(--border-color);
}
#card-section{
display: grid;
grid-template-columns: repeat(4,1fr);
grid-gap: 2rem;
}
.card{
position: relative;
transition: all .4s linear;
transform-style: preserve-3d;
}
.card,
.back-card,
.front-card{
height: 10rem;
width: 10rem;
}
.back-card,
.front-card{
position: absolute;
backface-visibility: hidden;
}
.front-card{
background: var(--border-color);
background-size: contain;
border-radius: .6rem;
box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
padding: 2rem;
}
.back-card{
transform: rotateY(180deg);
background-size: contain;
background-repeat: no-repeat;
background-position: center center;
box-shadow: rgba(149, 157, 164, 0.2) 0px 8px 24px;
padding: 2rem;
}
.card_selected{
transform: rotateY(180deg);
}
.card_match .front-card{
background-color: var(--bg-card);
}