@font-face {
    font-family: 'Droid Sans Mono';
    src: url('/fonts/DroidSansMono.eot');
    src: local('Droid Sans Mono'), local('DroidSansMono'),
        url('/fonts/DroidSansMono.eot?#iefix') format('embedded-opentype'),
        url('/fonts/DroidSansMono.woff2') format('woff2'),
        url('/fonts/DroidSansMono.woff') format('woff'),
        url('/fonts/DroidSansMono.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

/* reset */

*, *:before, *:after {
  box-sizing: inherit;
}

address {
  font-style: inherit;
  font-weight: inherit;
}

article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary, li {
  display: block;
}

audio, canvas, video {
  display: inline-block;
}

template {
  display: none;
}

[hidden] {
  display: none !important
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

p, blockquote, figure, ol, ul {
  margin: 0;
  padding: 0;
}

*:focus {
  outline: 0;
  outline-offset: 0;
}

img {
  border: 0;
}

strong {
  font-weight: bold;
}

progress {
  vertical-align: baseline;
}

button::-moz-focus-inner, input::-moz-focus-inner, selectbutton::-moz-focus-inner {
  border: 0;
  padding: 0;
}

select:-moz-focusring {
  color: transparent;
  text-shadow: 0 0 0 #000;
}

a {
  text-decoration: none;
  cursor: pointer;
  background-color: transparent;
  -webkit-text-decoration-skip: objects;
}

a:hover {
  text-decoration: none;
}

a, h1, h2, h3, h4, h5, h6 {
  color: inherit;
  font-weight: inherit;
}

button, input, optgroup, select, textarea {
  margin: 0;
  padding: 0;
  font: inherit;
  border: none;
  border-radius: 0;
  text-transform: none;
  box-shadow: none;
}

input:invalid {
  box-shadow: none;
}

input:required:invalid {
  outline: none;
}

::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  color: inherit;
  opacity: .5;
}
::-moz-placeholder { /* Firefox 19+ */
  color: inherit;
  opacity: .5;
}
/*:-ms-input-placeholder {  IE 10+
  color: inherit;
  opacity: .5;
}*/
::-moz-placeholder { /* try to be future proof */
  color: inherit;
  opacity: .5;
}
:-ms-input-placeholder { /* try to be future proof */
  color: inherit;
  opacity: .5;
}
::placeholder { /* try to be future proof */
  color: inherit;
  opacity: .5;
}

::-ms-clear {
  display: none;
}

[type='search'] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
  border-radious: 0;
}

html {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  width: 100%;
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  line-height: 1.2;
  background-color: white;
}

a {
  color: inherit;
  text-decoration: none;
}

a:active, a:hover {
  outline: 0;
}

button {
  overflow: visible;
  border: 0;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  background: none;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  transition: .1s;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type='number'] {
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
  appearance: textfield;
}

label {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

textarea {
  resize: none;
}

svg {
  max-height: 100%;
}

/* icons */

/* common styles */

body {
  font-family: 'Droid Sans Mono', monospace;
}

/* nav */

.nav {
}

.nav__link {
  display: inline-block;
  font-size: 18px;
  padding: 19px 24px 19px;
  font-weight: bold;
  color: #f4fffd;
  text-transform: lowercase;
}

.nav__link:hover {
  background: #a1d2c7;
}

@media only screen and (max-width: 360px) {
  .nav__link {
    display: block;
    padding: 19px 0;
    width: 100%;
  }
}

.nav__item {
  display: inline-block;
}

@media only screen and (max-width: 360px) {
  .nav__item {
    display: block;
    flex: 1 0 0%;
    text-align: center;
  }
}

.nav__item:first-child, .nav__item:last-child {
}

@media only screen and (max-width: 360px) {
  .nav__item:first-child, .nav__item:last-child {
    flex: 1.1 0 0%;
  }
}

.nav__items {
}

@media only screen and (max-width: 360px) {
  .nav__items {
    display: flex;
    width: 100%;
  }
}

.nav-wrap {
  background: #86c1b4;
}

.footer-wrap {
  background: #86c1b4;
}

.footer {
  padding: 28px 30px 30px;
}

.footer__icon {
  display: inline-block;
  line-height: 1;
  width: 15px;
  height: 15px;
  margin-right: 3px;
}

.footer__body {
  max-width: 100%;
  margin: 0;
  text-align: center;
  color: white;
  opacity: .95;
  font-size: 18px;
  line-height: 1;
}

body {
  font-size: 24px;
  font-weight: normal;
  overflow: overlay;
  background: #fafafa;
}

body::-webkit-scrollbar {
  width: 0px;
  height: 0px;
}

body::-webkit-scrollbar-track-piece {
  /*background-color: #ffffff;*/
  /*opacity: 0.2;*/

  /* Here */
  /*display: none;*/

  background-color: transparent;
  -webkit-border-radius: 6px;
}

/* objects */

.object {
  position: absolute;
  color: #111111;
  border: 3px solid #111111;
}

.object--plus, .object--minus {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.object--plus:after, .object--minus:after {
  font-size: 24px;
  font-weight: bold;
}

.object--plus {
}

.object--plus:after {
  content: '+';
}

.object--minus {
}

.object--minus:after {
  content: '−';
}

.object--key {
  width: 24px;
  height: 24px;
  border: none;
}

.object--key:before, .object--key:after {
  position: absolute;
  content: '';
  background: #777;
}

.object--key:before {
  left: 0;
  top: calc(50% - 1px);
  width: 50%;
  height: 3px;
}

.object--key:after {
  right: 0;
  top: calc(50% - 1px);
  width: 50%;
  height: 3px;
}

.object--lamp {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background .3;
}

.object--lamp:before, .object--lamp:after {
  position: absolute;
  content: '';
  width: 100%;
  height: 3px;
  top: calc(50% - 1px);
  background: #111;
}

.object--lamp:before {
  transform: rotate(-45deg);
}

.object--lamp:after {
  transform: rotate(45deg);
}

.object--resistor {
  width: 48px;
  height: 20px;
}

.object--transistor {
  width: 48px;
  height: 48px;
  border: none;
  background: url(/img/transistor.png) no-repeat;
}

.object--cursor.object--inactive {
  display: none;
}

.object--key.object--active {
  opacity: 1;
}

.object--key.object--active:before, .object--key.object--active:after {
  background: #111;
}

.object--key.object--active:before {
  width: 60%;
  transform: translateX(-2px) translateY(-4px) rotate(-45deg);
}

.object--lamp.object--active {
  background: #fecc40;
  border: 3px solid rgba(0,0,0,.5);
}

.object--lamp.object--active:before, .object--lamp.object--active:after {
  opacity: .5;
}

.object--resistor.object--vert {
  width: 20px;
  height: 44px;
}

/* board */

.board {
  position: relative;
  background: inherit;
  cursor: url(/img/pen.png), crosshair;
}

.board__remote-frame {
  position: absolute;
  left: 0;
  top: 0;
  background: #fcfcfc;
  border: 1px solid #fefefe;
  transform-origin: top left;
}

.board__image {
  display: none;
  position: relative;
  left: 32px;
  top: 24px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.board__texts {
  position: absolute;
  left: 0px;
  top: 0px;
  right: 0px;
  bottom: 0px;
}

.board__texts--remote {
  pointer-events: none;
}

.board__canvas {
  position: absolute;
  left: 0px;
  top: 0px;
  right: 0px;
  bottom: 0px;
}

.board--erasing {
  cursor: url(/img/eraser.png) 4 12, crosshair;
}

.board--texting {
  outline: 2px dashed #6565FF;
}

.board--texting .board__canvas {
  pointer-events: none;
}

.board--selecting-text {
  cursor: crosshair;
}

.board--selecting-text .text:hover {
  background: rgba(255,255,255,.5);
}

.board--placing-object {
  cursor: none;
}

.board--placing-object .board__objects {
}

.board--placing-object .board__texts {
  pointer-events: none;
}

.board--placing-object .board__canvas {
  pointer-events: none;
}

.board__image[src] {
  display: block;
}

.board__image[src=''] {
  display: none;
}

.remote-cursor {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0,0,0, .125);
  transform: translateX(-50%) translateY(-50%);
}

.text {
  position: absolute;
  background: transparent;
  white-space: pre;
  overflow: hidden;
}

.text:focus, .text--focused {
  background: rgba(255,255,255,.75);
}

.shadow-text {
  position: fixed;
  visibility: hidden;
  z-index: -1;
  min-width: 0;
  white-space: pre;
}

.remote-text-selection {
  display: none;
  position: absolute;
  white-space: pre;
  color: transparent;
  pointer-events: none;
}

.remote-text-selection--active {
  display: block;
}

.remote-text-selection__head, .remote-text-selection__body, .remote-text-selection__tail, .remote-text-selection__caret {
  position: absolute;
  left: 0;
  top: 0;
  display: none;
  background: rgba(192, 192, 192, .25);
}

.remote-text-selection__head--active, .remote-text-selection__body--active, .remote-text-selection__tail--active, .remote-text-selection__caret--active {
  display: block;
}

.remote-text-selection__caret {
  display: none;
  position: absolute;
  left: 0;
  bottom: 1px;
  width: 2px;
  background: rgba(192, 192, 255, .25);
}

.remote-text-selection__caret--active {
  display: block;
}

/* hide togetherjs */

.togetherjs {
  display: none !important;
}

.togetherjs-cursor {
  display: none !important;
}

.togetherjs-focus {
  display: none !important;
}

