#nn {
    width: 100%;
    height: 100%;
}

#nn .nn-middle-size {
    font-size: 20px;
}

#nn .nn-bold {
    font-weight: bold;
}

#nn .nn-large-size {
    font-size: 28px;
}

#nn-top-controls {
    width: 100%;
    border-bottom: 1px solid #ddd;
    padding: 18px 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    background: white;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: space-between;
    justify-content: space-between;
}

#nn-top-controls .nn-control {
    flex-grow: 1;
    margin-left: 10px;
    margin-top: 6px;
}

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

#nn-top-controls .nn-control .value {
    font-size: 24px;
    margin: 0;
    font-weight: 300;
}

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

#nn-show-math {
    alignment: left;
    background-color: #f0f0f0;
}

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

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

#nn-features {
    width: 10%;
    position: relative;
}

#nn-features .nn-plus-minus-neurons {
    position: absolute;
    line-height: 28px;
    top: -58px;
    width: 80px;
    height: 44px;
}

#nn-features .nn-plus-minus-neuron-button {
    background-color: rgb(239, 239, 239);
    width: 35px;
    height: 28px;
    min-width: 35px;
    border-radius: 3px;
    border-width: thin;
}

#nn-top-controls .nn-num-layers-group {
    font-weight: bold;
    margin-bottom: 5px;
}

#nn-features .nn-plus-minus-neurons .nn-plus-minus-neuron-button:first-of-type {
    margin-right: 5px;
}

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

#nn-features .nn-showval {
    display: block;
    font-size: 16px;
    font-weight: bold;
    text-anchor: end;
}

#nn-features svg #markerArrow {
    fill: black;
    stroke: black;
    stroke-opacity: 0.2;
}

#nn-features .node_input rect {
    cursor: default;
    fill: rgb(143, 164, 2);
    stroke-width: 1;
    stroke: black;
}

#nn-features .node_hidden rect {
    cursor: default;
    fill: rgb(144, 133, 186);
    stroke-width: 1;
    stroke: black;
}

#nn-features .node_output rect {
    cursor: default;
    fill: rgb(242, 148, 0);
    stroke-width: 1;
    stroke: black;
}

#nn-features .core .link {
    stroke-dasharray: 9 1;
    stroke-dashoffset: 1;
    /* webkit-animation: 0.5s linear 0s infinite flowing; */
}

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

#nn-features .core .nn-weight-show-click {
    stroke-width: 12;
    stroke: gray;
    fill: none;
    opacity: 0.3;
}

#nn-features .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);
}

#nn-network {
    position: absolute;
    top: 50px;
    left: 0;
}

#nn-editCard {
    display: none;
    position: absolute;
    padding: 5px;
    border: 1px solid #aaa;
    z-index: 10;
    background: #fff;
    cursor: default;
    border-radius: 5px;
    left: 240px;
    width: 200px;
    top: -20px;
}

#nn-network .nn-type {
    style: "font-size: 14px"
}

#nn-hovercard input {
    width: 60px;
}

canvas {
    display: block;
}

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

g.column rect {
    stroke: none;
}

@-webkit-keyframes flowing {
    from {
        stroke-dashoffset: 0;
    }
    to {
        stroke-dashoffset: -10;
    }
}
