/* General Styles _ styles.css */
/* Last update 5:40 PM 6/24/25 */
/* Fixing the Hidden <hr> */
.full-width-line {
  width: 90%; /* Ensures it stretches across 90% of the full container */
  height: 4px; /* Adjust thickness */
  background-color: #000; /* Sets the color */
  border: none; /* Removes default border */
  margin: 10px auto; /* Adds spacing AND centers */
  position: static !important; /* Ensures it's visible */
  overflow: visible !important; /* Prevents clipping */
  clip: auto !important; /* Cancels `clip: rect(...)` */
  display: block !important;
}

p {
  font-size: 1.6em; /* Larger paragraph text */
  font-weight: bold; /* Makes text bold */
  font-family: 'ArialWeb', Arial, sans-serif; /* Reinforces consistency */
  max-width: 100%; /* Prevents overflow */
  margin-bottom: 1rem;
  white-space: normal;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 300px;
  position: relative;
  top: 0;
  left: 0;
  z-index: 10; /* Ensures hero is visually on top */
}

.hero img {
  max-width: 100%;
  height: auto;
  border-radius: 10px; /* Optional for a softer look */
}

/* Motion-Sensitive Users: Hide Auto Slideshow, Show Manual */
@media (prefers-reduced-motion: reduce) {
  .auto-slideshow {
    display: none;
  }

  .manual-slideshow {
    display: block;
  }

  .fade, .slideshow-img, .hero-img {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
  }
}

/* Fade Effect */
@keyframes fadeEffect {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

/* Responsive and Accessible #myimg Styling */
/* NOTES:
   - width: 100% lets image scale to its container.
   - max-width: 600px limits how large it appears.
   - height: auto keeps aspect ratio.
   - animation adds a fade-in effect between transitions.
   - Consolidates previous media query overrides for simplicity.
*/
#myimg {
  width: 100%;
  height: auto;
  max-width: 600px;
  display: block;
  animation: fadeEffect 1s ease-in-out;
}

/* Improved Responsiveness */
@media (max-width: 768px) {
  body {
    font-size: 1.2em;
    overflow-x: hidden; /* Prevents side scrolling */
  }

  p {
    font-size: 1.2em;
  }

  h1,
  h2,
  h3,
  h4 {
    font-size: 6vw; /* Uses viewport width for better scaling */
  }
}

/* Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  .fade, .slideshow, .hero-img {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
  }
}

/* Extra Small Screens */
@media (max-width: 480px) {
  body {
    font-size: 1em;
    overflow-x: hidden;
  }

  p {
    font-size: 1em;
  }

  h1,
  h2,
  h3,
  h4 {
    font-size: 5vw; /* Further scaling improvement */
  }
}

.content-section {
  margin: 0 auto;
  padding: 20px;
}

.jump-effect img {
  border-radius: 10px;
}

.dustoff-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.slideshow-container {
  max-width: 600px;      /* or however wide you want the slideshow */
  margin: 0 auto;        /* THIS centers it */
  text-align: center;    /* Optional: centers inline elements like <img> */
}

.dustoff-image {
  flex: 1;
}

/* Improve contrast for image copyright */
#image-copyright p {
  color: #222; /* Darker gray for better readability */
  font-size: 1.2rem;
}

/* Adjust First Published & Copyright Text */
#current-year, #image-copyright p, div p[role="heading"] {
  color: #000000; /* Slightly darker for WCAG compliance */
  font-size: 3.5rem;
  font-weight: bold;
}

/* Optional: Adjust background color if needed */
body {
  font-size: 3.5em; /* Larger text for copyright text and year*/
  background-color: #FCF897; /* Lightened background for better contrast */
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

.site-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center; /* aligns child elements horizontally */
}
