body {
  margin: 0;
  font-family: 'Source Serif Pro', serif;
  background-color: #121212;
  color: #f5f5f5;
  transition: background-color 0.4s, color 0.4s;
}

.light-mode {
  background-color: #ffffff;
  color: #222222;
}

header {
  text-align: center;
  padding: 80px 20px;
  background: #1e1e1e;
}

header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8em;
  margin: 0;
}

header p {
  font-size: 1.2em;
  color: #ccc;
}

.toggle-button {
  margin-top: 20px;
  padding: 10px 15px;
  background-color: #cc2b2b;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

.toggle-button:hover {
  background-color: #a51f1f;
}

nav {
  background-color: #1a1a1a;
  text-align: center;
  padding: 10px 0;
}

nav a {
  color: #f5f5f5;
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  color: #cc2b2b;
}

.content {
  width: 80%;
  margin: 40px auto;
  padding: 0 40px;
}

.stories
{
  width: 80%;
  margin: 40px auto;
  padding: 0 40px;
}

.intro {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 40px;
}

.story-preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: #1a1a1a;
  padding: 15px;
  margin: 25px;
  border-left: 4px solid #b58e42;
  font-size: 0.95em;
}

.story-preview img.book-cover {
  width: 90px;
  height: auto;
  border: 2px solid #444;
  flex-shrink: 0;
  order: 2;
}

.story-preview h3 {
  font-family: 'Playfair Display', serif;
  margin-top: 10px;
  margin-bottom: 8px;
  font-size: 1.1em;
  color: #cc2b2b;
}

.story-preview p {
  margin-bottom: 10px;
}

.story-preview .button {
  background: #cc2b2b;
  color: #fff;
  padding: 8px 12px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  display: inline-block;
  margin-top: 5px;
}

.story-preview .button:hover {
  background: #a51f1f;
}

.light-mode .story-preview,
.light-mode .featured-story,
.light-mode .about {
  background: #f3f3f3;
  border-left-color: #d2a64a;
}

.featured-story {
  display: flex;
  flex-direction: row-reverse;
  gap: 20px;
  align-items: center;
  background: #1a1a1a;
  padding: 25px;
  margin-top: 30px;
  border-left: 6px solid #cc2b2b;
  box-shadow: 0 0 20px rgba(204, 43, 43, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-story:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(204, 43, 43, 0.6);
}

.book-cover {
  width: 120px;
  border: 2px solid #444;
  flex-shrink: 0;
}

.story-text {
  flex-grow: 1;
}

.story-text h3 {
  font-family: 'Playfair Display', serif;
  margin-top: 0;
  color: #cc2b2b;
}

.story-text p {
  margin: 0 0 15px;
}

.button {
  background: #cc2b2b;
  color: #fff;
  padding: 10px 16px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

.button:hover {
  background: #a51f1f;
}

.about {
  display: flex;
  align-items: center;
  gap: 20px;
}

.about img {
  width: 150px;
  border-radius: 8px;
  border: 2px solid #444;
}


#contact {
  margin-top: 60px;
}

#contact h3 {
  margin-bottom: 15px;
  color: #b58e42;
}

#contact form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  
  background: #1a1a1a;
  padding: 20px;
  border-left: 4px solid #b58e42;
  border-radius: 8px;
}

#contact input,
#contact textarea {
  padding: 10px;
  border-radius: 5px;
  border: none;
  background: #2a2a2a;
  color: #f5f5f5;
}

#contact input::placeholder,
#contact textarea::placeholder {
  color: #aaa;
}


footer {
  text-align: center;
  padding: 40px 20px;
  font-size: 0.9em;
  color: #777;
}

.light-mode nav,
.light-mode header {
  background-color: #f8f8f8;
}

.light-mode nav a {
  color: #333;
}

.light-mode nav a:hover {
  color: #cc2b2b;
}

.light-mode .toggle-button {
  background-color: #cc2b2b;
  color: #fff;
}

.light-mode header p {
  color: #666;
}

.light-mode #contact form {
  background: #ffffff;
  border-left: 4px solid #d2a64a;
}

.light-mode #contact input,
.light-mode #contact textarea {
  background: #BDBDBD;
  color: #222;
  border: 1px solid #ccc;
}

.light-mode #contact input::placeholder,
.light-mode #contact textarea::placeholder {
  color: #888;
}