: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; */

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

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

}

.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(https://lofiblocks.com/koduj/css/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;
  }

  #connection_box h3, #files h3 {
    margin: 0;
    font-weight: 300;
    font-size: 0.9em;
    width: 60%;
    margin-top: 10px;
    text-transform: uppercase;
  }

  #files h3 {
    float: right;
position: absolute;
left: 90px;
text-align: left;
margin-right: 1em;
font-size: 1.5em;
top: 30px;
margin-top: 15px;
  }

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

  #deviceList li {
  font-size: 0.8em;
  background-color: #fff;
  color: var(--orange);
  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: 35px;
    right: 35px;
  }

  #refreshButton, #disconnectButton {
    background-color: #fff;
    color: var(--orange);
    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: var(--workspace_color);
  color: #fff;
}

button#filesDialog, button#info, button#save {
  background-color: initial;
  box-sizing: border-box;
  width: 40px;
  margin-bottom: 1vh;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  top: -65px;
  left: 20px;
  transform:scale(1, 1);
  transition: all .1s ease-in-out;
  cursor: pointer;
  transform:scale(1, 1);
  transition: all .1s ease-in-out;
}

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


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


.inactive {
  opacity: 0.3;
}

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




.blocklyWidgetDiv .goog-menuitem-content {
  font-size: 18px;

}

.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: 340px;
position: absolute;
left: 0%;
bottom: 0;
background-color: var(--orange);
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: 85px;
height: 85px;
margin: 5px;
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 {
  float: left;
  width: 450px;
  display: block;
  margin-left: 40px;
}

.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: 3% 10% 10% 2em;
      box-sizing: border-box;
}

#controls_right button {
  margin: 7% 5% 35px;
  width: 39%;

}


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

}

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

#customDialog form input[type=button] {
  width: 80px;
  height: 80px;
  margin: 10px;
  font-size: 1.5em;
  border: none;
  background-color: #fff;
  color: var(--orange);
  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: 300px;
  background-color: var(--orange);
  border-radius: 10px;
  margin-top: 100px;
}

#customDialogInput {
  color: var(--orange);
width: 280px;
padding: 10px;
box-sizing: border-box;
font-size: 2em;
font-weight: bold;
text-align: right;
margin-left: 10px;
margin-bottom: 10px;
margin-top: 20px;
border-radius: 10px;
border: none;
}



input#customDialogDel, #customDialogOkay {
background-color: #fff !important;
color: var(--orange) !important;
opacity: 0.7;
}

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

#filesList, #examplesList, #projectsList {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow:scroll;
  max-height: 380px;
}

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

#filesList li, #examplesList li, #projectsList li {
  background-color: #fff;
  color: var(--orange);
  margin-bottom: 0.5em;
  padding: 0.3em 1em;
  border-radius: 5px;
  cursor: pointer;
  line-height: 30px;
  font-size: 0.8em;

}

#projectsList li:hover {
opacity: 0.9;
transition: all .1s ease-in-out
}

#projectsList li:hover .close {
  display: block;
}

#projectsList li .close {
  display:none;
  float: right;
  width: 20px;
  height: 20px;
  border-radius: 12.5px;
  background-color: var(--orange);
  padding: 0px 10px 10px 6px;
  box-sizing: border-box;
  color: #fff;
  line-height: 20px;
  border: none;
  outline: none;
  margin-top: 6px;
  margin-left:8px;
  opacity: 1;
  transform:scale(1, 1);
  transition: all .2s ease-in-out;
}

#projectsList li .close:hover {
  opacity: 1;
  transform:scale(1.2, 1.2);
  transition: all .2s ease-in-out;
  cursor: pointer;
}

 #saveFB, #showFiles, #showExamples, #newProject, #saveFile, .inputfile + label  {
  font-weight: bold;
  width: 100%;
  background-color: var(--workspace_color);
  color: #fff;
  font-size: 1.2em;
  border: none;
  padding: 0.5em;
  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;
}

 #saveFB, #newProject, #saveFile,  .inputfile + label {

   margin: 10px 1%;
   background-color: #fff;
   color: var(--orange);
   font-size: 0.6em;
   transform:scale(1, 1);
   transition: all .1s ease-in-out;
 }


.inputfile + label {
  font-weight: bold;
      display: block;
      text-align: center;

      margin-right: 9px;
      line-height: 1.2em;

}

.inputfile {
	width: 0.1px;
	height: 0.1px;
	opacity: 0;
	overflow: hidden;
	position: absolute;
	z-index: -1;
}


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



 #projectsButonsContainer {
    display: flex;
      justify-content:  space-around;
 }

 #projectsButonsContainer button,  #projectsButonsContainer label {
 flex-grow: 0;
 }

 #projectsButonsContainer button:hover,  #projectsButonsContainer label:hover {
 opacity: 0.9;
  transition: all .1s ease-in-out;
  cursor: pointer;
 }

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