html,
body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  background-color: #121212;
  color: #e0e0e0;
  font-family: "Shippori Mincho", serif;
  font-weight: 400;
  font-style: normal;
}

header,
footer {
  flex-shrink: 0;
  text-align: center;
  padding: 0.5rem 1rem;
  color: #b0b0b0;
}

::selection {
  background-color: #4a90e2;
  color: #ffffff;
}

::-moz-selection {
  background-color: #4a90e2;
  color: #ffffff;
}

main {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.vertical-center {
  min-height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
}

h1.headline {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

p.subheadline {
  font-size: 1rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #b0b0b0;
}


.story-content {
  margin: auto;
  max-width: 700px;
  padding: 1.5rem;
  background-color: #1e1e1e;
  border-radius: 0.75rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.story-text {
  font-size: 1rem;
  margin-bottom: 1rem;
  text-align: justify;
  color: #e0e0e0;
}

.error-message {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #e0e0e0;
}

ul.choice-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

ul.choice-list li {
  display: block;
  text-align: center;
}

.link-button {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 0.5rem;
  color: #ffffff;
  background-color: #4a90e2;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.link-button:hover {
  background-color: #357abd;
  transform: scale(1.05);
}

footer {
  text-align: center;
  font-size: 0.8rem;
  color: #b0b0b0;
  flex-shrink: 0;
  margin-top: auto;
}

.ending {
  margin: 0.5rem 0;
  padding: 0.5rem;
  background-color: #4a90e2;
  color: white;
  font-size: 1.2rem;
  text-align: center;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.link-title {
  text-decoration: none;
  color: #ffffff;
}

.link-title:hover {
  color: #b0b0b0;
}

.link-footer {
  text-decoration: none;
  color: #b0b0b0;
}

.link-footer:hover {
  color: #909090;
}

p.copyright {
  font-size: 1rem;
  text-align: center;
  color: #b0b0b0;
}

@media (max-width: 768px) {
  .story-content {
    max-width: 90%;
    padding: 1rem;
  }

  ul.choice-list a {
    font-size: 0.8rem;
    padding: 0.5rem 0.8rem;
  }
}