
:root {
  --backcolorrgba: rgba(0, 0, 0, 0.9); /* Black with some opacity */
  --fontcolor: white;
}

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
  background: #f0f2f5;
}

#map {
  height: 100vh;
  width: 100vw;
  pointer-events: all !important;
}

.toolbar {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 10px 14px;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(6px);
}

.toolbar button {
  font-size: 1em;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: linear-gradient(to bottom, #ffffff, #f1f1f1);
  color: #333;
  transition: background 0.2s, transform 0.1s;
}

.toolbar button:hover {
  background: #e9e9f9;
}

.toolbar button:active {
  background: #dcdcf2;
  transform: scale(0.97);
}

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  width: 90vw;
  max-width: 420px;
  box-sizing: border-box;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

#formModal label,
#loginModal label {
  display: block;
  margin-top: 16px;
  font-weight: 600;
  color: #333;
}

#formModal input,
#formModal select,
#loginModal input {
  width: 100%;
  font-size: 1em;
  padding: 8px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

#formModal button,
#loginModal button {
  margin-top: 20px;
  padding: 10px 16px;
  font-weight: bold;
  background-color: #1578fa;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

#formModal button:hover,
#loginModal button:hover {
  background-color: #0d60d8;
}

.street-label {
  font-size: 13px;
  color: white;
  -webkit-text-stroke: 1px black;
  text-shadow: 1px 1px 2px black;
  font-weight: bold;
  white-space: nowrap;
  pointer-events: none;
}


#contextMenu {
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 10px;
  box-shadow: 0px 2px 6px rgba(0,0,0,0.1);
}

#contextMenu button {
  background-color: #f1f1f1;
  border: none;
  padding: 8px;
  margin: 5px;
  cursor: pointer;
}

#contextMenu button:hover {
  background-color: #ddd;
}



/* Container holds all messages and is fixed at the bottom center */
#messageContainer {
    position: fixed;
    top: 8px;           /* Use 'top' instead of 'bottom' */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10000;
}

/* Message styling updated to remove fixed positioning */
.message-box {
    background: var(--backcolorrgba);
    color: var(--fontcolor);
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 1rem;
    text-align: center;
    opacity: 1;            /* Fully visible */
    z-index: 20000;
    width: 200px;
    word-wrap: break-word;      /* For older browsers */
    overflow-wrap: break-word;  /* Modern equivalent */
}


