:root {
  --border-color: #cacaca;
  --background-color: #e2eaf2;
  --background-box-title: #f7f7f7;
  --background-node-box: #ffffff;
  --color-font: #122045;

  --btn-border: #89b5fa;








}

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

header {
  height: 66px;
  padding-left: 20px;
  background: var(--background-color);
}
header h2 {
  margin: 0px;
  line-height: 66px;
}
header a {
  color: black;
}


header .btn-bg-top{
  background-color: #ffffff;
  padding: 17px;
  position: absolute;
  right: 0;
  min-width: 231px;
  height: 68px;
  z-index: 1000;
  top: 0;
  margin: 25px;
  border-radius: 6px;

}


header .btn-bg-top .btn-primary {
    color: #fff;
    background-color: #4EA9FF;
    border-color: #4EA9FF;
}

header .btn-bg-top .btn-primary:hover {
  color: #fff;
  background-color: #3395f0;
  border-color: #3395f0;
}


header .btn-bg-top .btn-outline-primary {
  color: #4EA9FF;
  border-color: #4EA9FF;
}

header .btn-bg-top .btn-outline-primary:hover {
  color: #3395f0;
  border-color: #3395f0;
  background-color: #ecf1f6;
}


header .btn-bg-top .btn-check:focus+.btn-outline-primary, header .btn-bg-top .btn-outline-primary:focus {
  box-shadow: 0 0 0 0.1rem rgb(13 110 253 / 21%);
}

header .btn-bg-top .btn-check:focus+.btn-primary, header .btn-bg-top .btn-primary:focus {
  box-shadow: 0 0 0 0.1rem rgb(49 132 253 / 50%);
}


.them-edit-link {
  position: absolute;
  top: 10px;
  right: 100px;
  color: black;
  font-size: 40px;
}
.them-edit-link a {
  text-decoration: none;
}

.github-link{
  position: absolute;
  top: 10px;
  right: 20px;
  color: black;
}

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

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

.drag-drawflow {
  line-height: 50px;
  border-bottom: 1px solid var(--border-color);
  padding-left: 20px;
  cursor: move;
  user-select: none;
}
.menu {
  position: absolute;
  height: 40px;
  display: block;
  background: white;
  width: 100%;
}

.menu .menu-item .las {
  font-size: 18px;
  background-color: #e2eaf2;
  padding: 7px;
  border-radius: 100px;
  margin-right: 10px;
}


.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;
}

.btn-save {
  float: right;
  position: absolute;
  top: 10px;
  right: 168px;
  color: #122045ad;
  border: 1px solid var(--background-color);
  background: #e2eaf2;
  padding: 9px 17px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  z-index: 5;
  transition: all 0.3s linear;
    -webkit-transition: all 0.3s linear;
    -moz-transition: all 0.3s linear;
    -o-transition: all 0.3s linear;
    -ms-transition: all 0.3s linear;
}

.btn-save:hover {
  color: var(--btn-border);
  border: 1px solid var(--background-color);
  background: #f0f4f8;
  }

.btn-chat {
  float: right;
  position: absolute;
  top: 10px;
  right: 10px;
  color: #ffffff;
  border: 1px solid #89b5fa;
  background: #89b5fa;
  padding: 9px 17px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  z-index: 5;
  transition: all 0.3s linear;
    -webkit-transition: all 0.3s linear;
    -moz-transition: all 0.3s linear;
    -o-transition: all 0.3s linear;
    -ms-transition: all 0.3s linear;
}


.btn-chat:hover {
  color: #ffffff;
  border: 1px solid #9cc1fe;
  background: #9cc1fe;
  }

.btn-clear {
  float: right;
  position: absolute;
  top: 10px;
  right: 86px;
  color: var(--btn-border);
  border: 1px solid var(--btn-border);
  background: #ffffff;
  padding: 9px 17px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  z-index: 5;
}
.swal-wide{
    width:80% !important;
}

.btn-lock {
  float: left;
  position: absolute;
  bottom: 10px;
  left: 108px;
  display: flex;
  font-size: 24px;
  color: white;
  background: #ffffff;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  z-index: 5;
  cursor: pointer;
}

.btn-lock .las {
  padding: 8px;
  font-size: 23px;
  cursor: pointer;
  color: var(--color-font);
 
}



.btn-arrange {
  float: right;
  position: absolute;
  bottom: 10px;
  right: 200px;
  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;
  cursor: pointer;
}



.bar-zoom {
  float: left;
  position: absolute !important;
  bottom: 10px;
  left:  10px;
  display: flex;
  font-size: 24px;
  color: white;
  background: #ffffff;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  z-index: 5;
}

.bar-zoom .btn-outline-primary {
font-size: 18px;
border-color: #d3dce5;

}


.bar-zoom .btn-outline-primary:hover {
  color: #fff;
  background-color: #6188C4;
  border-color: #6188C4;
}

.bar-zoom .btn-check:focus+.btn-outline-primary, 
.bar-zoom .btn-outline-primary:focus {
  box-shadow: 0 0 0 0.1rem #6188C4;
}



#drawflow {
  position: relative;
  width: calc(100vw - 0px);
  height: calc(100% - 0px);
  background: var(--background-color);
  background-size: 25px 25px;
  
}

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



/* Editing Drawflow */

.drawflow .drawflow-node {
  background: var(--background-color);
  border: 0 solid #e2eaf2;
  -webkit-box-shadow: 0 0 15px 2px var(--border-color);
  box-shadow: 0 2px 20px 2px #c8d3ddc9;
  border-radius: 100px;
  padding: 0px;
  width: 200px;
 
  
}

.drawflow .drawflow-node.selected  {
  background: white;
  border: 0 solid #4ea9ff;
  -webkit-box-shadow: 0 0 25px 0 #4ea9ffe0;
  box-shadow: 0 0 25px 0 #71baff;
  border-radius: 100px;
}

.drawflow .drawflow-node.selected .title-box {
  color: #22598c;
}

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

.drawflow .drawflow-node .input, .drawflow .drawflow-node .output {
  height: 15px;
  width: 15px;
  border: 1 solid var(--border-color);
}

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

.drawflow .drawflow-node .output {
  right: 10px;
  background: rgb(255,255,255);
  background: radial-gradient(circle, rgba(255,255,255,1) 0%, #cacaca 100%);
}

.drawflow .drawflow-node .input {
  left: -10px;
  background: rgb(255,255,255);
background: radial-gradient(circle, rgba(255,255,255,1) 0%, #cacaca 100%);
}

.drawflow > .drawflow-delete {
  border: 2px solid #F98124;
    line-height: 23px;
    background: white;
    color: #F98124;
  -webkit-box-shadow: 0 0 20px 1px #4ea9ff82;
  box-shadow: 0 0 20px 1px #4ea9ff82;

}

.drawflow-delete {
  border: 2px solid #4ea9ff;
  background: white;
  color: #4ea9ff;
  -webkit-box-shadow: 0 2px 20px 2px #4ea9ff;
  box-shadow: 0 2px 20px 2px #4ea9ff;


}

.drawflow > .drawflow-add {
  border: 0 solid #43b993;
  background: white;
  color: #43b993;

}

.drawflow-add {
  background: #4ea9ff;
  color: #ffffff;

}


.drawflow-node .title-box {
  cursor: pointer;
  height: 46px;
    line-height: 46px;
    border-bottom: 0 solid #e9e9e9;
    border-radius: 4px 4px 0px 0px;
    padding-left: 20px;
    border-radius: 100px;
    background: linear-gradient(359deg, rgba(244,247,250,1) 0%, rgba(255,255,255,1) 51%, rgba(244,247,250,1) 100%);
    transition: all 0.3s linear;
    -webkit-transition: all 0.3s linear;
    -moz-transition: all 0.3s linear;
    -o-transition: all 0.3s linear;
    -ms-transition: all 0.3s linear;
}

.drawflow-node .title-box:hover {
     background: linear-gradient(359deg, rgba(244,247,250,1) 0%, rgba(244,247,250,1) 51%, rgba(244,247,250,1) 100%);
}











.drawflow .title-box svg {
  position: initial;
}
.drawflow-node .box {
  padding: 10px 20px 20px 20px;
  font-size: 14px;
  color: #555555;

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

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

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

.drawflow-node input, .drawflow-node select, .drawflow-node textarea {
  border-radius: 4px;
  border: 1px solid var(--border-color);
  height: 30px;
  line-height: 30px;
  font-size: 16px;
  width: 158px;
  color: #555555;
}

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


.drawflow-node.personalized {
  background: red;
  height: 200px;
  text-align: center;
  color: white;
}
.drawflow-node.personalized .input {
  background: yellow;
}
.drawflow-node.personalized .output {
  background: green;
}

.drawflow-node.personalized.selected {
  background: blue;
}

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

}

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


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

}

.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 400px; /* Could be more or less, depending on screen size */
}

/* The Close Button */
.modal .close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor:pointer;
}

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