/* GENERAL RESET */
body {
  font-family: 'Segoe UI', Roboto, sans-serif;
  background-color: #e0d8cd;
  color: #2E2E2E;
  margin: 0;
  padding: 0;
}

h1, h2, h4, h5 {
  text-align: left;
  margin-top: 0.5em;
}

h1 {
  color: #ffffff;
}

h2 {
  color: #3B5323;
  margin-bottom: 0.3em;
}

h4 {
  color: #2E2E2E;
}

h5 {
  color: #cfcfcf;
  margin-bottom: 0.3em;
  line-height: 1.6;
}

.baseline {
  flex: 1;
  text-align: left;
  color: #2E2E2E;
}

.subheading {
  text-align: left;
  color: #cfcfcf;
  margin: -0.6em 0 2em;
  font-size: 1.5em;
}

.indent1 {
  text-align: left;
  color: #2E2E2E;
  margin-left: 2em;
}

/* HEADER */
.header {
background-image: url('header.webp');
background-size: cover;
background-position: center;
height: 220px;
position: relative;
color: white;
}

.header-text {
  position: absolute;
  bottom: 20px;
  left: 30px;
  z-index: 2;
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* IMAGE & TEXT ALIGNMENT */

/* Base container class for shared styles */
.container {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

/* LEFT-ALIGNED CONTAINERS */

/* Left-aligned container with fixed icon size (150px x 150px) */
.container-left-fixed {
  align-items: flex-start;
  flex-direction: row-reverse;
}

.container-left-fixed img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  vertical-align: top; /* Ensures text aligns with the top of the image */
}

/* Left-aligned container with auto width and fixed height (120px) */
.container-left-auto {
  align-items: flex-start;
  flex-direction: row-reverse;
}

.container-left-auto img {
  width: auto;
  height: 120px;
  object-fit: contain;
  vertical-align: top; /* Ensures text aligns with the top of the image */
}

/* RIGHT-ALIGNED CONTAINERS */

/* Right-aligned container with visuals taking 40% of the container */
.container-right-50 {
  align-items: flex-start;
  flex-direction: row;
}

.container-right-50 img {
  width: 50%;
  height: auto;
  object-fit: contain;
  vertical-align: top; /* Ensures text aligns with the top of the image */
}

/* Right-aligned container with fixed dimensions (700px x 500px) */
.container-right-fixed {
  align-items: flex-start;
  flex-direction: row;
}

.container-right-fixed img {
  width: 700px;
  height: 250px;
  object-fit: cover;
  vertical-align: top; /* Ensures text aligns with the top of the image */
}

.container-left-fixed,
.container-left-auto,
.container-right-40,
.container-right-auto {
  align-items: flex-start; /* Ensures text aligns to top of image */
}

/* TABS */
.tab {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background-color: #8B6F47;
  padding: 10px;
  border-bottom: 1px solid #ccc;
}

.tab div {
  margin: 5px;
  padding: 10px 18px;
  background-color: rgb(229, 226, 214);
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.tab div[onclick="showTab('section4')"] {
  font-weight: bold;
  font-size: 1.1em;
}

.tab div:hover {
  background-color: #77a477;
  color: #2E2E2E;
}

/* CONTENT AREA */
.tabcontent {
  display: none;
  padding: 20px;
  margin: 0 auto;
  width: 95%;
  max-width: 100%;
  box-sizing: border-box;
}

.tabcontent.active {
  display: block;
}

/* MAP & IFRAME */
iframe,
.leaflet-container {
  width: 100% !important;
  height: 95vh !important;
  margin: 0 auto;
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* LEGEND & LAYERS */
.leaflet-control-layers {
  background-color: white;
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* CONTACT LINKS */
a {
  color: #38620e;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 768px) {
.tab {
  flex-direction: column;
  align-items: center;
}

.tab div {
  width: 90%;
  text-align: center;
}

iframe,
.leaflet-container {
  height: 60vh !important;
}
}

/* MODAL STYLING */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5); /* Black background with opacity */
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  border-radius: 8px;
  width: 80%;
  max-width: 600px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
}

.instructions-button {
  background-color: #8B6F47;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-bottom: 5px; /* Adds 5px space below the button */
}

.instructions-button:hover {
  background-color: #77a477;
}
#section3 .container-left-auto .baseline {
  margin-top: -1.3em; /* Adjust this value to align with the top of the image */
}

