.main-background-color {
  background: #03135c;
}

.logo-container {
  position: absolute;
  left: 20px;
}

.user_header {
  font-size: medium;
  text-align: center;
}

.margin {
  max-width: 90%;
  margin-left: 5%;
  margin-right: 5%;
}

.navig-bar button.headButton:hover,
.navig-bar button.headButton:focus {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  background-color: inherit !important;
  color: white !important;
}

.hover-underline {
  font-size: 27px;
  color: #ffffff;
  position: relative;
  display: inline-block;
}

.hover-underline::after, .hover-underline::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #ff0000, #00ffff);
  bottom: -5px;
  left: 0;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease-out;
}

.hover-underline::before {
  top: -5px;
  transform-origin: left;
}

.hover-underline:hover::after,
.hover-underline:hover::before {
  transform: scaleX(1);
}

.top_header {
  background: #03135c;
  color: #fff;
  padding: 10px 0;

  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.paraline {
  background: #03135c;
  color: #fff;
  font-weight: bold;
  padding: 10px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.navig-bar {
  color: white;
  background-color: #033c5e;

  /* Added flex layout for horizontal centering and spacing */
  display: flex;
  justify-content: center;
  gap: 20px;
}

.nav-space {
  margin-left: 0; /* Remove margin-left to avoid extra spacing */
}

/* Make forms inline-flex to prevent vertical stacking */
.navig-bar nav form {
  display: inline-flex;
  margin: 0; /* Remove default form margin */
  padding: 0;
}

/* New styles for homepage content */
.w3-content.margin.w3-border.w3-padding {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: #f0f8ff;
  border-radius: 12px;
  padding: 30px 40px !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  max-width: 900px;
  margin: 0px auto !important;
  margin-bottom: 40px !important;
  transition: transform 0.3s ease;
}

.w3-content.margin.w3-border.w3-padding:hover {
  transform: scale(1.02);
}

.w3-content.margin.w3-border.w3-padding h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  text-align: center;
  text-shadow: 2px 2px 6px #000000aa;
}

.w3-content.margin.w3-border.w3-padding p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 15px;
  text-align: center;
  text-shadow: 1px 1px 3px #000000bb;
}

.w3-content.margin.w3-border.w3-padding p strong {
  color: #ffdd57;
}

.w3-content.margin.w3-border.w3-padding h2 {
  font-size: 2rem;
  margin-top: 30px;
  margin-bottom: 15px;
  text-align: center;
  color: #ffd700;
  text-shadow: 2px 2px 5px #000000cc;
}

.w3-content.margin.w3-border.w3-padding ul {
  list-style: none;
  padding: 0;
  max-width: 600px;
  margin: 0 auto 30px auto;
}

.w3-content.margin.w3-border.w3-padding ul li {
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 12px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
  cursor: default;
}

.w3-content.margin.w3-border.w3-padding ul li:hover {
  background: rgba(255, 221, 87, 0.8);
  color: #000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

div > img {
  max-width: 900px;
  margin: 0 auto 50px auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s ease;
  cursor: pointer;
  display: block;
}

div > img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.reveal-img {
  filter: brightness(0.1) grayscale(1);
  transition: filter 0.2s;
  will-change: filter;
}

.light-circle {
  background: radial-gradient(circle, #FFFFFFE0, #FFFFFF4F, #FFFFFF00);
}

.leaflet-routing-container {
  background: white !important;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding: 10px;
  opacity: 0.97;
}