/* Basic Styling */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  overflow-x: hidden;
  font-family: Georgia, serif; -webkit-font-smoothing: antialiased;
  
}

body {
  display: flex;
  flex-direction: column;
}

h1, h2, h3, .navbar li, .footer li {
   font-family:  'Geneva', sans-serif; -webkit-font-smoothing: antialiased;
}

div.sec-txt p {max-width: 800px; padding-right: 2rem; line-height:1.5rem;}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background-color: #333;
  color: white;
  display: flex;
  align-items: center;
  justify-content: right;
  z-index: 100000;
  padding-top:0.3rem;
  padding-right:2rem;
  
}
.footer ul {
  display: inline-flex;
  list-style: none;
}
.footer ul li {
  display: flex;
  align-items: center;
  margin-right:1rem;
}

.footer ul li img { max-height:2rem; margin-right:1rem;}
.footer ul li i {
  font-size: 1.5rem;
  line-height: 1;
}

.footer ul li a { color: white; }
.footer ul li a:hover { color: #555; }
/* Navbar styling */
nav {
  background-color: #333;
  color: white;
  padding: 0.5rem 1rem;
  
}

.navbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem;
  
}


.navbar h1 {
  font-size: 1.5rem; /* Smaller header */
  margin: 0;
  padding: 0;
  flex: 1;
 
}

.navbar ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar li {
  margin-left: 1rem;
}

.navbar a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
}

.navbar a:hover {
  background-color: #555;
}
.burgerNav { display:none; }

/* 🔄 Responsive toggle */
@media (max-width: 600px) {
  .navbar ul {
    flex-direction: column;
    width: 100%;
    display: none;
    align-items: flex-end; 
    margin-top:8px;
    gap:0.1rem;
  }
 
  .navbar ul li { 
    background-color: #6e6e6e; 
    width: 100%;               /* Full width */
    text-align: right;         /* Align text to the right */
    padding: 0.2rem;     /* Add spacing */
    list-style: none;
    transition: background 0.3s ease;

  }
  .navbar ul.active {
    display: flex !important;
  }
  .navbar li:hover {
    background: #555;       /* Hover effect on entire <li> */
  }

  .navbar li a {
    display: block;            /* Make <a> fill the <li> */
    color: inherit;
    text-decoration: none;
  }

  .burgerNav {
    display: block;
    cursor: pointer;
    font-size: 1.5rem;
    margin-left: auto;
  }
}

/* Section styling */
.section {
  flex: 1;
  width: 100%;
  display: none;
  overflow: auto;
  padding: 1rem;
}
.section.active {
  display: block;
}

#map {
  flex: 1;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: hidden;
}
#mapContainer {
  position: relative;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.mapLayerBtn{
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 4px 4px;
  font-size: 12px;
  cursor: default;
  margin-right:4px;
}

/* Code-Block */
.codeBlock {
  background-color: #efebe9;
  border-left: 2px solid #e4002a;
  border-bottom: 2px solid #e4002a;
  border-top: none;
  border-right: none;
  border-radius: 0 0.2rem 0 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  margin: 1rem 0;
  overflow-x: auto;
  position: relative;
  max-width: 80%;
  max-height:500px;
}
.codeHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  padding: 0 0.5rem;
  font-size: 0.95rem;
  font-weight: bold;
  color: #302f2f;
}

.codeTitle {
  flex-grow: 1;
}

.codeDivider {
  border: none;
  border-top: 1px solid #302f2f;
  margin: 0.5rem 0;
}

.codeBlock pre {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  background-color: #efebe9;
}
.copyBtn {
  background-color: #eee;
  border: 1px solid #bbb;
  border-radius: 4px;
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.copyBtn:hover {
  background-color: #ddd;
}