Struggling to center the 'MAIN' content vertically in the middle of the page despite trying various methods.
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="e4868b8b909790968594a4d0cad1cad7">[email protected]</a>/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<style>
body {
height: 100vh;
background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(img link) background-size: cover;
background-position: center;
}
.brandFont {
font-family: 'Staatliches', cursive;
font-size: 2rem;
}
</style>
<body class='text-center text-white'>
<div class='w-100'>
<nav class='navbar navbar-dark bg-dark'>
<span class="brandFont navbar-brand mb-0 h1">TEXT HERE</span>
</nav>
<main class='container'>
<h1>
TEXT HERE
</h1>
<h2>
LONGER TEXT HERE
</h2>
</main>
</div>
</body>
Even tried using flexbox but the text just won't budge.