:root {
  --workspace_color: #334771;
  --workspace_color1: #245380;
  --workspace_color2:#5c485a;
  --flyout_color: #788CB7;
  --workspace_color3: #455A64;
  --orange: #E94E0F;
  --green: #1ae080;
  --yellow: rgb(233, 186, 15);
  --yellow2: rgb(196, 157, 13);
}

@font-face {
    font-family: "Lato";
    src: url(css/Lato-Regular.ttf) format("truetype");
}

*
{
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}

input
{
-webkit-user-select: auto !important;
-khtml-user-select: auto !important;
-moz-user-select: auto !important;
-ms-user-select: auto !important;
user-select: auto !important;
-webkit-touch-callout: none;
}

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
font-family: 'Lato', sans-serif;
overscroll-behavior: contain;
}

html {
  touch-action: manipulation;
}

button {
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none; /* disable selection/Copy of UIWebView */
-webkit-touch-callout: none;
}

#blocklyArea {
  width: 100%;
  min-height: 100%;
}

#blocklyDiv {
  position: absolute;
  top:0px;
  left:0px;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;

}

.blocklyText, .blocklyTreeLabel {

font-family: 'Lato', sans-serif;
}

.blocklyTreeRoot {

padding: 0;
}

.blocklyTreeLabel {
  font-size: 3vh;
}


#console {
  position: absolute;
  top: 20px;
  right: 17vh;
  opacity: 0.95;
  z-index: 101;
  transform: translate(0px, 0px);
  transition: all .3s ease-in-out;
  width: 270px;
}

.console_hide {
  transform: translate(440px, 0px) !important;
  transition: all .3s ease-in-out !important;
}

#control_buttons {
  margin-top: 1.5em;
  z-index: 1000;
  position: relative;
}

#startstop {
  position: absolute;
      z-index: 100;
      top: 44vh;
      left: 10px;

}

#startstop button {
  background-color: #E94E0F;
  color: #fff;
  outline: none;
  border: none;

  font-weight: 700;

  font-size: 1em;
  padding: 0;
  text-align: center;
}

button#sendStart {
  height: 12vh;
      width: 12vh;
      border-radius: 7vh;
      position: relative;
      top: -16vh;
      left: 2vh;
      font-size: 2em;
      transition: all .2s ease-in-out;

}

button#sendStart:active {
  transform:scale(1.3, 1.3);
  transition: all .1s ease-in-out;
}

#startOutline {
  position: relative;
  left: 0vh;
  top: -2vh;
  width: 16vh;
  height: 16vh;
  background-image: none;
  animation-name: rotate;
  animation-duration: 4s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

@keyframes rotate {
    from {transform: rotate(0deg);}
    to {transform: rotate(360deg);}
}







#logo {
  position: absolute;
  bottom: 1em;
  left: 0px;
  width:100%;
  height: 6vh;
  background-image: url(img/logo_lofi.svg);
  background-repeat: no-repeat;
  background-position: center;

}

.blocklyToolboxDiv {
background-color: #f9f9f9;
opacity: 0.98;
}

.blocklyMainBackground {
fill:  #334771 !important;
}

#control_buttons {

  box-sizing: border-box;
}

.blocklyPath {
    stroke: #334771;
    stroke-width: 1px;
}

.blocklyPathDark, .blocklyPathLight {
  display: none;
}

.blocklyFlyoutBackground {
    fill: #788CB7;
    fill-opacity: 0.9;

}

.blocklyTreeRow {
  height: 2vh;
  line-height: 4vh;
  margin-bottom: 0;
font-size: 2vw;
  white-space: nowrap;
  height: 6vh;
  box-sizing: border-box;
  padding-top: 0.5vh;
}
}

.blocklyTreeIcon {
  display: none;
  width: 10px;
}

.connection, .inputs_monitor, .console_head {
  background-color: #E94E0F;
  color: #fff;
  font-size: 0.7em;
  padding: 0.5em;
  border-radius: 7px;
  margin: 0.2em 0 ;
}

.console_head {
  background-color: rgb(233, 186, 15);
  cursor: pointer;
  border-radius: 7px 7px 0 0;
  margin: 0.5em 0 0 0;
}

.inputs_monitor {
background-color: rgb(15, 171, 233);
cursor: pointer;
text-transform: uppercase;
}

.inputs_monitor input {
margin: 0;
width: 100%;
}

.inputs_monitor h3 {
  margin: 0;
  display: block;
  width: 70%;
  float: left;
}

#inputs_monitor_table {
  clear: both;
  display: block;
  width: 100%;
  max-height: 210px;
  transition: max-height .2s ease-in-out;
  -webkit-transition: max-height .2s ease-in-out;
  overflow: auto;

}

#inputs_monitor_table table {
  width: 100%;
}

.toggled {
    overflow: hidden;
    padding: 0 !important;
    max-height: 0 !important;

}

.show_button {
  width: 1.5em;
  height: 1.5em;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url(close_icon.svg);
  float: right;
}

#code_area {
  font-size: 1em;
  padding: 0.4em;
  border-radius: 0 0 7px 7px;
  border: none;
  margin: 0px;
  width: 270px;
  box-sizing: border-box;
}

.circle {
    width: 1em;
    height: 1em;
    -webkit-border-radius: 25px;
    -moz-border-radius: 25px;
    border-radius: 25px;
    background: var(--green);
    float: right;
    position: relative;
    top: 0.12em;
  }

  .yellow {
    background-color: var(--yellow);
  }

  .orange {
    background-color: #E94E0F;
  }

  .plugin_monitor {
  width: 50px;
  float:right;
  padding: 0 0.4em;
  }


  #connection_box {
    font-size: 1.5em;
        background-color: #E94E0F;
        /* border-radius: 5px; */
        padding: 30px;
        box-sizing: border-box;
        color: #fff;
        position: absolute;
        width: 300px;
        z-index: 10001;
        right: 0;
        top: 0;
        height: 100%;


    transform: translate(0px, 0px);
    transition: all .3s ease-in-out;
  }

  .hidden {

  transition: all .3s ease-in-out;
  transform: translate(300px, 0px) !important;
  }

  #connection_buttons {
    position: absolute;
    bottom: 1em;
    float: right;
  }

  #connection_box h3, #files h3 {
    margin: 0;
    font-weight: 300;
    font-size: 2vw;
    width: 60%;
    margin-top: 1vw;
    text-transform: uppercase;
  }

  #files h3 {
    float: right;
        position: absolute;
        left: 8vw;
        text-align: left;
        margin-right: 1em;
        font-size: 2vw;
        top: 5.5vh;
  }

  #deviceList {
    display: block;
    padding: 0;
    list-style: none;
    max-height: 70%;
    margin-top: 1em;
    overflow-y: scroll;
    clear: both;
  }

  #deviceList li {
  font-size: 1.5vw;
  background-color: #fff;
  color: #E94E0F;
  padding: 0.5em;
  border-radius: 7px;
  margin-bottom: 0.5em;
  box-sizing: border-box;
  width: 100%;
  transform:scale(1, 1);
  transition: all .1s ease-in-out;
  }

  #deviceList li:active {
    transform:scale(0.9, 0.9);
    transition: all .1s ease-in-out;

  }

  .robot_icon {
    position: absolute;
    top: 3.4vw;
    right: 3.4vw;
  }

  #refreshButton, #disconnectButton {
    background-color: #fff;
    color: #E94E0F;
    width: 115px;
    outline: none;
    border: none;
    border-radius: 7px;
    font-size: 0.6em;
    font-weight: bold;
    padding: 0.6em;
    margin-right: 0.5em;
    text-align: center;
  }


#refreshButton:hover, #disconnectButton:hover{
  background-color: #334771;
  color: #fff;
}

button#filesDialog, button#info {
  background-color: initial;
  box-sizing: border-box;
  width: 7vh;
  margin-bottom: 1vh;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  top: -13vh;
  left: 4.5vh;
  transform: scale(1, 1);
  transition: all .1s ease-in-out;

}

button#filesDialog:active, button#info:active {
  transform:scale(1.2, 1.2);
  transition: all .1s ease-in-out;
}

#robot_status {
  position: relative;
  top: 7px;
}




.blocklyWidgetDiv .goog-menuitem-content {
  font-size: 18px;
  font-family: 'Lato';
}

.blocklyWidgetDiv .goog-menu {
  border-radius: 5px;
  position: relative;
  left: 26px;
  top: 4px;
}

#overlay {
  z-index: 5000;
  width: 100%;
  height: 100%;
  background-color: #000;
  opacity: 0.65;
  position: absolute;
  left:0;
  top: 0;
}

#controls {
  z-index: 5001;
width: 100%;
  height: 55%;
position: absolute;
left: 0%;
bottom: 0;
background-color: #E94E0F;
padding: 4vh;
box-sizing: border-box;
transform: translate(0px, 0px);
transition: all .2s ease-in-out;
}

#controls table tr td button, #controls button {
width: 12vh;

margin: 1vh;
padding: 0;
outline: none;
border: none;
background-color: #E94E0F;
transition: all .2s ease-in-out;
-webkit-tap-highlight-color: transparent;
}


#controls table tr td button:active, #controls button:active {

  transform:scale(1.2, 1.2);
  transition: all .1s ease-in-out;
}

#controls table {
  float: left;
  width: 40%;
  display: block;
      margin-left: 7vw;
}

.hide {
 transform: translate(0px, 500px) !important;
  transition: all .2s ease-in-out;
}

.hide_overlay {
    transition: all .2s ease-in-out;
    opacity:0;
    display:none;
}


#controls_right {
  width: 50%;
      float: right;
      padding: 3vh 10% 10% 2em;
      box-sizing: border-box;
}

#controls_right button {
  margin: 5vh 0vh 5vh 8vh;
      width: 16vh;
      max-width: 9vw;
}


#menu_left {
  position: absolute;
  top:20px;
  right:30px;
  z-index: 100;

}

#menu_left button {
  width: 9vh;
  max-width: 7vh;
      outline: none;
      border: none;
      background-color: Transparent;
      transition: all .1s ease-in-out;
      padding: 0;
      margin-bottom: 2vh;
}

#menu_left button:active {
  transform:scale(1.3, 1.3);
  transition: all .1s ease-in-out;
}

#customDialog form input[type=button] {
  width: 27%;
  height: 10vh;
  margin: 3%;
  font-size: 1.5em;
  border: none;
  background-color: #fff;
  color: #E94E0F;
  font-weight: bold;;
  border-radius: 10px;
  -webkit-appearance: none;
}

#customDialog form input[type=button]:active {
  transform:scale(1.1, 1.1);
}

#customDialog form {

}

#customDialog {
  width: 40vw;
  background-color: #E94E0F;
  border-radius: 10px;
  margin-top: 100px;
}

#customDialogInput {
  color: #E94E0F;
width: 90%;
padding: 10px;
box-sizing: border-box;
font-size: 2em;
font-weight: bold;
text-align: right;
margin-left: 5%;
margin-bottom: 10px;
margin-top: 5%;
border-radius: 10px;
border: none;
}



input#customDialogDel, #customDialogOkay {
background-color: #fff !important;
color: #E94E0F !important;
opacity: 0.7;
}

#files {
position: absolute;
top: 0px;
height: 100%;
width: 300px;
border-radius: 5px;
  z-index: 5010;
  background-color: #E94E0F;
  color: #fff;
 padding: 30px 1em;
transform: translate(0px, 0px);
  transition: all .3s ease-in-out;
  box-sizing: border-box;
}

#filesList, #examplesList {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow:scroll;

  max-height: 40vh;
}

.files_hide {
  transform: translate(-300px, 0px) !important;
    transition: all .3s ease-in-out;
}

#filesList li, #examplesList li {
  background-color: #fff;
  color: #E94E0F;
  margin-bottom: 0.5em;
  padding: 2vh;
  border-radius: 5px;
  cursor: pointer;
  line-height: 3vh;
  font-size: 1.5vw;
}



#filesList li .close {
  float: right;
      width: 4vh;
      height: 4vh;
      border-radius: 15px;
      background-color: #334771;
      padding: 0 0 0 1vh;
      box-sizing: border-box;
      color: #fff;
      line-height: 20px;
}

#showFiles, #showExamples, #newProject, #saveFile {
  font-weight: bold;
  width: 100%;
  background-color: #334771;
  color: #fff;
  font-size: 1.5vw;
  border: none;
  padding: 2vh;
  box-sizing: border-box;
  border-radius: 5px;
  margin-bottom: 0.5em;

  transform:scale(1, 1);
  transition: all .1s ease-in-out;
}

button#showFiles:active, button#showExamples:active {
  transform:scale(1.1, 1.1);
  transition: all .1s ease-in-out;
}

 #newProject, #saveFile {
   width: 45%;
   margin: 2vh 0;
   background-color: #fff;
   color: #E94E0F;
   font-size: 1.5vw;
   transform:scale(1, 1);
   transition: all .1s ease-in-out;
 }

 #newProject:active, #saveFile:active {
   transform:scale(1.1, 1.1);
   transition: all .1s ease-in-out;
 }

#robot_outline {
  left: -1.5vh;
}

#robot_outline, #robot_outline2 {
  position: absolute;
      top: -1.5vh;

      border: 0 solid #fff;
      width: 8vh;
      height: 8vh;

      border-radius: 41px;
      z-index: -1;
}

#robot_outline2 {
  top: 2.4vw;
  right: 2.4vw;
  width: 6vw;
  height: 6vw;
}

.robot_outline {
  top: -1.3vh;

  position: absolute;
  animation-name: rotate;
  animation-duration: 50s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  top: -8px;
  left: -7px;
  width: 73px;
}

.connected_name {
  background-color: #fff;
  color: #E94E0F;
  padding: 0.3em;
  display: inline-flex;
  font-size: 0.4em;
  margin-top: 1.5vw;
  margin-bottom: 1vw;
  border-radius: 5px;
  float: right;
  transition: all .3s ease-in-out;
}


#languageMenu {
    position: absolute;
    bottom: 1em;
    width: 88%;
    height: 2em;
    font-size: 1.5vw;
    color: #E94E0F;
    font-weight: bold;
    background-color: #fff;
    border-radius: 5px;
    -webkit-appearance: none;
    border:none;
    padding-left: 3vh
}

#inputs_monitor_header {
  margin-left: 0.2em;
}


#canvas_container {
  transform: translate(0px, 0px);
  transition: all .3s ease-in-out;
}


#canvas_container button {
  opacity: 1;
  transition: all .3s ease-in-out;
}

#canvas_container:hover button {
  opacity: 1;
  transition: all .3s ease-in-out;
}

.canvas_overlay_hide {
  display: none;
}

.canvas_open {
  top: 295px !important;
}

#deviceList, #connection_buttons {
visibility: hidden;
}

#bt2Button, #bt4Button {
  background-color: #fff;
  color: #E94E0F;
  width: 100%;
  outline: none;
  border: none;
  border-radius: 5px;
  box-sizing: border-box;
  font-weight: bold;
  padding: 0.8em;
  margin-top: 2em;

  text-align: center;
}


.clear {
  clear:both;
  display:block;
  width: 100%;
  height: 0;
}

.blocklyScrollbarHorizontal .blocklyScrollbarHandle {
height:3vh;
}

.blocklyScrollbarVertical .blocklyScrollbarHandle {
width:3vh;
}




.blocklyInsertionMarker>.blocklyPath, .blocklyInsertionMarker>.blocklyPathLight, .blocklyInsertionMarker>.blocklyPathDark
{
fill:#fff;
fill-opacity: 0.3;
}

.robotShow_connected {
  border: 5px solid #fff !important;
      padding: 5% 5% 0% 5% !important;
      border-radius: 50%;
      scale: 1.2;
}
