* {
  box-sizing: border-box;
  }
  body {
  margin: 0;
  font-family:Arial, Helvetica, sans-serif;
  font-size: 3vmin;
  }
  .wrap {
  max-width: 100vh;
  margin: 0 auto;
  }
  .box {
  display: grid;
  height: 100vh;
  grid-template-columns: 1fr 1fr 1fr;
  }
  .box > * {
  background: #E4D6A7;
  padding: 20px;
  box-shadow: inset 0 0 0 1px #fff;
  }
  .box-item:nth-child(1), .box-item:nth-child(3), .box-item:nth-child(7), .box-item:nth-child(9) {
  background: #E9B44C;
  }
  .box-item:nth-child(2),.box-item:nth-child(8) {
  text-align:center;
  }
  .box-item:nth-child(5) {
  width: 100%;
  height: 100%;
  display: table;
  text-align: center;
  }
  .box-item:nth-child(5) > div {
  display: table-cell;
  vertical-align: middle;
  }

  .btn {
  color: #fff;
  background-color: #0074d9;
  border-radius: 3px;
  padding:8px;
  }

  /* ----------- iPhone X ----------- */

/* Portrait and Landscape */
@media only screen 
and (max-device-width: 812px) 
and (-webkit-min-device-pixel-ratio: 3) { 
    .box {
        height: 90vh;
    }
}

  /*
  .box-item:nth-child(3), .box-item:nth-child(9) {
  text-align: right;
  }
  .box-item:nth-child(4), .box-item:nth-child(6) {
  display: table;
  height: 100%;
  overflow: hidden;
  }
  
  .box-item:nth-child(4) div, .box-item:nth-child(6) div {
  display: table-cell;
  vertical-align: middle;
  }
  .box-item:nth-child(6) div {
  text-align:right;
  }
  .box-item:nth-child(8) div {
  position: absolute;
  width: 100%;
  bottom: 0;
  text-align: center;
  }
  .box-item:nth-child(7), .box-item:nth-child(8), .box-item:nth-child(9) {
  position: relative;
  }
  .box-item:nth-child(7) div {
  position: absolute;
  bottom: 5%;
  left: 5%;
  }
  .box-item:nth-child(9) div {
  position: absolute;
  bottom: 5%;
  right: 5%;
  }
  .box-item:nth-child(8) div {
  position: absolute;
  bottom: 5%;
  left: 50%;
  margin-left: -50%;
  }*/