-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyles.css
86 lines (72 loc) · 1.23 KB
/
styles.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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: #000;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
color: #fff;
}
main {
display: flex;
flex-direction: column;
gap: 1rem;
padding: 1rem;
max-width: 70%;
width: 650px;
min-width: 400px;
}
img {
height: 300px;
width: 100%;
}
button {
font-size: 1rem;
padding: 1rem;
width: 30%;
cursor: pointer;
border: none;
border-radius: 10px;
}
button:hover {
background-color: blanchedalmond;
}
.trailer-container {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: #000;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
opacity: 1;
transition: opacity 0.7s;
}
.active.trailer-container {
visibility: hidden;
opacity: 0;
}
.trailer-container video {
position: relative;
max-width: 900px;
outline: none;
}
@media (max-width: 991px) {
.trailer-container video {
max-width: 90%;
}
}
.close-icon {
position: absolute;
top: 30px;
right: 30px;
color: white;
cursor: pointer;
}