/* General Type */

body {
  font-family: "Helvetica", "Arial", sans-serif;
  background-color: #f7f7f7;
}

h1 {
  font-size: 34px;
}

header h1 {
  line-height: 1.45em;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
}

h1 b {
  font-weight: 400;
  color: rgba(255, 255, 255, 1);
}

h2 {
  margin: 5px 0;
  font-weight: 300;
  font-size: 18px;
}

h3 {
  margin: 10px 0;
}

p a {
  color: #0d658c;
}

/* Layout */

body {
  margin: 0;
}

.l--body {
  width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.l--page {
  width: 944px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1180px) {
  .l--page {
    width: 1100px;
  }
}

@media (min-width: 1400px) {
  .l--page {
    width: 1220px;
  }
}

/* Buttons */

#main-part .mdl-button {
  background-color: rgba(158, 158, 158, 0.1);
  width: 28px;
  height: 28px;
  min-width: 28px;
}

#main-part .mdl-button:hover {
  background-color: rgba(158, 158, 158, 0.3);
}

#main-part .mdl-button:focus:not(:active) {
  background-color: rgba(158, 158, 158, 0.4);
}

#main-part .mdl-button:active {
  background-color: rgba(158, 158, 158, 0.5);
}

#main-part .mdl-button .material-icons {
  font-size: 20px;
  color: rgba(0, 0, 0, 0.7);
}

.button {
  cursor: pointer;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  width: 24px;
  height: 24px;
  font-size: 18px;
  border-radius: 50%;
  margin: 0;
  background-color: rgba(0, 0, 0, 0.05);
  outline: none;
  border: none;
  padding: 0;
  color: #666;
  transition: background-color 0.3s, color 0.3s;
}

.button:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.button:active {
  background-color: rgba(0, 0, 0, 0.15);
  color: #333;
}

.button i {
  font-size: 16px;
}

.hide-button {
  cursor: pointer;
  padding: 6px 4px 8px 4px;
  border-left: 1px solid #2c2c2c;
  border-bottom: 1px solid #2c2c2c;
  position: fixed;
  right: 0px;
  background: #1a1a1a;
  color: #eee;
  font: 11px "Lucida Grande", sans-serif;
  display: table;
}

/* Header */

header {
  border-bottom: solid 1px rgba(0, 0, 0, 0.4);
  background-color: #183d4e;
  color: white;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
}

header h1 {
  font-size: 30px;
  text-align: center;
  margin-top: 30px;
  margin-bottom: 30px;
  -webkit-font-smoothing: antialiased;
}

header h1 .optional {
  display: none;
}

@media (min-width: 1064px) {
  header h1 .optional {
    display: inline;
  }
}

@media (min-height: 700px) {
  header h1 {
    margin-top: 40px;
    margin-bottom: 40px;
  }
}

@media (min-height: 800px) {
  header h1 {
    font-size: 34px;
    margin-top: 60px;
    margin-bottom: 60px;
  }
}

/* Top Controls */

#top-controls {
  border-bottom: 1px solid #ddd;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  background: white;
  height: 259px;
  padding: 5px 0;
}

/* @media (min-height: 700px) {
  #top-controls {
    padding: 5px 0;
  }
} */

#top-controls .container {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: space-betweenspace-between;
  justify-content: space-between;
}

#top-controls .control .timeline-controls {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  position: relative;
  display: flex;
  align-items: center;
  width: 110px;
  top: 35px;
}

#play-pause-button-RBF .material-icons,
#play-pause-button .material-icons {
  color: white;
  font-size: 36px;
  margin-bottom: 35px;
  transform: translate(-18px, -12px);
}

#play-pause-button-RBF,
#play-pause-button {
  position: relative;
}

#play-pause-button-RBF .material-icons:nth-of-type(2),
#play-pause-button .material-icons:nth-of-type(2) {
  display: none;
}

#play-pause-button-RBF.playing .material-icons:nth-of-type(1),
#play-pause-button.playing .material-icons:nth-of-type(1) {
  display: none;
}

#play-pause-button-RBF.playing .material-icons:nth-of-type(2),
#play-pause-button.playing .material-icons:nth-of-type(2) {
  display: inherit;
}

#top-controls .control {
  flex-grow: 1;
  max-width: 150px;
  min-width: 110px;
  margin-left: 25px;
  margin-top: 6px;
}

#top-controls .control .label,
#top-controls .control label {
  color: #777;
  font-size: 15px;
  display: block;
  margin-bottom: 6px;
  font-weight: 300;
}

#top-controls #iter-number-RBF,
#top-controls #iter-number {
  font-size: 24px;
  position: relative;
  top: 5px;
  font-weight: 300;
}

#top-controls .control .select {
  position: relative;
}

#top-controls .control select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: block;
  background: none;
  border: none;
  border-radius: 0;
  padding: 6px 0;
  width: 100%;
  font-size: 14px;
  border-bottom: solid 1px #ccc;
  color: #333;
  outline: none;
}

#top-controls .control select:focus {
  border-bottom-color: #183d4e;
}

#top-controls .control .select::after {
  class: "material-icons";
  content: "arrow_drop_down";
  color: #999;
  font-family: "Material Icons";
  font-weight: normal;
  font-style: normal;
  font-size: 18px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  position: absolute;
  right: 0;
  top: 6px;
  pointer-events: none;
}

/* Hover card */
#hovercard {
  display: none;
  position: absolute;
  padding: 5px;
  border: 1px solid #aaa;
  z-index: 1000;
  background: #fff;
  cursor: default;
  border-radius: 5px;
  left: 240px;
  width: 150px;
  top: -20px;
}

#hovercard input {
  width: 60px;
}

/* Main Part*/

#main-part {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  margin-top: 30px;
  margin-bottom: 50px;
  padding-top: 2px;
  position: relative;
}

@media (min-height: 700px) {
  #main-part {
    margin-top: 50px;
  }
}

#main-part h4 {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  align-items: center;
  font-weight: 400;
  font-size: 16px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 8px;
  margin: 0;
  line-height: 1.4em;
}

#main-part p,
#main-part .column .label,
#main-part .column label {
  font-weight: 300;
  line-height: 1.38em;
  margin: 0;
  color: #777;
  font-size: 13px;
}

svg text {
  dominant-baseline: middle;
}

canvas {
  display: block;
}

.link {
  fill: none;
  stroke: #aaa;
  stroke-width: 1;
}

g.column rect {
  stroke: none;
}

#heatmap {
  position: relative;
  float: left;
  margin-top: 10px;
}

#heatmap .tick line {
  stroke: #ddd;
}

#heatmap .tick text {
  fill: #bbb;
  dominant-baseline: auto;
}

#heatmap .tick:nth-child(7) text {
  fill: #333;
}

#heatmap .tick:nth-child(7) line {
  stroke: #999;
}

/* Data column */

.vcenter {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  align-items: center;
}

.ui-percTrainData {
  margin-top: 20px;
}

.whichset {
  margin-top: 20px;
}

.ui-noise {
  margin-top: 20px;
}

.ui-batchSize {
  margin-top: 20px;
}
.ui-percTrainData {
  margin-top: 20px;
}

.dataset-list {
  display: grid;
  grid-template-columns: 55px 55px;
  grid-template-rows: 55px 55px;
  align-items: center;
  justify-items: center;
  width: 110px;
  position: relative;
  left: 6.5px;
}

.datasetRBF,
.dataset {
  position: relative;
  float: left;
  width: 35px;
  height: 35px;
  margin: 0 15px 15px 0;
}
.datasetRBF:nth-of-type(2n),
.dataset:nth-of-type(2n) {
  margin-left: 0;
}

.data-thumbnail {
  cursor: pointer;
  width: 100%;
  height: 100%;
  opacity: 0.2;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

#top-controls .control .value {
  font-size: 14px;
  margin: 0;
  font-weight: 100;
  color: rgb(51, 51, 51);
}

.data-thumbnail:hover {
  border: 2px solid #999;
}

.data-thumbnail.selected {
  border: 2px solid black;
  opacity: 1;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
  background-color: white;
}

#top-controls .datasetRBF .label,
#top-controls .dataset .label {
  position: absolute;
  left: 48px;
  top: calc(50% - 9px);
  display: none;
}

#top-controls p.slider {
  margin: 0 -25px 20px;
}

#top-controls .basic-button {
  font-family: "Roboto", "Helvetica", "Arial", sans-serif;
  margin-top: 24px;
  height: 53px;
  margin-right: 0;
  width: 100%;
  display: block;
  color: rgba(0, 0, 0, 0.5);
  border: none;
  background: rgba(158, 158, 158, 0.1);
  border-radius: 10px;
  font-size: 15px;
  text-transform: uppercase;
  font-weight: 500;
  outline: none;
  transition: background 0.3s linear;
  cursor: pointer;
  color: #484848;
}

#top-controls .basic-button:hover {
  background: rgba(158, 158, 158, 0.3);
  color: rgba(0, 0, 0, 0.6);
}

#top-controls .basic-button:focus {
  background: rgba(158, 158, 158, 0.4);
  color: rgba(0, 0, 0, 0.7);
}

#top-controls .basic-button:active {
  background: rgba(158, 158, 158, 0.5);
  color: rgba(0, 0, 0, 0.8);
}

/* Features column */

.features.column {
  width: 10%;
  position: relative;
}

.features.column .plus-minus-neurons {
  position: absolute;
  text-align: center;
  line-height: 28px;
  top: -58px;
  width: 65px;
  height: 44px;
  font-size: 12px;
  z-index: 100;
}

.plus-minus-neurons .mdl-button:first-of-type {
  margin-right: 5px;
}

.features.column .callout {
  position: absolute;
  width: 95px;
  font-style: italic;
}

.features.column .callout svg {
  position: absolute;
  left: -15px;
  width: 30px;
  height: 30px;
}

.features.column .callout svg path {
  fill: none;
  stroke: black;
  stroke-opacity: 0.4;
}

.features.column .callout svg defs path {
  fill: black;
  stroke: none;
  fill-opacity: 0.4;
}

#main-part .features.column .callout .label {
  position: absolute;
  top: 24px;
  left: 3px;
  font-size: 11px;
}

/* Network (inside features column) */

#network {
  position: absolute;
  top: 110px;
  left: 0;
  z-index: 100;
}

#network svg .main-label {
  font-size: 13px;
  fill: #333;
  font-weight: 300;
}

.axis line {
  fill: none;
  stroke: #777;
  shape-rendering: crispEdges;
}

.axis text {
  fill: #777;
  font-size: 10px;
}

.axis path {
  display: none;
}

#network svg .active .main-label {
  fill: #333;
}

#network .node {
  cursor: default;
}

#network .node rect {
  fill: white;
  stroke-width: 0;
}

#network .node.inactive {
  opacity: 0.5;
}

#network .node.hovered {
  opacity: 1;
}

/** Invisible thick links used for showing weight values on mouse hover. */
#network .core .link-hover {
  stroke-width: 8;
  stroke: black;
  fill: none;
  opacity: 0;
}

#network .canvas canvas {
  position: absolute;
  top: -2px;
  left: -2px;
  border: 2px solid black;
  border-radius: 3px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#network .canvas.inactive canvas {
  box-shadow: inherit;
}

#network .canvas.inactive canvas {
  opacity: 0.4;
  border: 0;
  top: 0;
  left: 0;
}

#network .canvas.hovered canvas {
  opacity: 1;
  border: 2px solid #666;
  top: -2px;
  left: -2px;
}

/* Hidden layers column */

.hidden-layers.column {
  width: 60%;
  position: relative;
}

#main-part .hidden-layers h4 {
  position: relative;
  -webkit-justify-content: center;
  justify-content: center;
  margin-top: -5px;
}

.hidden-layers #layers-label {
  width: 125px;
  display: inline-block;
}

.hidden-layers #num-layers {
  margin: 0 10px;
  width: 10px;
  display: inline-block;
}

.hidden-layers h4 .mdl-button {
  margin-right: 5px;
}

.bracket {
  position: absolute;
  top: 30px;
  border: solid 1px rgba(0, 0, 0, 0.2);
  border-bottom: 0;
  height: 4px;
}

/* Output column */

.output.column {
  width: 275px;
}

.shift-option-under-map {
  position: relative;
  left: -200px;
}

.metrics {
  position: relative;
  font-weight: 300;
  font-size: 13px;
  height: 60px;
}

#linechart {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 55px;
}
.metrics .train {
  color: #777;
  margin-top: 16px;
}

#loss-test {
  color: black;
}

.output .output-stats .value {
  color: rgba(0, 0, 0, 0.6);
  font-weight: 300;
  display: inline;
}

g.train circle {
  stroke: white;
  stroke-width: 1;
  stroke-opacity: 0.8;
  fill-opacity: 0.9;
}

g.test circle {
  stroke-width: 1;
  stroke: black;
  stroke-opacity: 0.6;
  fill-opacity: 0.9;
}

#main-part .output .mdl-checkbox__label.label {
  line-height: 1.7em;
}

.hide-controls {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  flex-wrap: wrap;
  -webkit-justify-content: space-between;
  justify-content: space-between;
}

.hide-controls label.mdl-checkbox {
  width: 145px;
  height: 30px;
}

.hide-controls .mdl-checkbox__label {
  font-size: 13px;
}

/* Material Overrides */

/* Buttons */

.mdl-button--fab.mdl-button--colored,
.mdl-button--fab.mdl-button--colored:hover,
.mdl-button--fab.mdl-button--colored:active,
.mdl-button--fab.mdl-button--colored:focus,
.mdl-button--fab.mdl-button--colored:focus:not(:active) {
  background: #484848;
}

/* Checkbox */

.mdl-checkbox__box-outline {
  border-color: rgba(48, 48, 48, 0.5);
}

.mdl-checkbox.is-checked .mdl-checkbox__tick-outline {
  background-color: #484848;
}

.mdl-checkbox.is-checked .mdl-checkbox__box-outline {
  border-color: #484848;
}

.mdl-checkbox__ripple-container .mdl-ripple {
  background-color: #484848;
}

/* Slider */

#top-controls .mdl-slider.is-upgraded {
  color: #484848;
}

#top-controls .mdl-slider__background-lower {
  background-color: #484848;
}

#top-controls .mdl-slider.is-upgraded::-ms-thumb,
#top-controls .mdl-slider.is-upgraded::-webkit-slider-thumb,
#top-controls .mdl-slider.is-upgraded::-moz-range-thumb {
  background-color: #484848;
}

#top-controls .mdl-slider::-ms-thumb,
#top-controls .mdl-slider::-webkit-slider-thumb,
#top-controls .mdl-slider::-moz-range-thumb {
  background-color: #484848;
}

#top-controls .mdl-slider.is-upgraded.is-lowest-value::-moz-range-thumb,
#top-controls .mdl-slider.is-upgraded.is-lowest-value::-webkit-slider-thumb {
  border-color: #484848;
}

#top-controls .mdl-slider:active::-webkit-slider-thumb,
#top-controls .mdl-slider::-webkit-slider-thumb {
  background: #484848;
}
#top-controls .mdl-slider::-webkit-slider-thumb {
  background: #484848;
}

#top-controls .mdl-slider:active::-moz-range-thumb,
#top-controls .mdl-slider::-moz-range-thumb {
  background: #484848;
}

#top-controls .mdl-slider:active::-ms-thumb,
#top-controls .mdl-slider::-ms-thumb {
  background: #484848;
}

/* Keep grey focus circle for non-start values */
#top-controls .mdl-slider.is-upgraded:focus:not(:active)::-webkit-slider-thumb {
  box-shadow: 0 0 0 10px rgba(48, 48, 48, 0.12);
}

.ui-sigma {
  margin-top: 20px;
}

/* задаём этот класс выбранной нейронке */

#bottom-output .output .mdl-checkbox__label.label {
  line-height: 1.7em;
}

#bottom-output {
  position: relative;
}

#bottom-output #heatmap {
  position: relative;
  left: -212px;
}

#bottom-output {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  margin-top: 30px;
  margin-bottom: 50px;
  padding-top: 2px;
  position: relative;
}

.page-center {
  width: 944px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1180px) {
  .page-center {
    width: 1100px;
  }
}

@media (min-width: 1400px) {
  .page-center {
    width: 1220px;
  }
}

#bottom-output .column.output {
  position: relative;
  margin-left: auto;
  margin-right: auto;
}

#bottom-output h4 {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  align-items: center;
  font-weight: 400;
  font-size: 16px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 8px;
  margin: 0;
  line-height: 1.4em;
}

#bottom-output {
  opacity: 0;
  transition: 0.5s ease-in-out;
}

.shift {
  transform: translateY(-820px);
  opacity: 1 !important;
}

#MLP_main,
#top-controls {
  transition: 0.5s;
}

body {
  overflow-y: hidden;
}

#bottom-output .metrics {
  position: relative;
  top: -140px;
  left: 300px;
  font-weight: 300;
  font-size: 13px;
  height: 60px;
}

canvas {
  background-color: white;
}

.ui-noise .mdl-slider__container,
.ui-batchSize .mdl-slider__container,
.ui-radius .mdl-slider__container,
.ui-sigma .mdl-slider__container {
  margin-top: 26px;
}

.chooseNetwork .networkButton {
  background-color: #484848;
  border:0px;
  font-size: 28px;
  color: white;
  padding: 20px 70px;
  width: 100%;
  height: 90px;
  text-align: center;
  -webkit-transition-duration: 0.4s;
  transition-duration: 0.4s;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  display: block;
}

.chooseNetwork .networkButton:hover {
  box-shadow: 0 12px 16px 0 rgba(0, 0, 0, 0.24),
    0 17px 50px 0 rgba(0, 0, 0, 0.19);
}

.networkButton:hover .selectedNetwork {
  box-shadow: none;
}

.chooseNetwork {
  position: fixed;
  width: 350px;
  height: 270px;
  top: 0px;
  left: 0px;
  margin-right: 25px;
}


.chooseNetwork .selectedNetwork {
  background-color: white;
  color: #484848;
  font-weight: bold;
}

.chooseNetwork .networkButton:disabled {
  /* opacity: 0.5; */
  cursor: not-allowed;
}

.chooseNetwork .networkButton:hover:disabled {
  box-shadow: none;
}

/* .chooseNetwork #mlp {
  color: aquamarine;
} */
