I want to style the button element named "btn2" which is second button in my website. I tried to align the button to center by margin left:85vh, but it is not positioning exact middle of the page. I also want to adjust the top padding of the same button. There is more gap between my btn2 and h2 element (Train your app with Lobe). I want to align the padding between h2 and btn2. Kindly fix these two issues
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
.header {
width: 100%;
}
.header .container {
display: flex;
justify-content: space-between;
margin: 30px;
}
.container a {
text-decoration: none;
margin-right: 100px;
margin-left: 60px;
letter-spacing: 3px;
font-size: 15px;
}
.container .main-btn {
background-color: #04ddb2;
width: 80px;
height: 40px;
margin-right: 16px;
border-radius: 8px;
border: none;
}
.main .mainbody {
font-size: 35px;
color: #333;
text-align: center;
padding: 70px;
}
.main .mainbody span {
color: #04ddb2;
}
.main .mainbody p {
font-size: 25px;
text-align: center;
}
.main .video {
margin-left: 62vh;
}
.main .body2 h2 {
font-size: 30px;
color: #333;
text-align: center;
padding: 50px;
}
.body2 .btn2 {
margin-left: 85vh;
}
.body2 .btn2 {
background-color: #04ddb2;
width: 200px;
height: 70px;
border-radius: 5px;
border: none;
font-size: 20px;
color: #ffff;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<div class="container">
<nav>
<img src="./img/logo.png">
<a href="#">Overview</a>
<a href="#">Examples</a>
<a href="#">Tour</a>
<a href="#">Blog</a>
<a href="#">Help</a>
<button class="main-btn">Download</button>
</nav>
</div>
</header>
<section class="main">
<div class="mainbody">
<h1>Lobe <span>Tour</span></h1>
<p>Build your first machine learning model in ten<br> minutes. No code or experience required.</p>
</div>
<div class="video">
<iframe width="560" height="315" src="https://www.youtube.com/embed/ly36kn0ug4k" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
<div class="body2">
<h2>Train your app
<br>with Lobe</h2>
<button class="btn2">Download</button>
</div>
</section>
</body>
</html>