﻿html,
body {
    height: 100%;
    margin: 0;
}

body {
    background-color: #fff;
    font-family: 'Roboto', sans-serif;
}

h1 {
    font-weight: normal;
    font-size: 140%;
}

#blocklyDiv {
    float: left;
    height: 95%;
    width: 70%;
    overflow: hidden;
}

#importExport {
    font-family: monospace;
}

.ioLabel>.blocklyFlyoutLabelText {
    font-style: italic;
}

.blocklyFlyoutLabelText {
    fill: white !important;
}

.blocklyFlyoutHeading>.blocklyFlyoutLabelText {
    font-size: 1.5rem;
}

line.blocklyFlyoutLine {
    stroke: white;
}

.blocklyFlyoutLabelIcon {
    font-family: 'Font Awesome\ 5 Free';
    font-size: 1.5rem;
    font-weight: 900;
    fill: white;
}

.blocklyFlyoutBackground {
    background-color: #444;
    fill-opacity: 1;
}

.blocklyTreeRow {
    height: 40px !important;
}

.blocklyTreeIconCustom {
    background: none !important;
    font-family: 'Font Awesome\ 5 Free';
    font-weight: 900;
    font-size: 1.15rem;
    margin-left: .3em;
    width: 27px !important;
    height: 100% !important;
    line-height: 40px;
    min-height: 40px;
    vertical-align: middle;
}

.blocklyTreeIconCustom::before {
    content: "\f12e";
}

.blocklyTreeIconCustom.logic::before {
    content: "\f074";
}

.blocklyTreeIconCustom.loops::before {
    content: "\f01e";
}

.blocklyTreeIconCustom.math::before {
    content: "\f1ec";
}

.blocklyTreeIconCustom.text::before {
    content: "\f031";
}

.blocklyTreeIconCustom.lists::before {
    content: "\f0ca";
}

.blocklyTreeIconCustom.colour::before {
    content: "\f53f";
}

.blocklyTreeIconCustom.variables::before {
    content: "\f0c9";
}

.blocklyTreeIconCustom.functions::before {
    content: "\f141";
}

.blocklyTreeIconCustom.move::before {
    content: "\f0b2";
}

.blocklyTreeIconCustom.sensor::before {
    content: "\f192";
}

.blocklyTreeIconCustom.sound::before {
    content: "\f028";
}

.blocklyTreeIconCustom.start_finish::before {
    content: "\f251";
}

.blocklyTreeIconCustom.works::before {
    content: "\f472";
}


/* Remove shadow around blockly blocks */

.blocklyPathDark,
.blocklyPathLight {
    display: none;
}


/* Specifying rounded toolbox borders. */

div.blocklyTreeRow {
    border-radius: 4px;
    padding: 0 10px 0px 4px !important;
    border-left: 12px solid #ccc;
    margin-bottom: 2px;
    -webkit-box-shadow: inset 0px -1px 0px 0px rgba(204, 204, 204, 1);
    -moz-box-shadow: inset 0px -1px 0px 0px rgba(204, 204, 204, 1);
    box-shadow: inset 0px -1px 0px 0px rgba(204, 204, 204, 1);
    -webkit-box-shadow: 0px 1px 0px 0px #eee;
    -moz-box-shadow: 0px 1px 0px 0px #eee;
    box-shadow: 0px 1px 0px 0px #eee;
}

div.blocklyTreeRoot div div div div div.blocklyTreeRow {
    border-left-width: 1px !important;
}


/* Highlight category item */

div.blocklyTreeRow.blocklyTreeSelected,
div.blocklyTreeRoot div div div div div.blocklyTreeRow.blocklyTreeSelected {
    -webkit-box-shadow: inset 0px 0px 0px 2px #fc3;
    -moz-box-shadow: inset 0px 0px 0px 2px #fc3;
    box-shadow: inset 0px 0px 0px 2px #fc3;
}


/* This removes any padding at the top of the toolbox */

div.blocklyTreeRoot {
    padding: 0px !important;
}


/* Blockly Text */

span.blocklyTreeLabel {
    font-family: "Roboto", Geneva, Verdana, sans-serif !important;
    text-transform: uppercase !important;
    font-size: 1.15rem !important;
    font-weight: 200;
}

svg.blocklySvg {
    background: #eee;
    /* For browsers that do not support gradients */
}

.monacoFlyout {
    background: rgba(40, 40, 40, 1);
}

.blocklyToolboxDiv,
.monacoToolboxDiv {
    padding: 0.5rem;
    border-right: solid 2px #ccc;
    background-color: #fff !important;
}


/* Search box */

#blocklySearchArea {
    margin: 0.5rem;
    margin-top: 0.1rem;
}

.blocklySearchInputField {
    border-radius: 2.5rem !important;
}

.header {
    height: 60px;
    width: 100%;
    background-color: #0085B2;
    display: flex;
    position: fixed;
    overflow: hidden;
    z-index: 99999;
}

.logoContainer {
    width: 170px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logoContainer img {
    width: 80%;
}

#sectionSelect:focus {
    outline: none;
}

.tableContainer table {
    width: 100%;
    height: 100%;
    border: 2px solid rgb(0, 175, 0);
    transform: rotateX(50deg);
    border-collapse: collapse;
    table-layout: fixed;
}

.tableContainer table tr {
    max-height: 50px;
}

.tableContainer td {
    width: 16.66%;
    height: 16.66%;
    border: 2px solid rgb(0, 175, 0);
    overflow: hidden;
    text-align: center;
    vertical-align: middle;
}

.k {
    background-color: rgb(2, 216, 164);
}

.a {
    background-color: rgb(153, 255, 205);
}

.tableContainer {
    /* position: absolute; */
    left: 5%;
    width: 20vw;
    height: 20vw;
    top: 5%;
    perspective: 34vw;
    margin: 0 auto;
}

.robot {
    width: 100%;
    height: 100%;
}

.robotPlaceHolder {
    width: 4vw;
    height: 4vw;
    z-index: 9;
    position: absolute;
    transition: 200ms;
    display: flex;
    justify-content: center;
    align-items: center;
}

.robotPlaceHolder img {
    width: 100%;
    position: relative;
    top: -5px;
}

.scale0 {
    transform: scale(0.7);
}

.scale1 {
    transform: scale(0.8);
}

.scale2 {
    transform: scale(1);
}

.scale3 {
    transform: scale(1.15);
}

.scale4 {
    transform: scale(1.3);
}

.scale5 {
    transform: scale(1.45);
}

.mapContainer {
    float: left;
    width: 30%;
    height: 95%;
    background-image: url(/images/bg.jpg);
    position: relative;
}

.homeButton {
    width: 115px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99;
}

.homeButton img {
    width: 20%;
}

.homeButton a {
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
}

.homeButton a span {
    position: relative;
    top: -4px;
    left: 6px;
}

.homeButton div {
    width: 100px;
}

.menuContainer {
    height: 100%;
    position: absolute;
    right: 0;
    display: flex;
    align-items: center;
}

.menuContainer select {
    width: 56%;
    height: 80%;
}

.sectionSelectIcons {
    height: 100%;
    display: flex;
}

.iconContainer {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
}

.iconContainer a {
    margin: 8px;
}

.runButtonsContainer {
    position: absolute;
    bottom: 0px;
    width: 100%;
}

.buttonsTextContainer {
    width: 94%;
    margin: 0 3%;
    border: 1px solid #ccc;
    border-radius: 15px;
    padding: 15px 20px;
    text-align: center;
    font-size: 15px;
    line-height: 23px;
    background-color: #fff;
    box-sizing: border-box;
}

.runButtonsButtonsContainer {
    margin: 10px 0 0 0;
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.runButtonsButtonsContainer button {
    width: 25%;
    height: 50px;
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    border-radius: 10px;
}

.red {
    background-color: #c00;
}

.green {
    background-color: #0c0;
}

.restartContainer {
    float: right;
    transform: translate(-18px, 23px);
    filter: invert(45%) sepia(0%) saturate(0%) hue-rotate(139deg) brightness(86%) contrast(89%);
    cursor: pointer;
}

.cp {
    cursor: pointer !important;
}

::-moz-selection {
    background-color: #ffa600;
}

::selection {
    background-color: #ffa600;
}