-
Notifications
You must be signed in to change notification settings - Fork 0
/
moviePage.css
212 lines (207 loc) · 4.11 KB
/
moviePage.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
/* css for the body */
body{
margin: 0px;
padding: 0px;
background-blend-mode: multiply;
background-size: cover;
color: rgb(255, 255, 255);
}
/* css for the main div */
#main{
display: flex;
align-items: center;
justify-content: center;
}
/* display movie details */
#movie-display{
display: flex;
align-items: center;
width: 80vw;
height: 100vh;
}
.each-movie-page{
height: inherit;
width: inherit;
display: flex;
align-items: center;
}
.movie-poster{
margin: 0px 20px;
height: 90%;
}
/* movie image */
.movie-poster img{
height: 90%;
width: auto;
border-radius: 20px;
box-shadow: 10px 18px 18px 10px rgba(0,0,0,0.2);
transition: 0.3s;
}
.movie-poster img:hover{
box-shadow: 0 28px 9px 0 rgba(0,0,0,0.2);
}
.movie-duration i{
color: lightblue;
}
.movie-details > *{
margin: 20px 50px;
font-size: 1.7rem;
}
/* movie name */
.title{
color: rgb(233, 112, 40);
margin: 20px 0px;
font-size: 4rem;
font-weight: bolder;
}
.release_date, .movie-duration{
padding-right: 30px;
}
/* youtube video div */
.trailer-div{
transition: all .2s ease;
}
.trailer-div i{
color: red;
}
#trailer-video-div{
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: none;
padding: 10px;
text-align: end;
border-radius: 20px;
background-color: rgb(233, 119, 119);
}
#trailer-video-div button{
cursor: pointer;
font-size: 2rem;
color: red;
}
/* back button */
#return-to-home{
top: 30px;
left: 30px;
margin-top: 30px;
margin-left: 30px;
cursor: pointer;
font-size: 1.7rem;
color: black;
font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}
#return-to-home:hover{
font-size: 2rem;
}
/* details of the movie */
.plot{
color: white;
}
/* responsiveness and media queries */
@media screen and (max-width: 1620px) {
#movie-display{
width: 90vw;
}
}
/* when the screen size is 1200 and less */
@media screen and (max-width: 1200px) {
#movie-display{
width: 95vw;
}
}
/* when the screen size is 1000 and less */
@media screen and (max-width: 1000px) {
.movie-poster{
height: 85%;
}
}
/* when the screen size is 900 and less */
@media screen and (max-width: 900px) {
#movie-display{
margin: auto;
}
.each-movie-page{
display: flex;
flex-direction: column;
}
.movie-details{
display: flex;
flex-direction: column;
align-items: center;
}
.plot{
text-align: justify;
}
.movie-poster{
height: 80%;
}
.title{
text-align: center;
}
}
/* when the screen size is 600 and less */
@media screen and (max-width: 600px) {
.movie-details > *{
font-size: 1.2rem;
margin: 15px 10px;
}
.title{
font-size: 3rem;
}
.movie-poster{
height: 65%;
}
#return-to-home{
top: 10px;
right: 10px;
}
.each-movie-page{
padding-top: 100px;
}
iframe{
width: 451.5px;
height: 254px;
}
}
/* when the screen size is 530 and less */
@media screen and (max-width: 530px) {
.movie-details > *{
font-size: 1.2rem;
margin: 12px 10px;
}
.title{
font-size: 3rem;
}
.movie-poster{
height: 60%;
}
iframe{
width: 400px;
height: 225px;
}
}
/* when the screen size is 470 and less */
@media screen and (max-width: 470px) {
.movie-details > *{
font-size: 1.2rem;
margin: 10px 10px;
}
.title{
font-size: 2rem;
}
.movie-poster{
height: 50%;
}
iframe{
width: 355.5px;
height: 200px;
}
}
/* when the screen size is 400 and less */
@media screen and (max-width: 400px) {
iframe{
width: 300px;
height: 168.75x;
}
}