html,
body {
  height: 100%;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  background: #1F2029;
  color: #000;
}

progress {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 5px;
  border: 0;
  z-index: 100;
}

.dwv {
  height: 80%;
}

/* Layers */
.layerGroup {
  position: relative;
  padding: 0;
  display: flex;
  justify-content: center;
  height: 100%;
}
.layer {
  position: absolute;
  pointer-events: none;
}

/* drag&drop */
.dropBox {
  text-align: center;
  width: 50%; height: 75%;
}
.dropBoxBorder {
  margin: 20px auto;
  border: 5px dashed #ccc;
}
.dropBoxBorder.hover {
  margin: 20px auto;
  border: 5px dashed #cc0;
}
#input-file-link {
  text-decoration-line: underline;
}

.legend {
  text-align: center;
  font-size: 8pt;
  margin: 1em;
}

/* toolbar */
.toolbar {
  font: 14px arial, sans-serif;
  margin-bottom: 5px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.toolbar button, select {
  margin: 10px 3px;
  padding: 10px 10px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  height: 40px;
  border: 1px solid #e0e0e0;
  background-color: #fff;
  color: #757575;
}
.toolbar button:enabled:hover, select:enabled:hover {
  background-color: #f5f5f5;
  cursor: pointer;
}
.toolbar button:disabled, select:disabled {
  color: #bdbdbd;
  cursor: default;
}
.toolbar .active {
  background-color: #f0f1f9 !important;
}
.toolbar button:enabled path {
  fill: #757575;
}
.toolbar button.active:enabled path {
  fill: #4a5bb9;
}
.toolbar button:disabled path {
  fill: #bdbdbd;
}

.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */

  .modal-content {
    background-color: #fefefe;
    margin: 5% auto; /* 5% from the top and centered */
    padding: 20px;
    width: 80%;
    height: 80%;
    overflow: auto;
  }

  input, label {
    vertical-align: middle;
    margin-right: 10px;
  }

  .modal-content-scroll {
    margin-right: 20px;
    height: 80%;
    overflow: auto;

    table {
      width: 100%;
      border-collapse: collapse;
    }
    tr {
      border: solid thin;
      border-color: #ddd;
    }
    th {
      text-align: left;
    }
    td, th {
      padding: 10px;
    }
  }
}
#scroll-simpl0,
#windowlevelpresets-simpl0,
#toggleorientation-simpl0,
#tags-simpl0,
.legend-v{
  display: none;
}
@media (prefers-color-scheme: dark) {
  body {
    color: #fff;
    width: 100%;
    background: #1F2029;
    overflow-x: hidden;
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    line-height: 30px;
  }
  
  .legend a {
    color: #ccc;
  }
  .toolbar button, select {
    border: 1px solid #2f2f2f;
    background-color: #fff;
  }
  .toolbar button, select {
    color: #fff;
    background-color: #333;
  }
  .toolbar button:enabled:hover, select:enabled:hover {
    background-color: #555;
  }
  .toolbar button:disabled, select:disabled {
    color: #aeaeae;
  }
  .toolbar .active {
    background-color: #404040 !important;
  }
  .toolbar button:enabled path {
    fill: #fff;
  }
  .toolbar button:disabled path {
    fill: #aeaeae;
  }
  .modal {
    .modal-content {
      background-color: #424242;
    }
    .modal-content-scroll {
      tr {
        border: solid thin;
        border-color: #666;
      }
    }
  }
}