: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";

}

*
{
-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; */
background-color: #53BDC2;
font-family: Lato, sans-serif;
}

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

#container {
  display: flex;
  flex-direction: column;
   justify-content: center;
   align-items: center;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  padding: 0;
  position: relative;
  z-index: 1;
}

.blocklyText, .blocklyTreeLabel {

}

.blocklyTreeRoot {

padding: 0;
}


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

.canvas_open {
  top: 315px !important;
}

.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: 20px;

}

#startstop button {
  background-color: var(--orange);
  color: #fff;
  outline: none;
  border: none;

  font-weight: 700;

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

button#sendStart {
  height: 70px;
  width: 70px;
  border-radius: 35px;
  position: relative;
  top: -82px;
  left: 7px;
  font-size: 2em;
  transition: all .2s ease-in-out;
  cursor: pointer;
}

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

#startOutline {
  position: relative;
  left: -5px;
  width: 94px;
  height: 94px;




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 {
  cursor:pointer;
  position: absolute;
  bottom: 1em;
  left: 0px;
  width:100%;
  height: 47px;
  background-image: url(../img/logo_lofi.svg);
  background-repeat: no-repeat;
  background-position: center;
  transform:scale(1, 1);
  transition: all .1s ease-in-out;
}

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


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

.blocklyMainBackground {
fill: var(--workspace_color) !important;
}

#control_buttons {

  box-sizing: border-box;
}

.blocklyPath {
    stroke: var(--workspace_color);
    stroke-width: 1px;
}

.blocklyPathDark, .blocklyPathLight {
  display: none;
}

.blocklyFlyoutBackground {
    fill: var(--flyout_color);
    fill-opacity: 0.9;


}

.blocklyTreeRow {
    height: 3.5vh;
    line-height: 1.1em;
    font-size: 1.3em;
    margin-bottom: 0;
    padding: 0.20em 0.5em;
    white-space: nowrap;
}

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

.connection, .inputs_monitor, .console_head {
  background-color: var(--orange);
  color: #fff;
  font-size: 0.7em;
  padding: 0.5em;
  border-radius: 7px;
  margin: 6px 0 ;
  width: 290px;
  box-sizing: border-box;
}

.console_head {
  background-color: rgb(233, 186, 15);
  cursor: pointer;
  border-radius: 7px 7px 0 0;
  margin: 10px 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: 240px;
  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: 290px;
  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: var(--orange);
  }

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


  #connection_box {
    font-size: 1.5em;
        background-color: var(--orange);
        /* border-radius: 5px; */
        padding: 30px;
        box-sizing: border-box;
        color: #fff;
        position: absolute;
        width: 300px;
        z-index: 5001;
        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;
  }




  .robot_icon {
    position: absolute;
    top: 35px;
    right: 35px;
  }






.inactive {
  opacity: 0.3;
}

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




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

#controls {
  display: block;

  z-index: 5001;
width: 100%;
padding: 1.5em;
box-sizing: border-box;
transform: translate(0px, 0px);
transition: all .2s ease-in-out;

}

#controls table tr td button, #controls button {
width: 11vh;
height: 11vh;
margin: 1vh;
padding: 0;
outline: none;
border: none;
background-color: var(--orange);
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 {
  text-align: center;
  width: 100%;
  display: block;
  margin: 0px auto;
}

#controls table tbody {
  display: initial;
}

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

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




#menu_left {
  position: absolute;
  top:30px;
  right:30px;
  z-index: 5002;
  width: 45px;
}

#menu_left button {
  width: 45px;
  height: 45px;
  outline: none;
  border: none;
  background-color: Transparent;
  transition: all .1s ease-in-out;
  padding: 0;
  margin-bottom: 2vh;
  cursor: pointer;
  transform:scale(1, 1);
  transition: all .1s ease-in-out;
}

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


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





#robot_outline, #robot_outline2 {

  position: absolute;
  top: -10px;
  left: -10px;
  border: 0px solid #fff;
  width: 55px;
  height: 55px;
  border-radius: 41px;
  z-index: -1;
}

#robot_outline2 {
top: 25px;
left: 195px;
}

.robot_outline {

  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: var(--orange);
  padding: 0.3em;
  display: inline-flex;
  font-size: 0.4em;
  margin-top: 2.2em;
  border-radius: 5px;
  float: right;
  transition: all .3s ease-in-out;
}










.whiteBackground {
  fill: #fff !important;
}



.pulse {
animation-name: pulse_animation;
animation-duration: 1000ms;
transform-origin:50% 50%;
animation-iteration-count: infinite;
animation-timing-function: linear;

}

@keyframes pulse_animation {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}



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

.tg {
  width: 40%;
}


#lofi_logo {
position: absolute;
bottom: 10px;
right: 25px;
width: 70px;
z-index: 1000;

}

.slider_label {
  color:  #fff;
  font-weight: 700;
  font-size: 1.5em;
}

@media screen and (orientation:landscape) {

  #controls {

  }

  .controler:nth-child(3) {
  width: 45% !important;
  float: left;
  margin-top: -20vh !important;
}

.controler:not(:nth-child(3)) {
  width: 45%;
float: right;
    margin: 7vh;
}

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

}

#info {
  width: 35px;
  position:absolute;
  bottom: 30px;
  left:30px;
  z-index: 1000;
}


#start_model {

  width: auto;
  height: 100vh;
font-size: 2em;
color: #fff;
font-weight: bold;
    outline: none;
    border: none;
    background-color: Transparent;
    transition: all .1s ease-in-out;
    padding: 0;

    cursor: pointer;
    transform: scale(1.1);
    transition: all .1s ease-in-out;
     animation: pulse 3s ease-in-out infinite;
}

#start_model svg {
  height: 100vh;
 width: auto;
}

#start_model:hover {
  transform: scale(1.2);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1.1); /* Original size */
    }
    50% {
        transform: scale(1.12); /* Scaled up size */
    }
}



#webcam-container canvas {
border-radius: 15px;
}

#active-prediction {

  font-size: 25px;
  font-family; Lato;
  font-weight: bold;
  color: var(--orange);
  background-color: white;
  padding: 15px 32px;
  border: none;
  border-radius: 12px;
  margin-top: 20px;
  display:none;

}


#camera_toggle {
  display:none;
  position: absolute;
  top:30px;
  left:30px;
  width: 45px;
    height: 45px;
    outline: none;
    border: none;
    background-color: Transparent;
    transition: all .1s ease-in-out;
    padding: 0;
    margin-bottom: 2vh;
    cursor: pointer;
    transform: scale(1, 1);
    transition: all .1s ease-in-out;
}
