/*  Tag styles  */



a {
  text-decoration: none;
}

body {
  background-color: whitesmoke;
}

div {
  text-align: left;
}

h1,
h2,
h3 {
  text-align: center;
}

h2.moveLeft {
  text-align: left;
  padding: 0 70px;
  font-weight: bold;
  font-size: 24px;
}

h2.noPadMoveLeft {
  text-align: left;
  padding: 0;
  font-weight: bold;
  font-size: 24px;
}

html {
  font-size: 16px; /* This sets the base font size for the page */
}

img {
  margin-top: 20px;
  margin-left: 1px; /* Space between text and image */
  margin-right: 70px;
}

p { 
  padding: 0 70px; /* adds 30px on the left and right */
}

p.nopad {
  padding: 0 20px 0 70px;
}

p.noPadMoveLeft {
  padding: 0;
}

p.containerDescrip {
  padding: 0 30px;
  word-wrap: break-word; /* Break long words if needed */
  overflow-wrap: break-word; /* Modern browsers */
  hyphens: auto; /* Add hyphens for better text breaking */
}

q {
  display: block;
  margin-left: 40px;
  margin-right: 50px;
  font-weight: normal;
  font-style: italic;
  font-size: 18px;
}

q::before,
q::after {
  content: none !important;
}

/* Class styles */

.background-image {
  margin-top: 0;
  max-width: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
  display: block; /* Removes any extra space below the image */
}

.caption {
  font-size: 0.8em; /* Smaller font size for the caption */
  color: #666; /* Optional: Change the color of the caption */
  margin-top: 5px; /* Space between the image and the caption */
}

.containerDate {
  font-size: 18px;
  top: 12px; /* Position at the top right */
  right: 10px;
}

.containerTitle {
  text-align: center;
  font-weight: bold;
  font-size: 30px;
  bottom: 0; /* Position at the bottom */
  left: 0;
  width: 95%;
}

.image-container {
  position: relative;
  margin: 0;
  width: 100%; /* Changed from 400px to be responsive */
  height: 400px; /* Keep fixed height for consistent image display */
  background-color: transparent;
}

.image-container-outer {
  align-items: flex-start; /* Aligns items at the top of the container */
  margin: 5px;
  padding: 2px;
  width: 100%; /* Changed from 400px to be responsive */
  height: auto; /* Allow container to grow with content */
  min-height: 300px; /* Smaller minimum height for better responsiveness */
  border: 2px solid darkslateblue; /* Restored the dark blue border */
  overflow: hidden; /* Prevent content from spilling out */
  box-sizing: border-box; /* Include padding and border in width calculation */
}

.image-with-caption {
  text-align: center; /* Center the figure element */
  margin: 20px 0; /* Add some margin around the figure */
}

.image-with-caption img {
  display: block;
  margin: 0 auto; /* Center the image */
}

.img-center {
  display: block; /* Ensures the img is treated as a block element */
  margin-left: auto; /* Pushes the left margin to the max, centering the image */
  margin-right: auto; /* Pushes the right margin to the max, completing the centering */
}

.img-left {
  display: block; /* Ensures the img is treated as a block element */
  margin-right: auto; /* Pushes the right margin to the max, completing the centering */
}

.img-right {
  display: block; /* Ensures the img is treated as a block element */
  margin-left: auto; /* Pushes the left margin to the max, centering the image */
}

.indexContainer {
  display: flex;
  margin: 10px 5px;
  flex-direction: row; /* aligns items horizontally */
  height: 200px;
  width: 90vw; /* % width of the viewport */
}

.indexImage {
  width: 200px;
  height: 200px;
  overflow: hidden; /* in case your image is not exactly 200x200 */
}

.indexImage img {
  margin-top: 0;
  width: 100%; /* image will fill the div */
  height: 100%; /* image will fill the div */
  object-fit: cover; /* ensures the image covers the area without distortion */
}

.indexText {
  flex-grow: 1; /* allows the text to take up remaining space */
  padding: 0 10px;
  overflow-y: auto; /* if text exceeds height, it will scroll */
  width: 60vw; /* % width of the viewport */
  height: 200px; /* ensures text block is the same height as the image */
}

.logo {
  width: 150px; /* Adjust as needed */
  height: 40px; /* Adjust as needed */
}

.side-text {
  float: right;
  width: 35%;
  margin: 0 10px 10px 10px;
  padding: 0 10px;
  background-color: whitesmoke;
  font-size: 1.5em;
  line-height: 1.4;
  text-align: center;
}

.side-text hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 0 0;
}

.text-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 98%;
  height: 100%;
  pointer-events: none; /* Ensures text doesn't interfere with image interactions */
}

.text-overlay p {
  position: absolute;
  color: white; /* Adjust text color for visibility */
  text-shadow: 2px 2px 4px black; /* Optional shadow for better readability */
  margin: 0;
  padding: 5px;
  margin: 10px;
  background: rgba(0, 0, 90, 0.5); /* Optional semi-transparent background */
}

.article {
  display: inline-flex; /* Makes the container a flex container */
  align-items: flex-start; /* Aligns items at the top of the container */
}

.pagination {
  margin-top: 20px;
  text-align: center;
}

.page-link {
  margin: 0 5px;
  cursor: pointer;
  color: blue;
  text-decoration: underline;
}

/* CSS */
.container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  /* background-color: yellow !important;
     border: 2px dashed red !important; */
}

.left-panel {
  width: 60%;
  padding: 20px;
}

.right-panel {
  width: 40%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 20px;
}

.box {
  display: block;
  float: none;
  width: 100%;
  box-sizing: border-box;
}

.section-title {
  text-align: center;
  font-weight: bold;
  text-decoration: underline;
  font-size: 36px !important;
}

.panel-title {
  text-align: center !important;
  font-weight: bold !important;
  font-size: 20px !important;
}

/* Styling for dynamically loaded article content */
.loaded-content {
  margin-top: 20px;
  padding: 15px;
  background-color: #f9f9f9;
  border: 1px solid #c8c8c8;
  border-radius: 5px;
}

/* Dev-only content - hidden by default */
.dev-only {
    display: none !important;
    /* background-color: #f0f8ff; */
    border: 2px dashed #ff6b6b;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
}

.dev-only.show {
    display: block !important;
}

/* Dev toggle indicator */
.dev-mode-indicator {
    position: fixed;
    top: 10px;
    right: 10px;
    background-color: #ff6b6b;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    z-index: 1000;
    display: none;
}

.dev-mode-indicator.show {
    display: block;
}