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

.container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 20px);
  width: calc(100vw - 20px);
  margin: 10px;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
}

.title {
  width: 100%;
  background-color: #fff;
  padding: 20px;
  text-align: center;
  box-sizing: border-box;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
}

.story-container {
  flex: 2 1 0;
  max-width: 100%;
  overflow-y: auto;
  padding: 5px;
  border: 5px solid #000;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 5px;
  box-sizing: border-box;
}

.image-scroller-container {
  flex: 1 1 0;
  max-width: 100%;
  overflow: hidden;
  padding: 5px;
  border: 5px solid #000;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 5px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  margin-top: 10px;
}

.image-scroller {
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.image-scroller-content {
  display: flex;
  flex-wrap: nowrap;
}

.image-scroller img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  margin-right: 10px;
}

.centered-link {
  display: flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
  width: 100%;
  margin-top: 10px;
  font-size: 16px;
}

/* Dynamic media queries */
@media (max-height: 600px) {
  .story-container {
    flex: 4 1 0;
  }
  .image-scroller-container {
    flex: 2 1 0;
  }
}