* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  font-family: "Grape Nuts", Georgia, "Times New Roman", serif;
}

.book {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  height: 100vh;
}

.page {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page--image {
  background: #fff;
}

.page--image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.page--text {
  padding: 6vmin;
  background: #fff;
}

.text {
  margin: 0;
  text-align: center;
  font-size: 30px;
  line-height: 1.6;
  color: #1a1a1a;
  white-space: pre-line;
}

@media (max-width: 720px) {
  .book {
    flex-direction: column;
  }
  .page {
    flex: 1 1 50%;
    min-height: 50vh;
  }
}
