/* Ensure the map fills the entire screen */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: none;  /* Keep background transparent */
}

header {
  display: flex;
  justify-content: center;  /* Center the header content horizontally */
  position: absolute;
  top: 0;
  width: 100%;  /* Header spans the full width */
  padding: 10px;
  z-index: 1000;  /* Ensure the header stays above the map */
  background: none;
}

.logo-text-container {
  display: flex;
  align-items: center;
  gap: 10px;  /* Space between the logo and text */
  background-color: rgba(0, 0, 0, 0.7);  /* Semi-transparent black background */
  padding: 10px;
  border-radius: 8px;  /* Smooth corner radius */
}

.logo {
  height: 50px;
}

.logo-text-container span {
  color: white;  /* Set font color to white */
  font-size: 24px;
  font-weight: bold;
}

/* Ensure the map takes the rest of the screen space */
#map {
  flex: 1;
  height: 100vh;
}


footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 10px;
  height: 40px;
}

#speed-box {
  position: absolute;
  background-color: white;
  border: 1px solid black;
  padding: 5px;
  pointer-events: none;
  z-index: 1000;
  font-size: 14px;
}

/* Field info box */
#field-info {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.7);  /* Átlátszó fekete háttér */
  color: white;
  border: 1px solid black;
  padding: 10px;
  width: 200px;
  top: 50%;  /* Desktop: Középen */
  left: 10px;
  transform: translateY(-50%);
  z-index: 1000;
  font-size: 14px;
  border-radius: 8px;
}

/* Media query for mobile devices */
@media (max-width: 768px) {
  #field-info {
    top: auto;
    bottom: 10px;  /* Bal alsó sarok */
    left: 10px;
    width: 150px;
    font-size: 12px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
  }
}

