cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <div class="map">
    <div class="map-inset">
         <strong>3rd floor</strong>
    </div><!-- /map-inset -->
    </div><!-- /map -->


    <div class="legend">
      <div class="legendInner">
        <div class="arrowText">
          <svg height="150" width="15">
            <text x="-130" y="15" transform="rotate(-90)">Time since checkin</text>
          </svg>
        </div>
        <div class="arrow">
          <svg width="10" heigth="150" viewBox="0 0 10 150">
            <defs>
              <marker xmlns="http://www.w3.org/2000/svg" id="triangle" viewBox="0 0 10 10" refX="0" refY="5" markerUnits="strokeWidth" markerWidth="4" markerHeight="3" orient="auto">
                <path d="M 0 0 L 10 5 L 0 10 z"/>
              </marker>
            </defs>
            <line x1="5" y1="150" x2="5" y2="10" marker-end="url(#triangle)" stroke="black" stroke-width="3px"/>
          </svg>
        </div>
        <div class="scale"></div>
      </div>
    </div><!-- /legend-->

<div class="userinfo">
      <h2><span class="pficon pficon-user"></span> <span class="name_v"></span></h2>
      <ul class="list-inline">
        <!--
          <li><strong><i class="fa fa-dot-circle-o"></i> ID:</strong> <span class="id_v"></span></li>
         -->
        <li><strong><i class="fa fa-dot-circle-o"></i> Beacon:</strong> <span class="beacon_v"></span></li>
        <li><strong><i class="fa fa-sign-in"></i> Check-in:</strong> <span class="checkin_v"></span></li>
        <li><strong><i class="fa fa-sign-out"></i> Check-out:</strong> <span class="checkout_v"></span></li>
      </ul>
      <p><strong><i class="fa fa-map-marker"></i> Location:</strong> <span class="location_v"></span></p>
    </div><!-- /userinfo-->

    <div class="progress progress-xs">
      <div class="progress-bar playback" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 0%;">
      </div>
      <div class="progress-bar buffer" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 0%;">
      </div>
    </div>


    <div class="info">


      <div>
        <strong>
          <i class="fa fa-clock-o"></i>
          Time
        </strong>
        <h1 id="time">&nbsp;</h1>
      </div><!-- /time -->
      <div>
        <strong>
          <i class="fa fa-bookmark"></i>
          Events
        </strong>
        <h1 id="interval">0</h1>
      </div><!-- /events -->
      <div>
        <strong>
          <i class="fa fa-dot-circle-o"></i>
          Nodes
        </strong>
        <h1 id="nodeCount">0</h1>
      </div><!-- /nodes -->
      <div >
        <ul id="log">
        </ul>
      </div><!-- /log -->

    </div><!-- /info -->

  </div><!-- /map-container-->

  <div id="cover">
    <div class="spinner-outer">
      <div class="spinner">
        <div class="spinner-container container1">
          <div class="circle1"></div>
          <div class="circle2"></div>
          <div class="circle3"></div>
          <div class="circle4"></div>
        </div>
        <div class="spinner-container container2">
          <div class="circle1"></div>
          <div class="circle2"></div>
          <div class="circle3"></div>
          <div class="circle4"></div>
        </div>
        <div class="spinner-container container3">
          <div class="circle1"></div>
          <div class="circle2"></div>
          <div class="circle3"></div>
          <div class="circle4"></div>
        </div>
      </div>
    </div>
  </div>
            
          
!
            
              /*! normalize.css v3.0.0 | MIT License | git.io/normalize */
html {
  font-family: sans-serif;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
  display: block;
}
audio,
canvas,
progress,
video {
  display: inline-block;
  vertical-align: baseline;
}
audio:not([controls]) {
  display: none;
  height: 0;
}
[hidden],
template {
  display: none;
}
a {
  background: transparent;
}
a:active,
a:hover {
  outline: 0;
}
abbr[title] {
  border-bottom: 1px dotted;
}
b,
strong {
  font-weight: bold;
}
dfn {
  font-style: italic;
}
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}
mark {
  background: #ff0;
  color: #000;
}
small {
  font-size: 80%;
}
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sup {
  top: -0.5em;
}
sub {
  bottom: -0.25em;
}
img {
  border: 0;
}
svg:not(:root) {
  overflow: hidden;
}
figure {
  margin: 1em 40px;
}
hr {
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  height: 0;
}
pre {
  overflow: auto;
}
code,
kbd,
pre,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}
button,
input,
optgroup,
select,
textarea {
  color: inherit;
  font: inherit;
  margin: 0;
}
button {
  overflow: visible;
}
button,
select {
  text-transform: none;
}
button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: button;
  cursor: pointer;
}
button[disabled],
html input[disabled] {
  cursor: default;
}
button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}
input {
  line-height: normal;
}
input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  height: auto;
}
input[type="search"] {
  -webkit-appearance: textfield;
  -moz-box-sizing: content-box;
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
}
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}
fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
}
legend {
  border: 0;
  padding: 0;
}
textarea {
  overflow: auto;
}
optgroup {
  font-weight: bold;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
td,
th {
  padding: 0;
}
* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
*:before,
*:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
html {
  font-size: 62.5%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
body {
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.66666667;
  color: #333333;
  background-color: #ffffff;
}
input,
button,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}
a {
  color: #0099d3;
  text-decoration: none;
}
a:hover,
a:focus {
  color: #00618a;
  text-decoration: underline;
}
a:focus {
  outline: thin dotted;
  outline: 5px auto -webkit-focus-ring-color;
  outline-offset: -2px;
}
figure {
  margin: 0;
}
img {
  vertical-align: middle;
}
.img-responsive {
  display: block;
  max-width: 100%;
  height: auto;
}
.img-rounded {
  border-radius: 1px;
}
.img-thumbnail {
  padding: 4px;
  line-height: 1.66666667;
  background-color: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 1px;
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  display: inline-block;
  max-width: 100%;
  height: auto;
}
.img-circle {
  border-radius: 50%;
}
hr {
  margin-top: 20px;
  margin-bottom: 20px;
  border: 0;
  border-top: 1px solid #eeeeee;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-family: inherit;
  font-weight: 500;
  line-height: 1.1;
  color: inherit;
}
h1 small,
h2 small,
h3 small,
h4 small,
h5 small,
h6 small,
.h1 small,
.h2 small,
.h3 small,
.h4 small,
.h5 small,
.h6 small,
h1 .small,
h2 .small,
h3 .small,
h4 .small,
h5 .small,
h6 .small,
.h1 .small,
.h2 .small,
.h3 .small,
.h4 .small,
.h5 .small,
.h6 .small {
  font-weight: normal;
  line-height: 1;
  color: #999999;
}
h1,
.h1,
h2,
.h2,
h3,
.h3 {
  margin-top: 20px;
  margin-bottom: 10px;
}
h1 small,
.h1 small,
h2 small,
.h2 small,
h3 small,
.h3 small,
h1 .small,
.h1 .small,
h2 .small,
.h2 .small,
h3 .small,
.h3 .small {
  font-size: 65%;
}
h4,
.h4,
h5,
.h5,
h6,
.h6 {
  margin-top: 10px;
  margin-bottom: 10px;
}
h4 small,
.h4 small,
h5 small,
.h5 small,
h6 small,
.h6 small,
h4 .small,
.h4 .small,
h5 .small,
.h5 .small,
h6 .small,
.h6 .small {
  font-size: 75%;
}
h1,
.h1 {
  font-size: 24px;
}
h2,
.h2 {
  font-size: 22px;
}
h3,
.h3 {
  font-size: 16px;
}
h4,
.h4 {
  font-size: 15px;
}
h5,
.h5 {
  font-size: 13px;
}
h6,
.h6 {
  font-size: 11px;
}
p {
  margin: 0 0 10px;
}
.lead {
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 200;
  line-height: 1.4;
}
@media (min-width: 768px) {
  .lead {
    font-size: 18px;
  }
}
small,
.small {
  font-size: 85%;
}
cite {
  font-style: normal;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}
.text-center {
  text-align: center;
}
.text-justify {
  text-align: justify;
}
.text-muted {
  color: #999999;
}
.text-primary {
  color: #00a8e1;
}
a.text-primary:hover {
  color: #0082ae;
}
.text-success {
  color: #3c763d;
}
a.text-success:hover {
  color: #2b542c;
}
.text-info {
  color: #31708f;
}
a.text-info:hover {
  color: #245269;
}
.text-warning {
  color: #ec7a08;
}
a.text-warning:hover {
  color: #bb6106;
}
.text-danger {
  color: #a94442;
}
a.text-danger:hover {
  color: #843534;
}
.bg-primary {
  color: #fff;
  background-color: #00a8e1;
}
a.bg-primary:hover {
  background-color: #0082ae;
}
.bg-success {
  background-color: #dff0d8;
}
a.bg-success:hover {
  background-color: #c1e2b3;
}
.bg-info {
  background-color: #d9edf7;
}
a.bg-info:hover {
  background-color: #afd9ee;
}
.bg-warning {
  background-color: #fcf8e3;
}
a.bg-warning:hover {
  background-color: #f7ecb5;
}
.bg-danger {
  background-color: #f2dede;
}
a.bg-danger:hover {
  background-color: #e4b9b9;
}
.page-header {
  padding-bottom: 9px;
  margin: 40px 0 20px;
  border-bottom: 1px solid #eeeeee;
}
ul,
ol {
  margin-top: 0;
  margin-bottom: 10px;
}
ul ul,
ol ul,
ul ol,
ol ol {
  margin-bottom: 0;
}
.list-unstyled {
  padding-left: 0;
  list-style: none;
}
.list-inline {
  padding-left: 0;
  list-style: none;
  margin-left: -5px;
}
.list-inline > li {
  display: inline-block;
  padding-left: 5px;
  padding-right: 5px;
}
dl {
  margin-top: 0;
  margin-bottom: 20px;
}
dt,
dd {
  line-height: 1.66666667;
}
dt {
  font-weight: bold;
}
dd {
  margin-left: 0;
}
@media (min-width: 768px) {
  .dl-horizontal dt {
    float: left;
    width: 160px;
    clear: left;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .dl-horizontal dd {
    margin-left: 180px;
  }
}
abbr[title],
abbr[data-original-title] {
  cursor: help;
  border-bottom: 1px dotted #999999;
}
.initialism {
  font-size: 90%;
  text-transform: uppercase;
}
blockquote {
  padding: 10px 20px;
  margin: 0 0 20px;
  font-size: 15px;
  border-left: 5px solid #eeeeee;
}
blockquote p:last-child,
blockquote ul:last-child,
blockquote ol:last-child {
  margin-bottom: 0;
}
blockquote footer,
blockquote small,
blockquote .small {
  display: block;
  font-size: 80%;
  line-height: 1.66666667;
  color: #999999;
}
blockquote footer:before,
blockquote small:before,
blockquote .small:before {
  content: '\2014 \00A0';
}
.blockquote-reverse,
blockquote.pull-right {
  padding-right: 15px;
  padding-left: 0;
  border-right: 5px solid #eeeeee;
  border-left: 0;
  text-align: right;
}
.blockquote-reverse footer:before,
blockquote.pull-right footer:before,
.blockquote-reverse small:before,
blockquote.pull-right small:before,
.blockquote-reverse .small:before,
blockquote.pull-right .small:before {
  content: '';
}
.blockquote-reverse footer:after,
blockquote.pull-right footer:after,
.blockquote-reverse small:after,
blockquote.pull-right small:after,
.blockquote-reverse .small:after,
blockquote.pull-right .small:after {
  content: '\00A0 \2014';
}
blockquote:before,
blockquote:after {
  content: "";
}
address {
  margin-bottom: 20px;
  font-style: normal;
  line-height: 1.66666667;
}
fieldset {
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0;
}
legend {
  display: block;
  width: 100%;
  padding: 0;
  margin-bottom: 20px;
  font-size: 18px;
  line-height: inherit;
  color: #333333;
  border: 0;
  border-bottom: 1px solid #e5e5e5;
}
label {
  display: inline-block;
  margin-bottom: 5px;
  font-weight: bold;
}
input[type="search"] {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
input[type="radio"],
input[type="checkbox"] {
  margin: 4px 0 0;
  margin-top: 1px \9;
  /* IE8-9 */
  line-height: normal;
}
input[type="file"] {
  display: block;
}
input[type="range"] {
  display: block;
  width: 100%;
}
select[multiple],
select[size] {
  height: auto;
}
input[type="file"]:focus,
input[type="radio"]:focus,
input[type="checkbox"]:focus {
  outline: thin dotted;
  outline: 5px auto -webkit-focus-ring-color;
  outline-offset: -2px;
}
output {
  display: block;
  padding-top: 3px;
  font-size: 12px;
  line-height: 1.66666667;
  color: #333333;
}
.form-control {
  display: block;
  width: 100%;
  height: 26px;
  padding: 2px 6px;
  font-size: 12px;
  line-height: 1.66666667;
  color: #333333;
  background-color: #ffffff;
  background-image: none;
  border: 1px solid #bababa;
  border-radius: 1px;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
  transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}
.form-control:focus {
  border-color: #66afe9;
  outline: 0;
  -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);
  box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);
}
.form-control::-moz-placeholder {
  color: #999999;
  opacity: 1;
}
.form-control:-ms-input-placeholder {
  color: #999999;
}
.form-control::-webkit-input-placeholder {
  color: #999999;
}
.form-control:-moz-placeholder {
  color: #999999;
  font-style: italic;
}
.form-control::-moz-placeholder {
  color: #999999;
  font-style: italic;
}
.form-control:-ms-input-placeholder {
  color: #999999;
  font-style: italic;
}
.form-control::-webkit-input-placeholder {
  color: #999999;
  font-style: italic;
}
.form-control[disabled],
.form-control[readonly],
fieldset[disabled] .form-control {
  cursor: not-allowed;
  background-color: #f8f8f8;
  opacity: 1;
}
textarea.form-control {
  height: auto;
}
input[type="search"] {
  -webkit-appearance: none;
}
input[type="date"] {
  line-height: 26px;
}
.form-group {
  margin-bottom: 15px;
}
.radio,
.checkbox {
  display: block;
  min-height: 20px;
  margin-top: 10px;
  margin-bottom: 10px;
  padding-left: 20px;
}
.radio label,
.checkbox label {
  display: inline;
  font-weight: normal;
  cursor: pointer;
}
.radio input[type="radio"],
.radio-inline input[type="radio"],
.checkbox input[type="checkbox"],
.checkbox-inline input[type="checkbox"] {
  float: left;
  margin-left: -20px;
}
.radio + .radio,
.checkbox + .checkbox {
  margin-top: -5px;
}
.radio-inline,
.checkbox-inline {
  display: inline-block;
  padding-left: 20px;
  margin-bottom: 0;
  vertical-align: middle;
  font-weight: normal;
  cursor: pointer;
}
.radio-inline + .radio-inline,
.checkbox-inline + .checkbox-inline {
  margin-top: 0;
  margin-left: 10px;
}
input[type="radio"][disabled],
input[type="checkbox"][disabled],
.radio[disabled],
.radio-inline[disabled],
.checkbox[disabled],
.checkbox-inline[disabled],
fieldset[disabled] input[type="radio"],
fieldset[disabled] input[type="checkbox"],
fieldset[disabled] .radio,
fieldset[disabled] .radio-inline,
fieldset[disabled] .checkbox,
fieldset[disabled] .checkbox-inline {
  cursor: not-allowed;
}
.input-sm {
  height: 22px;
  padding: 2px 6px;
  font-size: 11px;
  line-height: 1.5;
  border-radius: 1px;
}
select.input-sm {
  height: 22px;
  line-height: 22px;
}
textarea.input-sm,
select[multiple].input-sm {
  height: auto;
}
.input-lg {
  height: 33px;
  padding: 6px 10px;
  font-size: 14px;
  line-height: 1.33;
  border-radius: 1px;
}
select.input-lg {
  height: 33px;
  line-height: 33px;
}
textarea.input-lg,
select[multiple].input-lg {
  height: auto;
}
.has-feedback {
  position: relative;
}
.has-feedback .form-control {
  padding-right: 32.5px;
}
.has-feedback .form-control-feedback {
  position: absolute;
  top: 25px;
  right: 0;
  display: block;
  width: 26px;
  height: 26px;
  line-height: 26px;
  text-align: center;
}
.has-success .help-block,
.has-success .control-label,
.has-success .radio,
.has-success .checkbox,
.has-success .radio-inline,
.has-success .checkbox-inline {
  color: #3c763d;
}
.has-success .form-control {
  border-color: #3c763d;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}
.has-success .form-control:focus {
  border-color: #2b542c;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168;
}
.has-success .input-group-addon {
  color: #3c763d;
  border-color: #3c763d;
  background-color: #dff0d8;
}
.has-success .form-control-feedback {
  color: #3c763d;
}
.has-warning .help-block,
.has-warning .control-label,
.has-warning .radio,
.has-warning .checkbox,
.has-warning .radio-inline,
.has-warning .checkbox-inline {
  color: #ec7a08;
}
.has-warning .form-control {
  border-color: #ec7a08;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}
.has-warning .form-control:focus {
  border-color: #bb6106;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #faad60;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #faad60;
}
.has-warning .input-group-addon {
  color: #ec7a08;
  border-color: #ec7a08;
  background-color: #fcf8e3;
}
.has-warning .form-control-feedback {
  color: #ec7a08;
}
.has-error .help-block,
.has-error .control-label,
.has-error .radio,
.has-error .checkbox,
.has-error .radio-inline,
.has-error .checkbox-inline {
  color: #a94442;
}
.has-error .form-control {
  border-color: #a94442;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}
.has-error .form-control:focus {
  border-color: #843534;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483;
}
.has-error .input-group-addon {
  color: #a94442;
  border-color: #a94442;
  background-color: #f2dede;
}
.has-error .form-control-feedback {
  color: #a94442;
}
.form-control-static {
  margin-bottom: 0;
}
.help-block {
  display: block;
  margin-top: 5px;
  margin-bottom: 10px;
  color: #737373;
}
@media (min-width: 768px) {
  .form-inline .form-group {
    display: inline-block;
    margin-bottom: 0;
    vertical-align: middle;
  }
  .form-inline .form-control {
    display: inline-block;
    width: auto;
    vertical-align: middle;
  }
  .form-inline .input-group > .form-control {
    width: 100%;
  }
  .form-inline .control-label {
    margin-bottom: 0;
    vertical-align: middle;
  }
  .form-inline .radio,
  .form-inline .checkbox {
    display: inline-block;
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 0;
    vertical-align: middle;
  }
  .form-inline .radio input[type="radio"],
  .form-inline .checkbox input[type="checkbox"] {
    float: none;
    margin-left: 0;
  }
  .form-inline .has-feedback .form-control-feedback {
    top: 0;
  }
}
.form-horizontal .control-label,
.form-horizontal .radio,
.form-horizontal .checkbox,
.form-horizontal .radio-inline,
.form-horizontal .checkbox-inline {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 3px;
}
.form-horizontal .radio,
.form-horizontal .checkbox {
  min-height: 23px;
}
.form-horizontal .form-group {
  margin-left: -20px;
  margin-right: -20px;
}
.form-horizontal .form-control-static {
  padding-top: 3px;
}
@media (min-width: 768px) {
  .form-horizontal .control-label {
    text-align: right;
  }
}
.form-horizontal .has-feedback .form-control-feedback {
  top: 0;
  right: 20px;
}
.btn {
  display: inline-block;
  margin-bottom: 0;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  background-image: none;
  border: 1px solid transparent;
  white-space: nowrap;
  padding: 2px 6px;
  font-size: 12px;
  line-height: 1.66666667;
  border-radius: 1px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.btn:focus,
.btn:active:focus,
.btn.active:focus {
  outline: thin dotted;
  outline: 5px auto -webkit-focus-ring-color;
  outline-offset: -2px;
}
.btn:hover,
.btn:focus {
  color: #4d5258;
  text-decoration: none;
}
.btn:active,
.btn.active {
  outline: 0;
  background-image: none;
  -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}
.btn.disabled,
.btn[disabled],
fieldset[disabled] .btn {
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.65;
  filter: alpha(opacity=65);
  -webkit-box-shadow: none;
  box-shadow: none;
}
.btn-default {
  color: #4d5258;
  background-color: #eeeeee;
  border-color: #b7b7b7;
}
.btn-default:hover,
.btn-default:focus,
.btn-default:active,
.btn-default.active,
.open .dropdown-toggle.btn-default {
  color: #4d5258;
  background-color: #dadada;
  border-color: #989898;
}
.btn-default:active,
.btn-default.active,
.open .dropdown-toggle.btn-default {
  background-image: none;
}
.btn-default.disabled,
.btn-default[disabled],
fieldset[disabled] .btn-default,
.btn-default.disabled:hover,
.btn-default[disabled]:hover,
fieldset[disabled] .btn-default:hover,
.btn-default.disabled:focus,
.btn-default[disabled]:focus,
fieldset[disabled] .btn-default:focus,
.btn-default.disabled:active,
.btn-default[disabled]:active,
fieldset[disabled] .btn-default:active,
.btn-default.disabled.active,
.btn-default[disabled].active,
fieldset[disabled] .btn-default.active {
  background-color: #eeeeee;
  border-color: #b7b7b7;
}
.btn-default .badge {
  color: #eeeeee;
  background-color: #4d5258;
}
.btn-primary {
  color: #ffffff;
  background-color: #0085cf;
  border-color: #006e9c;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.open .dropdown-toggle.btn-primary {
  color: #ffffff;
  background-color: #006ba6;
  border-color: #00435f;
}
.btn-primary:active,
.btn-primary.active,
.open .dropdown-toggle.btn-primary {
  background-image: none;
}
.btn-primary.disabled,
.btn-primary[disabled],
fieldset[disabled] .btn-primary,
.btn-primary.disabled:hover,
.btn-primary[disabled]:hover,
fieldset[disabled] .btn-primary:hover,
.btn-primary.disabled:focus,
.btn-primary[disabled]:focus,
fieldset[disabled] .btn-primary:focus,
.btn-primary.disabled:active,
.btn-primary[disabled]:active,
fieldset[disabled] .btn-primary:active,
.btn-primary.disabled.active,
.btn-primary[disabled].active,
fieldset[disabled] .btn-primary.active {
  background-color: #0085cf;
  border-color: #006e9c;
}
.btn-primary .badge {
  color: #0085cf;
  background-color: #ffffff;
}
.btn-success {
  color: #ffffff;
  background-color: #3f9c35;
  border-color: #37892f;
}
.btn-success:hover,
.btn-success:focus,
.btn-success:active,
.btn-success.active,
.open .dropdown-toggle.btn-success {
  color: #ffffff;
  background-color: #337e2b;
  border-color: #255b1f;
}
.btn-success:active,
.btn-success.active,
.open .dropdown-toggle.btn-success {
  background-image: none;
}
.btn-success.disabled,
.btn-success[disabled],
fieldset[disabled] .btn-success,
.btn-success.disabled:hover,
.btn-success[disabled]:hover,
fieldset[disabled] .btn-success:hover,
.btn-success.disabled:focus,
.btn-success[disabled]:focus,
fieldset[disabled] .btn-success:focus,
.btn-success.disabled:active,
.btn-success[disabled]:active,
fieldset[disabled] .btn-success:active,
.btn-success.disabled.active,
.btn-success[disabled].active,
fieldset[disabled] .btn-success.active {
  background-color: #3f9c35;
  border-color: #37892f;
}
.btn-success .badge {
  color: #3f9c35;
  background-color: #ffffff;
}
.btn-info {
  color: #ffffff;
  background-color: #006e9c;
  border-color: #005c83;
}
.btn-info:hover,
.btn-info:focus,
.btn-info:active,
.btn-info.active,
.open .dropdown-toggle.btn-info {
  color: #ffffff;
  background-color: #005173;
  border-color: #003145;
}
.btn-info:active,
.btn-info.active,
.open .dropdown-toggle.btn-info {
  background-image: none;
}
.btn-info.disabled,
.btn-info[disabled],
fieldset[disabled] .btn-info,
.btn-info.disabled:hover,
.btn-info[disabled]:hover,
fieldset[disabled] .btn-info:hover,
.btn-info.disabled:focus,
.btn-info[disabled]:focus,
fieldset[disabled] .btn-info:focus,
.btn-info.disabled:active,
.btn-info[disabled]:active,
fieldset[disabled] .btn-info:active,
.btn-info.disabled.active,
.btn-info[disabled].active,
fieldset[disabled] .btn-info.active {
  background-color: #006e9c;
  border-color: #005c83;
}
.btn-info .badge {
  color: #006e9c;
  background-color: #ffffff;
}
.btn-warning {
  color: #ffffff;
  background-color: #ec7a08;
  border-color: #d36d07;
}
.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active,
.btn-warning.active,
.open .dropdown-toggle.btn-warning {
  color: #ffffff;
  background-color: #c56607;
  border-color: #984f05;
}
.btn-warning:active,
.btn-warning.active,
.open .dropdown-toggle.btn-warning {
  background-image: none;
}
.btn-warning.disabled,
.btn-warning[disabled],
fieldset[disabled] .btn-warning,
.btn-warning.disabled:hover,
.btn-warning[disabled]:hover,
fieldset[disabled] .btn-warning:hover,
.btn-warning.disabled:focus,
.btn-warning[disabled]:focus,
fieldset[disabled] .btn-warning:focus,
.btn-warning.disabled:active,
.btn-warning[disabled]:active,
fieldset[disabled] .btn-warning:active,
.btn-warning.disabled.active,
.btn-warning[disabled].active,
fieldset[disabled] .btn-warning.active {
  background-color: #ec7a08;
  border-color: #d36d07;
}
.btn-warning .badge {
  color: #ec7a08;
  background-color: #ffffff;
}
.btn-danger {
  color: #ffffff;
  background-color: #a30000;
  border-color: #781919;
}
.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active,
.btn-danger.active,
.open .dropdown-toggle.btn-danger {
  color: #ffffff;
  background-color: #7a0000;
  border-color: #450e0e;
}
.btn-danger:active,
.btn-danger.active,
.open .dropdown-toggle.btn-danger {
  background-image: none;
}
.btn-danger.disabled,
.btn-danger[disabled],
fieldset[disabled] .btn-danger,
.btn-danger.disabled:hover,
.btn-danger[disabled]:hover,
fieldset[disabled] .btn-danger:hover,
.btn-danger.disabled:focus,
.btn-danger[disabled]:focus,
fieldset[disabled] .btn-danger:focus,
.btn-danger.disabled:active,
.btn-danger[disabled]:active,
fieldset[disabled] .btn-danger:active,
.btn-danger.disabled.active,
.btn-danger[disabled].active,
fieldset[disabled] .btn-danger.active {
  background-color: #a30000;
  border-color: #781919;
}
.btn-danger .badge {
  color: #a30000;
  background-color: #ffffff;
}
.btn-link {
  color: #0099d3;
  font-weight: normal;
  cursor: pointer;
  border-radius: 0;
}
.btn-link,
.btn-link:active,
.btn-link[disabled],
fieldset[disabled] .btn-link {
  background-color: transparent;
  -webkit-box-shadow: none;
  box-shadow: none;
}
.btn-link,
.btn-link:hover,
.btn-link:focus,
.btn-link:active {
  border-color: transparent;
}
.btn-link:hover,
.btn-link:focus {
  color: #00618a;
  text-decoration: underline;
  background-color: transparent;
}
.btn-link[disabled]:hover,
fieldset[disabled] .btn-link:hover,
.btn-link[disabled]:focus,
fieldset[disabled] .btn-link:focus {
  color: #999999;
  text-decoration: none;
}
.btn-lg {
  padding: 6px 10px;
  font-size: 14px;
  line-height: 1.33;
  border-radius: 1px;
}
.btn-sm {
  padding: 2px 6px;
  font-size: 11px;
  line-height: 1.5;
  border-radius: 1px;
}
.btn-xs {
  padding: 1px 5px;
  font-size: 11px;
  line-height: 1.5;
  border-radius: 1px;
}
.btn-block {
  display: block;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}
.btn-block + .btn-block {
  margin-top: 5px;
}
input[type="submit"].btn-block,
input[type="reset"].btn-block,
input[type="button"].btn-block {
  width: 100%;
}
.caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 2px;
  vertical-align: middle;
  border-top: 0 solid;
  border-right: 0 solid transparent;
  border-left: 0 solid transparent;
}
.dropdown {
  position: relative;
}
.dropdown-toggle:focus {
  outline: 0;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
  float: left;
  min-width: 160px;
  padding: 5px 0;
  margin: 2px 0 0;
  list-style: none;
  font-size: 12px;
  background-color: #ffffff;
  border: 1px solid #b6b6b6;
  border-radius: 1px;
  -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  background-clip: padding-box;
}
.dropdown-menu.pull-right {
  right: 0;
  left: auto;
}
.dropdown-menu .divider {
  margin: 9px 0;
  background-color: #e5e5e5;
  height: 1px;
  margin: 4px 1px;
  overflow: hidden;
}
.dropdown-menu > li > a {
  display: block;
  padding: 3px 20px;
  clear: both;
  font-weight: normal;
  line-height: 1.66666667;
  color: #333333;
  white-space: nowrap;
}
.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
  text-decoration: none;
  color: #4d5258;
  background-color: #d4edfa;
}
.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus {
  color: #ffffff;
  text-decoration: none;
  outline: 0;
  background-color: #0099d3;
}
.dropdown-menu > .disabled > a,
.dropdown-menu > .disabled > a:hover,
.dropdown-menu > .disabled > a:focus {
  color: #999999;
}
.dropdown-menu > .disabled > a:hover,
.dropdown-menu > .disabled > a:focus {
  text-decoration: none;
  background-color: transparent;
  background-image: none;
  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
  cursor: not-allowed;
}
.open > .dropdown-menu {
  display: block;
}
.open > a {
  outline: 0;
}
.dropdown-menu-right {
  left: auto;
  right: 0;
}
.dropdown-menu-left {
  left: 0;
  right: auto;
}
.dropdown-header {
  display: block;
  padding: 3px 20px;
  font-size: 11px;
  line-height: 1.66666667;
  color: #999999;
}
.dropdown-backdrop {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  z-index: 990;
}
.pull-right > .dropdown-menu {
  right: 0;
  left: auto;
}
.dropup .caret,
.navbar-fixed-bottom .dropdown .caret {
  border-top: 0;
  border-bottom: 0 solid;
  content: "";
}
.dropup .dropdown-menu,
.navbar-fixed-bottom .dropdown .dropdown-menu {
  top: auto;
  bottom: 100%;
  margin-bottom: 1px;
}
@media (min-width: 768px) {
  .navbar-right .dropdown-menu {
    left: auto;
    right: 0;
  }
  .navbar-right .dropdown-menu-left {
    left: 0;
    right: auto;
  }
}
.nav {
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
}
.nav > li {
  position: relative;
  display: block;
}
.nav > li > a {
  position: relative;
  display: block;
  padding: 10px 15px;
}
.nav > li > a:hover,
.nav > li > a:focus {
  text-decoration: none;
  background-color: #eeeeee;
}
.nav > li.disabled > a {
  color: #999999;
}
.nav > li.disabled > a:hover,
.nav > li.disabled > a:focus {
  color: #999999;
  text-decoration: none;
  background-color: transparent;
  cursor: not-allowed;
}
.nav .open > a,
.nav .open > a:hover,
.nav .open > a:focus {
  background-color: #eeeeee;
  border-color: #0099d3;
}
.nav .nav-divider {
  margin: 9px 0;
  background-color: #e5e5e5;
  height: 1px;
  margin: 4px 1px;
  overflow: hidden;
}
.nav > li > a > img {
  max-width: none;
}
.nav-tabs {
  border-bottom: 1px solid #e9e8e8;
}
.nav-tabs > li {
  float: left;
  margin-bottom: -1px;
}
.nav-tabs > li > a {
  margin-right: 2px;
  line-height: 1.66666667;
  border: 1px solid transparent;
  border-radius: 1px 1px 0 0;
}
.nav-tabs > li > a:hover {
  border-color: transparent transparent #e9e8e8;
}
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
  color: #0099d3;
  background-color: #ffffff;
  border: 1px solid #dddddd;
  border-bottom-color: transparent;
  cursor: default;
}
.nav-tabs.nav-justified {
  width: 100%;
  border-bottom: 0;
}
.nav-tabs.nav-justified > li {
  float: none;
}
.nav-tabs.nav-justified > li > a {
  text-align: center;
  margin-bottom: 5px;
}
.nav-tabs.nav-justified > .dropdown .dropdown-menu {
  top: auto;
  left: auto;
}
@media (min-width: 768px) {
  .nav-tabs.nav-justified > li {
    display: table-cell;
    width: 1%;
  }
  .nav-tabs.nav-justified > li > a {
    margin-bottom: 0;
  }
}
.nav-tabs.nav-justified > li > a {
  margin-right: 0;
  border-radius: 1px;
}
.nav-tabs.nav-justified > .active > a,
.nav-tabs.nav-justified > .active > a:hover,
.nav-tabs.nav-justified > .active > a:focus {
  border: 1px solid #e9e8e8;
}
@media (min-width: 768px) {
  .nav-tabs.nav-justified > li > a {
    border-bottom: 1px solid #e9e8e8;
    border-radius: 1px 1px 0 0;
  }
  .nav-tabs.nav-justified > .active > a,
  .nav-tabs.nav-justified > .active > a:hover,
  .nav-tabs.nav-justified > .active > a:focus {
    border-bottom-color: #ffffff;
  }
}
.nav-pills > li {
  float: left;
}
.nav-pills > li > a {
  border-radius: 1px;
}
.nav-pills > li + li {
  margin-left: 2px;
}
.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus {
  color: #ffffff;
  background-color: #00a8e1;
}
.nav-stacked > li {
  float: none;
}
.nav-stacked > li + li {
  margin-top: 2px;
  margin-left: 0;
}
.nav-justified {
  width: 100%;
}
.nav-justified > li {
  float: none;
}
.nav-justified > li > a {
  text-align: center;
  margin-bottom: 5px;
}
.nav-justified > .dropdown .dropdown-menu {
  top: auto;
  left: auto;
}
@media (min-width: 768px) {
  .nav-justified > li {
    display: table-cell;
    width: 1%;
  }
  .nav-justified > li > a {
    margin-bottom: 0;
  }
}
.nav-tabs-justified {
  border-bottom: 0;
}
.nav-tabs-justified > li > a {
  margin-right: 0;
  border-radius: 1px;
}
.nav-tabs-justified > .active > a,
.nav-tabs-justified > .active > a:hover,
.nav-tabs-justified > .active > a:focus {
  border: 1px solid #e9e8e8;
}
@media (min-width: 768px) {
  .nav-tabs-justified > li > a {
    border-bottom: 1px solid #e9e8e8;
    border-radius: 1px 1px 0 0;
  }
  .nav-tabs-justified > .active > a,
  .nav-tabs-justified > .active > a:hover,
  .nav-tabs-justified > .active > a:focus {
    border-bottom-color: #ffffff;
  }
}
.tab-content > .tab-pane {
  display: none;
}
.tab-content > .active {
  display: block;
}
.nav-tabs .dropdown-menu {
  margin-top: -1px;
  border-top-right-radius: 0;
  border-top-left-radius: 0;
}
.navbar {
  position: relative;
  min-height: 50px;
  margin-bottom: 20px;
  border: 1px solid transparent;
}
@media (min-width: 768px) {
  .navbar {
    border-radius: 1px;
  }
}
@media (min-width: 768px) {
  .navbar-header {
    float: left;
  }
}
.navbar-collapse {
  max-height: 340px;
  overflow-x: visible;
  padding-right: 20px;
  padding-left: 20px;
  border-top: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  -webkit-overflow-scrolling: touch;
}
.navbar-collapse.in {
  overflow-y: auto;
}
@media (min-width: 768px) {
  .navbar-collapse {
    width: auto;
    border-top: 0;
    box-shadow: none;
  }
  .navbar-collapse.collapse {
    display: block !important;
    height: auto !important;
    padding-bottom: 0;
    overflow: visible !important;
  }
  .navbar-collapse.in {
    overflow-y: visible;
  }
  .navbar-fixed-top .navbar-collapse,
  .navbar-static-top .navbar-collapse,
  .navbar-fixed-bottom .navbar-collapse {
    padding-left: 0;
    padding-right: 0;
  }
}
.container > .navbar-header,
.container-fluid > .navbar-header,
.container > .navbar-collapse,
.container-fluid > .navbar-collapse {
  margin-right: -20px;
  margin-left: -20px;
}
@media (min-width: 768px) {
  .container > .navbar-header,
  .container-fluid > .navbar-header,
  .container > .navbar-collapse,
  .container-fluid > .navbar-collapse {
    margin-right: 0;
    margin-left: 0;
  }
}
.navbar-static-top {
  z-index: 1000;
  border-width: 0 0 1px;
}
@media (min-width: 768px) {
  .navbar-static-top {
    border-radius: 0;
  }
}
.navbar-fixed-top,
.navbar-fixed-bottom {
  position: fixed;
  right: 0;
  left: 0;
  z-index: 1030;
}
@media (min-width: 768px) {
  .navbar-fixed-top,
  .navbar-fixed-bottom {
    border-radius: 0;
  }
}
.navbar-fixed-top {
  top: 0;
  border-width: 0 0 1px;
}
.navbar-fixed-bottom {
  bottom: 0;
  margin-bottom: 0;
  border-width: 1px 0 0;
}
.navbar-brand {
  float: left;
  padding: 15px 20px;
  font-size: 14px;
  line-height: 20px;
  height: 50px;
}
.navbar-brand:hover,
.navbar-brand:focus {
  text-decoration: none;
}
@media (min-width: 768px) {
  .navbar > .container .navbar-brand,
  .navbar > .container-fluid .navbar-brand {
    margin-left: -20px;
  }
}
.navbar-toggle {
  position: relative;
  float: right;
  margin-right: 20px;
  padding: 9px 10px;
  margin-top: 8px;
  margin-bottom: 8px;
  background-color: transparent;
  background-image: none;
  border: 1px solid transparent;
  border-radius: 1px;
}
.navbar-toggle:focus {
  outline: none;
}
.navbar-toggle .icon-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
}
.navbar-toggle .icon-bar + .icon-bar {
  margin-top: 4px;
}
@media (min-width: 768px) {
  .navbar-toggle {
    display: none;
  }
}
.navbar-nav {
  margin: 7.5px -20px;
}
.navbar-nav > li > a {
  padding-top: 10px;
  padding-bottom: 10px;
  line-height: 20px;
}
@media (max-width: 767px) {
  .navbar-nav .open .dropdown-menu {
    position: static;
    float: none;
    width: auto;
    margin-top: 0;
    background-color: transparent;
    border: 0;
    box-shadow: none;
  }
  .navbar-nav .open .dropdown-menu > li > a,
  .navbar-nav .open .dropdown-menu .dropdown-header {
    padding: 5px 15px 5px 25px;
  }
  .navbar-nav .open .dropdown-menu > li > a {
    line-height: 20px;
  }
  .navbar-nav .open .dropdown-menu > li > a:hover,
  .navbar-nav .open .dropdown-menu > li > a:focus {
    background-image: none;
  }
}
@media (min-width: 768px) {
  .navbar-nav {
    float: left;
    margin: 0;
  }
  .navbar-nav > li {
    float: left;
  }
  .navbar-nav > li > a {
    padding-top: 15px;
    padding-bottom: 15px;
  }
  .navbar-nav.navbar-right:last-child {
    margin-right: -20px;
  }
}
@media (min-width: 768px) {
  .navbar-left {
    float: left !important;
    float: left;
  }
  .navbar-right {
    float: right !important;
    float: right;
  }
}
.navbar-form {
  margin-left: -20px;
  margin-right: -20px;
  padding: 10px 20px;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
  margin-top: 12px;
  margin-bottom: 12px;
}
@media (min-width: 768px) {
  .navbar-form .form-group {
    display: inline-block;
    margin-bottom: 0;
    vertical-align: middle;
  }
  .navbar-form .form-control {
    display: inline-block;
    width: auto;
    vertical-align: middle;
  }
  .navbar-form .input-group > .form-control {
    width: 100%;
  }
  .navbar-form .control-label {
    margin-bottom: 0;
    vertical-align: middle;
  }
  .navbar-form .radio,
  .navbar-form .checkbox {
    display: inline-block;
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 0;
    vertical-align: middle;
  }
  .navbar-form .radio input[type="radio"],
  .navbar-form .checkbox input[type="checkbox"] {
    float: none;
    margin-left: 0;
  }
  .navbar-form .has-feedback .form-control-feedback {
    top: 0;
  }
}
.navbar-form .combobox-container {
  display: inline-block;
  margin-bottom: 0;
  vertical-align: top;
}
.navbar-form .combobox-container .input-group-addon {
  width: auto;
}
@media (max-width: 767px) {
  .navbar-form .form-group {
    margin-bottom: 5px;
  }
}
@media (min-width: 768px) {
  .navbar-form {
    width: auto;
    border: 0;
    margin-left: 0;
    margin-right: 0;
    padding-top: 0;
    padding-bottom: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
  }
  .navbar-form.navbar-right:last-child {
    margin-right: -20px;
  }
}
.navbar-nav > li > .dropdown-menu {
  margin-top: 0;
  border-top-right-radius: 0;
  border-top-left-radius: 0;
}
.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}
.navbar-btn {
  margin-top: 12px;
  margin-bottom: 12px;
}
.navbar-btn.btn-sm {
  margin-top: 14px;
  margin-bottom: 14px;
}
.navbar-btn.btn-xs {
  margin-top: 14px;
  margin-bottom: 14px;
}
.navbar-text {
  margin-top: 15px;
  margin-bottom: 15px;
}
@media (min-width: 768px) {
  .navbar-text {
    float: left;
    margin-left: 20px;
    margin-right: 20px;
  }
  .navbar-text.navbar-right:last-child {
    margin-right: 0;
  }
}
.navbar-default {
  background-color: #f8f8f8;
  border-color: #e7e7e7;
}
.navbar-default .navbar-brand {
  color: #777777;
}
.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus {
  color: #5e5e5e;
  background-color: transparent;
}
.navbar-default .navbar-text {
  color: #777777;
}
.navbar-default .navbar-nav > li > a {
  color: #777777;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
  color: #333333;
  background-color: transparent;
}
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  color: #555555;
  background-color: #e7e7e7;
}
.navbar-default .navbar-nav > .disabled > a,
.navbar-default .navbar-nav > .disabled > a:hover,
.navbar-default .navbar-nav > .disabled > a:focus {
  color: #cccccc;
  background-color: transparent;
}
.navbar-default .navbar-toggle {
  border-color: #dddddd;
}
.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
  background-color: #dddddd;
}
.navbar-default .navbar-toggle .icon-bar {
  background-color: #888888;
}
.navbar-default .navbar-collapse,
.navbar-default .navbar-form {
  border-color: #e7e7e7;
}
.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .open > a:focus {
  background-color: #e7e7e7;
  color: #555555;
}
@media (max-width: 767px) {
  .navbar-default .navbar-nav .open .dropdown-menu > li > a {
    color: #777777;
  }
  .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover,
  .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus {
    color: #333333;
    background-color: transparent;
  }
  .navbar-default .navbar-nav .open .dropdown-menu > .active > a,
  .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover,
  .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus {
    color: #555555;
    background-color: #e7e7e7;
  }
  .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a,
  .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:hover,
  .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:focus {
    color: #cccccc;
    background-color: transparent;
  }
}
.navbar-default .navbar-link {
  color: #777777;
}
.navbar-default .navbar-link:hover {
  color: #333333;
}
.navbar-inverse {
  background-color: #222222;
  border-color: #080808;
}
.navbar-inverse .navbar-brand {
  color: #999999;
}
.navbar-inverse .navbar-brand:hover,
.navbar-inverse .navbar-brand:focus {
  color: #ffffff;
  background-color: transparent;
}
.navbar-inverse .navbar-text {
  color: #999999;
}
.navbar-inverse .navbar-nav > li > a {
  color: #999999;
}
.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
  color: #ffffff;
  background-color: transparent;
}
.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover,
.navbar-inverse .navbar-nav > .active > a:focus {
  color: #ffffff;
  background-color: #080808;
}
.navbar-inverse .navbar-nav > .disabled > a,
.navbar-inverse .navbar-nav > .disabled > a:hover,
.navbar-inverse .navbar-nav > .disabled > a:focus {
  color: #444444;
  background-color: transparent;
}
.navbar-inverse .navbar-toggle {
  border-color: #333333;
}
.navbar-inverse .navbar-toggle:hover,
.navbar-inverse .navbar-toggle:focus {
  background-color: #333333;
}
.navbar-inverse .navbar-toggle .icon-bar {
  background-color: #ffffff;
}
.navbar-inverse .navbar-collapse,
.navbar-inverse .navbar-form {
  border-color: #101010;
}
.navbar-inverse .navbar-nav > .open > a,
.navbar-inverse .navbar-nav > .open > a:hover,
.navbar-inverse .navbar-nav > .open > a:focus {
  background-color: #080808;
  color: #ffffff;
}
@media (max-width: 767px) {
  .navbar-inverse .navbar-nav .open .dropdown-menu > .dropdown-header {
    border-color: #080808;
  }
  .navbar-inverse .navbar-nav .open .dropdown-menu .divider {
    background-color: #080808;
  }
  .navbar-inverse .navbar-nav .open .dropdown-menu > li > a {
    color: #999999;
  }
  .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover,
  .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:focus {
    color: #ffffff;
    background-color: transparent;
  }
  .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a,
  .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:hover,
  .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:focus {
    color: #ffffff;
    background-color: #080808;
  }
  .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a,
  .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:hover,
  .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:focus {
    color: #444444;
    background-color: transparent;
  }
}
.navbar-inverse .navbar-link {
  color: #999999;
}
.navbar-inverse .navbar-link:hover {
  color: #ffffff;
}
@-webkit-keyframes progress-bar-stripes {
  from {
    background-position: 40px 0;
  }
  to {
    background-position: 0 0;
  }
}
@keyframes progress-bar-stripes {
  from {
    background-position: 40px 0;
  }
  to {
    background-position: 0 0;
  }
}
.progress {
  overflow: hidden;
  height: 20px;
  margin-bottom: 20px;
  background-color: #ededed;
  border-radius: 1px;
  -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}
.progress-bar {
  float: left;
  width: 0%;
  height: 100%;
  font-size: 11px;
  line-height: 20px;
  color: #ffffff;
  text-align: center;
  background-color: #00a8e1;
  -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  -webkit-transition: width 0.6s ease;
  transition: width 0.6s ease;
}
.progress-striped .progress-bar {
  background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-image: -webkit-linear-gradient(-45deg, rgba(0, 0, 0, 0.15) 25%, rgba(0, 0, 0, 0.15) 26%, transparent 27%, transparent 49%, rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0.15) 51%, transparent 52%, transparent 74%, rgba(0, 0, 0, 0.15) 75%, rgba(0, 0, 0, 0.15) 76%, transparent 77%);
  background-image: linear-gradient(-45deg, rgba(0, 0, 0, 0.15) 25%, rgba(0, 0, 0, 0.15) 26%, transparent 27%, transparent 49%, rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0.15) 51%, transparent 52%, transparent 74%, rgba(0, 0, 0, 0.15) 75%, rgba(0, 0, 0, 0.15) 76%, transparent 77%);
  background-size: 40px 40px;
}
.progress.active .progress-bar {
  -webkit-animation: progress-bar-stripes 2s linear infinite;
  animation: progress-bar-stripes 2s linear infinite;
}
.progress-bar-success {
  background-color: #3f9c35;
}
.progress-striped .progress-bar-success {
  background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-image: -webkit-linear-gradient(-45deg, rgba(0, 0, 0, 0.15) 25%, rgba(0, 0, 0, 0.15) 26%, transparent 27%, transparent 49%, rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0.15) 51%, transparent 52%, transparent 74%, rgba(0, 0, 0, 0.15) 75%, rgba(0, 0, 0, 0.15) 76%, transparent 77%);
  background-image: linear-gradient(-45deg, rgba(0, 0, 0, 0.15) 25%, rgba(0, 0, 0, 0.15) 26%, transparent 27%, transparent 49%, rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0.15) 51%, transparent 52%, transparent 74%, rgba(0, 0, 0, 0.15) 75%, rgba(0, 0, 0, 0.15) 76%, transparent 77%);
}
.progress-bar-info {
  background-color: #006e9c;
}
.progress-striped .progress-bar-info {
  background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-image: -webkit-linear-gradient(-45deg, rgba(0, 0, 0, 0.15) 25%, rgba(0, 0, 0, 0.15) 26%, transparent 27%, transparent 49%, rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0.15) 51%, transparent 52%, transparent 74%, rgba(0, 0, 0, 0.15) 75%, rgba(0, 0, 0, 0.15) 76%, transparent 77%);
  background-image: linear-gradient(-45deg, rgba(0, 0, 0, 0.15) 25%, rgba(0, 0, 0, 0.15) 26%, transparent 27%, transparent 49%, rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0.15) 51%, transparent 52%, transparent 74%, rgba(0, 0, 0, 0.15) 75%, rgba(0, 0, 0, 0.15) 76%, transparent 77%);
}
.progress-bar-warning {
  background-color: #ec7a08;
}
.progress-striped .progress-bar-warning {
  background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-image: -webkit-linear-gradient(-45deg, rgba(0, 0, 0, 0.15) 25%, rgba(0, 0, 0, 0.15) 26%, transparent 27%, transparent 49%, rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0.15) 51%, transparent 52%, transparent 74%, rgba(0, 0, 0, 0.15) 75%, rgba(0, 0, 0, 0.15) 76%, transparent 77%);
  background-image: linear-gradient(-45deg, rgba(0, 0, 0, 0.15) 25%, rgba(0, 0, 0, 0.15) 26%, transparent 27%, transparent 49%, rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0.15) 51%, transparent 52%, transparent 74%, rgba(0, 0, 0, 0.15) 75%, rgba(0, 0, 0, 0.15) 76%, transparent 77%);
}
.progress-bar-danger {
  background-color: #cc0000;
}
.progress-striped .progress-bar-danger {
  background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-image: -webkit-linear-gradient(-45deg, rgba(0, 0, 0, 0.15) 25%, rgba(0, 0, 0, 0.15) 26%, transparent 27%, transparent 49%, rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0.15) 51%, transparent 52%, transparent 74%, rgba(0, 0, 0, 0.15) 75%, rgba(0, 0, 0, 0.15) 76%, transparent 77%);
  background-image: linear-gradient(-45deg, rgba(0, 0, 0, 0.15) 25%, rgba(0, 0, 0, 0.15) 26%, transparent 27%, transparent 49%, rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0.15) 51%, transparent 52%, transparent 74%, rgba(0, 0, 0, 0.15) 75%, rgba(0, 0, 0, 0.15) 76%, transparent 77%);
}
.progress-label {
  margin-bottom: 1.5;
}
.clearfix:before,
.clearfix:after,
.form-horizontal .form-group:before,
.form-horizontal .form-group:after,
.nav:before,
.nav:after,
.navbar:before,
.navbar:after,
.navbar-header:before,
.navbar-header:after,
.navbar-collapse:before,
.navbar-collapse:after {
  content: " ";
  display: table;
}
.clearfix:after,
.form-horizontal .form-group:after,
.nav:after,
.navbar:after,
.navbar-header:after,
.navbar-collapse:after {
  clear: both;
}
.center-block {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.pull-right {
  float: right !important;
}
.pull-left {
  float: left !important;
}
.hide {
  display: none !important;
}
.show {
  display: block !important;
}
.invisible {
  visibility: hidden;
}
.text-hide {
  font: 0/0 a;
  color: transparent;
  text-shadow: none;
  background-color: transparent;
  border: 0;
}
.hidden {
  display: none !important;
  visibility: hidden !important;
}
.affix {
  position: fixed;
}
@-ms-viewport {
  width: device-width;
}
.visible-xs,
.visible-sm,
.visible-md,
.visible-lg {
  display: none !important;
}
@media (max-width: 767px) {
  .visible-xs {
    display: block !important;
  }
  table.visible-xs {
    display: table;
  }
  tr.visible-xs {
    display: table-row !important;
  }
  th.visible-xs,
  td.visible-xs {
    display: table-cell !important;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .visible-sm {
    display: block !important;
  }
  table.visible-sm {
    display: table;
  }
  tr.visible-sm {
    display: table-row !important;
  }
  th.visible-sm,
  td.visible-sm {
    display: table-cell !important;
  }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .visible-md {
    display: block !important;
  }
  table.visible-md {
    display: table;
  }
  tr.visible-md {
    display: table-row !important;
  }
  th.visible-md,
  td.visible-md {
    display: table-cell !important;
  }
}
@media (min-width: 1200px) {
  .visible-lg {
    display: block !important;
  }
  table.visible-lg {
    display: table;
  }
  tr.visible-lg {
    display: table-row !important;
  }
  th.visible-lg,
  td.visible-lg {
    display: table-cell !important;
  }
}
@media (max-width: 767px) {
  .hidden-xs {
    display: none !important;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .hidden-sm {
    display: none !important;
  }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .hidden-md {
    display: none !important;
  }
}
@media (min-width: 1200px) {
  .hidden-lg {
    display: none !important;
  }
}
.visible-print {
  display: none !important;
}
@media print {
  .visible-print {
    display: block !important;
  }
  table.visible-print {
    display: table;
  }
  tr.visible-print {
    display: table-row !important;
  }
  th.visible-print,
  td.visible-print {
    display: table-cell !important;
  }
}
@media print {
  .hidden-print {
    display: none !important;
  }
}
/* Bootstrap 3 */
/*!
 *  Font Awesome 4.2.0 by @davegandy - http://fontawesome.io - @fontawesome
 *  License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
 */
/* FONT PATH
 * -------------------------- */
@font-face {
  font-family: 'FontAwesome';
  src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.2.0/fonts/fontawesome-webfont.eot');
  src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.2.0/fonts/fontawesome-webfont.eot?#iefix&v=4.2.0') format('embedded-opentype'), url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.2.0/fonts/fontawesome-webfont.woff') format('woff'), url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.2.0/fonts/fontawesome-webfont.ttf') format('truetype'), url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.2.0/fonts/fontawesome-webfont.svg#fontawesomeregular') format('svg');
  font-weight: normal;
  font-style: normal;
}
.fa {
  display: inline-block;
  font: normal normal normal 14px/1 FontAwesome;
  font-size: inherit;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* makes the font 33% larger relative to the icon container */
.fa-lg {
  font-size: 1.33333333em;
  line-height: 0.75em;
  vertical-align: -15%;
}
.fa-2x {
  font-size: 2em;
}
.fa-3x {
  font-size: 3em;
}
.fa-4x {
  font-size: 4em;
}
.fa-5x {
  font-size: 5em;
}
.fa-fw {
  width: 1.28571429em;
  text-align: center;
}
.fa-ul {
  padding-left: 0;
  margin-left: 2.14285714em;
  list-style-type: none;
}
.fa-ul > li {
  position: relative;
}
.fa-li {
  position: absolute;
  left: -2.14285714em;
  width: 2.14285714em;
  top: 0.14285714em;
  text-align: center;
}
.fa-li.fa-lg {
  left: -1.85714286em;
}
.fa-border {
  padding: .2em .25em .15em;
  border: solid 0.08em #eeeeee;
  border-radius: .1em;
}
.pull-right {
  float: right;
}
.pull-left {
  float: left;
}
.fa.pull-left {
  margin-right: .3em;
}
.fa.pull-right {
  margin-left: .3em;
}
.fa-spin {
  -webkit-animation: fa-spin 2s infinite linear;
  animation: fa-spin 2s infinite linear;
}
@-webkit-keyframes fa-spin {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(359deg);
    transform: rotate(359deg);
  }
}
@keyframes fa-spin {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(359deg);
    transform: rotate(359deg);
  }
}
.fa-rotate-90 {
  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);
  -webkit-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  transform: rotate(90deg);
}
.fa-rotate-180 {
  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2);
  -webkit-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  transform: rotate(180deg);
}
.fa-rotate-270 {
  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
  -webkit-transform: rotate(270deg);
  -ms-transform: rotate(270deg);
  transform: rotate(270deg);
}
.fa-flip-horizontal {
  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1);
  -webkit-transform: scale(-1, 1);
  -ms-transform: scale(-1, 1);
  transform: scale(-1, 1);
}
.fa-flip-vertical {
  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1);
  -webkit-transform: scale(1, -1);
  -ms-transform: scale(1, -1);
  transform: scale(1, -1);
}
:root .fa-rotate-90,
:root .fa-rotate-180,
:root .fa-rotate-270,
:root .fa-flip-horizontal,
:root .fa-flip-vertical {
  filter: none;
}
.fa-stack {
  position: relative;
  display: inline-block;
  width: 2em;
  height: 2em;
  line-height: 2em;
  vertical-align: middle;
}
.fa-stack-1x,
.fa-stack-2x {
  position: absolute;
  left: 0;
  width: 100%;
  text-align: center;
}
.fa-stack-1x {
  line-height: inherit;
}
.fa-stack-2x {
  font-size: 2em;
}
.fa-inverse {
  color: #ffffff;
}
/* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen
   readers do not read off random characters that represent icons */
.fa-glass:before {
  content: "\f000";
}
.fa-music:before {
  content: "\f001";
}
.fa-search:before {
  content: "\f002";
}
.fa-envelope-o:before {
  content: "\f003";
}
.fa-heart:before {
  content: "\f004";
}
.fa-star:before {
  content: "\f005";
}
.fa-star-o:before {
  content: "\f006";
}
.fa-user:before {
  content: "\f007";
}
.fa-film:before {
  content: "\f008";
}
.fa-th-large:before {
  content: "\f009";
}
.fa-th:before {
  content: "\f00a";
}
.fa-th-list:before {
  content: "\f00b";
}
.fa-check:before {
  content: "\f00c";
}
.fa-remove:before,
.fa-close:before,
.fa-times:before {
  content: "\f00d";
}
.fa-search-plus:before {
  content: "\f00e";
}
.fa-search-minus:before {
  content: "\f010";
}
.fa-power-off:before {
  content: "\f011";
}
.fa-signal:before {
  content: "\f012";
}
.fa-gear:before,
.fa-cog:before {
  content: "\f013";
}
.fa-trash-o:before {
  content: "\f014";
}
.fa-home:before {
  content: "\f015";
}
.fa-file-o:before {
  content: "\f016";
}
.fa-clock-o:before {
  content: "\f017";
}
.fa-road:before {
  content: "\f018";
}
.fa-download:before {
  content: "\f019";
}
.fa-arrow-circle-o-down:before {
  content: "\f01a";
}
.fa-arrow-circle-o-up:before {
  content: "\f01b";
}
.fa-inbox:before {
  content: "\f01c";
}
.fa-play-circle-o:before {
  content: "\f01d";
}
.fa-rotate-right:before,
.fa-repeat:before {
  content: "\f01e";
}
.fa-refresh:before {
  content: "\f021";
}
.fa-list-alt:before {
  content: "\f022";
}
.fa-lock:before {
  content: "\f023";
}
.fa-flag:before {
  content: "\f024";
}
.fa-headphones:before {
  content: "\f025";
}
.fa-volume-off:before {
  content: "\f026";
}
.fa-volume-down:before {
  content: "\f027";
}
.fa-volume-up:before {
  content: "\f028";
}
.fa-qrcode:before {
  content: "\f029";
}
.fa-barcode:before {
  content: "\f02a";
}
.fa-tag:before {
  content: "\f02b";
}
.fa-tags:before {
  content: "\f02c";
}
.fa-book:before {
  content: "\f02d";
}
.fa-bookmark:before {
  content: "\f02e";
}
.fa-print:before {
  content: "\f02f";
}
.fa-camera:before {
  content: "\f030";
}
.fa-font:before {
  content: "\f031";
}
.fa-bold:before {
  content: "\f032";
}
.fa-italic:before {
  content: "\f033";
}
.fa-text-height:before {
  content: "\f034";
}
.fa-text-width:before {
  content: "\f035";
}
.fa-align-left:before {
  content: "\f036";
}
.fa-align-center:before {
  content: "\f037";
}
.fa-align-right:before {
  content: "\f038";
}
.fa-align-justify:before {
  content: "\f039";
}
.fa-list:before {
  content: "\f03a";
}
.fa-dedent:before,
.fa-outdent:before {
  content: "\f03b";
}
.fa-indent:before {
  content: "\f03c";
}
.fa-video-camera:before {
  content: "\f03d";
}
.fa-photo:before,
.fa-image:before,
.fa-picture-o:before {
  content: "\f03e";
}
.fa-pencil:before {
  content: "\f040";
}
.fa-map-marker:before {
  content: "\f041";
}
.fa-adjust:before {
  content: "\f042";
}
.fa-tint:before {
  content: "\f043";
}
.fa-edit:before,
.fa-pencil-square-o:before {
  content: "\f044";
}
.fa-share-square-o:before {
  content: "\f045";
}
.fa-check-square-o:before {
  content: "\f046";
}
.fa-arrows:before {
  content: "\f047";
}
.fa-step-backward:before {
  content: "\f048";
}
.fa-fast-backward:before {
  content: "\f049";
}
.fa-backward:before {
  content: "\f04a";
}
.fa-play:before {
  content: "\f04b";
}
.fa-pause:before {
  content: "\f04c";
}
.fa-stop:before {
  content: "\f04d";
}
.fa-forward:before {
  content: "\f04e";
}
.fa-fast-forward:before {
  content: "\f050";
}
.fa-step-forward:before {
  content: "\f051";
}
.fa-eject:before {
  content: "\f052";
}
.fa-chevron-left:before {
  content: "\f053";
}
.fa-chevron-right:before {
  content: "\f054";
}
.fa-plus-circle:before {
  content: "\f055";
}
.fa-minus-circle:before {
  content: "\f056";
}
.fa-times-circle:before {
  content: "\f057";
}
.fa-check-circle:before {
  content: "\f058";
}
.fa-question-circle:before {
  content: "\f059";
}
.fa-info-circle:before {
  content: "\f05a";
}
.fa-crosshairs:before {
  content: "\f05b";
}
.fa-times-circle-o:before {
  content: "\f05c";
}
.fa-check-circle-o:before {
  content: "\f05d";
}
.fa-ban:before {
  content: "\f05e";
}
.fa-arrow-left:before {
  content: "\f060";
}
.fa-arrow-right:before {
  content: "\f061";
}
.fa-arrow-up:before {
  content: "\f062";
}
.fa-arrow-down:before {
  content: "\f063";
}
.fa-mail-forward:before,
.fa-share:before {
  content: "\f064";
}
.fa-expand:before {
  content: "\f065";
}
.fa-compress:before {
  content: "\f066";
}
.fa-plus:before {
  content: "\f067";
}
.fa-minus:before {
  content: "\f068";
}
.fa-asterisk:before {
  content: "\f069";
}
.fa-exclamation-circle:before {
  content: "\f06a";
}
.fa-gift:before {
  content: "\f06b";
}
.fa-leaf:before {
  content: "\f06c";
}
.fa-fire:before {
  content: "\f06d";
}
.fa-eye:before {
  content: "\f06e";
}
.fa-eye-slash:before {
  content: "\f070";
}
.fa-warning:before,
.fa-exclamation-triangle:before {
  content: "\f071";
}
.fa-plane:before {
  content: "\f072";
}
.fa-calendar:before {
  content: "\f073";
}
.fa-random:before {
  content: "\f074";
}
.fa-comment:before {
  content: "\f075";
}
.fa-magnet:before {
  content: "\f076";
}
.fa-chevron-up:before {
  content: "\f077";
}
.fa-chevron-down:before {
  content: "\f078";
}
.fa-retweet:before {
  content: "\f079";
}
.fa-shopping-cart:before {
  content: "\f07a";
}
.fa-folder:before {
  content: "\f07b";
}
.fa-folder-open:before {
  content: "\f07c";
}
.fa-arrows-v:before {
  content: "\f07d";
}
.fa-arrows-h:before {
  content: "\f07e";
}
.fa-bar-chart-o:before,
.fa-bar-chart:before {
  content: "\f080";
}
.fa-twitter-square:before {
  content: "\f081";
}
.fa-facebook-square:before {
  content: "\f082";
}
.fa-camera-retro:before {
  content: "\f083";
}
.fa-key:before {
  content: "\f084";
}
.fa-gears:before,
.fa-cogs:before {
  content: "\f085";
}
.fa-comments:before {
  content: "\f086";
}
.fa-thumbs-o-up:before {
  content: "\f087";
}
.fa-thumbs-o-down:before {
  content: "\f088";
}
.fa-star-half:before {
  content: "\f089";
}
.fa-heart-o:before {
  content: "\f08a";
}
.fa-sign-out:before {
  content: "\f08b";
}
.fa-linkedin-square:before {
  content: "\f08c";
}
.fa-thumb-tack:before {
  content: "\f08d";
}
.fa-external-link:before {
  content: "\f08e";
}
.fa-sign-in:before {
  content: "\f090";
}
.fa-trophy:before {
  content: "\f091";
}
.fa-github-square:before {
  content: "\f092";
}
.fa-upload:before {
  content: "\f093";
}
.fa-lemon-o:before {
  content: "\f094";
}
.fa-phone:before {
  content: "\f095";
}
.fa-square-o:before {
  content: "\f096";
}
.fa-bookmark-o:before {
  content: "\f097";
}
.fa-phone-square:before {
  content: "\f098";
}
.fa-twitter:before {
  content: "\f099";
}
.fa-facebook:before {
  content: "\f09a";
}
.fa-github:before {
  content: "\f09b";
}
.fa-unlock:before {
  content: "\f09c";
}
.fa-credit-card:before {
  content: "\f09d";
}
.fa-rss:before {
  content: "\f09e";
}
.fa-hdd-o:before {
  content: "\f0a0";
}
.fa-bullhorn:before {
  content: "\f0a1";
}
.fa-bell:before {
  content: "\f0f3";
}
.fa-certificate:before {
  content: "\f0a3";
}
.fa-hand-o-right:before {
  content: "\f0a4";
}
.fa-hand-o-left:before {
  content: "\f0a5";
}
.fa-hand-o-up:before {
  content: "\f0a6";
}
.fa-hand-o-down:before {
  content: "\f0a7";
}
.fa-arrow-circle-left:before {
  content: "\f0a8";
}
.fa-arrow-circle-right:before {
  content: "\f0a9";
}
.fa-arrow-circle-up:before {
  content: "\f0aa";
}
.fa-arrow-circle-down:before {
  content: "\f0ab";
}
.fa-globe:before {
  content: "\f0ac";
}
.fa-wrench:before {
  content: "\f0ad";
}
.fa-tasks:before {
  content: "\f0ae";
}
.fa-filter:before {
  content: "\f0b0";
}
.fa-briefcase:before {
  content: "\f0b1";
}
.fa-arrows-alt:before {
  content: "\f0b2";
}
.fa-group:before,
.fa-users:before {
  content: "\f0c0";
}
.fa-chain:before,
.fa-link:before {
  content: "\f0c1";
}
.fa-cloud:before {
  content: "\f0c2";
}
.fa-flask:before {
  content: "\f0c3";
}
.fa-cut:before,
.fa-scissors:before {
  content: "\f0c4";
}
.fa-copy:before,
.fa-files-o:before {
  content: "\f0c5";
}
.fa-paperclip:before {
  content: "\f0c6";
}
.fa-save:before,
.fa-floppy-o:before {
  content: "\f0c7";
}
.fa-square:before {
  content: "\f0c8";
}
.fa-navicon:before,
.fa-reorder:before,
.fa-bars:before {
  content: "\f0c9";
}
.fa-list-ul:before {
  content: "\f0ca";
}
.fa-list-ol:before {
  content: "\f0cb";
}
.fa-strikethrough:before {
  content: "\f0cc";
}
.fa-underline:before {
  content: "\f0cd";
}
.fa-table:before {
  content: "\f0ce";
}
.fa-magic:before {
  content: "\f0d0";
}
.fa-truck:before {
  content: "\f0d1";
}
.fa-pinterest:before {
  content: "\f0d2";
}
.fa-pinterest-square:before {
  content: "\f0d3";
}
.fa-google-plus-square:before {
  content: "\f0d4";
}
.fa-google-plus:before {
  content: "\f0d5";
}
.fa-money:before {
  content: "\f0d6";
}
.fa-caret-down:before {
  content: "\f0d7";
}
.fa-caret-up:before {
  content: "\f0d8";
}
.fa-caret-left:before {
  content: "\f0d9";
}
.fa-caret-right:before {
  content: "\f0da";
}
.fa-columns:before {
  content: "\f0db";
}
.fa-unsorted:before,
.fa-sort:before {
  content: "\f0dc";
}
.fa-sort-down:before,
.fa-sort-desc:before {
  content: "\f0dd";
}
.fa-sort-up:before,
.fa-sort-asc:before {
  content: "\f0de";
}
.fa-envelope:before {
  content: "\f0e0";
}
.fa-linkedin:before {
  content: "\f0e1";
}
.fa-rotate-left:before,
.fa-undo:before {
  content: "\f0e2";
}
.fa-legal:before,
.fa-gavel:before {
  content: "\f0e3";
}
.fa-dashboard:before,
.fa-tachometer:before {
  content: "\f0e4";
}
.fa-comment-o:before {
  content: "\f0e5";
}
.fa-comments-o:before {
  content: "\f0e6";
}
.fa-flash:before,
.fa-bolt:before {
  content: "\f0e7";
}
.fa-sitemap:before {
  content: "\f0e8";
}
.fa-umbrella:before {
  content: "\f0e9";
}
.fa-paste:before,
.fa-clipboard:before {
  content: "\f0ea";
}
.fa-lightbulb-o:before {
  content: "\f0eb";
}
.fa-exchange:before {
  content: "\f0ec";
}
.fa-cloud-download:before {
  content: "\f0ed";
}
.fa-cloud-upload:before {
  content: "\f0ee";
}
.fa-user-md:before {
  content: "\f0f0";
}
.fa-stethoscope:before {
  content: "\f0f1";
}
.fa-suitcase:before {
  content: "\f0f2";
}
.fa-bell-o:before {
  content: "\f0a2";
}
.fa-coffee:before {
  content: "\f0f4";
}
.fa-cutlery:before {
  content: "\f0f5";
}
.fa-file-text-o:before {
  content: "\f0f6";
}
.fa-building-o:before {
  content: "\f0f7";
}
.fa-hospital-o:before {
  content: "\f0f8";
}
.fa-ambulance:before {
  content: "\f0f9";
}
.fa-medkit:before {
  content: "\f0fa";
}
.fa-fighter-jet:before {
  content: "\f0fb";
}
.fa-beer:before {
  content: "\f0fc";
}
.fa-h-square:before {
  content: "\f0fd";
}
.fa-plus-square:before {
  content: "\f0fe";
}
.fa-angle-double-left:before {
  content: "\f100";
}
.fa-angle-double-right:before {
  content: "\f101";
}
.fa-angle-double-up:before {
  content: "\f102";
}
.fa-angle-double-down:before {
  content: "\f103";
}
.fa-angle-left:before {
  content: "\f104";
}
.fa-angle-right:before {
  content: "\f105";
}
.fa-angle-up:before {
  content: "\f106";
}
.fa-angle-down:before {
  content: "\f107";
}
.fa-desktop:before {
  content: "\f108";
}
.fa-laptop:before {
  content: "\f109";
}
.fa-tablet:before {
  content: "\f10a";
}
.fa-mobile-phone:before,
.fa-mobile:before {
  content: "\f10b";
}
.fa-circle-o:before {
  content: "\f10c";
}
.fa-quote-left:before {
  content: "\f10d";
}
.fa-quote-right:before {
  content: "\f10e";
}
.fa-spinner:before {
  content: "\f110";
}
.fa-circle:before {
  content: "\f111";
}
.fa-mail-reply:before,
.fa-reply:before {
  content: "\f112";
}
.fa-github-alt:before {
  content: "\f113";
}
.fa-folder-o:before {
  content: "\f114";
}
.fa-folder-open-o:before {
  content: "\f115";
}
.fa-smile-o:before {
  content: "\f118";
}
.fa-frown-o:before {
  content: "\f119";
}
.fa-meh-o:before {
  content: "\f11a";
}
.fa-gamepad:before {
  content: "\f11b";
}
.fa-keyboard-o:before {
  content: "\f11c";
}
.fa-flag-o:before {
  content: "\f11d";
}
.fa-flag-checkered:before {
  content: "\f11e";
}
.fa-terminal:before {
  content: "\f120";
}
.fa-code:before {
  content: "\f121";
}
.fa-mail-reply-all:before,
.fa-reply-all:before {
  content: "\f122";
}
.fa-star-half-empty:before,
.fa-star-half-full:before,
.fa-star-half-o:before {
  content: "\f123";
}
.fa-location-arrow:before {
  content: "\f124";
}
.fa-crop:before {
  content: "\f125";
}
.fa-code-fork:before {
  content: "\f126";
}
.fa-unlink:before,
.fa-chain-broken:before {
  content: "\f127";
}
.fa-question:before {
  content: "\f128";
}
.fa-info:before {
  content: "\f129";
}
.fa-exclamation:before {
  content: "\f12a";
}
.fa-superscript:before {
  content: "\f12b";
}
.fa-subscript:before {
  content: "\f12c";
}
.fa-eraser:before {
  content: "\f12d";
}
.fa-puzzle-piece:before {
  content: "\f12e";
}
.fa-microphone:before {
  content: "\f130";
}
.fa-microphone-slash:before {
  content: "\f131";
}
.fa-shield:before {
  content: "\f132";
}
.fa-calendar-o:before {
  content: "\f133";
}
.fa-fire-extinguisher:before {
  content: "\f134";
}
.fa-rocket:before {
  content: "\f135";
}
.fa-maxcdn:before {
  content: "\f136";
}
.fa-chevron-circle-left:before {
  content: "\f137";
}
.fa-chevron-circle-right:before {
  content: "\f138";
}
.fa-chevron-circle-up:before {
  content: "\f139";
}
.fa-chevron-circle-down:before {
  content: "\f13a";
}
.fa-html5:before {
  content: "\f13b";
}
.fa-css3:before {
  content: "\f13c";
}
.fa-anchor:before {
  content: "\f13d";
}
.fa-unlock-alt:before {
  content: "\f13e";
}
.fa-bullseye:before {
  content: "\f140";
}
.fa-ellipsis-h:before {
  content: "\f141";
}
.fa-ellipsis-v:before {
  content: "\f142";
}
.fa-rss-square:before {
  content: "\f143";
}
.fa-play-circle:before {
  content: "\f144";
}
.fa-ticket:before {
  content: "\f145";
}
.fa-minus-square:before {
  content: "\f146";
}
.fa-minus-square-o:before {
  content: "\f147";
}
.fa-level-up:before {
  content: "\f148";
}
.fa-level-down:before {
  content: "\f149";
}
.fa-check-square:before {
  content: "\f14a";
}
.fa-pencil-square:before {
  content: "\f14b";
}
.fa-external-link-square:before {
  content: "\f14c";
}
.fa-share-square:before {
  content: "\f14d";
}
.fa-compass:before {
  content: "\f14e";
}
.fa-toggle-down:before,
.fa-caret-square-o-down:before {
  content: "\f150";
}
.fa-toggle-up:before,
.fa-caret-square-o-up:before {
  content: "\f151";
}
.fa-toggle-right:before,
.fa-caret-square-o-right:before {
  content: "\f152";
}
.fa-euro:before,
.fa-eur:before {
  content: "\f153";
}
.fa-gbp:before {
  content: "\f154";
}
.fa-dollar:before,
.fa-usd:before {
  content: "\f155";
}
.fa-rupee:before,
.fa-inr:before {
  content: "\f156";
}
.fa-cny:before,
.fa-rmb:before,
.fa-yen:before,
.fa-jpy:before {
  content: "\f157";
}
.fa-ruble:before,
.fa-rouble:before,
.fa-rub:before {
  content: "\f158";
}
.fa-won:before,
.fa-krw:before {
  content: "\f159";
}
.fa-bitcoin:before,
.fa-btc:before {
  content: "\f15a";
}
.fa-file:before {
  content: "\f15b";
}
.fa-file-text:before {
  content: "\f15c";
}
.fa-sort-alpha-asc:before {
  content: "\f15d";
}
.fa-sort-alpha-desc:before {
  content: "\f15e";
}
.fa-sort-amount-asc:before {
  content: "\f160";
}
.fa-sort-amount-desc:before {
  content: "\f161";
}
.fa-sort-numeric-asc:before {
  content: "\f162";
}
.fa-sort-numeric-desc:before {
  content: "\f163";
}
.fa-thumbs-up:before {
  content: "\f164";
}
.fa-thumbs-down:before {
  content: "\f165";
}
.fa-youtube-square:before {
  content: "\f166";
}
.fa-youtube:before {
  content: "\f167";
}
.fa-xing:before {
  content: "\f168";
}
.fa-xing-square:before {
  content: "\f169";
}
.fa-youtube-play:before {
  content: "\f16a";
}
.fa-dropbox:before {
  content: "\f16b";
}
.fa-stack-overflow:before {
  content: "\f16c";
}
.fa-instagram:before {
  content: "\f16d";
}
.fa-flickr:before {
  content: "\f16e";
}
.fa-adn:before {
  content: "\f170";
}
.fa-bitbucket:before {
  content: "\f171";
}
.fa-bitbucket-square:before {
  content: "\f172";
}
.fa-tumblr:before {
  content: "\f173";
}
.fa-tumblr-square:before {
  content: "\f174";
}
.fa-long-arrow-down:before {
  content: "\f175";
}
.fa-long-arrow-up:before {
  content: "\f176";
}
.fa-long-arrow-left:before {
  content: "\f177";
}
.fa-long-arrow-right:before {
  content: "\f178";
}
.fa-apple:before {
  content: "\f179";
}
.fa-windows:before {
  content: "\f17a";
}
.fa-android:before {
  content: "\f17b";
}
.fa-linux:before {
  content: "\f17c";
}
.fa-dribbble:before {
  content: "\f17d";
}
.fa-skype:before {
  content: "\f17e";
}
.fa-foursquare:before {
  content: "\f180";
}
.fa-trello:before {
  content: "\f181";
}
.fa-female:before {
  content: "\f182";
}
.fa-male:before {
  content: "\f183";
}
.fa-gittip:before {
  content: "\f184";
}
.fa-sun-o:before {
  content: "\f185";
}
.fa-moon-o:before {
  content: "\f186";
}
.fa-archive:before {
  content: "\f187";
}
.fa-bug:before {
  content: "\f188";
}
.fa-vk:before {
  content: "\f189";
}
.fa-weibo:before {
  content: "\f18a";
}
.fa-renren:before {
  content: "\f18b";
}
.fa-pagelines:before {
  content: "\f18c";
}
.fa-stack-exchange:before {
  content: "\f18d";
}
.fa-arrow-circle-o-right:before {
  content: "\f18e";
}
.fa-arrow-circle-o-left:before {
  content: "\f190";
}
.fa-toggle-left:before,
.fa-caret-square-o-left:before {
  content: "\f191";
}
.fa-dot-circle-o:before {
  content: "\f192";
}
.fa-wheelchair:before {
  content: "\f193";
}
.fa-vimeo-square:before {
  content: "\f194";
}
.fa-turkish-lira:before,
.fa-try:before {
  content: "\f195";
}
.fa-plus-square-o:before {
  content: "\f196";
}
.fa-space-shuttle:before {
  content: "\f197";
}
.fa-slack:before {
  content: "\f198";
}
.fa-envelope-square:before {
  content: "\f199";
}
.fa-wordpress:before {
  content: "\f19a";
}
.fa-openid:before {
  content: "\f19b";
}
.fa-institution:before,
.fa-bank:before,
.fa-university:before {
  content: "\f19c";
}
.fa-mortar-board:before,
.fa-graduation-cap:before {
  content: "\f19d";
}
.fa-yahoo:before {
  content: "\f19e";
}
.fa-google:before {
  content: "\f1a0";
}
.fa-reddit:before {
  content: "\f1a1";
}
.fa-reddit-square:before {
  content: "\f1a2";
}
.fa-stumbleupon-circle:before {
  content: "\f1a3";
}
.fa-stumbleupon:before {
  content: "\f1a4";
}
.fa-delicious:before {
  content: "\f1a5";
}
.fa-digg:before {
  content: "\f1a6";
}
.fa-pied-piper:before {
  content: "\f1a7";
}
.fa-pied-piper-alt:before {
  content: "\f1a8";
}
.fa-drupal:before {
  content: "\f1a9";
}
.fa-joomla:before {
  content: "\f1aa";
}
.fa-language:before {
  content: "\f1ab";
}
.fa-fax:before {
  content: "\f1ac";
}
.fa-building:before {
  content: "\f1ad";
}
.fa-child:before {
  content: "\f1ae";
}
.fa-paw:before {
  content: "\f1b0";
}
.fa-spoon:before {
  content: "\f1b1";
}
.fa-cube:before {
  content: "\f1b2";
}
.fa-cubes:before {
  content: "\f1b3";
}
.fa-behance:before {
  content: "\f1b4";
}
.fa-behance-square:before {
  content: "\f1b5";
}
.fa-steam:before {
  content: "\f1b6";
}
.fa-steam-square:before {
  content: "\f1b7";
}
.fa-recycle:before {
  content: "\f1b8";
}
.fa-automobile:before,
.fa-car:before {
  content: "\f1b9";
}
.fa-cab:before,
.fa-taxi:before {
  content: "\f1ba";
}
.fa-tree:before {
  content: "\f1bb";
}
.fa-spotify:before {
  content: "\f1bc";
}
.fa-deviantart:before {
  content: "\f1bd";
}
.fa-soundcloud:before {
  content: "\f1be";
}
.fa-database:before {
  content: "\f1c0";
}
.fa-file-pdf-o:before {
  content: "\f1c1";
}
.fa-file-word-o:before {
  content: "\f1c2";
}
.fa-file-excel-o:before {
  content: "\f1c3";
}
.fa-file-powerpoint-o:before {
  content: "\f1c4";
}
.fa-file-photo-o:before,
.fa-file-picture-o:before,
.fa-file-image-o:before {
  content: "\f1c5";
}
.fa-file-zip-o:before,
.fa-file-archive-o:before {
  content: "\f1c6";
}
.fa-file-sound-o:before,
.fa-file-audio-o:before {
  content: "\f1c7";
}
.fa-file-movie-o:before,
.fa-file-video-o:before {
  content: "\f1c8";
}
.fa-file-code-o:before {
  content: "\f1c9";
}
.fa-vine:before {
  content: "\f1ca";
}
.fa-codepen:before {
  content: "\f1cb";
}
.fa-jsfiddle:before {
  content: "\f1cc";
}
.fa-life-bouy:before,
.fa-life-buoy:before,
.fa-life-saver:before,
.fa-support:before,
.fa-life-ring:before {
  content: "\f1cd";
}
.fa-circle-o-notch:before {
  content: "\f1ce";
}
.fa-ra:before,
.fa-rebel:before {
  content: "\f1d0";
}
.fa-ge:before,
.fa-empire:before {
  content: "\f1d1";
}
.fa-git-square:before {
  content: "\f1d2";
}
.fa-git:before {
  content: "\f1d3";
}
.fa-hacker-news:before {
  content: "\f1d4";
}
.fa-tencent-weibo:before {
  content: "\f1d5";
}
.fa-qq:before {
  content: "\f1d6";
}
.fa-wechat:before,
.fa-weixin:before {
  content: "\f1d7";
}
.fa-send:before,
.fa-paper-plane:before {
  content: "\f1d8";
}
.fa-send-o:before,
.fa-paper-plane-o:before {
  content: "\f1d9";
}
.fa-history:before {
  content: "\f1da";
}
.fa-circle-thin:before {
  content: "\f1db";
}
.fa-header:before {
  content: "\f1dc";
}
.fa-paragraph:before {
  content: "\f1dd";
}
.fa-sliders:before {
  content: "\f1de";
}
.fa-share-alt:before {
  content: "\f1e0";
}
.fa-share-alt-square:before {
  content: "\f1e1";
}
.fa-bomb:before {
  content: "\f1e2";
}
.fa-soccer-ball-o:before,
.fa-futbol-o:before {
  content: "\f1e3";
}
.fa-tty:before {
  content: "\f1e4";
}
.fa-binoculars:before {
  content: "\f1e5";
}
.fa-plug:before {
  content: "\f1e6";
}
.fa-slideshare:before {
  content: "\f1e7";
}
.fa-twitch:before {
  content: "\f1e8";
}
.fa-yelp:before {
  content: "\f1e9";
}
.fa-newspaper-o:before {
  content: "\f1ea";
}
.fa-wifi:before {
  content: "\f1eb";
}
.fa-calculator:before {
  content: "\f1ec";
}
.fa-paypal:before {
  content: "\f1ed";
}
.fa-google-wallet:before {
  content: "\f1ee";
}
.fa-cc-visa:before {
  content: "\f1f0";
}
.fa-cc-mastercard:before {
  content: "\f1f1";
}
.fa-cc-discover:before {
  content: "\f1f2";
}
.fa-cc-amex:before {
  content: "\f1f3";
}
.fa-cc-paypal:before {
  content: "\f1f4";
}
.fa-cc-stripe:before {
  content: "\f1f5";
}
.fa-bell-slash:before {
  content: "\f1f6";
}
.fa-bell-slash-o:before {
  content: "\f1f7";
}
.fa-trash:before {
  content: "\f1f8";
}
.fa-copyright:before {
  content: "\f1f9";
}
.fa-at:before {
  content: "\f1fa";
}
.fa-eyedropper:before {
  content: "\f1fb";
}
.fa-paint-brush:before {
  content: "\f1fc";
}
.fa-birthday-cake:before {
  content: "\f1fd";
}
.fa-area-chart:before {
  content: "\f1fe";
}
.fa-pie-chart:before {
  content: "\f200";
}
.fa-line-chart:before {
  content: "\f201";
}
.fa-lastfm:before {
  content: "\f202";
}
.fa-lastfm-square:before {
  content: "\f203";
}
.fa-toggle-off:before {
  content: "\f204";
}
.fa-toggle-on:before {
  content: "\f205";
}
.fa-bicycle:before {
  content: "\f206";
}
.fa-bus:before {
  content: "\f207";
}
.fa-ioxhost:before {
  content: "\f208";
}
.fa-angellist:before {
  content: "\f209";
}
.fa-cc:before {
  content: "\f20a";
}
.fa-shekel:before,
.fa-sheqel:before,
.fa-ils:before {
  content: "\f20b";
}
.fa-meanpath:before {
  content: "\f20c";
}
.form-search .combobox-container,
.form-inline .combobox-container {
  display: inline-block;
  margin-bottom: 0;
  vertical-align: top;
}
.form-search .combobox-container .input-group-addon,
.form-inline .combobox-container .input-group-addon {
  width: auto;
}
.combobox-selected .caret {
  display: none;
}
/* :not doesn't work in IE8 */
.combobox-container:not(.combobox-selected) .glyphicon-remove {
  display: none;
}
.typeahead-long {
  max-height: 300px;
  overflow-y: auto;
}
.control-group.error .combobox-container .add-on {
  color: #B94A48;
  border-color: #B94A48;
}
.control-group.error .combobox-container .caret {
  border-top-color: #B94A48;
}
.control-group.warning .combobox-container .add-on {
  color: #C09853;
  border-color: #C09853;
}
.control-group.warning .combobox-container .caret {
  border-top-color: #C09853;
}
.control-group.success .combobox-container .add-on {
  color: #468847;
  border-color: #468847;
}
.control-group.success .combobox-container .caret {
  border-top-color: #468847;
}
/* Bootstrap-Select */
/* PatternFly overrides and new stuff */
/* PatternFly specific */
/* Bootstrap overrides */
/* PatternFly-specific variables based on Bootstrap overides */
/* Bootstrap overrides */
/* PatternFly-specific */
.btn {
  -webkit-box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}
.btn:active {
  -webkit-box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}
.btn.disabled,
.btn[disabled],
fieldset[disabled] .btn {
  background-color: #f8f8f8 !important;
  background-image: none !important;
  border-color: #d1d1d1 !important;
  color: #969696 !important;
  opacity: 1;
}
.btn.disabled:active,
.btn[disabled]:active,
fieldset[disabled] .btn:active {
  -webkit-box-shadow: none;
  box-shadow: none;
}
.btn.disabled.btn-link,
.btn[disabled].btn-link,
fieldset[disabled] .btn.btn-link {
  background-color: transparent !important;
  border: 0;
}
.btn-danger {
  background-color: #a30000;
  background-image: -webkit-linear-gradient(top, #cc0000 0%, #a30000 100%);
  background-image: linear-gradient(to bottom, #cc0000 0%, #a30000 100%);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffcc0000', endColorstr='#ffa30000', GradientType=0);
  border-color: #781919;
  color: #ffffff;
}
.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active,
.btn-danger.active,
.open .dropdown-toggle.btn-danger {
  background-color: #a30000;
  background-image: none;
  border-color: #781919;
  color: #ffffff;
}
.btn-danger:active,
.btn-danger.active,
.open .dropdown-toggle.btn-danger {
  background-image: none;
}
.btn-danger.disabled,
.btn-danger[disabled],
fieldset[disabled] .btn-danger,
.btn-danger.disabled:hover,
.btn-danger[disabled]:hover,
fieldset[disabled] .btn-danger:hover,
.btn-danger.disabled:focus,
.btn-danger[disabled]:focus,
fieldset[disabled] .btn-danger:focus,
.btn-danger.disabled:active,
.btn-danger[disabled]:active,
fieldset[disabled] .btn-danger:active,
.btn-danger.disabled.active,
.btn-danger[disabled].active,
fieldset[disabled] .btn-danger.active {
  background-color: #a30000;
  border-color: #781919;
}
.btn-default {
  background-color: #eeeeee;
  background-image: -webkit-linear-gradient(top, #fafafa 0%, #ededed 100%);
  background-image: linear-gradient(to bottom, #fafafa 0%, #ededed 100%);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffafafa', endColorstr='#ffededed', GradientType=0);
  border-color: #b7b7b7;
  color: #4d5258;
}
.btn-default:hover,
.btn-default:focus,
.btn-default:active,
.btn-default.active,
.open .dropdown-toggle.btn-default {
  background-color: #eeeeee;
  background-image: none;
  border-color: #b7b7b7;
  color: #4d5258;
}
.btn-default:active,
.btn-default.active,
.open .dropdown-toggle.btn-default {
  background-image: none;
}
.btn-default.disabled,
.btn-default[disabled],
fieldset[disabled] .btn-default,
.btn-default.disabled:hover,
.btn-default[disabled]:hover,
fieldset[disabled] .btn-default:hover,
.btn-default.disabled:focus,
.btn-default[disabled]:focus,
fieldset[disabled] .btn-default:focus,
.btn-default.disabled:active,
.btn-default[disabled]:active,
fieldset[disabled] .btn-default:active,
.btn-default.disabled.active,
.btn-default[disabled].active,
fieldset[disabled] .btn-default.active {
  background-color: #eeeeee;
  border-color: #b7b7b7;
}
.btn-link,
.btn-link:active {
  -webkit-box-shadow: none;
  box-shadow: none;
}
.btn-primary {
  background-color: #0085cf;
  background-image: -webkit-linear-gradient(top, #00a8e1 0%, #0085cf 100%);
  background-image: linear-gradient(to bottom, #00a8e1 0%, #0085cf 100%);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff00a8e1', endColorstr='#ff0085cf', GradientType=0);
  border-color: #006e9c;
  color: #ffffff;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.open .dropdown-toggle.btn-primary {
  background-color: #0085cf;
  background-image: none;
  border-color: #006e9c;
  color: #ffffff;
}
.btn-primary:active,
.btn-primary.active,
.open .dropdown-toggle.btn-primary {
  background-image: none;
}
.btn-primary.disabled,
.btn-primary[disabled],
fieldset[disabled] .btn-primary,
.btn-primary.disabled:hover,
.btn-primary[disabled]:hover,
fieldset[disabled] .btn-primary:hover,
.btn-primary.disabled:focus,
.btn-primary[disabled]:focus,
fieldset[disabled] .btn-primary:focus,
.btn-primary.disabled:active,
.btn-primary[disabled]:active,
fieldset[disabled] .btn-primary:active,
.btn-primary.disabled.active,
.btn-primary[disabled].active,
fieldset[disabled] .btn-primary.active {
  background-color: #0085cf;
  border-color: #006e9c;
}
.btn-xs,
.btn-group-xs .btn {
  font-weight: 400;
}
.form-control[disabled],
.form-control[readonly],
fieldset[disabled] .form-control {
  border-color: #d4d4d4 !important;
  -webkit-box-shadow: none;
  box-shadow: none;
  color: #969696;
}
.form-control:hover {
  border-color: #7bb2dd;
}
.has-error .form-control:hover {
  border-color: #843534;
}
.has-success .form-control:hover {
  border-color: #2b542c;
}
.has-warning .form-control:hover {
  border-color: #bb6106;
}
.input-group .input-group-btn .btn {
  -webkit-box-shadow: none;
  box-shadow: none;
}
label {
  font-weight: 600;
}
@font-face {
  font-family: 'PatternFlyIcons-webfont';
  src: url('../../lib/patternfly/dist/fonts/PatternFlyIcons-webfont.eot');
  src: url('../../lib/patternfly/dist/fonts/PatternFlyIcons-webfont.eot?#iefix') format('embedded-opentype'), url('../../lib/patternfly/dist/fonts/PatternFlyIcons-webfont.ttf') format('truetype'), url('../../lib/patternfly/dist/fonts/PatternFlyIcons-webfont.woff') format('woff'), url('../../lib/patternfly/dist/fonts/PatternFlyIcons-webfont.svg#PatternFlyIcons-webfont') format('svg');
  font-weight: normal;
  font-style: normal;
}
[class*="-exclamation"] {
  color: #fff;
}
[class^="pficon-"],
[class*=" pficon-"] {
  display: inline-block;
  font-family: 'PatternFlyIcons-webfont';
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  line-height: 1;
  speak: none;
  text-transform: none;
  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.pficon-layered {
  position: relative;
}
.pficon-layered .pficon:first-child {
  position: absolute;
  z-index: 1;
}
.pficon-layered .pficon:first-child + .pficon {
  position: relative;
  z-index: 2;
}
.pficon-warning-exclamation:before {
  content: "\e60d";
}
.pficon-screen:before {
  content: "\e600";
}
.pficon-save:before {
  content: "\e601";
}
.pficon-ok:before {
  color: #3f9c35;
  content: "\e602";
}
.pficon-messages:before {
  content: "\e603";
}
.pficon-info:before {
  content: "\e604";
}
.pficon-help:before {
  content: "\e605";
}
.pficon-folder-open:before {
  content: "\e606";
}
.pficon-folder-close:before {
  content: "\e607";
}
.pficon-error-exclamation:before {
  content: "\e608";
}
.pficon-error-octagon:before {
  color: #cc0000;
  content: "\e609";
}
.pficon-edit:before {
  content: "\e60a";
}
.pficon-close:before {
  content: "\e60b";
}
.pficon-warning-triangle:before {
  color: #ec7a08;
  content: "\e60c";
}
.pficon-user:before {
  content: "\e60e";
}
.pficon-users:before {
  content: "\e60f";
}
.pficon-settings:before {
  content: "\e610";
}
.pficon-delete:before {
  content: "\e611";
}
.pficon-print:before {
  content: "\e612";
}
.pficon-refresh:before {
  content: "\e613";
}
.pficon-running:before {
  content: "\e614";
}
.pficon-import:before {
  content: "\e615";
}
.pficon-export:before {
  content: "\e616";
}
.pficon-history:before {
  content: "\e617";
}
.pficon-home:before {
  content: "\e618";
}
.pficon-remove:before {
  content: "\e619";
}
.pficon-add:before {
  content: "\e61a";
}
.navbar-pf {
  background: #393f45;
  border: 0;
  border-radius: 0;
  border-top: 3px solid #cc0000;
  margin-bottom: 0;
  min-height: 0;
}
.navbar-pf .navbar-brand {
  color: #ffffff;
  height: auto;
  padding: 12px 0;
  margin: 0 0 0 20px;
}
.ie8 .navbar-pf .navbar-brand {
  background: url('https://cdn.rawgit.com/bleathem/keynote2015-beacon/master/client/map/img/brand.png') no-repeat 0 49%;
  min-width: 300px;
}
.navbar-pf .navbar-brand img {
  display: block;
}
.ie8 .navbar-pf .navbar-brand img {
  height: 10px;
  width: 0;
}
.navbar-pf .navbar-collapse {
  border-top: 0;
  -webkit-box-shadow: none;
  box-shadow: none;
  padding: 0;
}
.navbar-pf .navbar-header {
  border-bottom: 1px solid #53565b;
  float: none;
}
.navbar-pf .navbar-nav {
  margin: 0;
}
.navbar-pf .navbar-nav > .active > a,
.navbar-pf .navbar-nav > .active > a:hover,
.navbar-pf .navbar-nav > .active > a:focus {
  background-color: #454c53;
  color: #ffffff;
}
.navbar-pf .navbar-nav > li > a {
  color: #dbdada;
  line-height: 1;
  padding: 10px 20px;
  text-shadow: none;
}
.navbar-pf .navbar-nav > li > a:hover,
.navbar-pf .navbar-nav > li > a:focus {
  color: #ffffff;
}
.navbar-pf .navbar-nav > .open > a,
.navbar-pf .navbar-nav > .open > a:hover,
.navbar-pf .navbar-nav > .open > a:focus {
  background-color: #454c53;
  color: #ffffff;
}
@media (max-width: 767px) {
  .navbar-pf .navbar-nav .active .navbar-persistent,
  .navbar-pf .navbar-nav .active .dropdown-menu,
  .navbar-pf .navbar-nav .open .dropdown-menu {
    background-color: #3c434a !important;
    margin-left: 0;
    padding-bottom: 0;
    padding-top: 0;
  }
  .navbar-pf .navbar-nav .active .navbar-persistent > .active > a,
  .navbar-pf .navbar-nav .active .dropdown-menu > .active > a,
  .navbar-pf .navbar-nav .open .dropdown-menu > .active > a,
  .navbar-pf .navbar-nav .active .navbar-persistent .dropdown-submenu.open > a,
  .navbar-pf .navbar-nav .active .dropdown-menu .dropdown-submenu.open > a,
  .navbar-pf .navbar-nav .open .dropdown-menu .dropdown-submenu.open > a,
  .navbar-pf .navbar-nav .active .navbar-persistent > .active > a:hover,
  .navbar-pf .navbar-nav .active .dropdown-menu > .active > a:hover,
  .navbar-pf .navbar-nav .open .dropdown-menu > .active > a:hover,
  .navbar-pf .navbar-nav .active .navbar-persistent .dropdown-submenu.open > a:hover,
  .navbar-pf .navbar-nav .active .dropdown-menu .dropdown-submenu.open > a:hover,
  .navbar-pf .navbar-nav .open .dropdown-menu .dropdown-submenu.open > a:hover,
  .navbar-pf .navbar-nav .active .navbar-persistent > .active > a:focus,
  .navbar-pf .navbar-nav .active .dropdown-menu > .active > a:focus,
  .navbar-pf .navbar-nav .open .dropdown-menu > .active > a:focus,
  .navbar-pf .navbar-nav .active .navbar-persistent .dropdown-submenu.open > a:focus,
  .navbar-pf .navbar-nav .active .dropdown-menu .dropdown-submenu.open > a:focus,
  .navbar-pf .navbar-nav .open .dropdown-menu .dropdown-submenu.open > a:focus {
    background-color: #424950 !important;
    color: #ffffff;
  }
  .navbar-pf .navbar-nav .active .navbar-persistent > li > a,
  .navbar-pf .navbar-nav .active .dropdown-menu > li > a,
  .navbar-pf .navbar-nav .open .dropdown-menu > li > a {
    background-color: transparent;
    border: 0;
    color: #dbdada;
    outline: none;
    padding-left: 30px;
  }
  .navbar-pf .navbar-nav .active .navbar-persistent > li > a:hover,
  .navbar-pf .navbar-nav .active .dropdown-menu > li > a:hover,
  .navbar-pf .navbar-nav .open .dropdown-menu > li > a:hover {
    color: #ffffff;
  }
  .navbar-pf .navbar-nav .active .navbar-persistent .divider,
  .navbar-pf .navbar-nav .active .dropdown-menu .divider,
  .navbar-pf .navbar-nav .open .dropdown-menu .divider {
    background-color: #53565b;
    margin: 0 1px;
  }
  .navbar-pf .navbar-nav .active .navbar-persistent .dropdown-header,
  .navbar-pf .navbar-nav .active .dropdown-menu .dropdown-header,
  .navbar-pf .navbar-nav .open .dropdown-menu .dropdown-header {
    padding-bottom: 0;
    padding-left: 30px;
  }
  .navbar-pf .navbar-nav .active .navbar-persistent .dropdown-submenu.open .dropdown-toggle,
  .navbar-pf .navbar-nav .active .dropdown-menu .dropdown-submenu.open .dropdown-toggle,
  .navbar-pf .navbar-nav .open .dropdown-menu .dropdown-submenu.open .dropdown-toggle {
    color: #ffffff;
  }
  .navbar-pf .navbar-nav .active .navbar-persistent .dropdown-submenu.pull-left,
  .navbar-pf .navbar-nav .active .dropdown-menu .dropdown-submenu.pull-left,
  .navbar-pf .navbar-nav .open .dropdown-menu .dropdown-submenu.pull-left {
    float: none !important;
  }
  .navbar-pf .navbar-nav .active .navbar-persistent .dropdown-submenu > a:after,
  .navbar-pf .navbar-nav .active .dropdown-menu .dropdown-submenu > a:after,
  .navbar-pf .navbar-nav .open .dropdown-menu .dropdown-submenu > a:after {
    display: none;
  }
  .navbar-pf .navbar-nav .active .navbar-persistent .dropdown-submenu .dropdown-header,
  .navbar-pf .navbar-nav .active .dropdown-menu .dropdown-submenu .dropdown-header,
  .navbar-pf .navbar-nav .open .dropdown-menu .dropdown-submenu .dropdown-header {
    padding-left: 45px;
  }
  .navbar-pf .navbar-nav .active .navbar-persistent .dropdown-submenu .dropdown-menu,
  .navbar-pf .navbar-nav .active .dropdown-menu .dropdown-submenu .dropdown-menu,
  .navbar-pf .navbar-nav .open .dropdown-menu .dropdown-submenu .dropdown-menu {
    border: 0;
    bottom: auto;
    -webkit-box-shadow: none;
    box-shadow: none;
    display: block;
    float: none;
    margin: 0;
    min-width: 0;
    padding: 0;
    position: relative;
    left: auto;
    right: auto;
    top: auto;
  }
  .navbar-pf .navbar-nav .active .navbar-persistent .dropdown-submenu .dropdown-menu > li > a,
  .navbar-pf .navbar-nav .active .dropdown-menu .dropdown-submenu .dropdown-menu > li > a,
  .navbar-pf .navbar-nav .open .dropdown-menu .dropdown-submenu .dropdown-menu > li > a {
    padding: 5px 15px 5px 45px;
    line-height: 20px;
  }
  .navbar-pf .navbar-nav .active .navbar-persistent .dropdown-submenu .dropdown-menu .dropdown-menu > li > a,
  .navbar-pf .navbar-nav .active .dropdown-menu .dropdown-submenu .dropdown-menu .dropdown-menu > li > a,
  .navbar-pf .navbar-nav .open .dropdown-menu .dropdown-submenu .dropdown-menu .dropdown-menu > li > a {
    padding-left: 60px;
  }
  .navbar-pf .navbar-nav .active .navbar-persistent .dropdown-submenu.open .dropdown-menu {
    display: block;
  }
  .navbar-pf .navbar-nav .active .navbar-persistent .dropdown-submenu > a:after {
    display: inline-block !important;
    position: relative;
    right: auto;
    top: 1px;
  }
  .navbar-pf .navbar-nav .active .navbar-persistent .dropdown-submenu .dropdown-menu {
    display: none;
  }
  .navbar-pf .navbar-nav .active .navbar-persistent .dropdown-submenu .dropdown-submenu > a:after {
    display: none !important;
  }
  .navbar-pf .navbar-nav .context-bootstrap-select .open > .dropdown-menu {
    background-color: #fff !important;
  }
  .navbar-pf .navbar-nav .context-bootstrap-select .open > .dropdown-menu > .active > a,
  .navbar-pf .navbar-nav .context-bootstrap-select .open > .dropdown-menu > .active > a:active {
    background-color: #d4edfa !important;
    border-color: #b3d3e7 !important;
    color: #333333 !important;
  }
  .navbar-pf .navbar-nav .context-bootstrap-select .open > .dropdown-menu > .active > a small,
  .navbar-pf .navbar-nav .context-bootstrap-select .open > .dropdown-menu > .active > a:active small {
    color: #999999 !important;
  }
  .navbar-pf .navbar-nav .context-bootstrap-select .open > .dropdown-menu > .disabled > a {
    color: #999999 !important;
  }
  .navbar-pf .navbar-nav .context-bootstrap-select .open > .dropdown-menu > .selected > a,
  .navbar-pf .navbar-nav .context-bootstrap-select .open > .dropdown-menu > .selected > a:active {
    background-color: #0099d3 !important;
    border-color: #0076b7 !important;
    color: #fff !important;
  }
  .navbar-pf .navbar-nav .context-bootstrap-select .open > .dropdown-menu > .selected > a small,
  .navbar-pf .navbar-nav .context-bootstrap-select .open > .dropdown-menu > .selected > a:active small {
    color: #70c8e7 !important;
    color: rgba(225, 255, 255, 0.5) !important;
  }
  .navbar-pf .navbar-nav .context-bootstrap-select .open > .dropdown-menu li > a.opt {
    border-bottom: 1px solid transparent;
    border-top: 1px solid transparent;
    color: #333333;
    padding-left: 10px;
    padding-right: 10px;
  }
  .navbar-pf .navbar-nav .context-bootstrap-select .open > .dropdown-menu li a:active small {
    color: #70c8e7 !important;
    color: rgba(225, 255, 255, 0.5) !important;
  }
  .navbar-pf .navbar-nav .context-bootstrap-select .open > .dropdown-menu li a:hover small,
  .navbar-pf .navbar-nav .context-bootstrap-select .open > .dropdown-menu li a:focus small {
    color: #999999;
  }
  .navbar-pf .navbar-nav .context-bootstrap-select > .open > .dropdown-menu {
    padding-bottom: 5px;
    padding-top: 5px;
  }
}
.navbar-pf .navbar-persistent {
  display: none;
}
.navbar-pf .active > .navbar-persistent {
  display: block;
}
.navbar-pf .navbar-primary {
  float: none;
}
.navbar-pf .navbar-primary .context {
  border-bottom: 1px solid #53565b;
}
.navbar-pf .navbar-primary .context.context-bootstrap-select .bootstrap-select.btn-group,
.navbar-pf .navbar-primary .context.context-bootstrap-select .bootstrap-select.btn-group[class*="span"] {
  margin: 8px 20px 9px;
  width: auto;
}
.navbar-pf .navbar-primary > li > .navbar-persistent > .dropdown-submenu > a {
  position: relative;
}
.navbar-pf .navbar-primary > li > .navbar-persistent > .dropdown-submenu > a:after {
  content: "\f107";
  display: inline-block;
  font-family: "FontAwesome";
  font-weight: normal;
}
@media (max-width: 767px) {
  .navbar-pf .navbar-primary > li > .navbar-persistent > .dropdown-submenu > a:after {
    height: 10px;
    margin-left: 4px;
    vertical-align: baseline;
  }
}
.navbar-pf .navbar-toggle {
  border: 0;
  margin: 0;
  padding: 10px 20px;
}
.navbar-pf .navbar-toggle:hover,
.navbar-pf .navbar-toggle:focus {
  background-color: transparent;
  outline: none;
}
.navbar-pf .navbar-toggle:hover .icon-bar,
.navbar-pf .navbar-toggle:focus .icon-bar {
  -webkit-box-shadow: 0 0 3px #ffffff;
  box-shadow: 0 0 3px #ffffff;
}
.navbar-pf .navbar-toggle .icon-bar {
  background-color: #ffffff;
}
.navbar-pf .navbar-utility {
  border-bottom: 1px solid #53565b;
}
.navbar-pf .navbar-utility li.dropdown > .dropdown-toggle {
  padding-left: 36px;
  position: relative;
}
.navbar-pf .navbar-utility li.dropdown > .dropdown-toggle .pficon-user {
  left: 20px;
  position: absolute;
  top: 10px;
}
@media (max-width: 767px) {
  .navbar-pf .navbar-utility > li + li {
    border-top: 1px solid #53565b;
  }
}
@media (min-width: 768px) {
  .navbar-pf .navbar-brand {
    padding: 7px 0 8px;
  }
  .navbar-pf .navbar-nav > li > a {
    padding-bottom: 14px;
    padding-top: 14px;
  }
  .navbar-pf .navbar-persistent {
    font-size: 14px;
  }
  .navbar-pf .navbar-primary {
    font-size: 14px;
    background-image: -webkit-linear-gradient(top, #474c50 0%, #383f43 100%);
    background-image: linear-gradient(to bottom, #474c50 0%, #383f43 100%);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff474c50', endColorstr='#ff383f43', GradientType=0);
  }
  .navbar-pf .navbar-primary.persistent-secondary .context .dropdown-menu {
    top: auto;
  }
  .navbar-pf .navbar-primary.persistent-secondary .dropup .dropdown-menu {
    bottom: -5px;
    top: auto;
  }
  .navbar-pf .navbar-primary.persistent-secondary > li {
    position: static;
  }
  .navbar-pf .navbar-primary.persistent-secondary > li.active {
    margin-bottom: 32px;
  }
  .navbar-pf .navbar-primary.persistent-secondary > li.active > .navbar-persistent {
    display: block;
    left: 0;
    position: absolute;
  }
  .navbar-pf .navbar-primary.persistent-secondary > li > .navbar-persistent {
    background: #f6f6f6;
    border-bottom: 1px solid #cecdcd;
    padding: 0;
    width: 100%;
  }
  .navbar-pf .navbar-primary.persistent-secondary > li > .navbar-persistent a {
    text-decoration: none !important;
  }
  .navbar-pf .navbar-primary.persistent-secondary > li > .navbar-persistent > li.active:before,
  .navbar-pf .navbar-primary.persistent-secondary > li > .navbar-persistent > li.active:hover:before {
    background: #0099d3;
    bottom: -1px;
    content: '';
    display: block;
    height: 2px;
    left: 20px;
    position: absolute;
    right: 20px;
  }
  .navbar-pf .navbar-primary.persistent-secondary > li > .navbar-persistent > li.active > a,
  .navbar-pf .navbar-primary.persistent-secondary > li > .navbar-persistent > li.active > a:hover,
  .navbar-pf .navbar-primary.persistent-secondary > li > .navbar-persistent > li.active:hover > a {
    color: #0099d3 !important;
  }
  .navbar-pf .navbar-primary.persistent-secondary > li > .navbar-persistent > li.active .active > a {
    color: #ffffff;
  }
  .navbar-pf .navbar-primary.persistent-secondary > li > .navbar-persistent > li.dropdown-submenu:hover > .dropdown-menu {
    display: none;
  }
  .navbar-pf .navbar-primary.persistent-secondary > li > .navbar-persistent > li.dropdown-submenu.open > .dropdown-menu {
    display: block;
    left: 20px;
    margin-top: 1px;
    top: 100%;
  }
  .navbar-pf .navbar-primary.persistent-secondary > li > .navbar-persistent > li.dropdown-submenu.open > .dropdown-toggle {
    color: #222222;
  }
  .navbar-pf .navbar-primary.persistent-secondary > li > .navbar-persistent > li.dropdown-submenu.open > .dropdown-toggle:after {
    border-top-color: #222222;
  }
  .navbar-pf .navbar-primary.persistent-secondary > li > .navbar-persistent > li.dropdown-submenu > .dropdown-toggle {
    padding-right: 35px !important;
  }
  .navbar-pf .navbar-primary.persistent-secondary > li > .navbar-persistent > li.dropdown-submenu > .dropdown-toggle:after {
    position: absolute;
    right: 20px;
    top: 10px;
  }
  .navbar-pf .navbar-primary.persistent-secondary > li > .navbar-persistent > li:hover:before,
  .navbar-pf .navbar-primary.persistent-secondary > li > .navbar-persistent > li.open:before {
    background: #aaaaaa;
    bottom: -1px;
    content: '';
    display: block;
    height: 2px;
    left: 20px;
    position: absolute;
    right: 20px;
  }
  .navbar-pf .navbar-primary.persistent-secondary > li > .navbar-persistent > li:hover > a,
  .navbar-pf .navbar-primary.persistent-secondary > li > .navbar-persistent > li.open > a {
    color: #222222;
  }
  .navbar-pf .navbar-primary.persistent-secondary > li > .navbar-persistent > li:hover > a:after,
  .navbar-pf .navbar-primary.persistent-secondary > li > .navbar-persistent > li.open > a:after {
    border-top-color: #222222;
  }
  .navbar-pf .navbar-primary.persistent-secondary > li > .navbar-persistent > li > a {
    background-color: transparent;
    display: block;
    line-height: 1;
    padding: 9px 20px;
  }
  .navbar-pf .navbar-primary.persistent-secondary > li > .navbar-persistent > li > a.dropdown-toggle {
    padding-right: 35px;
  }
  .navbar-pf .navbar-primary.persistent-secondary > li > .navbar-persistent > li > a.dropdown-toggle:after {
    font-size: 15px;
    position: absolute;
    right: 20px;
    top: 9px;
  }
  .navbar-pf .navbar-primary.persistent-secondary > li > .navbar-persistent > li > a:hover {
    color: #222222;
  }
  .navbar-pf .navbar-primary.persistent-secondary > li > .navbar-persistent > li a {
    color: #4d5258;
  }
  .navbar-pf .navbar-primary > li > a {
    border-bottom: 1px solid transparent;
    border-top: 1px solid transparent;
    position: relative;
    margin: -1px 0 0;
  }
  .navbar-pf .navbar-primary > li > a:hover {
    background-color: #4b5053;
    border-top-color: #949699;
    color: #dbdada;
    background-image: -webkit-linear-gradient(top, #5c6165 0%, #4b5053 100%);
    background-image: linear-gradient(to bottom, #5c6165 0%, #4b5053 100%);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5c6165', endColorstr='#ff4b5053', GradientType=0);
  }
  .navbar-pf .navbar-primary > .active > a,
  .navbar-pf .navbar-primary > .active > a:hover,
  .navbar-pf .navbar-primary > .active > a:focus,
  .navbar-pf .navbar-primary > .open > a,
  .navbar-pf .navbar-primary > .open > a:hover,
  .navbar-pf .navbar-primary > .open > a:focus {
    background-color: #64686c;
    border-bottom-color: #64686c;
    border-top-color: #949699;
    -webkit-box-shadow: none;
    box-shadow: none;
    color: #ffffff;
    background-image: -webkit-linear-gradient(top, #72757a 0%, #64686c 100%);
    background-image: linear-gradient(to bottom, #72757a 0%, #64686c 100%);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff72757a', endColorstr='#ff64686c', GradientType=0);
  }
  .navbar-pf .navbar-primary li.context.context-bootstrap-select .filter-option {
    max-width: 160px;
    text-overflow: ellipsis;
  }
  .ie8 .navbar-pf .navbar-primary li.context.context-bootstrap-select .filter-option {
    max-width: none;
  }
  .navbar-pf .navbar-primary li.context.dropdown {
    border-bottom: 0;
  }
  .navbar-pf .navbar-primary li.context > a,
  .navbar-pf .navbar-primary li.context.context-bootstrap-select {
    background-color: #505458;
    border-bottom-color: #65696d;
    border-right: 1px solid #65696d;
    border-top-color: #64696d;
    font-weight: 600;
    background-image: -webkit-linear-gradient(top, #585d61 0%, #505458 100%);
    background-image: linear-gradient(to bottom, #585d61 0%, #505458 100%);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff585d61', endColorstr='#ff505458', GradientType=0);
  }
  .navbar-pf .navbar-primary li.context > a:hover,
  .navbar-pf .navbar-primary li.context.context-bootstrap-select:hover {
    background-color: #5a5e62;
    border-bottom-color: #6e7276;
    border-right-color: #6e7276;
    border-top-color: #6c7276;
    background-image: -webkit-linear-gradient(top, #62676b 0%, #5a5e62 100%);
    background-image: linear-gradient(to bottom, #62676b 0%, #5a5e62 100%);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff62676b', endColorstr='#ff5a5e62', GradientType=0);
  }
  .navbar-pf .navbar-primary li.context.open > a {
    background-color: #65696d;
    border-bottom-color: #6e7276;
    border-right-color: #777a7e;
    border-top-color: #767a7e;
    background-image: -webkit-linear-gradient(top, #6b7175 0%, #65696d 100%);
    background-image: linear-gradient(to bottom, #6b7175 0%, #65696d 100%);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff6b7175', endColorstr='#ff65696d', GradientType=0);
  }
  .navbar-pf .navbar-utility {
    border-bottom: 0;
    font-size: 11px;
    position: absolute;
    right: 0;
    top: 0;
  }
  .navbar-pf .navbar-utility > .active > a,
  .navbar-pf .navbar-utility > .active > a:hover,
  .navbar-pf .navbar-utility > .active > a:focus,
  .navbar-pf .navbar-utility > .open > a,
  .navbar-pf .navbar-utility > .open > a:hover,
  .navbar-pf .navbar-utility > .open > a:focus {
    background: #5b6165;
    color: #ffffff;
  }
  .navbar-pf .navbar-utility > li > a {
    border-left: 1px solid #53565b;
    color: #ffffff !important;
    padding: 7px 10px;
  }
  .navbar-pf .navbar-utility > li > a:hover {
    background: #4a5053;
    border-left-color: #636466;
  }
  .navbar-pf .navbar-utility > li.open > a {
    border-left-color: #6c6e70;
    color: #ffffff !important;
  }
  .navbar-pf .navbar-utility li.dropdown > .dropdown-toggle {
    padding-left: 26px;
  }
  .navbar-pf .navbar-utility li.dropdown > .dropdown-toggle .pficon-user {
    left: 10px;
    top: 7px;
  }
  .navbar-pf .navbar-utility .open .dropdown-menu {
    left: auto;
    right: 0;
  }
  .navbar-pf .navbar-utility .open .dropdown-menu .dropdown-menu {
    left: auto;
    right: 100%;
  }
  .navbar-pf .open .dropdown-menu {
    border-top-width: 0 !important;
  }
  .navbar-pf .open.bootstrap-select .dropdown-menu,
  .navbar-pf .open .dropdown-submenu > .dropdown-menu {
    border-top-width: 1px !important;
  }
}
@media (max-width: 360px) {
  .navbar-pf .navbar-brand {
    margin-left: 10px;
    width: 75%;
  }
  .navbar-pf .navbar-brand img {
    height: auto;
    max-width: 100%;
  }
  .navbar-pf .navbar-toggle {
    padding-left: 0;
  }
}
@-webkit-keyframes progress-bar-stripes {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 40px 0;
  }
}
@keyframes progress-bar-stripes {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 40px 0;
  }
}
.progress {
  -webkit-box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.25);
}
.progress.progress-label-left,
.progress.progress-label-top-right {
  overflow: visible;
  position: relative;
}
.progress.progress-label-left {
  margin-left: 40px;
}
.progress.progress-sm {
  height: 14px;
  margin-bottom: 14px;
}
.progress.progress-xs {
  height: 6px;
  margin-bottom: 6px;
}
td > .progress:first-child:last-child {
  margin-bottom: 0;
  margin-top: 3px;
}
.progress-bar {
  box-shadow: none;
}
.progress-label-left .progress-bar span,
.progress-label-top-right .progress-bar span {
  color: #333333;
  font-size: 14px;
  position: absolute;
  text-align: right;
}
.progress-label-left .progress-bar span {
  left: -40px;
  top: 0;
  width: 35px;
}
.progress-label-top-right .progress-bar span {
  max-width: 25%;
  overflow: hidden;
  right: 0;
  text-overflow: ellipsis;
  top: -31px;
  white-space: nowrap;
}
.progress-label-left.progress-sm .progress-bar span,
.progress-label-top-right.progress-sm .progress-bar span {
  font-size: 12px;
}
.progress-sm .progress-bar {
  line-height: 14px;
}
.progress-xs .progress-bar {
  line-height: 6px;
}
.progress-description {
  margin-bottom: 10px;
  max-width: 74%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.progress-description .count {
  font-size: 20.004px;
  font-weight: 300;
  line-height: 1;
  margin-right: 5px;
}
.progress-description .fa,
.progress-description .pficon {
  margin-right: 3px;
}
h1,
.h1,
h2,
.h2 {
  font-weight: 300;
}
.page-header .actions {
  margin-top: 8px;
}
.page-header .actions a > .pficon {
  margin-right: 4px;
}
@media (min-width: 767px) {
  .page-header-bleed-left {
    margin-left: -20px;
  }
  .page-header-bleed-right {
    margin-right: -20px;
  }
  .page-header-bleed-right .actions {
    margin-right: 20px;
  }
}
/* RCUE Styles */
/* Bootstrap overrides */
/* RCUE-specific */
.navbar-pf-lg .navbar-brand {
  padding: 12px 0;
}
.navbar-pf-lg .navbar-utility > li > a {
  padding-top: 11px;
  padding-bottom: 11px;
}
.navbar-pf-lg .navbar-utility li.dropdown > .dropdown-toggle .pficon-user {
  top: 12px;
}
.map-container {
  position: relative;
}
.map-container:before,
.map-container:after {
  content: " ";
  display: table;
}
.map-container:after {
  clear: both;
}
.map-container:before,
.map-container:after {
  content: " ";
  display: table;
}
.map-container:after {
  clear: both;
}
.info div {
  background: #ffffff;
  border-bottom: 1px solid #d0d0d0;
  line-height: 20px;
  padding: 10px;
  text-transform: uppercase;
}
.info div:last-child {
  background: #fafafa;
}
.info div h1 {
  line-height: 35px;
  margin: 0;
  margin-left: 10px;
  display: inline-block;
}
.info div strong {
  padding-left: 10px;
  display: inline-block;
  width: 70px;
}
.info #log {
  min-height: 250px;
  overflow-y: scroll;
  color: #333333;
  padding: 0px;
  margin: 0px;
  padding-left: 0;
  list-style: none;
}
.info #log .check-out .log-action {
  background: #cc0000 !important;
}
.info #log li {
  margin: 0 0 0 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 -2px 0px rgba(0, 0, 0, 0.1);
  line-height: 18px;
}
.info #log li:hover {
  background: rgba(0, 0, 0, 0.1);
}
.info #log span {
  display: inline-block;
  padding-left: 5px;
  vertical-align: top;
}
.info #log span:before {
  font-family: "FontAwesome";
  font-weight: normal;
  line-height: 12px;
  width: 12px;
  text-align: center;
  margin-right: 2px;
}
.info #log span.log-action {
  background: #3f9c35;
  color: #fff;
  width: 35%;
  margin-bottom: 5px;
}
.info #log span.log-action:before {
  content: none;
}
.info #log span.log-time {
  background: rgba(0, 0, 0, 0.05);
  color: #999999;
  width: 65%;
  margin-bottom: 5px;
}
.info #log span.log-time:before {
  content: "\f017";
}
.info #log span.log-id {
  text-transform: none;
  width: 35%;
  margin-bottom: 15px;
}
.info #log span.log-id:before {
  content: "\f10c";
}
.info #log span.log-location {
  text-transform: none;
  width: 65%;
  margin-bottom: 15px;
}
.info #log span.log-location:before {
  content: "\f041";
}
.user-filter {
  left: 10px;
  position: absolute;
  top: 10px;
}
.user-filter label {
  position: absolute;
  right: 10px;
  top: 5px;
  color: #999999;
}
.user-filter input[type="text"] {
  margin: 0!important;
  background: #fff;
  margin-left: 5px;
  width: 390px!important;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}
.combobox-container ul {
  padding: 0;
  width: 390px;
}
.combobox-container ul li {
  border-bottom: 1px solid #eeeeee;
}
.combobox-container ul li a {
  padding-left: 10px;
}
.userinfo {
  display: none;
  position: absolute;
  border: none;
  top: 45px;
  left: 10px;
  background: #fff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  padding: 6px 10px;
  width: 390px;
  border: 1px solid #999999;
}
.userinfo p {
  margin: 0;
}
.userinfo span {
  display: inline;
  line-height: normal;
}
.userinfo h2 {
  line-height: 35px;
  margin: 0;
  text-transform: none;
}
.userinfo ul {
  margin: 0;
  width: 100%;
}
.userinfo ul li {
  line-height: 20px;
  margin-right: 8px;
  padding: 0 10px 0 0;
}
.map {
  float: left;
  background-image: url(https://cdn.rawgit.com/bleathem/keynote2015-beacon/master/client/map/img/map.png);
  /* 2393 x 2004 */
  background-repeat: no-repeat;
  background-size: contain;
  background-position: left top;
  background-color: #180034;
  position: relative;
}
svg {
  position: relative;
}
.map-inset {
  opacity: .9;
  background: #fff;
  border-bottom: 1px solid #222;
  border-left: 1px solid #222;
  border-radius: 0 0 0 0px;
  box-shadow: -15px 15px 0px rgba(0, 0, 0, 0.5);
  position: absolute;
  right: 0px;
  width: 160px;
  height: 160px;
  text-align: center;
  top: 0px;
  text-transform: uppercase;
  font-size: 10px;
}
.map svg {
  display: block;
  margin: auto;
}
.node {
  fill: #ccc;
  stroke: #ffffff;
  stroke-width: 1px;
}
.node.unselected {
  stroke: rgba(255, 255, 255, 0.5);
}
.particle {
  fill: none;
  stroke: lightyellow;
  stroke-width: 2px;
}
.link {
  stroke: #777;
  stroke-width: 2px;
}
.selected {
  stroke: #ffffff;
  stroke-width: 3px;
}
.progress {
  width: auto;
  margin: 0!important;
  position: relative;
}
.progress-bar {
  position: absolute;
  height: 6px;
}
.buffer {
  z-index: 10;
  background-color: #aeeaff;
}
.playback {
  z-index: 20;
}
.legend {
  display: block;
  vertical-align: bottom;
  position: absolute;
  bottom: 35%;
  left: 10px;
  background: #ffffff;
  padding: 5px;
}
.legendInner {
  width: 50px;
}
.arrowText {
  display: inline-block;
}
.arrow {
  display: inline-block;
  padding-right: 4px;
}
.scale {
  width: 10px;
  height: 150px;
  display: inline-block;
  background-image: linear-gradient(to bottom, #d92626, #d98026, #d9d926, #80d926, #26d926, #26d980, #26d9d9, #267fd9, #2626d9, #7f26d9);
}
#cover {
  position: fixed;
  top: 0;
  left: 0;
  background: black;
  z-index: 500;
  width: 100%;
  height: 100%;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.5s linear 0.5s, opacity 0.5s linear 0.5s;
}
.spinner-outer {
  position: absolute;
  top: 50%;
  left: 50%;
}
.spinner {
  width: 200px;
  height: 200px;
  position: relative;
  top: -100px;
  left: -100px;
}
.container1 > div,
.container2 > div,
.container3 > div {
  width: 50px;
  height: 50px;
  background-color: #CCC;
  border-radius: 100%;
  position: absolute;
  -webkit-animation: bouncedelay 1.2s infinite ease-in-out;
  animation: bouncedelay 1.2s infinite ease-in-out;
  /* Prevent first frame from flickering when animation starts */
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}
.spinner .spinner-container {
  position: absolute;
  width: 100%;
  height: 100%;
}
.container2 {
  -webkit-transform: rotateZ(45deg);
  transform: rotateZ(45deg);
}
.container3 {
  -webkit-transform: rotateZ(90deg);
  transform: rotateZ(90deg);
}
.circle1 {
  top: 0;
  left: 0;
}
.circle2 {
  top: 0;
  right: 0;
}
.circle3 {
  right: 0;
  bottom: 0;
}
.circle4 {
  left: 0;
  bottom: 0;
}
.container2 .circle1 {
  -webkit-animation-delay: -1.1s;
  animation-delay: -1.1s;
}
.container3 .circle1 {
  -webkit-animation-delay: -1s;
  animation-delay: -1s;
}
.container1 .circle2 {
  -webkit-animation-delay: -0.9s;
  animation-delay: -0.9s;
}
.container2 .circle2 {
  -webkit-animation-delay: -0.8s;
  animation-delay: -0.8s;
}
.container3 .circle2 {
  -webkit-animation-delay: -0.7s;
  animation-delay: -0.7s;
}
.container1 .circle3 {
  -webkit-animation-delay: -0.6s;
  animation-delay: -0.6s;
}
.container2 .circle3 {
  -webkit-animation-delay: -0.5s;
  animation-delay: -0.5s;
}
.container3 .circle3 {
  -webkit-animation-delay: -0.4s;
  animation-delay: -0.4s;
}
.container1 .circle4 {
  -webkit-animation-delay: -0.3s;
  animation-delay: -0.3s;
}
.container2 .circle4 {
  -webkit-animation-delay: -0.2s;
  animation-delay: -0.2s;
}
.container3 .circle4 {
  -webkit-animation-delay: -0.1s;
  animation-delay: -0.1s;
}
@-webkit-keyframes bouncedelay {
  0%,
  80%,
  100% {
    -webkit-transform: scale(0);
  }
  40% {
    -webkit-transform: scale(1);
  }
}
@keyframes bouncedelay {
  0%,
  80%,
  100% {
    transform: scale(0);
    -webkit-transform: scale(0);
  }
  40% {
    transform: scale(1);
    -webkit-transform: scale(1);
  }
}

            
          
!
            
              var d3demo = d3demo || {};

d3demo.layout = (function dataSimulator(d3, Rx) {
  var scale, width, height;
  var locations = [
  { id: 0, x_i: 370, y_i: 1270, name: 'Entrance', code: 'Entrance'}
, { id: 1, x_i: 310, y_i: 510, name: 'General Sessions', code: 'General'}
, { id: 2, x_i: 160, y_i: 460, name: 'Stage Left', code: 'GenStageL'}
, { id: 3, x_i: 160, y_i: 560, name: 'Stage Right', code: 'GenStageR'}  // unsued
, { id: 4, x_i: 860, y_i: 240, name: 'Lunch 1', code: 'LunchL'}
, { id: 5, x_i: 1590, y_i: 210, name: 'Lunch 2', code: 'LunchR'}
, { id: 6, x_i: 860, y_i: 600, name: 'Red Hat Booth 1', code: 'BoothL'}
, { id: 7, x_i: 1570, y_i: 600, name: 'Red Hat Booth 2', code: 'BoothR'}
, { id: 8, x_i: 90,  y_i: 1110, name: 'Room 200 Community meets Enterprise', code: 'Room200'}
, { id: 9, x_i: 680, y_i: 1170, name: 'Room 201 Devnation Track A', code: 'Room201'}
, { id: 10, x_i: 870, y_i: 1170, name: 'Room 202 Devnation Track B', code: 'Room202'}
, { id: 11, x_i: 1070, y_i: 1170, name: 'Room 203 Devnation Track C', code: 'Room203'}
, { id: 12, x_i: 1250, y_i: 1170, name: 'Room 204 Devnation Track D', code: 'Room204'}
, { id: 13, x_i: 1800, y_i: 1170, name: 'Room 206 Devnation Track E', code: 'Room206'}
, { id: 14, x_i: 150, y_i: 1300, name: 'Devzone', code: 'Devzone'}
, { id: 15, x_i: 1750, y_i: 1300, name: 'Community Lounge', code: 'Lounge'}
, { id: 16, x_i: 1800, y_i: 150, name: 'Ballroom A 3rd floor', code: 'Ballroom'}
];

  // Dynamically size the map and other elements to fill the screen
  var sizeMap = function(event) {
    var mapContainer = document.querySelector('.map');
    var windowHeight = Math.max(document.documentElement.clientHeight, window.innerHeight || height);
    height = windowHeight - 40;
    scale = height / 1389;
    width = 1949*scale;

    locations.forEach(function(location, index) {
      location.x = location.x_i * scale;
      location.y = location.y_i * scale;
    });

    if (mapContainer) {
      mapContainer.style.height = height + 'px';
      mapContainer.style.width = width + 'px';
    };

//    document.querySelector('.progress').style.width = width - 100 + 'px';

    var logContainer = document.getElementById('log');
    var logContainerHeight = windowHeight - 234;
    logContainer && (logContainer.style.height = logContainerHeight + 'px');

    var legend = document.querySelector('.legend');
    legend && (legend.style.left = width -70 + 'px');
  };
  sizeMap();

  // Adjust the map size and location co-ords when the window is resized
  window.onresize = function(event) {
    sizeMap();
    var myEvent = new CustomEvent('mapresize', {detail: {scale: scale, width: width, height: height}});
    document.dispatchEvent(myEvent);
  }

  return {
    width: width
  , height: height
  , locations: locations
  , sizeMap: sizeMap
  }
})(d3, Rx);

d3demo.playback = (function dataPlayback(d3, Rx) {
  var pauser = new Rx.Subject();
  var counter;

  var playback = function(feed) {
    var minutes, START_MINUTES, END_MINUTES, START_TIME;
    var setupFeed = feed.filter(function(message) {
      return message.type === 'setup';
    }).tap(function(message) {
      var data = message.data;
      START_TIME = data.startTime;
      START_MINUTES = Math.floor(data.startTime / 60000);
      END_MINUTES = Math.floor((data.endTime - data.startTime) / 60000) + START_MINUTES; // account for day boundaries
      console.log('Playback range: ', new Date(data.startTime), new Date(data.endTime));
      minutes = START_MINUTES;
      counter.connect();
    }).take(1);

    var scans1 = feed.filter(function(message) {
      return message.type === 'scan';
    }).map(function(message) {
      return message.data;
    });

    var scans2 = feed.filter(function(message) {
      return message.type === 'scanBundle';
    }).flatMap(function(scanBundle) {
      return scanBundle.data;
    });

    var scans = Rx.Observable.merge(scans1, scans2).share();

    var rate = 60;
    console.log('rate', rate);

    counter = Rx.Observable.interval(rate)  // determines the playback rate
      .map(function(n) {
        return {
          n: n
        , minutes: minutes++ // increment in 1 minute increments
        , timestamp: minutes * 60 * 1000 // timestamp in ms
        }
      })
      .takeWhile(function(tick) {
        return tick.minutes <= END_MINUTES;
      })
      .pausable(pauser).publish();

    var clock = counter.filter(function(tick) { // reduce the counter to 5 minute increments
      return tick.timestamp % 300000 === 0;
    }).map(function(tick) {
      tick.date = new Date(tick.timestamp);
      tick.percent = 100 * (tick.minutes - START_MINUTES ) / (END_MINUTES - START_MINUTES);
      return tick;
    });

    var bufferMinutes;

    var bufferProgress = scans.flatMap(function(scan) {
      var scanMinutes = Math.floor((scan.timestamp - START_TIME) / 60000.0);
      !bufferMinutes && (bufferMinutes = minutes);
      if (scanMinutes === bufferMinutes) {
        return Rx.Observable.empty(); // don't trigger on same minute
      } else {
        var gap = scanMinutes - bufferMinutes;
        var sequence = gap === 1 ? [scanMinutes] : Rx.Observable.range(bufferMinutes + 1, gap); // trigger on empty minutes
        bufferMinutes = scanMinutes;
        return sequence;
      }
    }).map(function(scanMinutes) {
      var percent = 100 * (scanMinutes) / (END_MINUTES - START_MINUTES);
      return percent;
    }).share();

    var bufferedScans = scans.buffer(bufferProgress);

    var timedScans = Rx.Observable.zip(counter, bufferedScans, function(tick, scans) {
      return scans;
    }).flatMap(function(scans) {
      return scans;
    });

    setupFeed.subscribeOnError(function (err) {
      console.log(err)
    });

    return {
      scans: timedScans
    , clockProgress: clock
    , bufferProgress: bufferProgress
    }
  };

  var pause = function() {
    pauser.onNext(false);
  }

  var resume = function() {
    pauser.onNext(true);
  }

  var step = function() {
    pauser.onNext(true);
    counter.take(1).subscribe(function() {
      pauser.onNext(false);
    });
  }

  return {
    pause: pause
  , resume: resume
  , step: step
  , playback: playback
  }
})(d3, Rx);

d3demo.feed = (function dataFeed(d3, Rx) {
  var users = _.range(0, 326).map(function(index) {
    return {
      id: index
    , beaconId: index
    , name: 'Beacon ' + index
    }
  });

  var GENERAL_SESSIONS_ID = 1
    , STAGE_LEFT = 2, STAGE_RIGHT=3
    , ENTRANCE_ID = 0
    , LUNCH1_ID = 4
    , LUNCH2_ID = 5
  ;

  var KEYNOTE_1_START_MINUTES = 10*60
    , KEYNOTE_2_START_MINUTES = 14*60
    , LUNCH_TIME = 12*60
    , START_MINUTES = 7*60 + 50
    , END_MINUTES = 18*60
  ;

  var EVENT_DATE = new Date();
  // EVENT_DATE.setDate(EVENT_DATE.getDate() - 1); // yesterday
  EVENT_DATE.setHours(0,0,0,0); // start of the day
  EVENT_DATE = EVENT_DATE.getTime();

  // Returns a random integer between min included) and max (excluded)
  var getRandom = function (min, max) {
    return Math.random() * (max - min) + min;
  };

  var getRandomInt = function (min, max) {
    return Math.floor(getRandom(min,max));
  };

  var locationWeights = [
    4, 0, 0, 0, 0, 0,
    80, 80,
    30, 20, 50, 50, 35, 30,
    10, 10, 65];
  var getLocationWeight = function(location, minutes) {
    if (location.id === GENERAL_SESSIONS_ID && KEYNOTE_1_START_MINUTES - 10 <= minutes && minutes <= KEYNOTE_1_START_MINUTES + 10) {
      return 6000;
    };
    if (KEYNOTE_2_START_MINUTES - 10 <= minutes && minutes <= KEYNOTE_2_START_MINUTES + 10) {
      if (location.id === GENERAL_SESSIONS_ID) {
        return 3000;
      } else if (location.id === STAGE_LEFT) {
        return 20;
      } else if (location.id === STAGE_RIGHT) {
        return 20;
      }
    };
    if ((location.id === LUNCH1_ID || location.id === LUNCH2_ID) && LUNCH_TIME - 5 <= minutes && minutes <= LUNCH_TIME + 25) {
      return 3000;
    };
    if (location.id === ENTRANCE_ID && minutes > END_MINUTES - 60) {
      return 6000;
    };
    return locationWeights[location.id];
  }

  var getRandomLocation = function(minutes) {
    var locations = d3demo.layout.locations;
    var totalWeight = locations.reduce(function (sumSoFar, location, index, array) {
      return sumSoFar + getLocationWeight(location, minutes);
    }, 0);
    var random = getRandom(0, totalWeight)
      , sum = 0
      , randomLocation;
    for (var i = 0; i < locations.length; i++) {
      var location = locations[i];
      sum += getLocationWeight(location, minutes);
      if (random < sum) {
        randomLocation = locations[i];
        break;
      }
    }
    return randomLocation;
  };

  var previousScans = {};

  var createRandomScan = function (user, minutes) {
    var lastScan = previousScans[user.id];
    var userLeft = lastScan && lastScan.location.id === ENTRANCE_ID && lastScan.type === 'check-out';
    var present = lastScan && !userLeft
    var checkedIn = present && lastScan.type === 'check-in';
    var atEntrance = present && lastScan.location.id === ENTRANCE_ID;

  var scan;
  if (checkedIn && ! atEntrance) {
    scan = {
      user: user
    , location: lastScan.location
    , type: 'check-out'
    }
  } else {
    var location = getRandomLocation(minutes);
    var type = (location.id == ENTRANCE_ID && (present || minutes > END_MINUTES - 60))
      ? 'check-out'
      : 'check-in';
    scan = {
      user: user
    , location: location
    , type: type
    }
  }
  previousScans[user.id] = scan;
  return scan;
}

var counter = Rx.Observable.interval(25)
  .map(function(n) {
    var minutes = START_MINUTES + n; // increment in 1 minute increments
    return {
      n: n
    , minutes: minutes
    , timestamp: EVENT_DATE + minutes * 60 * 1000 // timestamp in ms
    }
  })
  .takeWhile(function(tick) {
    return tick.minutes <= END_MINUTES;
    // return tick.minutes <= START_MINUTES + 20;
  });

  var eventLog = {};

  var intervalFromEvents = function(events) {
    var stream;
    if (!events || !events.length) {
       stream = Rx.Observable.empty();
    } else {
      stream = Rx.Observable.range(0, events.length).map(function(n) {
        return events[n];
      }).take(events.length);
    }
    return stream;
  };

  var randomScans = counter.flatMap(function(tick) {
    var scans = [];
    var rush = (tick.minutes + 5) % 60;
    if (rush > 30) { rush = 60 - rush};
    var numEvents = rush < 10 ? 100 - rush : getRandomInt(0,3); // simulate a rush
    for (var n = 0; n < numEvents; n++) {
      var user = users[getRandomInt(0, 300)];
      var scan = createRandomScan(user, tick.minutes);
      var eventTimeOffest = getRandomInt(0, 60).toFixed(4);
      scan.timestamp = tick.timestamp + eventTimeOffest * 1000
      scans.push(scan);
    };
    if (scans.length) {
      var binTime = tick.timestamp;
      eventLog[binTime] = scans;
    }
    return intervalFromEvents(scans);
  }).share();
  
  var random = Rx.Observable.return({
    type: 'setup', 
    data: {
      startTime: EVENT_DATE + START_MINUTES * 60 * 1000,
      endTime:  EVENT_DATE + END_MINUTES * 60 * 1000
    }
  })
  .merge(randomScans.map(function(scan) {
    return {type: 'scan', data: scan};
  }));
  
  return {
  random: random
  }
})(d3, Rx);

d3demo.forcemap = (function visualisation(d3, Rx) {
  // init
  var width = d3demo.layout.width
    , height = d3demo.layout.height;

  var force = null
    , nodes = null
    , dataNodes
    , foci = null;

  var svg = d3.select('.map').append('svg')
    .attr('width', width)
    .attr('height', height);

  document.addEventListener('mapresize', function(e) {
    svg.attr('width', e.detail.width)
       .attr('height', e.detail.height);
  })

  // Returns a random integer between min included) and max (excluded)
  var getRandomInt = function (min, max) {
    return Math.floor(Math.random() * (max - min) + min);
  };

  var getColor = function(temp, grayScale) {
    var hue = 1000 * 270/(temp + 1000);
    if (!hue) {
      debugger;
    }
    var color = grayScale
      ? 'hsl(' + [Math.floor(hue), '70%', '20%'] + ')'
      : 'hsl(' + [Math.floor(hue), '70%', '50%'] + ')'
    // console.log(color);
    return color;
  };

  // A function to initialize our visualization.
  var init = function() {
    // clear out the contents of the SVG container
    // makes it possible to restart the layout without refreshing the page
    svg.selectAll('*').remove();

    foci = d3demo.layout.locations;

    // define the data
    dataNodes = [];
    dataNodes = d3.range(326).map(function(index) {
      var x = getRandomInt(foci[0].x - 10, foci[0].x + 10)
        , y = getRandomInt(height+50, height + 300);
      // x = 200, y= 200;
      return {
        id: index,
        x: x,
        y: y,
        x_i: x,
        y_i: y,
        focus: -1,
        present: false
      };
    });

    //create a force layout object and define its properties
    force = d3.layout.force()
        .size([width, height])
        .nodes(dataNodes)
        .links([])
        .gravity(0)
        .friction(0.83)
        .charge(function(d) {
          return d.focus === -1
            ? 0
            : d.selected
              ? d.present ? -120 : -60
              : d.present ? -10 : -2;
        });

    nodes = svg.selectAll('circle.user')
        .data(dataNodes, function(datum, index) {
          return datum.id;
        })
        .enter().append("circle")
          .attr('class', 'user')
          .attr("cx", function(d) { return d.x; })
          .attr("cy", function(d) { return d.y; })
          .attr('r', function(d) { return d.present ? 5 : 2});

    force.on('tick', stepForce);
  };

  var stepSize = 0.2;
  var stepForce = function(event) {
    var selectedNodesLength = getSelectedNodes()[0].length;
    var k = stepSize * event.alpha;
    // Push nodes toward their designated focus.
    var now = new Date().getTime();
    dataNodes.forEach(function(d, i) {
      if (d.exiting) {
        if (now - d.checkOutTimeInternal > 1000) {
          d.exiting = false;
          d.present = false;
          d.focus = -1;
        }
      }
      var x = d.focus === -1 ? d.x_i : foci[d.focus].x
        , y = d.focus === -1 ? d.y_i : foci[d.focus].y
      d.y += (y - d.y) * k;
      d.x += (x - d.x) * k;
      d.unselected = ! (selectedNodesLength === 0 || d.selected );
    });

    nodes.attr("cx", function(d) { return d.x; })
         .attr("cy", function(d) { return d.y; })
         .attr('r', function(d) {
           return d.selected
             ? d.present ? 20 : 14
             : d.present ? 5 : 2;
          })
         .style('fill', function(d) {
           var grayScale = d.unselected;
           if (d.present) {
             return getColor(now - d.checkInTimeInternal, grayScale);
           } else if (d.checkOutTimeInternal && d.checkInTimeInternal) {
             return getColor(d.checkOutTimeInternal - d.checkInTimeInternal, grayScale);
           } else {
             return getColor(0, grayScale);
           }
         })
         .classed('node', function(d) {
           return d.focus !== -1;
         })
         .classed('unselected', function(d) {
           return d.unselected;
         });

  };

  var start = function() {
    force.start();
  }

  var getNodeById = function(id) {
   if (id > 325) {
     id = 325;
   }
   return nodes.filter(function(d) {
     return d.id == id;
   });
  };

  var getDataNodeById = function(id) {
    if (id > 325) {
      id = 325;
    }
   return dataNodes[id];
  };

  var getNodesByName = function(str) {
    return nodes.filter(function(d) {
      if (!d.user) {
        return false;
      }
      var strlc = str.toString().toLowerCase();
      var match = d.user.name.toLowerCase().indexOf(strlc) > -1
        || d.user.id && d.user.id.toString().toLowerCase().indexOf(strlc) > -1
        || d.beaconId && d.beaconId.toString().toLowerCase().indexOf(strlc) > -1;
      return !! match;
    });
  };

  var getSelectedNodes = function() {
    return svg.selectAll('.selected');
  };

  var getNodeCount = function() {
    return dataNodes.filter(function(d) {
      return d.focus !== -1;
    }).length;
  };

  function particle(dataNode) {
    if (! dataNode.unselected) {
      var particle = svg.insert('circle')
          .attr('class', 'particle')
          .attr('cx', dataNode.x)
          .attr('cy', dataNode.y)
          .attr('r', 5)
          .style('stroke-opacity', 1)
        .transition()
          .duration(1000)
          .ease('quad-out')
          .attr('r', 50)
          .style('stroke-opacity', .1)
        .remove();
    };
  };

  return {
    init: init
  , start: start
  , getNodeById: getNodeById
  , getDataNodeById: getDataNodeById
  , getNodesByName: getNodesByName
  , getSelectedNodes: getSelectedNodes
  , getNodeCount: getNodeCount
  , particle: particle
  , getColor: getColor
  };
})(d3, Rx);

d3demo.visualisation = (function visualisation(d3, Rx) {
  var checkinNode = function(movement) {
    var dataNode = movement.dataNode;
    dataNode.beaconId = movement.beaconId;
    dataNode.present = true;
    dataNode.exiting = false;
    dataNode.focus = movement.location.id;
    dataNode.checkInTime = movement.timestamp;
    dataNode.checkInTimeInternal = new Date().getTime();
    dataNode.checkOutTime = null;
    if (dataNode.selected) {
      updateUserInfoPanel(dataNode);
    }
  };

  var checkoutNode = function(checkout) {
    var dataNode = checkout.dataNode;
    dataNode.present = false;
    dataNode.exiting = false;
    dataNode.checkOutTime = checkout.timestamp;
    dataNode.checkOutTimeInternal = new Date().getTime();
    if (dataNode.selected) {
      updateUserInfoPanel(dataNode);
    }
  };

  var removeNode = function(departure) {
    var dataNode = departure.dataNode;
    if (dataNode.focus < 0) { // already removed
      return;
    }
    if (dataNode.selected) {
      updateUserInfoPanel(dataNode);
    }
    dataNode.present = true;
    dataNode.exiting = true;
    dataNode.checkOutTimeInternal = new Date().getTime();
    dataNode.focus = 0;
  };

  var selectNodes = function(selectedNodes) {
    var data = selectedNodes.data();
    data.forEach(function(d) {
      d.selected = true;
    });
    d3.timer(function() {
      selectedNodes.classed('selected', function(d) { return d.selected; });
      return true;
    });
    if (data.length === 1) {
      updateUserInfoPanel(data[0]);
    } else {
      hideUserInfoPanel();
    }
  };

  var unSelectNodes = function() {
    var selectedNodes = d3demo.forcemap.getSelectedNodes();
    selectedNodes.data().forEach(function(d) {
      d.selected = false;
    });
    d3.timer(function() {
      selectedNodes.classed('selected', function(d) { return d.selected; });
      d3demo.forcemap.start();
      return true;
    });
  };

  var infoPanelDataNode = null;
  var updateUserInfoPanel = function(data) {
    infoPanelDataNode = data;
    d3.timer(function() {
      // if (data.focus < 0) {
      //   hideUserInfoPanel();
      //   return true;
      // }
      var location = d3demo.layout.locations[data.focus];
      var div = d3.select('.userinfo');
      div.style({'display': 'block'});
      div.select('.id_v').text(data.user.id);
      div.select('.beacon_v').text(data.beaconId);
      div.select('.name_v').text(data.user.name);
      div.select('.checkin_v').text(formatTime(data.checkInTime));
      div.select('.checkout_v').text(formatTime(data.checkOutTime));
      div.select('.location_v').text(location ? location.name : '');
      return true;
    });
  };

  var hideUserInfoPanel = function() {
    infoPanelDataNode = null;
    d3.timer(function() {
      var div = d3.select('.userinfo');
      div.style({'display': 'none'});
      return true;
    });
  };

  var checkOutElement = (function() {
    var html = '<li class="check-out">'
      + '<span class="log-action"><i class="fa fa-sign-out"></i> Check-out</span>'
      + '<span class="log-time"></span>'
      + '<span class="log-id"></span>'
      + '<span class="log-location"></span>'
    + '</li>';
    var documentFragment = document.createDocumentFragment();
    var element = document.createElement('div');
    element.innerHTML = html;
    documentFragment.appendChild(element.childNodes[0]);
    return documentFragment;
  })();

  var checkInElement = (function() {
    var html = '<li class="check-in">'
      + '<span class="log-action"><i class="fa fa-sign-in"></i> Check-in</span>'
      + '<span class="log-time"></span>'
      + '<span class="log-id"></span>'
      + '<span class="log-location"></span>'
    + '</li>';
    var documentFragment = document.createDocumentFragment();
    var element = document.createElement('div');
    element.innerHTML = html;
    documentFragment.appendChild(element.childNodes[0]);
    return documentFragment;
  })();

  var createMessageElement = function(scan) {
    var baseNode = scan.type === 'check-in' ? checkInElement : checkOutElement;
    var element = baseNode.cloneNode(true);
    var li = element.childNodes[0];
    li.childNodes[1].textContent = formatTime(scan.timestamp);
    li.childNodes[2].textContent = scan.user.name || 'Beacon ' + scan.user.id;
    li.childNodes[3].textContent = scan.location.name;
    return element;
  }

  var logTracker = {
    count: 0,
    scrolling: false,
    spans: [],
    log: document.getElementById('log')
  }
  var logScan = function(scan) {
    d3.timer(function() {
      document.getElementById('interval').textContent = logTracker.count++;
      document.getElementById('nodeCount').textContent = d3demo.forcemap.getNodeCount();
      return true;
    });
    if (logTracker.spans.length < 50) {
      if (! infoPanelDataNode || scan.user.id === infoPanelDataNode.user.id) {
        logTracker.spans.push(createMessageElement(scan));
      };
    }
    if (!logTracker.scrolling) {
      logTracker.scrolling = true;
      d3.timer(function() {
        logTracker.spans.forEach(function(addSpan) {
          logTracker.log.insertBefore(addSpan, logTracker.log.firstChild);
          if (logTracker.log.childNodes.length > 50) {
            logTracker.log.removeChild(log.lastChild);
          }
        });
        logTracker.spans = [];
        logTracker.scrolling = false;
        return true;
      }, 100);
    }
  }

  var progress = {
        playback: d3.select('.progress .playback').node()
      , buffer: d3.select('.progress .buffer').node()
  };

  var timeElement = document.getElementById('time');

  var tap = function(scansStream, clockStream, bufferStream) {
    var clock, buffer, scans;

    if (clockStream) {
      clock = clockStream.tap(function(time) {
        d3.timer(function() {
          timeElement.textContent = formatTime(time.timestamp);
          progress.playback.style.width = time.percent + '%';
          d3demo.forcemap.start();
          return true;
        });
      });
    };

    if (bufferStream) {
      buffer = bufferStream.tap(function(percent) {
        progress.buffer.style.width = percent + '%';
      });
    };

    scans = scansStream.tap(function(scan) {
      scan.dataNode = d3demo.forcemap.getDataNodeById(scan.user.id);
      if (!scan.dataNode.user) {
        scan.dataNode.user = scan.user;
      }
      if (scan.retransmit) {
        if (scan.dataNode.focus === scan.location.id) {
          d3demo.forcemap.particle(scan.dataNode);
          d3demo.forcemap.start();
          return;
        };
      };
      logScan(scan);
      if (scan.type === 'check-in') {
        checkinNode(scan);
      } else if (scan.type === 'check-out') {
        if (scan.location.id !== 0) {
          checkoutNode(scan);
        } else {
          removeNode(scan);
        }
      } else {
        console.log('Ignoring scan of type: ' + scan.type);
      }
      d3demo.forcemap.start();
    });

    return {
      scans: scans
    , clock: clock
    , buffer: buffer
    }
  };

  var formatTime = function(time) {
    if (!time) {
      return "";
    }
    var date = new Date(time);
    var hours = date.getHours();
    var minutes = "0" + date.getMinutes();
    var seconds = "0" + date.getSeconds();

    // will display time in 10:30:23 format
    var formattedTime = hours + ':' + minutes.substr(minutes.length-2) + ':' + seconds.substr(seconds.length-2);
    return formattedTime;
  }

  var errorHandler = function (err) {
    console.log(err.stack);
  };

  var random = function() {
    d3.select('#cover').style({visibility: 'hidden', opacity: '0'});
    var playback = d3demo.playback.playback(d3demo.feed.random);
    var streams = tap(playback.scans, playback.clockProgress, playback.bufferProgress);
    d3demo.forcemap.start();

    streams.scans.subscribeOnError(errorHandler);
    streams.buffer.subscribeOnError(errorHandler);
    streams.clock.subscribeOnError(errorHandler);

    var bufferPartiallyFull = streams.buffer.filter(function (percent) {
        return percent > 5;
      }).map(function() {
        return 'buffer 5% full';
      }).take(1);
    var timeDelay = Rx.Observable.from([0]).delay(5000).map(function() {
      return '5000 ms'
    });

    var ready = Rx.Observable.merge(bufferPartiallyFull, timeDelay).take(1);

    console.log('Buffering...');

    //ready.subscribe(function(readySource) {
      //d3.select('#cover').style({visibility: 'hidden', opacity: '0'});
      //console.log('Starting playback after ' + readySource);
    d3demo.playback.resume();
    //});
  };

  return {
    random: random
  , unSelectNodes: unSelectNodes
  , selectNodes: selectNodes
  , hideUserInfoPanel: hideUserInfoPanel
  }
})(d3, Rx);

(function d3andRxDemo(d3, Rx) {
  var run = function() {
    d3demo.layout.sizeMap();
    d3demo.forcemap.init();
    d3demo.visualisation.random();
  };

  run();
})(d3, Rx);


            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console