-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
87 lines (85 loc) · 1.74 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
@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@300&family=Poppins:wght@300&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root{
--bg-main:#464646;
--bg-card:#2D2727;
--border-color:#efc745;
}
body{
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
gap: 3rem;
height: 100vh;
background-color: var(--bg-main);
}
h1{
color: white;
font-size: 2rem;
font-family: 'Lexend Deca', sans-serif;
}
span{
color: var(--border-color);
}
#card-section{
display: grid;
grid-template-columns: repeat(4,1fr);
grid-gap: 1rem;
}
/* .card{
width: 6rem;
height: 6rem;
background-color: var(--bg-card);
background-size: 95%;
background-repeat: no-repeat;
background-position: center;
border-radius: .6rem;
box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}*/
.card{
position: relative;
transition: all .4s linear;
transform-style: preserve-3d;
}
.card,
.back-card,
.front-card{
height: 6rem;
width: 6rem;
}
.back-card,
.front-card{
position: absolute;
backface-visibility: hidden;
}
.front-card{
background-color: 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-color: #6589F9;
border-radius: .6rem;
background-size: contain;
background-repeat: no-repeat;
background-position: center center;
padding: 2rem;
background-size: 90%;
}
.card:hover{
cursor: pointer;
}
.card_selected{
transform: rotateY(180deg);
}
.card_match .front-card{
background-color: var(--bg-card);
}