html,
body {
  height: 100%;
  font-family: Helvetica, sans-serif;
  margin: 0;
  font-size: small;
  background-color: #2f3033;
  color: white;
}

.container {
  height: 100%;
  width: 100%;
  display: grid;
  grid-template-rows: 50px 3fr 1fr;
  grid-template-columns: 0px 1fr 400px 0px;
  margin: 0;
  gap: 0px 10px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  grid-row: 1;
  grid-column: 2 / -2;
}

.map-container {
  grid-row: span 2;
  grid-column: 2;
  width: 100%;
  height: 100%;
}

.parameter-container {
  grid-row: 2;
  grid-column: 3;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  row-gap: 10px;
  overflow: hidden;
}

.solution-container {
  grid-row: 3;
  grid-column: 3;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.graph-container {
  grid-row: 2;
  grid-column: 3;
}

input {
  background: transparent;
  height: 30px;
  box-sizing: border-box;
  color: #dfe2e6;
  border-width: 0.5px;
  border-color: #dfe2e6;
  border-radius: 5px;
  outline: none;
  box-shadow: none;
  appearance: none;
}

.label-seg {
  display: flex;
  align-items: center;
  width: 50px;
}

button {
  height: 30px;
  border-width: 1px;
  border-radius: 5px;
  border-style: solid;
  background-color: transparent;
  color: white;
  cursor: pointer;
}

form {
  display: flex;
  flex-direction: column;
  row-gap: 10px;
  height: 100%;
}

#parameter-div {
  display: flex;
  flex-direction: column;
  row-gap: 10px;
  height: 100%;
  overflow: auto;
}

#base-params-div {
  display: flex;
  flex-direction: column;
  row-gap: 10px;
}

#flow-param-container {
  display: flex;
  flex-direction: column;
  row-gap: 10px;
  /* height: 100%; */
}

#load-lp-container,
#search-gemeinde-container {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  width: 100%;
  height: 30px;
}

/* #load-lp-button, */
#search-gemeinde-button {
  flex: 1;
  color: #ffffff;
  width: 10em;
  border: 0.1em solid;
  border-radius: 5px;
  border-color: #ffffff;
  cursor: pointer;
}

/* #load-lp-button:hover, */
#search-gemeinde-button:hover {
  color: white;
  background-color: black;
}

input[name="upload-id"],
input[name="zip-code"] {
  flex: 1;
}

button[type="submit"] {
  margin-bottom: 1em;
  border-color: #2d70f4;
  background-color: #2d70f4;
  color: white;
}

button[type="submit"]:hover {
  background-color: #1256df;
  color: white;
}

button[type="submit"]:disabled {
  cursor: not-allowed;
}

.control-button {
  width: 100%;
  border-radius: 5px;
  cursor: pointer;
}

#copy-upload-id-container {
  width: 100%;
  height: 30px;
  display: flex;
  flex-direction: row;
  box-sizing: border-box;
  border: 1px solid;
  border-color: white;
  border-radius: 5px;
  margin: 0;
}

#upload-id-div {
  flex: 3;
  border-radius: 5px;
  text-align: center;
  align-content: center;
}

#copy-upload-id-button {
  width: 28px;
  height: 28px;
  border-width: 0;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(24, 24, 24);
}

#result-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  row-gap: 1em;
}

#open-image-container {
  width: 100%;
  display: flex;
  flex-direction: row;
  column-gap: 1em;
}

.open-image-button {
  border-color: rgb(72, 221, 72);
  color: rgb(72, 221, 72);
  cursor: pointer;
  flex: 1;
}

.open-image-button:hover {
  background-color: rgb(72, 221, 72);
  color: white;
}

#reset-button {
  border-color: #e1252e;
  color: #e1252e;
  cursor: pointer;
}

#reset-button:hover {
  border-color: #cb444a;
  background-color: #cb444a;
  color: white;
}

#drop-overlay {
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
  font-size: 2em;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  z-index: 9999;
  transition: opacity 0.3s ease;
  pointer-events: none;
  color: white;
}

#drop-overlay.active {
  opacity: 1;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.leaflet-draw-draw-polyline {
  filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

.leaflet-control-zoom-in,
.leaflet-control-zoom-out,
.leaflet-control-attribution,
.leaflet-draw-edit-edit {
  filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
}
