I am looking to center a div within another div. To be more specific, I am having problems center the input field and button to center of the screen. Also, I would like to have them on top of each other in the center. Such as, the input field will be on top and the button will be at the bottom.
/* Write your CSS code in this file */
body {
  width: 100%;
  background-color: red;
}
.header-1 {
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  color: aliceblue;
  text-align: center;
}
h2 {
  text-align: center;
  margin-top: 5%;
}
#submit {
  width: 70px;
  height: 20px;
}
.container-master {
  margin: 5%;
  display: flex;
}
.container-child {
  justify-content: center;
}
li {
  display: inline;
}<h1 class="header-1">Johnny's Guessing Game</h1>
<h2>Previous Guesses</h2>
<div class="container-1">
  <ul id="guessList">
    <ll id="listItem"> </ll>
  </ul>
</div>
<div class="container-master">
  <div class="containter-child">
    <input type='text' id="guessBox" placeholder="Enter Guess Here">
    <button id="submit">Submit</button>
  </div>
</div>
<h4 id="error"></h4> 
     
    