body {
  font-family: 'Roboto', sans-serif; /* Use a standard sans-serif font */
  background-color: #ffffff; /* White background for a clean look */
  color: #333333; /* Standard dark text color */
  line-height: 1.8; /* Slightly increased line height for readability */
  margin: 0;
  padding: 0;
}

.newspaper-layout {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f5e9d2; /* Light parchment color */
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.3) 75%, transparent 75%, transparent), 
                    linear-gradient(135deg, rgba(255, 255, 255, 0.3) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.3) 75%, transparent 75%, transparent);
  background-size: 10px 10px;
  background-blend-mode: multiply;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border: 1px solid #ddd;
}

.newspaper-layout img {
  max-height: 325px;
  width: auto;
  display: block;
  margin: 0 auto; /* Center the image horizontally */
}

.article-row {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 20px;
  flex-direction: row; /* Default for larger screens */
}

.article-column {
  flex: 1;
  padding: 10px;
}

.article-column img.placeholder-img {
  width: 100%;
  height: auto;
  border: 1px solid #ccc;
  background-color: #eee;
  display: block;
  align-items: center;
  margin: 0 auto; /* Center the image horizontally */
}

.image-caption {
  font-family: 'Courier New', Courier, monospace;
  font-size: 5px; /* Correct font size */
  font-style: italic;
  text-align: center;
  margin-top: 5px;
  color: #555; /* Subtle gray color for the caption */
}

h1, h3 {
  font-weight: bold;
  text-align: center;
  color: #000000; /* Darker text color */
  margin-bottom: 20px;
}

p {
  text-align: justify;
  margin-bottom: 15px;
}

@media (max-width: 768px) {
  .article-row {
    flex-direction: column; /* Stack columns vertically on smaller screens */
  }

  .article-column {
    padding: 5px; /* Adjust padding for smaller screens */
  }
}

#article-preview {
  position: relative;
  max-height: 600px; /* Adjust to show approximately 20 lines */
  overflow: hidden;
}

.fade-out {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px; /* Fade-out effect */
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #f5e9d2);
  z-index: 1; /* Ensure it is above the content */
}

.hidden {
  display: none;
}

#continue-reading {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2; /* Ensure the button is above the fade-out */
  padding: 10px 20px;
  background-color: #333;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

#continue-reading:hover {
  background-color: #555;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.modal-content {
  text-align: center;
}

.modal-content form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px; /* Add spacing between form elements */
}

.modal-content form label {
  align-self: flex-start; /* Align labels to the left */
}

.modal-content button {
  width: 100%; /* Make buttons full-width */
  max-width: 300px; /* Optional: Limit button width */
}

.modal button {
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #333;
  color: white;
  border: none;
  cursor: pointer;
}

.modal button:hover {
  background-color: #555;
}

.modal button, 
#continue-reading {
  border-radius: 50px; /* Elongated oval shape */
  background: linear-gradient(to right, #7cd1ee, #4682b4); /* Light blue to darker blue gradient */
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 10px 30px; /* Adjust padding for oval shape */
  transition: background 1.5s ease-in-out, color 1.5s ease-in-out; /* Smoother and slower transition */
}

.modal button:hover, 
#continue-reading:hover {
  background: linear-gradient(to right, #4682b4, #7cd1ee); /* Reverse gradient on hover */
  color: white;
}

.read-part-two-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: #333;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.read-part-two-button:hover {
  background-color: #555;
}

.error-container, .success-container {
  max-width: 600px;
  margin: 50px auto;
  padding: 20px;
  text-align: center;
  border-radius: 5px;
}

.error-container {
  background-color: #f8d7da; /* Light red for error */
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.success-container {
  background-color: #d4edda; /* Light green for success */
  border: 1px solid #c3e6cb;
  color: #155724;
}

.error-container a, .success-container a {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

.error-container a:hover, .success-container a:hover {
  background-color: #0056b3;
}

.next-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.read-next-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007BFF;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  text-align: center;
}

.read-next-button:hover {
  background-color: #0056b3;
}

.article-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background-color: #ffffff; /* White background for the article */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  border: 1px solid #ddd; /* Light border for structure */
}

.article-container h1 {
  font-size: 2.5rem; /* Larger font size for the main title */
  font-weight: bold;
  color: #000000; /* Black for the title */
  margin-bottom: 20px;
  text-align: left; /* Align title to the left */
}

.article-container h2, .article-container h3 {
  font-size: 1.8rem; /* Subheadings slightly smaller */
  font-weight: bold;
  color: #444444; /* Dark gray for subheadings */
  margin-top: 30px;
  margin-bottom: 15px;
}

.article-container p {
  font-size: 1rem; /* Standard font size for paragraphs */
  text-align: justify; /* Justify text for a clean block look */
  margin-bottom: 20px;
}

.article-container p:first-of-type::first-letter {
  font-size: 3rem;
  float: left;
  margin-right: 10px;
  line-height: 1;
  font-weight: bold;
}

.article-container img {
  max-width: 100%; /* Ensure images are responsive */
  height: auto;
  margin: 20px 0; /* Add spacing around images */
  display: block;
}

.article-container .image-caption {
  font-size: 0.9rem; /* Smaller font size for captions */
  font-style: italic;
  text-align: center;
  color: #666666; /* Subtle gray for captions */
  margin-top: 5px;
}

.article-container blockquote {
  font-size: 1.2rem; /* Slightly larger font for quotes */
  font-style: italic;
  color: #555555; /* Medium gray for quotes */
  border-left: 4px solid #cccccc; /* Left border for emphasis */
  padding-left: 15px;
  margin: 20px 0;
}

.article-container ul, .article-container ol {
  margin: 20px 0;
  padding-left: 40px; /* Indent lists */
}

.article-container a {
  color: #007BFF; /* Blue for links */
  text-decoration: underline;
}

.article-container a:hover {
  color: #0056b3; /* Darker blue on hover */
}

@media (max-width: 768px) {
  .article-container {
    padding: 15px; /* Adjust padding for smaller screens */
  }

  .article-container h1 {
    font-size: 2rem; /* Adjust title size for smaller screens */
  }

  .article-container h2, .article-container h3 {
    font-size: 1.5rem; /* Adjust subheading size for smaller screens */
  }

  .article-container p {
    font-size: 0.9rem; /* Adjust paragraph size for smaller screens */
  }
}

.drop-cap::first-letter {
  font-size: 3rem;
  float: left;
  margin-right: 10px;
  line-height: 1;
  font-weight: bold;
}

body.dark-mode {
  background-color: #121212; /* Dark background */
  color: #e0e0e0; /* Light text */
}

body.dark-mode .navbar {
  background-color: #1e1e1e; /* Darker navbar */
}

body.dark-mode .article-content {
  background-color: #1e1e1e; /* Darker article background */
  color: #e0e0e0; /* Light text */
}

body.dark-mode a {
  color: #90caf9; /* Light blue links */
}

body.dark-mode a:hover {
  color: #64b5f6; /* Brighter blue on hover */
}

.dark-mode-toggle-container {
  display: flex;
  justify-content: flex-end;
  padding: 10px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}
.switch p {
  padding: 15px;
  font-size: 12px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #007BFF;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.read-next-container {
  text-align: center;
  margin-top: 20px;
}

.read-next-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007BFF;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.read-next-button:hover {
  background-color: #0056b3;
}

.facebook-comments {
  text-align: center;
  margin: 20px 0;
}

.join-conversation-container {
  text-align: center;
  margin: 20px 0;
}

.join-conversation-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007BFF;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.join-conversation-button:hover {
  background-color: #0056b3;
}
