 body {
      font-family: 'Nunito', sans-serif;
      background-color: #1A1A1A;
      color: #F0F0F0;
      margin: 0;
      padding: 2em;
      text-align: center;
    }
    .header-flex {
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: left;
      gap: 1.5em;
      margin-bottom: 1.5em;
      max-width: 500px;      
      margin-left: auto;     
      margin-right: auto;   
}

.logo-left {
  margin-bottom: 1em;
  display: flex;
  justify-content: flex-start; 
}

.namd-logo {
  height: 100px;
  margin: 0;
  display: block;
}
  .header-titles {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.header-titles h1 {
  margin: 0;
  text-align: center;
  font-family: "Chelsea Market", system-ui;
  font-size: 2.4em;
}

    h1 {
      font-size: 1.8em;
      margin: 0.2em 0;
    }

    .container {
      background-color: #1A1A1A;
      color: #35C0ED;
      border: 1px solid #35C0ED;
      padding: 2em;
      border-radius: 8px;
      max-width: 500px;
      margin: 0 auto;
      text-align: center;
    }
    label {
      font-weight: bold;
      display: block;
      margin-bottom: 0.5em;
    }
    input[type="text"] {
      width: 100%;
      padding: 0.6em;
      font-size: 1em;
      border: 1px solid #35C0ED;
      border-radius: 4px;
      margin-bottom: 1em;
      background-color: #1A1A1A;   
      color: #35C0ED; 
    }

    input[type="text"]:focus {
  border: 1.5px solid #ffbb00; 
  outline: none; 
}
    button {
      background-color: #35C0ED;
      border: 1px solid #1A1A1A;
      color: #1A1A1A;
      padding: 0.7em 1.5em;
      font-size: 1em;
      border-radius: 4px;
      cursor: pointer;
      transition: ease-in;
    }

    button:hover {
      background-color: #1A1A1A;
      border: 1px solid transparent;
      color: #35C0ED;
      padding: 0.7em 1.5em;
      font-size: 1em;
      border-radius: 4px;
      cursor: pointer;
      box-shadow: 4px 4px 0px rgba(26,26,26,0.85);
    }
    #result {
      margin-top: 1.5em;
      text-align: left;
      font-size: 0.95em;
      background-color: #1A1A1A;
      padding: 1em;
      border-radius: 6px;
      border: 1px solid #35C0ED;
      white-space: pre-wrap;
    }


    a {
      color: #F0F0F0;
      text-decoration: underline;
    }

    .warning {
      background-color: #1A1A1A;
      color: #35C0ED;
      padding: 1em;
      margin-bottom: 1em;
      font-size: 0.9em;
      border-bottom: 2px solid #35C0ED;
      text-align: ;
    }
    .meta {
      font-size: 0.9em;
      color: #F0F0F0;
      margin-top: 1em;
    }

    /* Footer styles */
    footer {
      margin-top: 3em;
      font-size: 0.9em;
      color: #F0F0F0;
    }


.tooltip {
  position: relative;
  cursor: help;
  text-decoration: underline;
  color: #F0F0F0;
}

.tooltiptext {
  visibility: hidden;
  width: 280px;
  background-color: #35C0ED;
  color: #F0F0F0;
  text-align: left;
  padding: 0.8em;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
  bottom: 125%; 
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.85em;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;

}


/* Mobile: stack layout and reduce padding */
@media (max-width: 600px) {
  body {
    padding: 12px;
    font-size: 16px;
  }

  header, footer {
    text-align: center;
  }

  .logo-left {
    max-width: none;
    margin: 0 0 1em 0;
    display: flex;
    justify-content: flex-start;
  }

  .namd-logo {
    height: 60px; /* Smaller logo on mobile */
    margin: 0;
    display: block;
  }

  .geocoder-container {
    flex-direction: column;
    gap: 12px;
  }

  input[type="text"] {
    width: 100%;
    font-size: 16px;
  }

  button {
    width: 100%;
    font-size: 16px;
  }

  .tooltiptext {
    font-size: 14px;
    max-width: 90vw;
  }
}
