html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

#title-bar {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 100%;
  padding: 20px;
  text-align: left;
  z-index: 999;  /* set the z-index value to less than 1000 */
}

#title-bar h1 {
  font-size: 3em;
  color: #FFFFFF;
  text-shadow: 0 0 10px #000000, 0 0 20px #000000, 0 0 30px #000000;
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
  margin-bottom: 5px;
}

#title-bar p {
  color: #FFFFFF;
  text-shadow: 0 0 10px #000000, 0 0 20px #000000, 0 0 30px #000000;
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
}

#current-location-button, .custom-button {
  display: block;
  padding: 10px 20px;
  margin-bottom: 10px;
  font-size: 1.2em;
  color: #000000;
  background-color: #FFFFFF;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  transition: background-color 0.3s, transform 0.3s;
  text-shadow: 0px 0px 10px rgba(255, 255, 255, 1), 2px 2px 4px rgba(0, 0, 0, 0.5);
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  position: relative; /* To apply z-index, position has to be other than static */
  z-index: 999; /* set the z-index value to less than 1000 */
}

#current-location-button:hover, .custom-button:hover {
  background-color: #F0F0F0;
  transform: scale(1.05);
}

#location-select {
  margin-bottom: 10px;
  padding: 10px;
  width: 70%;
  font-size: 1.2em;
  border: 2px solid #8B4513;
  border-radius: 10px;
  color: #000000;
  background-color: #FFFFFF;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  position: relative; /* To apply z-index, position has to be other than static */
  z-index: 999; /* set the z-index value to less than 1000 */
}

@media (max-width: 767px) {
  #location-select {
    width: 100%;
    font-size: 1em;
  }
}

.note {
  font-family: 'Montserrat', sans-serif;
  font-size: 2em;
  color: #333;
  margin-top: 20px;
}

.note {
  display: flex;
  align-items: center; /* vertically centers text and image */
  padding: 10px;
  border: 1px solid #ddd; /* optional border */
  background-color: #f7f7f7; /* light gray background */
  color: #333; /* text color */
  font-size: 16px;
  border-radius: 5px; /* rounded corners */
  margin-bottom: 20px; /* spacing below the note */
}

.note img {
  margin-right: 10px; /* spacing between the image and the text */
  width: 50px; /* set width of image */
  height: 50px; /* set height of image */
}


#map-canvas {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

/* Common overlay styles */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: center; /* align items vertically in the center */
}

.overlay-box {
  background: white;
  border-radius: 8px;
  padding: 20px;
  width: 90vw;
  max-width: 1000px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0px 10px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start; /* New */
}

.overlay-box-location {
  background: white;
  border-radius: 8px;
  padding: 20px;
  width: 90vw;
  max-width: 600px;
  max-height: 300px
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0px 10px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.welcome-overlay-box {
  /* No specific styles for now */
}

.submit-location-overlay-box {
  max-height: 110vh; /* restrict maximum height */
}

.welcome-overlay-box h2, .submit-location-overlay-box h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2em;
  margin-bottom: 20px;
}

.welcome-overlay-box p, .submit-location-overlay-box p {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 20px;
}

.welcome-overlay-box .close-overlay, .submit-location-overlay-box .close-overlay {
  padding: 10px 20px;
  background: #333;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  font-family: 'Montserrat', sans-serif;
}

#welcome-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center; /* center the content */
  align-items: center; /* center the content */
  z-index: 9999;
  overflow-y: auto; /* Will only show scrollbar when necessary */
  max-height: 100vh; /* Restricts the height to the view height */
}

#welcome-overlay {
  justify-content: flex-start;
  padding: 20px 0; /* Add vertical padding to prevent cutoff */
}

#welcome-box {
  display: flex;
  flex-direction: column-reverse;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-height: 110vh;  /* set the max height to 90% of the viewport height */
  overflow: auto;
  padding: 0px;
}

#welcome-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;  /* center the content */
  align-items: center;  /* center the content */
  z-index: 9999;
}

#welcome-text {
  padding: 20px;
  font-size: 0.8em;
}

#welcome-image {
  display: none;  /* Hide the original image element since it's now set as a background */
}

#welcome-image img {
  width: 100%;
  height: auto;
}

@media (min-width: 768px) {
  .overlay-box {
    width: 50vw;
  }
  
  #welcome-box {
    flex-direction: row;
    max-height: 45vh;
  }

  #welcome-text {
    padding-right: 20px;
    font-size: 1em;
  }
}

.overlay-box h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2em;
  margin-bottom: 20px;
}

.overlay-box p {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 20px;
}

.close-overlay {
  padding: 10px 20px;
  background: #333;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  font-family: 'Montserrat', sans-serif;
}

.overlay-form {
  text-align: left;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .overlay-box {
    width: 50vw;
    height: 60vh;
  }
  
  #welcome-box {
    flex-direction: row;
  }

  #welcome-text {
    padding-right: 20px;
    font-size: 1em;
  }
}

#buttons-container {
  display: flex;
  justify-content: start;
  gap: 10px;
}

@media (max-width: 767px) {
  .custom-button {
    font-size: 1em;
    padding: 8px 16px;
    width: 100%;
  }

  #buttons-container {
    flex-direction: column;
    align-items: stretch;
  }
}

#location-form label {
  font-family: 'Montserrat', sans-serif;
  font-size: 1em;
  color: #000000;
  display: block;
  margin-bottom: 5px;
  text-align: left; /* align text to the left */
}

#location-form input[type="text"], #location-form select {
  display: block;
  width: 100%;
  height: 40px;
  padding: 10px;
  margin-bottom: 5px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1em;
  border: 1px solid #8B4513;
  border-radius: 5px;
  text-align: left; /* align text to the left */
}

#location-form .g-recaptcha {
  margin-top: 2px;
}

#location-form input[type="submit"] {
  display: block;
  max-width: 100%;
  padding: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2em;
  color: white;
  background-color: #333;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

#location-form input[type="submit"]:hover {
  background-color: #666;
}

.overlay-form button.close-overlay {
  margin-bottom: 20px;
}

.location-filter-container {
  display: flex;
  align-items: center;
  justify-content: center; /* Centers content horizontally */
}

@media (max-width: 767px) {
  .filter-select {
    width: 90%; /* Reduces width on small screens */
  }
}

.location-filter-checkbox {
  margin-right: 10px;
  height: 15px;
  width: 15px;
}

.location-filter-label {
  font-size: 1.2em;
  color: #000000;
  font-family: 'Montserrat', sans-serif;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

#location-form input[type="submit"], #location-form button {
  padding: 10px;
  font-size: 1em;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
  margin: 10px 0; /* Adjust as necessary */
}

#location-form input[type="submit"]:hover, #location-form button:hover {
  background-color: #666;
}

#submit-location-button {
  width: 70%;
  margin-right: 5%;
}

#close-submit-location {
  width: 25%;
}

#map-canvas {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 40px;
  left: 0;
}

#footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  background: #333;
  color: #fff;
  padding: 5px 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9em;
}

#footer a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
}

#footer a:hover {
  text-decoration: underline;
}

#legal-title-bar {
  text-align: center;
  padding: 10px;
  background-color: #ffffff;
  color: #000000;
  margin-bottom: 10px;
}

#legal-container {
  margin: 20px;
  padding: 20px;
  background-color: #ffffff;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  font-family: 'Montserrat', sans-serif;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  padding-bottom: 50px;
}

#legal-container h2, #legal-container h3 {
  color: #000000;
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
}

#legal-container p {
  color: #000000;
  font-size: 1em;
  margin-bottom: 10px;
}

.filter-container {
  display: flex;
  align-items: center;
}

.filter-button {
  background: none;
  border: none;
  color: #333;
  font-size: 20px;
  cursor: pointer;
}

.filter-select {
  margin-left: 10px;
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid #333;
  font-size: 16px;
  background: #fff;
  color: #333;
  cursor: pointer;
}

@media (max-width: 480px) {
  #title-bar h1 {
    font-size: 1.5em;
  }

  #title-bar p {
    font-size: 1em;
  }

  #current-location-button, .custom-button {
    width: 100%;
    font-size: 1em;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  #title-bar h1 {
    font-size: 2em;
  }

  #title-bar p {
    font-size: 1.2em;
  }

  #current-location-button, .custom-button {
    width: 100%;
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  #location-form label, #location-form input[type="text"], #location-form select, #location-form input[type="submit"] {
    padding: 5px;
  }

  .overlay-box {
    padding: 10px;
    height: 90vh; /* New rule */
    margin-bottom: 10vh; /* New rule */
  }

  #location-form input[type="submit"] {
    padding: 15px; /* Modified rule */
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  #welcome-image {
    display: none;
  }
}

@media (max-width: 1440px) {
  #welcome-image {
    display: none;
  }
}

@media (max-width: 480px) {
  #location-form input[type="submit"] {
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  .overlay-box {
    padding-bottom: 30px; /* Increase space at the bottom of the overlay box */
  }

  #welcome-image {
    display: none; /* Hide the image on mobile */
  }

  .note {
    margin-bottom: 10px; /* Add space below the note */
  }

  #location-form input[type="submit"] {
    margin-top: 10px; /* Add space above the submit button */
  }
}

@media (min-width: 768px) {
  #welcome-overlay {
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 767px) {
  .custom-button:not(:last-child) {
    margin-bottom: 10px;
  }
}

.overlay-box {
  padding: 20px;
}

#location-form {
  height: auto;
}

#navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 10px;
}

#nav-toggle {
  display: none;
  cursor: pointer;
  font-size: 1em;
  padding: 10px;
  border: none;
  background: #333;
  color: #fff;
  border-radius: 2px;
  margin-bottom: 8px;
  border-radius: 15px; /* Added to round the corners */
}

.nav-toggle-label {
  margin-left: 5px;
}

#nav-menu {
  display: flex;
  gap: 10px;
  align-items: center;
}

@media (max-width: 767px) {
  #nav-toggle {
    display: block;
  }

  #nav-menu {
    flex-direction: column;
    display: none;
    width: 100%;
  }

  #nav-menu.active {
    display: flex;
  }
}

@media (max-width: 767px) {
  .close-overlay {
    margin-bottom: 10px;
  }
}

#info-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(255,255,255,0.9);
  z-index: 10000;
  display: none;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
  overflow: auto; 
}

#info-overlay .close-button {
  position: relative;
  left: 0;
  right: 0;
  margin: 20px auto 0;
  display: block;
  padding: 10px 20px;
  font-size: 1.2em;
  color: #000000;
  background-color: #FFFFFF;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  text-shadow: 0px 0px 10px rgba(255, 255, 255, 1), 2px 2px 4px rgba(0, 0, 0, 0.5);
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  transition: background-color 0.3s, transform 0.3s;
}

#info-overlay .close-button:hover {
  background-color: #F0F0F0;
  transform: scale(1.05);
}

.close-button {
  display: block;
  width: 100%;
  padding: 15px;
  margin-top: 20px;
  background-color: #333;
  color: #fff;
  border: none;
  cursor: pointer;
  text-align: center;
  font-size: 18px;
}

@media (max-width: 480px) {
  body {
    font-size: 0.8em;
  }
}

.submit-form-description {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2em;
  line-height: 1.6;
  color: #000000;
  margin-bottom: 20px;
  text-align: left; /* align text to the left */
}

@media (min-width: 1080px) and (max-width: 2560px) {
  #welcome-text {
    font-size: 0.9em; /* Adjusted font size for the welcome text */
    padding: 10px; /* Reduced padding */
  }
  
  .welcome-overlay-box h2, .submit-location-overlay-box h2 {
    font-size: 1.8em; /* Reduced font size for headings */
    margin-bottom: 15px; /* Adjusted margin */
  }

  .welcome-overlay-box p, .submit-location-overlay-box p {
    font-size: 1em; /* Reduced font size for paragraphs */
    margin-bottom: 15px; /* Adjusted margin */
  }

  #welcome-box {
    justify-content: space-evenly; /* Distribute space evenly */
  }
}

.inline-label {
  display: inline; /* Display labels inline */
  margin: 0;       /* Remove margin to prevent spacing issues */
  background: none !important; /* Override any background settings */
  color: #000;     /* Adjust color if necessary */
  cursor: pointer; /* Pointer cursor for better UX */
  box-shadow: none !important; /* Override any box shadow */
  border: none !important;     /* Override any borders */
}

.separator {
  margin: 0 5px;   /* Adjust spacing around the separator as required */
}

/* Floating Feedback Button Styles */
.feedback-btn {
  position: fixed;
  bottom: 10px;
  left: 10px;
  padding: 10px 20px;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 50px; /* rounded edges */
  cursor: pointer;
  z-index: 1001; /* Ensure it's above most other elements */
  transition: background-color 0.3s;
}

.feedback-btn:hover {
  background-color: #666;
}

/* Additional Styles for the Feedback Form */
#feedback-form .form-group {
  margin-bottom: 20px;
}

#feedback-form textarea {
  min-height: 100px;
}

#map-notification {
  position: absolute;
  background-color: white;
  padding: 10px;
  border-radius: 5px;
  display: none;
  transform: translate(-50%, -100%); /* This centers the tooltip on its specified position and moves it upward */
  white-space: nowrap; /* Prevents the text inside from wrapping to the next line */
  pointer-events: none; /* Ensures that the tooltip doesn't interfere with map interactions */
  z-index: 1000; /* Ensures that the tooltip appears on top */
}

/* Feedback Form Styles */
.feedback-box {
  background: white;
  border-radius: 8px;
  padding: 20px;
  width: 90vw;
  max-width: 600px;
  max-height: 300px
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0px 10px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#feedback-form .form-control {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #8B4513;
  border-radius: 5px;
  font-size: 1em;
  font-family: 'Montserrat', sans-serif;
}

#feedback-form textarea {
  resize: vertical; /* Allow vertical resizing only */
}

/* Floating Feedback Button */
.feedback-btn {
  position: fixed;
  bottom: 60px; /* Adjusted to sit above the footer */
  left: 10px;
  padding: 10px 20px;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  z-index: 1001;
  transition: background-color 0.3s;
}

.feedback-btn:hover {
  background-color: #666;
}

/* Feedback Heading */
.feedback-box h2 {
  width: 100%;
  text-align: center;
}

/* Form Controls */
.feedback-box .form-control {
  width: 100%;
}

/* Feedback Buttons to match the existing "Submit Location" and "Welcome" buttons */
#feedback-form .btn-primary, #feedback-form .btn-secondary {
  display: block;
  max-width: 100%;
  padding: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2em;
  color: white;
  background-color: #333;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

#feedback-form .btn-primary:hover, #feedback-form .btn-secondary:hover {
  background-color: #666;
}

#feedback-form .btn-secondary {
  color: #333;
  background-color: #fff;
  border: 1px solid #333;
}

.pac-container {
  z-index: 1051 !important;  /* This value should be higher than the modal's z-index */
}

/* Tab styling */
.nav-tabs {
  border-bottom: 2px solid #ddd;
}

.nav-item {
  margin-bottom: -2px;
}

.nav-link {
  font-size: 18px;
  padding: 10px 20px;
  color: #555;
  border: 2px solid transparent;
  border-radius: 5px 5px 0 0;
  transition: all 0.3s;
}

.nav-link:hover {
  color: #333;
  background-color: #f5f5f5;
}

.nav-link.active {
  color: #fff;
  background-color: #333;
  border-color: #ddd #ddd #fff;
}

/* Modal header styling */
.modal-header {
  background: linear-gradient(90deg, #f5f5f5, #e0e0e0);
}

.modal-header .close {
  outline: none;
  color: #555;
  font-size: 24px;
  opacity: 0.7;
}

.modal-header .close:hover {
  opacity: 1;
}

/* Modify padding for modal-header */
.modal-header {
  padding: 0;
}

.nav-tabs {
  border-bottom: none;
}

#tabbedModal .modal-header .close {
  margin-right: 0.5px;  /* Increase or decrease as per your requirement */
  margin-top: 0.5px;    /* Increase or decrease as per your requirement */
}

#location-form .btn, #feedback-form .btn {
  font-size: 16px; /* Adjust as needed */
  font-family: 'Arial', sans-serif; /* Adjust to your preferred font */
  padding: 10px 20px; /* Adjust for desired size */
}

/* Common styles for both buttons */
.button-full-width {
  display: block;
  width: 100%; /* Full width */
  padding: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2em;
  color: white;
  background-color: #333;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

.button-full-width:hover {
  background-color: #666;
}

/* Apply the common styles to the Submit Location button */
#location-form input[type="submit"] {
  /* This will inherit the common styles */
}

/* Apply the common styles to the Feedback Form Submit button */
#feedback-form .btn-primary {
  /* This will inherit the common styles */
}

body {
  overflow-x: hidden;
}

.hidden-section {
  display: none;
}

/* Styles for individual blog posts */
.blog-post {
  margin-bottom: 30px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #f8f9fa;
}

.blog-post h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #343a40;
}

.blog-post p {
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
}

.blog-post a {
  font-weight: bold;
  color: #007bff;
  text-decoration: none;
}

.blog-post a:hover {
  text-decoration: underline;
}

/* Styles for the separator between blog posts */
.blog-post-separator {
  border: 0;
  height: 2px;
  background-image: linear-gradient(to right, #f8f9fa, #343a40, #f8f9fa);
  margin: 40px 0;
}











