/* File: style.css */

/* Styling for the long-form text content */
.content-body {
  font-family: 'Merriweather', 'Georgia', 'Times New Roman', serif; /* Use a serif font for better readability */
  font-size: 18px; /* Comfortable font size for reading */
  line-height: 1.8; /* Add space between lines */
  text-align: left; /* Keep text aligned to the left */
  max-width: 1000px; /* Limit width for optimal line length */
  margin: 0 auto; /* Center content within container */
  padding: 20px; /* Add padding for breathing room */
  border-radius: 8px; /* Rounded corners for a clean look */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for focus */
}

/* Light Mode Styles */
[data-bs-theme="light"] .content-body {
  color: #333; /* Dark gray text for less strain on eyes */
  background-color: #f9f9f9; /* Light background for contrast */
}

/* Dark Mode Styles */
[data-bs-theme="dark"] .content-body {
  color: #f8f9fa; /* Light text for dark mode */
  background-color: #333; /* Dark background for contrast */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .content-body {
      font-size: 16px; /* Adjust font size for readability */
      padding: 15px; /* Inner padding for content spacing */
      margin-left: 0; /* Remove left margin for full width */
      margin-right: 0; /* Remove right margin for full width */
  }

  .container,
  .container-fluid {
      padding-left: 1% !important; /* Eliminate side padding */
      padding-right: 1% !important; /* Eliminate side padding */
  }
}

/* Limit image height on small screens */
@media (max-width: 768px) {
  .novel-cards .book-cover-container {
      max-height: 150px; /* Adjust as needed */
  }
  .small-sm {
      font-size: 0.8rem; /* Adjust the size as needed */
  }  
}

.book-cover-container {
  position: relative;
  padding-top: 150%; /* Adjust this value to control the aspect ratio (e.g., 150% = 2:3 ratio) */
  overflow: hidden;
  border-radius: 8px; /* Optional: Adds rounded corners */
}

.book-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the image covers the container without distortion */
}

.custom-width {
  width: 120px;
}

/* Custom Alert Notif box */
.alert {
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 4px;
}

.alert-error {
  color: #a94442; /* Text color (red-ish for errors) */
  background-color: #f2dede; /* Background color */
  border-color: #ebccd1; /* Border color */
}

/* Styles for Error Pages */
body.error-page {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

.error-container {
    margin: 100px auto;
}

.error-container h1 {
    font-size: 72px;
    color: #ff6b6b;
}

.error-container p {
    font-size: 18px;
    color: #555;
}

.error-container a {
    text-decoration: none;
    color: #007BFF;
}

.error-container a:hover {
    text-decoration: underline;
}

.breadcrumb {
  --bs-breadcrumb-divider: '/';
}

.hidden {
  display: none;
}