body {
  background-color: #1e1e1e;
  color: #f0f0f0;
  margin: 0;
  padding: 20px;
}
.trivia-container {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}
.trivia-item {
  background: #2a2a2a;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  transition: opacity 6s ease-in-out;
}
.trivia-item.hidden {
  display: none;
}
.trivia-item.fading-in {
  opacity: 0;
}
.question {
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 10px;
  color: #f0f0f0;
}
.answer {
  display: none;
  color: #ccc;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #555;
}
.answer strong {
  color: #ffe680;
}
.reveal-btn {
  background-color: #ffe680;
  color: #1a1a1a;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9em;
  font-weight: 500;
  margin-top: 10px;
}
.reveal-btn:active {
  background-color: #e6cf73;
}
.post-image {
  margin-top: 25px;
  text-align: center;
  transition: opacity 6s ease-in-out;
}
.post-image.hidden {
  display: none;
}
.post-image.fading-in {
  opacity: 0;
}
.post-image img {
  max-width: 100%;
  border-radius: 8px;
}
.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-top: 25px;
  transition: opacity 6s ease-in-out;
}
.post-footer.hidden {
  display: none;
}
.post-footer.fading-in {
  opacity: 0;
}
.source-link {
  display: inline-block;
  background-color: #3a3a3a;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 1em;
  color: #ccc;
  text-decoration: none;
  transition: background-color 0.2s;
}
.source-link:hover {
  background-color: #4a4a4a;
}
.source-link span {
  color: #888;
}
.next-post a {
  display: inline-block;
  background-color: #ffe680;
  color: #1a1a1a;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 500;
  transition: background-color 0.2s;
}
.next-post a:hover {
  background-color: #e6cf73;
}
@media (max-width: 500px) {
  .post-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .source-link, .next-post a {
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }
}
.teaser {
  font-style: italic;
  color: #ccc;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #444;
}

/* Android app: bigger type, edge-to-edge image. */
html.app body {
  padding: 14px 14px 24px;
}
html.app .trivia-container {
  font-size: 1.2em;
}
html.app .reveal-btn {
  font-size: 1em;
  padding: 12px 20px;
}
html.app .post-image {
  margin-left: -14px;
  margin-right: -14px;
}
html.app .post-image img {
  display: block;
  width: 100%;
  max-height: 100vh;
  object-fit: contain;
  border-radius: 0;
}
