* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: "Georgia", serif;
  background-color: #ffffff;
  color: #222;
  line-height: 1.7;
  font-size: 18px;
}

.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 20px;
}

.header {
  text-align: center;
  margin-bottom: 40px;
}

.header-image {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  margin-top: 15px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.title {
  font-size: 14px;
  margin-bottom: 10px;
  font-weight: bold;
}

.meta {
  font-size: 0.7em;
  color: #666;
}

.poem p {
  margin-bottom: 4px;
  text-align: justify;
}

.poem p::first-letter {
  font-size: 1.2em;
}

.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 60px;
  padding-bottom: 30px;
  flex-wrap: wrap;
}

.btn {
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  font-size: 12px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}
.btn:hover {
  background-color: #0056b3;
}

.dark-toggle {
  margin: 20px auto;
  text-align: center;
}

.dark-toggle input {
  display: none;
}

.dark-toggle label {
  width: 84px;
  height: 50px;
  background: #f3f3f3;
  border-radius: 999px;
  position: relative;
  display: inline-block;
  cursor: pointer;
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.1);
}
.dark-toggle input:checked + label {
  background: #444;
}

.dark-toggle .circle {
  width: 42px;
  height: 46px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.4s;
  overflow: hidden;
}

.dark-toggle svg {
  width: 35px;
  height: 38px;
  position: absolute;
  transition: 0.4s;
}

.sun {
  color: #ffd600;
  opacity: 1;
}

.moon {
  color: #555;
  transform: translateY(-100%);
  opacity: 0;
}

.dark-toggle input:checked + label .circle {
  transform: translateX(36px);
  background: #2c2c2f;
}

.dark-toggle input:checked + label .circle .sun {
  transform: translateY(100%);
  opacity: 0;
}

.dark-toggle input:checked + label .circle .moon {
  transform: translateY(0);
  opacity: 1;
}

body.dark-mode {
  background: #1a1a1a;
  color: white;
}

body.dark-mode .card {
  background: #2c2c2f;
  color: white;
}

.footer {
  border-top: 1px solid #eee;
  margin-top: 50px;
  padding-top: 20px;
  font-size: 0.7em;
  color: #555;
}

.footer .copyright {
  text-align: center;
  font-size: 0.85em;
  color: #888;
}

.blog-quote {
  background: #f9f9f9;
  border-left: 4px solid #4f46e5;
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #4b5563;
}

/* RUNNING TEXT PROMO */
.global-running-text {
  width: 100%;
  overflow: hidden;
  background: rgba(237, 16, 16, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 0;

  margin-top: 20px;
  margin-bottom: 10px;
}

.running-track {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: runningText 19s linear infinite;
  font-size: 14px;
  font-family: Arial, sans-serif;
  color: #ffffff;
}

.running-track a {
  color: #00f7ff;
  font-weight: bold;
  text-decoration: none;
}

.running-track a:hover {
  text-decoration: underline;
}

@keyframes runningText {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}
