/* Prevent horizontal overflow */
html {
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

* {
  box-sizing: border-box;
  font-family: 'Times New Roman', Times, serif;
  color: #122c03;
}

p {
  font-size: 22px;
  padding: 0.5em;
  line-height: 1.6;
}

.main-header {
  background-image: url('/IMGs/MarshHeader.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.main-nav {
  text-align: center;
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.left-image, .right-image {
  width: 100%;
  max-width: 300px;
  height: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
  justify-content: center;
}

.nav-links a {
  display: block;
  text-decoration: none;
  color: rgb(252, 252, 252);
  padding: 1rem;
  min-height: 44px;
  font-size: 50px;
  background-color: rgb(20, 54, 16);
}

.nav-links a:hover {
  background-color: #00000069;
}

.container {
  display: flex;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

.column {
  flex: 1;
  min-width: 280px;
  padding: 20px;
  background-color: #ced8cd;
  box-sizing: border-box;
  max-width: 100%;
}

h1 {
  text-align: center;
}

.content-section {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.content-section img {
  width: 100%;
  max-width: 300px;
  height: auto;
  flex-shrink: 0;
  display: block;
  padding: 1.5em;
  box-sizing: border-box;
}

.text-content {
  flex: 1;
  padding: 1.5em;
  box-sizing: border-box;
  max-width: 100%;
}

section ul {
  display: block;
  font-size: 22px;
}

.slideshow {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  background-color: rgb(255, 255, 255);
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: slideshow 20s infinite;
}

.slide:nth-child(1) {
  animation-delay: 0s;
}

.slide:nth-child(2) {
  animation-delay: 4s;
}

.slide:nth-child(3) {
  animation-delay: 8s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide:nth-child(3) img {
  object-fit: cover;
  object-position: 63% center;
}

.slide:nth-child(4) {
  animation-delay: 12s;
}

.slide:nth-child(5) {
  animation-delay: 16s;
}

.slide:nth-child(4) img {
  object-fit: contain;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes slideshow {
  0% {opacity: 0;}
  2% {opacity: 1;}
  20% {opacity: 1;}
  22% {opacity: 0;}
  100% {opacity: 0;}

}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .main-header {
    height: 200px;
    background-position: center;
  }
  
  .container {
    flex-direction: column;
    padding: 0;
    gap: 0;
  }
  
  .column {
    width: 100%;
    min-width: unset;
    margin-bottom: 0;
  }
  
  .nav-links {
    flex-direction: row;
    text-align: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px;
  }
  
  .nav-links li {
    margin: 0;
    flex: 1 1 auto;
    width: 100%;
  }
  
  .nav-links a {
    font-size: 24px;
    width: 100%;
    box-sizing: border-box;
    padding: .5rem;
  }
  
  .content-section {
    flex-direction: column;
    align-items: center;
    padding: 0;
    gap: 0;
  }
  
  .content-section img {
    width: 100%;
    max-width: 300px;
    padding: 1em;
  }
  
  .text-content {
    padding: 1em;
    width: 100%;
  }
  
  p {
    font-size: 18px;
    padding: 0.5em 1em;
  }
  
  h1 {
    font-size: 1.75em;
  }
  
  h2 {
    font-size: 1.5em;
  }
}