-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyle.css
More file actions
88 lines (77 loc) · 2.67 KB
/
style.css
File metadata and controls
88 lines (77 loc) · 2.67 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
body {
min-height: 100vh;
min-width: 100vh;
background: #032f96b8;
color: rgb(237 218 15);
}
h1 {
text-align: center;
font-weight: 700;
font-size: 60px;
font-family: Montserrat, sans-serif;
color: #e6e6e6;
text-shadow: 2px 2px 4px rgb(0 0 0 / 60%);
}
p {
margin-top: -20px;
text-align: center;
font-size: 35px;
font-weight: bold;
}
.actions {
display: flex;
justify-content: center;
}
.actions button {
margin-top: 20px;
padding: 10px 30px;
font-size: 30px;
border-radius: 10px;
background-color: #27ae60;
color: #fffafa;
}
.grid-container {
display: grid;
justify-content: center;
grid-gap: 20px;
grid-template-columns: repeat(4, 140px);
grid-template-rows: repeat(4, calc(140px / 2 * 3));
}
.card {
height: calc(140px / 2 * 3);
width: 140px;
border-radius: 10px;
background: #dfe8f4;
position: relative;
transform-style: preserve-3d;
transition: all 0.5s ease-in-out;
}
.front-image {
width: 190px;
height: 150px;
}
.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;
transform: rotateY(180deg);
}
.card .back {
background-image: url("data:image/svg+xml,<svg id='patternId' width='100%' height='100%' xmlns='http://www.w3.org/2000/svg'><defs><pattern id='a' patternUnits='userSpaceOnUse' width='29' height='50.115' patternTransform='scale(2) rotate(0)'><rect x='0' y='0' width='100%' height='100%' fill='hsla(0,0%,100%,1)'/><path d='M14.5 6.628L8.886 3.372v-6.515L14.502-6.4l5.612 3.257-.001 6.514zm0 50.06l-5.613-3.256v-6.515l5.614-3.258 5.612 3.257-.001 6.515zm14.497-25.117l-5.612-3.257v-6.515L29 18.541l5.612 3.257-.001 6.515zm-29 0l-5.612-3.257v-6.515L0 18.541l5.612 3.257v6.515zM14.5 11.82L4.36 5.967l.002-11.706 10.14-5.855L24.638-5.74l-.001 11.707zm0 50.06L4.36 56.028l.002-11.706 10.14-5.855 10.137 5.852-.001 11.707zm14.498-25.118L18.858 30.91l.002-11.707L29 13.349l10.137 5.853-.001 11.706zm-29 0l-10.139-5.852.002-11.707L0 13.349l10.138 5.853-.002 11.706zm14.501-19.905L0 8.488.002-8.257l14.5-8.374L29-8.26l-.002 16.745zm0 50.06L0 58.548l.002-16.745 14.5-8.373L29 41.8l-.002 16.744zM28.996 41.8l-14.498-8.37.002-16.744L29 8.312l14.498 8.37-.002 16.745zm-29 0l-14.498-8.37.002-16.744L0 8.312l14.498 8.37-.002 16.745z' stroke-linecap='square' stroke-width='2' stroke='hsla(206, 79%, 33%, 1)' fill='none'/></pattern></defs><rect width='800%' height='800%' transform='translate(0,0)' fill='url(%23a)'/></svg>");
background-position: center center;
background-size: cover;
backface-visibility: hidden;
}