-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtrendingmovies.css
103 lines (89 loc) · 2.47 KB
/
trendingmovies.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
#unique-movies-grid {
display: flex;
gap: 20px;
overflow-x: auto;
padding: 20px;
scroll-behavior: smooth;
}
.unique-movie-flip-card {
perspective: 1000px;
cursor: pointer;
width: 280px;
/* max-width: 350px;*/
height: 400px;
flex-shrink: 0;
}
.unique-movie-card-inner {
position: relative;
width: 100%;
height: 100%;
transition: transform 0.6s;
transform-style: preserve-3d;
border-radius: 8px;
}
.unique-movie-flip-card.flip .unique-movie-card-inner {
transform: rotateY(180deg);
}
.unique-movie-front,
.unique-movie-back {
position: absolute;
width: 100%;
height: 100%;
backface-visibility: hidden;
border: 1px solid #ddd;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column;
justify-content: center;
text-align: left;
}
.unique-movie-front {
background-color: #fff;
}
.unique-movie-front img {
width: 100%;
height: 100%;
object-fit: cover;
}
.unique-movie-back {
background-color: #F8F8F8;
color: #000000;
transform: rotateY(180deg);
padding-left: 10px;
overflow-y: auto;
}
.unique-movie-back h3 {
margin: 10px 0;
font-size: 2.2vh;
color: #E70A0A;
text-align: center;
}
.unique-movie-back p {
margin: 5px 0;
color: #666;
font-size: 1.8vh;
}
/*
@media (min-width: 768px) {
.unique-movie-flip-card {
min-width: 320px;
max-width: 400px;
height: 450px;
}
.unique-movie-back p {
font-size: 2vh;
}
.unique-movie-back h3 {
font-size: 2.5vh;
}
}
@media (min-width: 1024px) {
.unique-movie-flip-card {
min-width: 350px;
max-width: 450px;
height: 500px;
}
.unique-movie-front img {
height: 60%;
}
}