:root {
    --workspace_color: #334771;
    --workspace_color1: #245380;
    --workspace_color2:#5c485a;
    --flyout_color: #788CB7;
    --workspace_color3: #455A64;
    --orange: #D62828;
    --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: var(--orange);
  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;
     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;
  
  }
  
  #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;
  }
  
  
  #languageMenu, #userName, #emailName {
      width:    100%;
      height: 1.5em;
      font-size: 1em;
      color: var(--orange);
      padding-left: 0.8em;
      background-color: #fff;
      border-radius: 5px;
      -webkit-appearance: none;
      border:none;
      box-sizing: border-box;
      opacity: 0.8;
  }
  
  #languageMenu:hover, #userName:hover, #emailName:hover, #userName:focus, #emailName:focus {
    opacity: 1;
  }
  
  
  
  
  #user-settings table {
    width: 100%;
  }
  
  #user-settings table tr {
    height: 27px;
  }
  
  #user-settings table tr td:first-child {
    width: 64px;
  }
  
  #user-settings {
  
    margin: 1em 0;
    font-size: 0.8em;
  }
  
  #inputs_monitor_header {
    margin-left: 0.2em;
  }
  
  
  
  #keyboard_panel {
    position: absolute;
    z-index: 5001;
    height: 310px;
    bottom:0;
    width: 100%;
    padding: 35px 10%;
    box-sizing: border-box;
    background-color: var(--orange);
    transform: translate(0px, 0px);
  transition: all .2s ease-in-out;
  }
  
  #keyboard_container {
    position: relative;
    width: 100%;
    height:220px;
  }
  
  #keyboard .key.white #fill, #keyboard .key.black #fill {
    border-radius: 10px;
    border: 2px solid var(--orange);
  }
  #keyboard .key.black #fill {
    background-color: var(--orange);
  }
  
  #canvas_container {
    transform: translate(0px, 0px);
    transition: all .3s ease-in-out;
  }
  
  
  #canvas_container button {
    opacity: 0;
    transition: all .3s ease-in-out;
  }
  
  #canvas_container:hover button {
    opacity: 1;
    transition: all .3s ease-in-out;
  }
  
  .canvas_overlay_hide {
    display: none;
  }
  
  
  .hide_ui {
    display: none;
  }
  
  
  #piano_container button:hover {
    opacity: 0.9;
  }
  
  #octave_up, #octave_down {
    background-color: #fff;
    border: none;
    border-radius: 20px;
    width: 40px;
    height: 40px;
    color: var(--orange);
    font-weight: bold;
    font-size: 1.5em;
  
  }
  
  #octave_number {
    text-align: center;
    font-size: 2em;
    font-weight: bold;
    color: #fff;
    margin: 0.4em 0;
  }
  
  .piano_key {
    color: var(--orange);
    font-size: 1em;
    font-weight: bold;
  }
  
  #projects {
    clear:both;
    margin-top: 20px;
  }
  
  #logOut {
    color: var(--orange);
    font-size: 0.6em;
    font-weight: bold;
    outline: none;
    border: none;
    background-color: #fff;
    border-radius: 5px;
    padding: 0.5em 0.8em;
    transform:scale(1.0, 1.0);
    transition: all .2s ease-in-out;
    cursor: pointer;
    opacity: 0.8;
  }
  
  #logOut:hover {
  
    transform:scale(1, 1);
    transition: all .1s ease-in-out;
    cursor: pointer;
    opacity: 1;
  }
  
  #projectName {
  width: 60%;
  padding: 0.5em;
  box-sizing: border-box;
  border-radius: 5px;
  border: none;
  color: var(--orange);
  margin: 10px 0;
  font-size: 0.8em;
  font-weight: bold;
  background-color: #fff;
  float: left;
  }
  
  
  #shareProject {
    float: right;
    background-color: #fff;
    color: var(--orange);
    font-weight: bold;
    outline: none;
    padding: 0.65em 0.5em;
    margin-top: 1.05em;
    border-radius: 5px;
    border: none;
    cursor: pointer;
  }
  
  #shareProject:hover {
    opacity: 0.9;
      transition: all .1s ease-in-out;
  }
  
  
  .whiteBackground {
    fill: #fff !important;
  }
  
  h5#projectNameHeading {
    margin: 0.1em;
  }
  
  #finalspeech {
    font-weight: bold;
  }
  
  #interimspeech {
    color: #999;
  }
  
  
  
  .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); }
  }
  
  #speech_container {
    position: absolute;
    right: 100px;
    padding: 1em;
    box-sizing: border-box;
    width: 290px;
    background-color: #fff;
    border-radius: 5px;
    min-height: 20px;
    transform: translate(0px, 0);
      transition: all .3s ease-in-out;
      opacity: 0.95;
      max-height: 290px;
      overflow-y: scroll;
      z-index: 100;
          top: 265px;
  }
  
  
  #distance_val, #input1_val, #input2_val, #input3_val, #input4_val {
    width: 12%;
    text-align: right;
  }
  
  .inputs_monitor input {
      margin: 8px 0;
      width: 100%;
  }
  
  
  .robotShow_connected {
    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;
  }
  
  .unified-controls {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 1vh;
    margin: 2vh auto;
    width: fit-content;
    max-width: 50vh;
    justify-items: center;
    align-items: center;
  }
  
  .unified-controls .ctl-btn {
    width: 11vh;
    height: 11vh;
    margin: 0;
  }
  
  .empty-cell {
    width: 11vh;
    height: 11vh;
  }
  
  .ps5-btn {
    width: 11vh;
    height: 11vh;
    margin: 0;
  }
  
  .ps5-btn svg {
    width: 100%;
    height: 100%;
    padding: 20%;
  }
  
  @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;
  }
  