-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
180 lines (158 loc) · 4.21 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
html, body {
margin: 0;
padding: 0;
height: 100%; /* Ensure full height for HTML and body */
/* background-color: rgb(170, 170, 170); */
}
body {
font-family: Arial, sans-serif;
background-color: #716f6f;
display: flex;
justify-content: center;
align-items: flex-start; /* Align items to the top */
height: 100vh; /* Full viewport height */
overflow: hidden; /* Prevent body overflow */
}
.container {
display: flex;
width: 100%;
height: 100%; /* Ensure container fills the viewport height */
max-width: 1800px; /* Optional: Limit the maximum width */
box-sizing: border-box; /* Include padding in total width */
/* background-color: blue; */
margin-top: 20px;
margin-bottom: 20px;
}
.poster-container {
flex: 1; /* Allow this container to grow and fill available space */
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Responsive grid layout */
gap: 20px; /* Space between posters */
padding: 20px;
overflow-y: auto; /* Allow scrolling if necessary */
box-sizing: border-box; /* Include padding in total width */
}
.poster {
width: 100%; /* Ensure poster takes full width of grid cell */
height: 350px;
perspective: 1000px;
border: 10px inset transparent;
border-radius: 20px;
transition: border-color 0.3s ease;
margin-bottom: 20px; /* Add margin to separate from the next poster */
margin-top: 20px;
}
.poster:hover {
border-color: rgb(73, 172, 248);
}
.poster-inner {
position: relative;
width: 100%;
height: 100%;
transition: transform 0.6s;
transform-style: preserve-3d;
cursor: pointer;
}
.poster-inner.is-flipped {
transform: rotateY(180deg);
}
.poster-front, .poster-back {
position: absolute;
width: 100%;
height: 100%;
backface-visibility: hidden;
border-radius: 10px;
overflow: hidden;
box-sizing: border-box; /* Ensure padding and borders are included in the size */
}
.poster-front {
background-size: cover;
background-position: center;
}
.poster-back {
background-color: #fff;
color: #333;
transform: rotateY(180deg);
padding: 10px; /* Use padding to control the internal spacing */
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column;
text-align: center;
align-items: center;
}
.poster-back img {
margin: 5px 20px 0px 20px;
width: 50%;
height: 50%;
border-radius: 10px;
}
.poster-back h3 {
font-size: 20px;
}
.poster-back p {
font-size: 12px;
margin: 0px;
padding: 0px 10px 5px 10px;
}
.select-button {
width: 100%;
padding: 10px;
margin-top: 20px;
background-color: #3498db;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
transition: background-color 0.3s ease;
margin-bottom: 20px;
}
.select-button:hover {
background-color: #2980b9;
}
.selected-movies-container {
width: 300px;
background-color: #f8f8f8;
padding: 20px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
border-radius: 10px;
display: flex;
flex-direction: column; /* Ensure content is displayed vertically */
position: sticky; /* Stick to the top of the viewport */
top: 20px; /* Distance from the top of the viewport */
z-index: 1000; /* Ensure it stays above other content */
max-height: calc(100vh - 40px); /* Limit maximum height to avoid overflow */
overflow-y: auto; /* Allow scrolling if the list is too long */
margin-top: 50px;
margin-bottom: 50px;
margin-left: 20px;
}
.selected-movies-container h2 {
text-align: center;
font-size: 23px;
margin-bottom: 20px;
}
#selected-movies-list {
list-style-type: none;
padding: 0;
margin: 0;
overflow-y: auto; /* Allow scrolling if content overflows */
flex-grow: 1; /* Ensures the list takes up available vertical space */
}
#selected-movies-list li {
margin-bottom: 10px;
padding: 10px;
border: 2px solid #558bf7;
border-radius: 5px;
display: flex;
align-items: center;
}
#selected-movies-list li img {
width: 25%;
height: 25%;
margin-right: 10px;
}
#selected-movies-list li p {
margin: 0;
font-size: 15px;
}