/* === Base Styles === */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #2c3e50, #3498db);
  color: #fff;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 0.5rem;
  box-sizing: border-box;
  overflow-x: hidden;
}

.container {
  width: 100%;
  height: 90%;
  max-width: 1200px;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

/* === Header === */
h1 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 0.5rem;
  text-align: center;
  width: 100%;
}

/* === New Flex Content Block === */
.content {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

/* === Output Panel === */
#output {
  background-color: rgba(255, 255, 255, 0.1);
  margin: 0;
  margin-top: 0px;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 1rem;
  line-height: 1.5;
  flex: 1 1 50%;
  box-sizing: border-box;
  white-space: pre-wrap;
  min-width: 200px;
}

/* === Map Section === */
#map {
  flex: 1 1 50%;
  min-height: 300px;
  height: 90%;
  border-radius: 4px;
  box-sizing: border-box;
  min-width: 200px;
}

/* === Utility === */
.hidden {
  display: none !important;
}

/* === Responsive: stack vertically on small screens === */
@media (max-width: 768px) {
  .content {
    flex-direction: column;
  }

  h1 {
    font-size: 1rem;
  }
  
  #map {
    height: 300px; /* or more if needed */
    width: 100%;
  }
  
  #output {
    font-size: 0.8rem;
    width: 100%;
  }
}

