-
Notifications
You must be signed in to change notification settings - Fork 11
/
age-as-a-lesn.css
144 lines (126 loc) · 2.38 KB
/
age-as-a-lesn.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
/* Video section base styling */
.video-section {
position: relative;
width: 100%;
height: 100vh;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
background-color: black;
}
/* Video element styling - improved scaling */
#bg-video {
position: absolute;
width: 100%;
height: 100%;
object-fit: contain; /* Changed from cover to contain */
object-position: center;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: auto;
background: #000;
}
/* Overlay content styling */
.overlay-content {
position: relative;
color: white;
text-align: center;
z-index: 1;
padding: 20px;
width: 80%;
max-width: 800px;
}
/* Play Game Button styling */
.play-game-button {
margin-top: 20px;
padding: 12px 24px;
font-size: 18px;
background-color: #f44336;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
transition: all 0.3s ease;
-webkit-tap-highlight-color: transparent;
}
.play-game-button:hover {
background-color: purple;
transform: scale(1.05);
}
/* Aspect ratio handling */
@media (orientation: landscape) {
#bg-video {
width: 100%;
height: auto;
max-height: 100%;
}
}
@media (orientation: portrait) {
#bg-video {
width: auto;
height: 100vh;
max-width: 100%;
}
}
/* Large tablets and small laptops */
@media (max-width: 1024px) {
.video-section {
height: 90vh;
}
.overlay-content {
width: 85%;
}
}
/* Tablets */
@media (max-width: 768px) {
.video-section {
height: 100vh;
}
.overlay-content {
width: 90%;
padding: 15px;
}
.play-game-button {
font-size: 16px;
padding: 10px 20px;
}
}
/* Large phones */
@media (max-width: 576px) {
.video-section {
height: 90vh;
}
.overlay-content {
width: 95%;
padding: 10px;
}
.play-game-button {
font-size: 15px;
padding: 8px 18px;
margin-top: 15px;
}
}
/* Small phones */
@media (max-width: 375px) {
.video-section {
height: 80vh;
}
.overlay-content {
width: 100%;
padding: 8px;
}
.play-game-button {
font-size: 14px;
padding: 8px 16px;
margin-top: 12px;
}
}
/* Handle tall phones */
@media (max-height: 700px) and (orientation: portrait) {
.video-section {
height: 50vh;
}
}