-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
78 lines (66 loc) · 1.06 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
width: 100vw;
height: 100vh;
background-color: #222831;
color: #00adb5;
}
.root-container {
margin: 20px;
text-align: center;
}
img {
width: 300px;
height: 300px;
}
.image-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.flip-card {
width: 300px;
height: 300px;
margin: 30px;
perspective: 1000px;
}
.flip-card-inner {
position: relative;
width: 100%;
height: 100%;
text-align: center;
transition: transform 0.5s;
transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner {
transform: rotateY(180deg);
}
.flip-card-front,
.flip-card-back {
position: absolute;
width: 100%;
height: 100%;
backface-visibility: hidden;
}
.flip-card-back {
background-color: #222831;
color: #ea1752cf;
transform: rotateY(180deg);
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.flip-card-back h3,
.flip-card-back h1 {
margin-top: 30px;
}
#border-title {
margin-top: 20px;
}
#border {
margin-top: 10px;
}