
/*Lato and Merriweather font from Google Fonts*/
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap');

*{
  --network-width: 85vw;
  --highlight-colour: #F5F4F6;
  --header-background-colour: #E5E4E8;
  --header-font: "Lato", sans-serif;
  --header-font-weight: 500;
  --sub-header-font-weight: 400;
  --input-label-font: "Merriweather", serif;
  --input-label-font-weight: 400;
}

#network_canvas {
  height: 87vh;
  width: var(--network-width);
}

.react-flow__node-default,
  .react-flow__node-tensor,
  .react-flow__node-tensor,
  .react-flow__node-tensor{
    border: 2px solid #000000;
    border-radius: 5px;
    background: white;
  }

.invisible-node {
  height: 15px;
  width: 15px;
  background: white;
  cursor: move;
}

.tensor-description{
  margin: 0.5em;
  text-align: center;
  font-size: 8.5px;
  font-family: var(--input-label-font);
}

.tensor-id{
  margin: 0.5em;
  text-align: center;
  font-size: 12px;
  font-family: var(--input-label-font);
}

/*used for the color menu*/
.color-menu {
  background: white;
  border-style: solid;
  box-shadow: 10px 19px 20px rgba(0, 0, 0, 10%);
  position: absolute;
  z-index: 10;
  padding: 5px;
  align-items: center;
}

/*used for the drag and drop*/
.menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 87vh; 
  width: calc(100vw - var(--network-width));
  border-left: 1px black solid;
  padding-bottom: 3vh;

  overflow: scroll;
}


.dndflow {
  flex-direction: row;
  display: flex;
  flex-grow: 1;
  height: 100%;
}

.dndflow .reactflow-wrapper {
  flex-grow: 1;
  height: 100%;
}

.menu-submit-button{
  background-color: #FFFFFF;
  border-radius: 2px;
  border: 1px solid #1a192b;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 70px;
  font-size: 15px;
  margin: 5px 0px;
}

.menu-submit-button:hover{
  background-color: var(--highlight-colour);
}

.hiddenResults{
  display: none;
}

.main-text {
  font-size: 14px;
  font-family: var(--header-font);
  font-weight: var(--sub-header-font-weight);
}

.menu-operation {
  width: 80%;
  height: 40px;
  background-color: #FFFFFF;
  border-radius: 20px;
  border: 1px solid #1a192b;
  margin: 5px 0px; /*top/bottom margin and right/left margin*/
  align-items: center;
  font-size: 18px;
  font-family: var(--header-font);
  font-weight: var(--sub-header-font-weight);
  flex-shrink: 0;

}

.menu-operation:hover{
  background-color: var(--highlight-colour);
}

.dnd-tensor {
  display: flex;
  justify-content: center;
  cursor: move;
  flex-direction: column;
  height: 60px;
  font-size: 16px;
  font-family: var(--header-font);
  font-weight: var(--sub-header-font-weight);
}

.dnd-tensor > div > input {
  width: 30px;
  font-size: 12px;
  margin-left: 3px;
}

.dnd-tensor > div {
  font-size: 10px;
}

.menu-input{
  width: 70px;
  height: 10px;
  margin: 2px 0px;
  font-size: 12px;
  font-family: var(--input-label-font);
  font-weight: var(--input-label-font-weight);
}

.active-menu-operation{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 80%;
  flex-shrink: 0;
}

/*Anything with .menu-operation that is a direct child of .active-menu-operation*/
.active-menu-operation > .menu-operation {
  width: 100%;
}

.error-message{
  text-align: center;
  font-size: 12px;
  font-family: var(--input-label-font);
  color: #D2042D;

}

.backend-error{
  margin-bottom: 20px;
}

.menu-input-container{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.menu-input-label{
  font-size: 14px;
  font-family: var(--input-label-font);
  font-weight: var(--input-label-font-weight);
}

.menu-section-label {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  color: black;
  background-color: var(--header-background-colour);
  margin: 8px 0px 2px 0px;
  height: 30px;
  font-size: 20px;
  font-family: var(--header-font);
  font-weight: var(--header-font-weight);
}


.edge-input-container {

}

.edge-input-label {
  font-size: 14px;
  font-family: var(--input-label-font);
}

.edge-input-text {
  width: 60px;
  font-family: var(--input-label-font);
}

.edge-input-number {
  width: 10px;
  font-family: var(--input-label-font);
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

.edge-submit-button{
  font-size: 12px;
  width: 60px; 
  font-family: var(--input-label-font);
  background: #ffffff;
  border-radius: 3px;
  border: 1px solid #1a192b;
}

.edge-toggle{
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  background: #ffffff;
  padding: 5px;
  border-radius: 5px;
  font-size: 14px;
  pointer-events: all;
  font-family: var(--input-label-font);
  
}

.edge-input-container{
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  background: #ffffff;
  padding: 5px;
  border-radius: 5px;
  font-size: 12px;
  pointer-events: all;
  font-family: var(--input-label-font);
}

::placeholder {
  color: #AAAAAA;
}

.paddingWrapper {
  padding-top: 10px;
  padding-bottom: 5px;
  display: inline-block;
}

.inputWrapper {
  background-color: #FFFFFF;
  border-radius: 2px;
  border: 1px solid #1a192b;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  font-size: 12px;
  margin: 5px 0px;
  overflow: hidden;
  cursor: pointer;
}
.fileInput {
  cursor: pointer;
  height: 100%;
  position:absolute;
  top: 0;
  right: 0;
  z-index: 99;
  font-size:12px;
  height:16px;
  width: 80px;
  /*Opacity settings for all browsers*/
  opacity: 0;
  -moz-opacity: 0;
  filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0)
}

#input-label {
  font-size: 10px;
  font-family: var(--input-label-font);
  font-weight: var(--input-label-font-weight);

}

.final-submit {
  background-color: #1F6E93;
  color: white;
  border-radius: 5px;
  border: 1px solid #1a192b;
  width: 100%;
  height: 40px;
  font-family: var(--header-font);
  font-weight: var(--sub-header-font-weight);
  flex-shrink: 0;
  margin-bottom: 10px;
  font-size: 16px;
}

.final-submit:hover .download-path:hover{ 
  background-color: #2d6985;
}

#results{
  background-color: #1F6E93;
  color: white;
  border-radius: 5px;
  border: 1px solid #1a192b;
  width: 80%;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--header-font);
  font-weight: var(--sub-header-font-weight);
  flex-shrink: 0;
  margin-bottom: 25px;
  font-size: 16px;

}

#download-path{
  color: white;

}

/* This is the information for the colour slider */

.slider-container {
    width: 80%;
}

.custom-slider-range:hover {
    opacity: 1.2;

}

.custom-slider-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 25px;
    background: linear-gradient(to right,
      #ff9b99, #ffee99, #bbff99); /* If the colours of the tensors are changed then the gradient will need to be changed */
    outline: none;
    opacity: 0.8;
    transition: opacity 0.4s;
    border-radius: 15px;
    accent-color: grey;
}

.custom-slider-range::-moz-range-thumb {
    width: 25px;
    height: 25px;
    background: #fff;
    border: 2px solid #000;
    border-radius: 50%;
    cursor: pointer;
}

/* these are the necessary styles for React Flow, they get used by base.css and style.css */
.react-flow {
    direction: ltr;
}
.react-flow__container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}
.react-flow__pane {
  z-index: 1;
  cursor: -webkit-grab;
  cursor: grab;
}
.react-flow__pane.selection {
    cursor: pointer;
  }
.react-flow__pane.dragging {
    cursor: -webkit-grabbing;
    cursor: grabbing;
  }
.react-flow__viewport {
  transform-origin: 0 0;
  z-index: 2;
  pointer-events: none;
}
.react-flow__renderer {
  z-index: 4;
}
.react-flow__selection {
  z-index: 6;
}
.react-flow__nodesselection-rect:focus,
.react-flow__nodesselection-rect:focus-visible {
  outline: none;
}
.react-flow .react-flow__edges {
  pointer-events: none;
  overflow: visible;
}
.react-flow__edge-path,
.react-flow__connection-path {
  stroke: #000000;
  stroke-width: 2;
  fill: none;
}
.react-flow__edge {
  pointer-events: visibleStroke;
  cursor: pointer;
}
.react-flow__edge.animated path {
    stroke-dasharray: 5;
    -webkit-animation: dashdraw 0.5s linear infinite;
            animation: dashdraw 0.5s linear infinite;
  }
.react-flow__edge.animated path.react-flow__edge-interaction {
    stroke-dasharray: none;
    -webkit-animation: none;
            animation: none;
  }
.react-flow__edge.inactive {
    pointer-events: none;
  }
.react-flow__edge.selected,
  .react-flow__edge:focus,
  .react-flow__edge:focus-visible {
    outline: none;
  }
.react-flow__edge.selected .react-flow__edge-path,
  .react-flow__edge:focus .react-flow__edge-path,
  .react-flow__edge:focus-visible .react-flow__edge-path {
    stroke: #3dc328;
    stroke-width: 2;
  }
.react-flow__edge-textwrapper {
    pointer-events: all;
  }
.react-flow__edge-textbg {
    fill: white;
  }
.react-flow__edge .react-flow__edge-text {
    pointer-events: none;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
  }
.react-flow__connection {
  pointer-events: none;
}
.react-flow__connection .animated {
    stroke-dasharray: 5;
    -webkit-animation: dashdraw 0.5s linear infinite;
            animation: dashdraw 0.5s linear infinite;
  }
.react-flow__connectionline {
  z-index: 1001;
}
.react-flow__nodes {
  pointer-events: none;
  transform-origin: 0 0;
}
.react-flow__node {
  position: absolute;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  pointer-events: all;
  transform-origin: 0 0;
  box-sizing: border-box;
  cursor: -webkit-grab;
  cursor: grab;
}
.react-flow__node.dragging {
    cursor: -webkit-grabbing;
    cursor: grabbing;
  }
.react-flow__nodesselection {
  z-index: 3;
  transform-origin: left top;
  pointer-events: none;
}
.react-flow__nodesselection-rect {
    position: absolute;
    pointer-events: all;
    cursor: -webkit-grab;
    cursor: grab;
  }
.react-flow__handle {
  position: absolute;
  pointer-events: none;
  min-width: 5px;
  min-height: 5px;
  width: 6px;
  height: 6px;
  background: #1a192b;
  border: 1px solid white;
  border-radius: 100%;
}
.react-flow__handle.connectionindicator {
    pointer-events: all;
    cursor: crosshair;
  }
.react-flow__handle-bottom {
    top: auto;
    left: 50%;
    bottom: -4px;
    transform: translate(-50%, 0);
  }
.react-flow__handle-top {
    left: 50%;
    top: -4px;
    transform: translate(-50%, 0);
  }
.react-flow__handle-left {
    top: 50%;
    left: -4px;
    transform: translate(0, -50%);
  }
.react-flow__handle-right {
    right: -4px;
    top: 50%;
    transform: translate(0, -50%);
  }
.react-flow__edgeupdater {
  cursor: move;
  pointer-events: all;
}
.react-flow__panel {
  position: absolute;
  z-index: 5;
  margin: 15px;
}
.react-flow__panel.top {
    top: 0;
  }
.react-flow__panel.bottom {
    bottom: 0;
  }
.react-flow__panel.left {
    left: 0;
  }
.react-flow__panel.right {
    right: 0;
  }
.react-flow__panel.center {
    left: 50%;
    transform: translateX(-50%);
  }
.react-flow__attribution {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.5);
  padding: 2px 3px;
  margin: 0;
}
.react-flow__attribution a {
    text-decoration: none;
    color: #999;
  }
@-webkit-keyframes dashdraw {
  from {
    stroke-dashoffset: 10;
  }
}
@keyframes dashdraw {
  from {
    stroke-dashoffset: 10;
  }
}
.react-flow__edgelabel-renderer {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.react-flow__edge.updating .react-flow__edge-path {
      stroke: #777;
    }
.react-flow__edge-text {
    font-size: 10px;
  }
.react-flow__node.selectable:focus,
  .react-flow__node.selectable:focus-visible {
    outline: none;
  }
.react-flow__node-default,
.react-flow__node-input,
.react-flow__node-output,
.react-flow__node-group {
  padding: 10px;
  border-radius: 3px;
  width: 150px;
  font-size: 12px;
  color: #222;
  text-align: center;
  border-width: 1px;
  border-style: solid;
  border-color: #1a192b;
  background-color: white;
}
.react-flow__node-default.selectable:hover, .react-flow__node-input.selectable:hover, .react-flow__node-output.selectable:hover, .react-flow__node-group.selectable:hover {
      box-shadow: 0 1px 4px 1px rgba(0, 0, 0, 0.08);
    }
.react-flow__node-default.selectable.selected,
    .react-flow__node-default.selectable:focus,
    .react-flow__node-default.selectable:focus-visible,
    .react-flow__node-input.selectable.selected,
    .react-flow__node-input.selectable:focus,
    .react-flow__node-input.selectable:focus-visible,
    .react-flow__node-output.selectable.selected,
    .react-flow__node-output.selectable:focus,
    .react-flow__node-output.selectable:focus-visible,
    .react-flow__node-group.selectable.selected,
    .react-flow__node-group.selectable:focus,
    .react-flow__node-group.selectable:focus-visible {
      box-shadow: 0 0 0 0.5px #1a192b;
    }
.react-flow__node-default.selectable.selected,
  .react-flow__node-tensor.selectable:focus,
  .react-flow__node-tensor.selectable:focus-visible,
  .react-flow__node-tensor.selectable.selected{
    border: 2px solid #3dc328;
    border-radius: 5px;
  }
.react-flow__node-group {
  background-color: rgba(240, 240, 240, 0.25);
}
.react-flow__nodesselection-rect,
.react-flow__selection {
  background: rgba(0, 89, 220, 0.08);
  border: 1px dotted rgba(0, 89, 220, 0.8);
}
.react-flow__nodesselection-rect:focus,
  .react-flow__nodesselection-rect:focus-visible,
  .react-flow__selection:focus,
  .react-flow__selection:focus-visible {
    outline: none;
  }
.react-flow__controls {
  box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.08);
}
.react-flow__controls-button {
    border: none;
    background: #fefefe;
    border-bottom: 1px solid #eee;
    box-sizing: content-box;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 16px;
    height: 16px;
    cursor: pointer;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
    padding: 5px;
  }
.react-flow__controls-button:hover {
      background: #f4f4f4;
    }
.react-flow__controls-button svg {
      width: 100%;
      max-width: 12px;
      max-height: 12px;
    }
.react-flow__controls-button:disabled {
      pointer-events: none;
    }
.react-flow__controls-button:disabled svg {
        fill-opacity: 0.4;
      }
.react-flow__minimap {
  background-color: #fff;
}
.react-flow__minimap svg {
  display: block;
}
.react-flow__resize-control {
  position: absolute;
}
.react-flow__resize-control.left,
.react-flow__resize-control.right {
  cursor: ew-resize;
}
.react-flow__resize-control.top,
.react-flow__resize-control.bottom {
  cursor: ns-resize;
}
.react-flow__resize-control.top.left,
.react-flow__resize-control.bottom.right {
  cursor: nwse-resize;
}
.react-flow__resize-control.bottom.left,
.react-flow__resize-control.top.right {
  cursor: nesw-resize;
}
/* handle styles */
.react-flow__resize-control.handle {
  width: 4px;
  height: 4px;
  border: 1px solid #fff;
  border-radius: 1px;
  background-color: #3367d9;
  transform: translate(-50%, -50%);
}
.react-flow__resize-control.handle.left {
  left: 0;
  top: 50%;
}
.react-flow__resize-control.handle.right {
  left: 100%;
  top: 50%;
}
.react-flow__resize-control.handle.top {
  left: 50%;
  top: 0;
}
.react-flow__resize-control.handle.bottom {
  left: 50%;
  top: 100%;
}
.react-flow__resize-control.handle.top.left {
  left: 0;
}
.react-flow__resize-control.handle.bottom.left {
  left: 0;
}
.react-flow__resize-control.handle.top.right {
  left: 100%;
}
.react-flow__resize-control.handle.bottom.right {
  left: 100%;
}
/* line styles */
.react-flow__resize-control.line {
  border-color: #3367d9;
  border-width: 0;
  border-style: solid;
}
.react-flow__resize-control.line.left,
.react-flow__resize-control.line.right {
  width: 1px;
  transform: translate(-50%, 0);
  top: 0;
  height: 100%;
}
.react-flow__resize-control.line.left {
  left: 0;
  border-left-width: 1px;
}
.react-flow__resize-control.line.right {
  left: 100%;
  border-right-width: 1px;
}
.react-flow__resize-control.line.top,
.react-flow__resize-control.line.bottom {
  height: 1px;
  transform: translate(0, -50%);
  left: 0;
  width: 100%;
}
.react-flow__resize-control.line.top {
  top: 0;
  border-top-width: 1px;
}
.react-flow__resize-control.line.bottom {
  border-bottom-width: 1px;
  top: 100%;
}