.hero-section {
position: relative;
width: 100%;
height: 100vh;
overflow: hidden;
color: white;
display: flex;
flex-direction: column;
justify-content: flex-end;
}
#myVideo {
position: absolute;
top: 50%;
left: 50%;
min-width: 100%;
min-height: 100%;
width: auto;
height: auto;
z-index: -1;
transform: translate(-50%, -50%);
object-fit: cover; }
.overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.4); z-index: 0;
}
.hero-content {
position: relative;
z-index: 1;
text-align: center;
display: flex;
flex-direction: column;
align-items: flex-start;
padding-left: 10rem;
padding-bottom: 1rem;
}
.banner-video-heading {
font-size: 5rem;
line-height: 5rem;
} #btnControl {
align-self: end;
z-index: 10; margin-right: 20px;
margin-bottom: 20px;
padding: 10px 25px;
font-size: 16px;
background: transparent;
color: white;
border: 2px solid white;
border-radius: 30px;
cursor: pointer;
transition: 0.3s;
}
#btnControl:hover {
background: white;
color: black;
}
@media screen and (max-width: 480px) {
.hero-section {
position: relative;
width: 100%;
height: 85vh;
}
.hero-content {
padding-left: 1rem;
padding-bottom: 1rem;
gap: 1rem;
}
.banner-video-heading {
font-size: 2rem;
line-height: 2rem;
}
#btnControl {
align-self: flex-start;
margin-bottom: 0;
}
}