* {
  box-sizing: border-box;
}

html, body {
  height: 100%; 
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  color: #333;
  display: flex;
  flex-direction: column;
}

h2 {
  margin-bottom: 0.3em; /* reduces space below the heading */
}

p, ul {
  /* margin: .5em; */
  margin-top: 0; /* eliminates extra space above the paragraph */
  font-size: 1.3em;
}

body p a {
  color: #8B5E3C; /* Rust Brown */
  text-decoration: none;
}

body p a:hover {
  color: #0000FF;
}

body span a {
  color: #8B5E3C; /* Rust Brown */
  text-decoration: none;
}

body span a:hover {
  color: #0000FF;
}

main {
  /* margin: 0; might want to delete */
  /* mpadding: 0; ight want to delete */
  margin-left: 1.5em;
  margin-right: 1.5em;
  max-width: 100%;
  flex: 1;
}

#index-main {
  /* margin: 0; might want to delete */
  /* mpadding: 0; ight want to delete */
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
  flex: 1;
}

header, footer {
  background-color: #2C3E2F; /* Deep Forest Green */
  color: #F5F3E7; /* Bone White */
  padding: 1rem;
  text-align: center;
}

footer {
  background-color: #4A5A6A; /* Slate Gray */
  color: #fff;
  text-align: center;
  /* position: fixed; */
  /* position: relative; */
  bottom: 0;
  width: 100%;
  z-index: 1;
  position: relative;

}

.small-foot {
  font-style: italic;
  font-size: .9em;
}

h1 {
  font-family: Georgia, Times, "Times New Roman", serif;
}

.reduce-bmargin-andBig {
  margin-bottom: 0.1em; 
  font-size: 2rem;
}

nav ul {
  list-style: none;
  padding: 0;
}

nav ul li {
  display: inline;
  margin: 0 10px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
}

nav ul li a:hover {
  color: #ebeb22;
  text-decoration: none;
}

header h1 a {
  color: #F5F3E7;
  text-decoration: none;
}

header h1 a:hover {
  color: #ebeb22;
  text-decoration: none;
}

.page-title {
  font-size: 2.5rem;
  text-align: center;
  text-decoration: underline;
}

.image-container {
  width: 100%;
  max-width: 800px; /* You can adjust this max-width to your needs */
  margin: 1em auto;    /* Centers the image container */
  box-sizing: border-box;
  padding: 0 1rem;
}

.full-bleed-img {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.full-bleed-img img {
  width: 100%;
  height: auto;
  display: block;
}

.responsive-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

.modal-content {
  /*max-width: 90%;
  max-height: 90%;
  margin: auto;
  display: block;*/
  max-width: 90vw;
  max-height: 80vh; /* gives vertical room for caption */
  object-fit: contain;
  display: block;
  margin: auto;

}

.modal.show {
  display: flex;
}

.modal-caption {
  color: #FFD700;        /* Gold */
  font-size: 1rem;
  text-align: center;
  margin-top: 1rem;
}

.img-border {
  padding: 5px;
  background-color: #8B4513;
  border: 1px solid #ccc;
}

/* .bottom-note {
  position: fixed;
  bottom: 60px;
  width: 100%;
  text-align: center;
  background-color: #f5f5f5;
  padding: 10px;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
} */

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.page-content {
  /* min-height: calc(100vh - 120px); /* leave room for footer + p 
  margin: 0; */
  flex: 1;
  display: flex;
  flex-direction: column;
}

.history-container {
  width: 100%;
  max-width: 800px; /* You can adjust this max-width to your needs */
  margin: 1em auto;    /* Centers the image container */
  box-sizing: border-box;
  padding: 0 1rem;
}

.bottom-note {
  /*background-color: #eee;*/
  text-align: center;
  padding: 10px;
}

.timeline-container {
  width: 100%;
  max-width: 950px;
}

#timeline {
  display: flex;
  /* justify-content: space-evenly; */
  /* justify-content: space-around; */
  justify-content: center;
  flex-wrap: wrap;
  scroll-snap-align: start;
  /* justify-content: flex-start; */
  

  /* flex-wrap: wrap; */
  /* min-width: 100%;  */
  background-color: #fdf6e3; /* light sandstone */
  /* flex-direction: row; */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 20px;
  padding: 20px;
  border-top: 3px solid #8B4513; /* saddle brown */
  border-bottom: 3px solid #8B4513;
} 

.era {
  /*flex: 0 0 400px; /* Fixed width for scrollable layout */
  flex: 0 0 min(90vw, 600px);
  max-width: 100%;
  scroll-snap-align: center;
  border: 1px solid #cd853f;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.1);
  background-color: #fff8f0;
}

.era h2 {
  color: #A0522D; /* sienna */
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.era p {
  margin: 0;
}

.hero-section {
  background-image: url('assets/dlake_gglEarth.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh; /* Full viewport height */
  width: 100%;
}

.full-width-img {
  width: 100%;
  height: auto;
  /*margin-bottom: 1em;*/
  display: block; /* Removes unwanted whitespace below image */
}


@media (max-width: 768px) {
  #timeline {
    padding: 10px;
  }

  .era {
    flex: 0 0 280px;
  }
}



.intro, .features, .about {
  max-width: 770px;
  margin: 1em auto;
  padding: 1.5em;
  background-color: #eef5e3;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.intro h2, .features h2 {
  color: #2f5d3c;
  margin-bottom: 0.5em;
}

.features ul {
  list-style-type: square;
  padding-left: 1.5em;
}

.features li {
  margin-bottom: 0.5em;
}

.about p {
  font-style: italic;
  font-size: 1.2em;
  color: #555;
  text-align: center;
}
