.page-center {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
}

#stories-top-links {
  display: flex;
  align-items: flex-start; /* align to top */
  justify-content: center;
  gap: 20px;
}

#stories-main-links {
  padding-bottom: 10px;
}

.story-card-main {
  background-color: white;
  width: 600px;
  height: 400px;
}

.story-card {
  background-color: white;
  width: 300px;
  height: 190px;
}

.story-card-main,
.story-card {
  margin-top: 0;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.9);

  padding: 0px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.story-card-title {
  margin: 0;
  margin-top: 5px;
  color: darkblue;
}

.top-story-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 400px;
  gap: 0px;
}

.story-excerpt {
  background-color: white;
  background-image: var(--bg-img);
  background-size: 100% 100%;
  margin-top: 8px;
  height: 100%;
  overflow-y: auto;
  border-radius: 10px;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.story-excerpt-text {
  margin: 10px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  padding: 10px;
}

.lower-story-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;

  gap: 0px;
  width: 85%;
  margin: 100px auto 0;
}

.lower-story-list > * {
  flex: 0 0 calc(25% - 20px);
  margin-right: 20px;
  margin-bottom: 20px;
}

.lower-story-list > *:nth-child(4n) {
  margin-right: 0;
}

.story-card-lower {
  margin-top: 0;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.9);

  padding: 0px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  cursor: pointer;

  background-color: white;
  width: 250px;
  height: auto;
  max-height: 350px;
}

.story-card-lower-title {
  margin: 0;
  margin-top: 5px;
  padding: 10px;
  text-align: left;
  color: darkblue;
}

.story-excerpt-lower {
  background-color: white;
  margin-top: 8px;
  height: 100%;
  overflow-y: auto;
  flex-grow: 1;

  text-align: justify;
  padding: 10px;
}

.img-lower {
  width: 100%;
}

.story-excerpt-text-lower {
  margin: 0;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  padding: 0;
}
