:root {
  --border-color: #cacaca;
  --background-color: #ffffff;
  --background-box-title: #f7f7f7;
}

/* Main elements */

html, body {
  margin: 0px;
  padding: 0px;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  font-family: 'Roboto', sans-serif;
}

header {
  height: 66px;
  border-bottom: 1px solid var(--border-color);
  padding-left: 20px;
  background-color: #f5f5f5;
}
header h2 {
  margin: 0px;
  line-height: 66px;
  user-select: none;
}
header a {
  color: black;
}

.metadata-h2 {
  font-family: 'Courier New', Courier, monospace;
  color: #555555;
  font-style: italic;
  font-size: 0.6em;
  vertical-align: super;
}

.wrapper {
  display: flex;
  width: 100%;
  height: calc(100vh - 67px - 32px);
}

.col {
  overflow: auto;
  width: 320px;
  height: 100%;
  border-right: 1px solid var(--border-color);
}

.drag-drawflow {
  line-height: 40px;
  border-bottom: 1px solid var(--border-color);
  padding-left: 20px;
  cursor: move;
  user-select: none;
}

.drag-drawflow-node {
  border-bottom: 0px;
}

.menu {
  position: absolute;
  height: 40px;
  display: block;
  background: white;
  width: 100%;
}
.menu ul {
  padding: 0px;
  margin: 0px;
  line-height: 40px;
}
.menu ul li {
  display: inline-block;
  margin-left: 10px;
  border-right: 1px solid var(--border-color);
  padding-right: 10px;
  line-height: 40px;
  cursor: pointer;
}
.menu ul li.selected {
  font-weight: bold;
}

.bar-zoom {
  float: right;
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  font-size: 24px;
  color: white;
  padding: 5px 10px;
  background: #555555;
  border-radius: 4px;
  border-right: 1px solid var(--border-color);
  z-index: 5;
}
.bar-zoom svg {
  cursor: pointer;
  padding-left: 10px;
}
.bar-zoom svg:nth-child(1) {
  padding-left: 0px;
}

#drawflow {
  position: relative;
  width: calc(100vw - 321px);
  height: calc(100% - 50px);
  top: 40px;
  background: var(--background-color);
  background-size: 25px 25px;
  background-image:
   linear-gradient(to right, #f1f1f1 1px, transparent 1px),
   linear-gradient(to bottom, #f1f1f1 1px, transparent 1px);
}

#messages-bar {
  width: 100%;
  display: inline-block;
  text-align: left;
  padding: 6px 8px;
  border-top: 1px solid var(--border-color);
}

.noclickable {
  pointer-events: none;
}

@media only screen and (max-width: 768px) {
  .col {
    width: 50px;
  }
  .col .drag-drawflow span {
    display: none;
  }
  #drawflow {
    width: calc(100vw - 51px);
  }
}

/* Drawflow elements */

.drawflow .drawflow-node, .modal-content {
  background: var(--background-color);
  border: 1px solid var(--border-color);
  -webkit-box-shadow: 0 2px 15px 2px var(--border-color);
  box-shadow: 0 2px 15px 2px var(--border-color);
  padding: 0px;
  width: 200px;
}

.drawflow .drawflow-node.selected  {
  background: white;
  border: 1px solid #4ea9ff;
  -webkit-box-shadow: 0 2px 20px 2px #4ea9ff;
  box-shadow: 0 2px 20px 2px #4ea9ff;
}

.drawflow .drawflow-node.selected .title-box {
  color: #22598c;
  border-bottom: 1px solid #4ea9ff;
}

.drawflow .connection .main-path {
  stroke: #4ea9ff;
  stroke-width: 3px;
}

.drawflow .connection .point {
  stroke: var(--border-color);
  stroke-width: 2;
  fill: white;
}

.drawflow .connection .point.selected, .drawflow .connection .point:hover {
  fill: #4ea9ff;
}

.drawflow .drawflow-node .inputs, .drawflow .drawflow-node .outputs {
  width: 0px;
}

.drawflow .drawflow-node .drawflow_content_node {
  width: 100%;
  display: block;
}

.drawflow .drawflow-node .input, .drawflow .drawflow-node .output {
  position: absolute;
  top: 16px;
  height: 15px;
  width: 15px;
  border: 2px solid var(--border-color);
}

.drawflow .drawflow-node .input:hover, .drawflow .drawflow-node .output:hover {
  background: #4ea9ff;
}

.drawflow .drawflow-node .output {
  right: -10px;
}

.drawflow .drawflow-node .input {
  left: -10px;
  background: white;
}

.drawflow > .drawflow-delete {
  border: 2px solid #43b993;
  background: white;
  color: #43b993;
  -webkit-box-shadow: 0 2px 20px 2px #43b993;
  box-shadow: 0 2px 20px 2px #43b993;
}

.drawflow-delete, .drawflow-box12 {
  border: 2px solid #4ea9ff;
  background: white;
  color: #4ea9ff;
  -webkit-box-shadow: 0 2px 20px 2px #4ea9ff;
  box-shadow: 0 2px 20px 2px #4ea9ff;
  z-index: 4;
  font-weight: bold;
  font-size: large;
  font-family: monospace;
  text-align: center;
}

.drawflow-box12 {
  position: absolute;
  display: none;
  cursor: pointer;
  right: -15px;
  top: 30px;
  width: 30px;
  height: 30px;
  line-height: 30px;
  border-radius: 50%;
}

.drawflow-node .title-box {
  height: 50px;
  line-height: 50px;
  background: var(--background-box-title);
  border-bottom: 1px solid #e9e9e9;
  border-radius: 4px 4px 0px 0px;
  padding-left: 14px;
}

.drawflow .title-box svg {
  position: initial;
}

.drawflow-node .box {
  cursor: auto;
  padding: 10px 10px 10px 12px;
  font-size: 14px;
  color: #555555;
}

.drawflow-node .box p {
  margin-top: 5px;
  margin-bottom: 5px;
}

.drawflow-node .box label {
  margin-top: 5px;
  margin-bottom: 5px;
}

.drawflow-node.slack .title-box {
  border-radius: 4px;
}

.drawflow-node select, .drawflow-node textarea {
  padding-left: 4px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  height: 24px;
  line-height: 20px;
  font-size: 14px;
  width: 170px;
  color: #555555;
}

.drawflow-node input {
  padding-left: 4px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  height: 24px;
  line-height: 20px;
  font-size: 14px;
  color: #555555;
}

.drawflow-node.welcome {
  width: 270px;
}

.drawflow-node textarea {
  height: 100px;
}

/* Customizing HTML Input */

input::-webkit-outer-spin-button, input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
}
input:placeholder-shown, textarea:placeholder-shown {
  font-style: italic;
}

/* GeoDataFlow elements */

.module-box {
  padding-left: 10px;
  margin-right: 10px;
}
.module-box:hover {
  border-radius: 4px;
  background-color: #dfecf8;
  border: 1px solid var(--border-color);
}

.parameter-row {
  height: 26px;
  padding-left: 10px;
  padding-top: 8px;
}
.parameter-row:hover {
  border-radius: 4px;
  background-color: #d8ecf1;
  border: 1px solid var(--border-color);
  margin-right: 2px;
}
.parameter-icon {
  padding-left: 1px;
  padding-top: 1px;
}
.parameter-label {
  cursor: pointer;
  padding-left: 20px;
}

.parameter-noeditable {
  cursor: default;
}

.parameter-input {
  top: calc(50px + 10px + 8px + (var(--data-x) * 34px)) !important;
}

.parameter-box {
  margin-left: 10px;
  margin-top: 10px;
  margin-right: 20px;
  margin-bottom: 10px;
}
.parameter-text {
  margin-top: 5px;
  width: 100%;
}
.parameter-datepicker {
  margin-top: 5px;
  width: calc(100% - 42px);
}
.parameter-box .ui-datepicker-trigger {
  position: relative;
  top: 8px;
  margin-left: 3px;
  width: 28px;
  height: 28px;
}
.parameter-boolean {
  cursor: pointer;
  margin-left: -2px;
  width: 16px;
}
.parameter-select {
  margin-top: 4px;
  width: 100% !important;
  height:28px !important;
}
.parameter-button {
  cursor: pointer;
  margin-top: 4px;
  padding: 0 10px 0 10px !important;
  height:28px !important;
}
.parameter-button:hover {
  background-color: #d8ecf1;
}

/* The modal window of Nodes */

.modal-node {
  display: none;
  position: fixed;
  z-index: 7;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background-color: rgba(0,0,0,0.7);
}

.modal-content {
  position: relative;
  background-color: #fefefe;
  border-radius: 4px;
  padding: 2px;
  border: 1px solid #22598c;
  width: 400px; /* Could be more or less, depending on screen size */
}

.modal-node .close {
  color: #22598c;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close {
  padding-right: 10px;
}

@media only screen and (max-width: 768px) {
  .modal-content {
    width: 80%;
  }
}
