-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
85 lines (72 loc) · 1.36 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
body {
color: black;
background-image: url("assets/background.jpg");
background-size: 100% 100%;
}
h1 {
text-align: center;
font-weight: 700;
font-size: 50px;
}
p {
text-align: center;
font-size: 30px;
font-weight: bold;
}
.actions {
display: flex;
justify-content: center;
}
.actions button {
padding: 8px 16px;
font-size: 30px;
border-radius: 10px;
background-color: #27ae60;
color: white;
}
.grid-container {
display: grid;
justify-content: center;
grid-gap: 16px;
grid-template-columns: repeat(6, 140px);
grid-template-rows: repeat(2, calc(140px / 2 * 3));
}
.card {
height: calc(140px / 2 * 3);
width: 140px;
border-radius: 10px;
background-color: white;
position: relative;
transform-style: preserve-3d;
transition: all 0.5s ease-in-out;
}
.front-image {
width: 100%;
height: 100%;
}
.card.flipped {
transform: rotateY(180deg);
}
.front, .back {
backface-visibility: hidden;
position: absolute;
border-radius: 10px;
top: 0;
left: 0;
height: 100%;
width: 100%;
}
.card .front {
display: flex;
justify-content: center;
align-items: center;
}
.card .back {
background-image: url("assets/card-back.jpg");
background-position: center center;
background-size: cover;
backface-visibility: hidden;
}
.card .front {
transform: rotateY(180deg);
}