My goal is to create two sections that fill the entire viewport height in the browser. The code below is functioning properly on the desktop version. However, on mobile devices, the content of section two (consisting of 3 bootstrap columns with text) is overlapping with section one. How can I modify my code to prevent this overlap?
body {
color: #FFF;
}
#slide1 {
background-color: grey;
width: 100vw;
height: 100vh;
}
#slide2 {
background-color: blue;
width: 100vw;
height: 100vh;
}
<html lang="es-ES">
<head>
<title></title>
<meta charset="utf-8">
<meta name="viewport" content="width-device-width,initial-scale=1.0">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
</head>
<body>
<section id="slide1"></section>
<section id="slide2">
<div class=" d-flex align-items-center h-100 align-content-center">
<div class="container ">
<div class="row ">
<div class="col-md-4">
<div class="box p-4">
<p>"Lorem ipsum dolor sit amet, consectetur adipiscing elit."</p>
</div>
</div>
<div class="col-md-4">
<div class="box p-4">
<p>"Integer tempus eros ac dui lacinia, ut vehicula dolor eleifend."</p>
</div>
</div>
<div class="col-md-4">
<div class="box p-4">
<p>"Vestibulum nec ligula nec ligula venenatis lobortis id non erat."</p>
</div>
</div>
</div>
</div>
</div>
</section>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
</body>
</html>
To see the issue in action, visit: