body,
input,
button {
    font-family: "Ubuntu Mono", monospace;
    color: #333;
}

a,
a:visited,
a:active,
a:hover {
    text-decoration: none;
    color: #aaa;
}

.hidden {
  display: none;
}

.wrapper {
    width: 960px;
    margin: 0 auto;
    position: relative;
    vertical-align: top;
}

form {
    padding-top: 1em;
    text-align: center;
}

.form-group {
    display: inline-block;
    width: 45%;
    margin-right: 5%;
    text-align: left;
    vertical-align: top;
}

.form-group:last-of-type {
    margin-right: 0;
}

.help-block {
    color: #999;
}

#graph {
    position: relative;
    border: 2px solid #eee;
    box-shadow: 5px 5px 10px #eee;
    width: 960px;
    margin: 0 auto;
}

#graph p {
    color: #888;
    margin-left: 1em;
}

#graph .menu {
    display: none;
    position: absolute;
    top: 1em;
    right: 1em;
}

#graph .instructions {
    position: absolute;
    top: 1em;
    left: 1em;
}

#graph .instructions .expand-help .caret {
    display: inline-block;
    width: 0;
    height: 0;
    vertical-align: middle;
    border-top:   5px dashed;
    border-top:   5px solid ~"\9";
    border-right: 5px solid transparent;
    border-left:  5px solid transparent;
}

#graph .link line {
  stroke: rgba(0,0,0,0.25);
  cursor: pointer;
}

#graph .link .meaning {
  fill: #88F;
  font: 10px "Ubuntu Mono", monospace;
  text-anchor: middle;
}

#graph .node {
    cursor: grab;
    cursor: -moz-grab;
    cursor: -webkit-grab;
}

#graph .node circle {
    fill: #888;
    stroke: #888;
    stroke-width: 1px;
}

#graph .node text {
  pointer-events: none;
  font: 10px "Ubuntu Mono", monospace;
}

#graph.build {
    cursor: crosshair;
    style: -moz-user-select: none; -webkit-user-select: none; -ms-user-select:none; user-select:none;-o-user-select:none;
}

#graph.build .node {
    cursor: pointer;
}

#graph.build .node.selected circle {
    stroke: #44f;
    stroke-width: 2px;
    fill: #88f;
}

#graph.build .dragline {
    stroke: #44f;
    stroke-width: 2px;
}

#graph .templates {
    position: absolute;
    bottom: 0;
    left: 5px;
}

#graph .templates .template {
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.25);
    border-radius: 5px;
    padding: 2px;
    margin-right: 2px;
    display: inline-block;
}

#graph .templates .template line {
    stroke: #888;
    stroke-width: 3px;
}

#graph .templates .template circle {
    fill: #888;
}

#graph .templates .template text {
    text-anchor: middle;
    fill: #888;
    font: 10px "Ubuntu Mono", monospace;
}
