-
Notifications
You must be signed in to change notification settings - Fork 0
/
movieAPI.css
273 lines (238 loc) · 5.2 KB
/
movieAPI.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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
@import url('https://fonts.googleapis.com/css2?family=Open+Sans&family=Poppins:wght@300;500&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Open Sans', sans-serif;
scrollbar-width: none;
}
::-webkit-scrollbar{
display: none;
}
body{
background: #f1faee;
width: 100vw;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
overflow-x: hidden;
}
header.toTop{
padding: 20px;
position: fixed;
top: 0;
left: 0;
background: #1d3557;
color: #fff;
height: 80px;
flex-direction: row;
justify-content: space-between;
}
header.toTop h1{
margin-bottom: 0px;
}
header{
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
color: #457b9d;
height: 100vh;
transition: all 0.5s ease;
}
h1{
font-size: 1.8rem;
margin-bottom: 50px;
font-family: 'Open sans', sans-serif;
letter-spacing: 0.5px;
}
.filterBox{
display: flex;
justify-content: center;
align-items: center;
position: fixed;
top: 78px;
width: 100vw;
height: 40px;
/* background: #000; */
display: none;
}
.filterBox ul{
display: flex;
width: 100%;
list-style: none;
/* justify-content: center; */
align-items: center;
border: 1px solid #ccc;
background: #f0efeb;
}
.list{
padding: 8px 30px;
border: 1px solid #ccc;
cursor: pointer;
transition: background-color 0.3s ease;
}
.list.active{
background: #03a9f4;
color: #fff;
}
.list.active:hover{
background: #0077b6;
}
.list:hover{
background: #e5e5e5;
}
#queryBox{
outline: none;
border: none;
padding: 8px 20px;
border-radius: 10px;
user-select: none;
box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5),
0 2px 2px rgba(0, 0, 0, 0.5),
0 -1px 1px rgba(0, 0, 0, 0.5);
}
#input-box button{
padding: 8px 20px;
border-radius: 10px;
border: none;
outline: none;
margin-left: 5px;
background: #d62828;
color: #fff;
transition: background-color 0.3s ease;
cursor: pointer;
box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5),
0 2px 2px rgba(0, 0, 0, 0.5),
0 -1px 1px rgba(0, 0, 0, 0.5);
}
#input-box button:hover{
background: #e63946;
}
header.toTop ~ #main-content{
display: flex;
flex-wrap: wrap;
width: 100%;
max-width: 80vw;
justify-content: center;
align-items: center;
padding: 50px 10px;
margin-top: 110px;
padding-top: 20px;
}
.card{
width: 350px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
min-height: 500px;
background: #0077b6;
padding: 15px;
text-align: center;
color: white;
margin: 10px 20px;
border-radius: 20px;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.2),
1px 1px 5px rgba(0, 0, 0, 0.2),
3px 3px 5px rgba(0, 0, 0, 0.2),
5px 5px 5px rgba(0, 0, 0, 0.2),
8px 8px 5px rgba(0, 0, 0, 0.2);
}
@media (max-width: 500px){
header.toTop ~ #main-content{
padding-left: 0;
padding-right: 0;
max-width: 100vw;
}
.card{
padding-left: 0;
padding-right: 0;
margin-left: 5px;
margin-right: 5px;
}
}
@media (max-width: 340px){
h1{
font-size: 1.2rem;
}
header.toTop{
padding: 5px;
}
#input-box{
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
#input-box button{
margin-top: 5px;
}
}
@media (max-width: 700px){
header.toTop{
flex-direction: column;
height: 125px;
}
header.toTop h1{
margin-bottom: 10px;
}
.filterBox{
top: 125px;
}
header.toTop ~ #main-content{
margin-top: 150px;
}
}
.title{
margin-bottom: 10px;
font-size: 1.25rem;
font-family: 'Poppins', sans-serif;
}
.type{
margin-bottom: 10px;
font-size: 0.8rem;
font-family: 'Poppins', sans-serif;
font-weight: 500;
}
.poster{
width: 70%;
min-height: 350px;
display: flex;
justify-content: center;
align-items: center;
}
.poster img{
width: 100%;
border-radius: 5px;
}
.watch{
text-decoration: none;
color: #fff;
background: #d62828;
padding: 8px 25px;
margin-top: 5px;
border-radius: 20px;
font-size: 0.9rem;
transition: background-color ease 0.3s;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.2),
1px 1px 5px rgba(0, 0, 0, 0.2),
3px 3px 5px rgba(0, 0, 0, 0.2);
}
.watch:hover{
background: #e63946;
}
footer{
position: fixed;
background: #000;
width: 100vw;
color: #fff;
text-align: center;
bottom: 0;
font-family: 'Open Sans', sans-serif;
font-weight: 200;
height: 30px;
}