/* BOOTSTRAP CUSTOMIZATIONS

  @font-family-sans-serif -> "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif

  @navbar-default-color -> white
  @navbar-default-bg -> rgb(49, 65, 88)
  @navbar-default-link-color -> white
  @navbar-default-link-hover-color -> rgb(140, 140, 140)
  @navbar-default-link-active-color -> rgb(140, 140, 140)

  @navbar-default-toggle-hover-bg -> rgb(85, 85, 85)
  @navbar-default-toggle-icon-bar-bg -> white
  @navbar-default-toggle-border-color -> white
*/

html,
body {
  color: black;
  background: white;
  font-size: 16px;
  height: 100%;
  width: 100%;
  padding: 0;
  margin: 0;
}

/* remove all link text-decoration */
a,
a:link,
a:visited,
a:active,
a:hover {
  text-decoration: none;
}

/* remove the annoying outline in firefox */
a:focus {
  outline: 0;
}

/* make the app fill the page */
div[ng-app="nostromo"],
div[ng-app="nostromo"] > div[ui-view]:first-child {
  height: 100%;
}

table {
  border-spacing: 0;
  border-collapse: collapse;
}

table,
tr,
td {
  padding: 0;
  margin: 0;
}

/* remove .table padding and margin */
table.table {
  padding: 0;
  margin: 0;
}

/* slightly increase margin-bottom */
p {
  margin-bottom: 15px;
}

/* remove margin-bottom at the end */
p:last-child {
  margin-bottom: 0;
}

/* add margin before p after an image */
img + p {
  margin-top: 15px;
}

/* avoid page break when printing a particular div */
div.avoid-page-break {
  page-break-inside: avoid;
}

pre.prettyprint {
  padding: 10px;
  margin-top: 20px;
  border: 1px solid rgb(200, 200, 200);
}

span.green {
  color: green;
}

span.blue {
  color: blue;
}

span.nowrap {
  white-space: nowrap;
}

/* OUTER TABLE */

table.table-container {
  background: black url("/images/background.jpg") no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  width: 100%;
  height: 100%;
}

/* HEADER */

nav.navbar {
  color: white;
  padding: 0 5px 7px 5px;
  border: 0;
  border-bottom: 7px solid rgb(82, 106, 144);
  margin-bottom: 0;
}

/* remove the right margin on the toggle button */
button.navbar-toggle {
  margin-right: 0;
}

ul.navbar-nav li {
  font-size: 17px;
  float: left; /* show items horizontally when collapsed */
}

/* prevent active nav item from having an odd bg color */
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  background-color: transparent;
}

div.name {
  font-size: 36px;
  margin-bottom: -6px;
}

span.contact-info {
  font-size: 14px;
  white-space: nowrap;
  padding-left: 3px;
}

/* make the glyphs a little smaller */
span.contact-info span.glyphicon {
  font-size: 12px;
}

/* when not small */
@media (min-width: 768px) {
  div.name {
    margin-bottom: -2px;
    padding-top: 4px;
  }

  /* dont wrap contact */
  div.contact {
    white-space: nowrap;
    padding-bottom: 4px;
  }

  /* show a border on nav */
  ul.nav {
    padding-left: 5px;
    padding-right: 5px;
    border: 2px solid #ddd;
    border-top: 0;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 4px;
  }
}

/* BODY */

tr.table-body {
  height: 100%;
  vertical-align: top;
}

div.body {
  background: white;
  margin: 5px -10px;
  padding: 10px;
  border-radius: 4px;
  -webkit-border-radius: 4px;
}

div.body a:active,
div.body a:hover {
  border-bottom: 2px solid;
}

div.page-section {
  color: darkred;
  font-size: 21px;
  margin: 25px 0 20px;
  border-bottom: 1px solid #eee;
}

/* no top margin for the first page-section */
div[ui-view] > div.page-section:first-child {
  margin-top: 0;
}

/* when not small */
@media (min-width: 768px) {
  /* larger margin */
  div.body {
    margin: 15px 0;
    padding: 20px 25px;
  }
}

/* FOOTER */

tr.table-footer {
  background: rgb(200, 200, 200);
  opacity: 0.9;
}

tr.table-footer > td {
  padding-top: 7px;
  padding-bottom: 7px;
}

tr.table-footer div.footer {
  text-align: center;
  font-size: 12px;
  margin: 0 auto;
}

/* RESUME */

div.experience-details span,
div.languages span {
  white-space: nowrap;
}

div.experience {
  color: rgb(66, 139, 202);
  font-weight: bold;
  margin-top: 30px;
}

div.experience span {
  color: black;
}

div.page-section + div.experience {
  margin-top: 0;
}

div.experience-details {
  font-style: italic;
  margin-bottom: 15px;
}

div.experience-details:last-child {
  margin-bottom: 0;
}

div.experience-position {
  font-weight: bold;
  padding-bottom: 5px;
  border-bottom: 1px solid #eee;
}

ul.list {
  margin-top: 0;
  margin-bottom: 0;
  display: inline-block;
}

ul.list li {
  margin-top: 2px;
}

ul.list li:first-child {
  margin-top: 0;
}

ul.accomplishments {
  margin-top: 10px;
}

ul.accomplishments li {
  margin-top: 7px;
}

ul.accomplishments p {
  margin-bottom: 7px;
}

/* when not small */
@media (min-width: 768px) {
  /* bigger right margin */
  ul.list:first-child {
    margin-right: 30px;
  }
}

@media print {
  div.experience {
    margin-top: 25px;
  }

  /* bigger right margin */
  ul.list:first-child {
    margin-right: 30px;
  }
}

/* WORK */
div.work {
  padding: 15px;
}

div.work > header {
  text-align: center;
  margin-bottom: 40px;
}

div.work > header > div:first-child {
  font-weight: bold;
  font-size: 26px;
}

@media print {
  div.work {
    margin: 0;
  }

  div.work > header {
    margin-bottom: 25px;
  }

  div.work div.page-section {
    font-size: 20px;
    margin: 20px 0 15px;
  }
}

/* WEBSOCKET */

div.trades {
  padding: 0 10px 10px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  -webkit-border-radius: 4px;
  box-shadow: inset 0 0 7px 0 #ddd;
  -webkit-box-shadow: inset 0 0 7px 0 #ddd;
}

div.trades-caption {
  color: darkred;
  font-weight: bold;
  text-align: center;
  font-size: 20px;
  padding-top: 20px;
}

div.trades-caption:first-child {
  padding-top: 0;
}

div.trades tbody td {
  white-space: nowrap;
}

div.trades tfoot p:first-child {
  margin-top: 20px;
}

div.trades tfoot p:last-child {
  margin-bottom: 5px;
}

tr.waiting td {
  font-weight: bold;
  color: #888;
  text-align: center;
}

/* POSITIONS COLUMNS */

div.positions tr .instrument {
  width: 14%;
}

div.positions tr .bid {
  width: 13%;
  text-align: right;
}

div.positions tr .ask {
  width: 13%;
  text-align: right;
}

div.positions tr .change {
  width: 15%;
  text-align: right;
}

div.positions tr .arrow {
  width: 1%;
}

div.positions tr .longs {
  width: 14%;
  text-align: right;
}

div.positions tr .shorts {
  width: 14%;
  text-align: right;
}

div.positions tr .profit {
  width: 16%;
  text-align: right;
}

/* RECENT-TRADES COLUMNS */

div.recent-trades tr .time {
  width: 17%;
}

div.recent-trades tr .username {
  width: 17%;
}

div.recent-trades tr .server {
  width: 17%;
}

div.recent-trades tr .instrument {
  width: 18%;
}

div.recent-trades tr .type {
  width: 9%;
}

div.recent-trades tr .units {
  width: 11%;
  text-align: right;
}

div.recent-trades tr .price {
  width: 11%;
  text-align: right;
}

div.trades td.up,
div.trades-status li.connected {
  color: green;
}

div.trades td.down,
div.trades-status li.disconnected {
  color: red;
}

div.recent-trades tr.system {
  color: #888;
}

div.recent-trades tr.self,
span.trader-username {
  color: green;
}

div.positions tr.recent {
  font-weight: bold;
}

div.trades-status {
  padding: 10px 0 0 0;
}

div.trades-status span.trades-status-label {
  font-weight: bold;
}

div.trades-status ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

div.trades-status li {
  padding: 0;
  margin: 0;
}

/* when not small */
@media (min-width: 768px) {
  div.trades {
    padding: 15px 30px;
    margin: 10px 5px;
  }

  div.trades-status {
    padding: 10px 5px 0 5px;
  }
}

/* when not medium */
@media (min-width: 992px) {
  div.trades-status li {
    display: inline;
    padding-left: 15px;
  }

  div.trades-status li:nth-child(1) {
    padding-left: 0;
  }

  div.trades-status li:nth-child(2) {
    padding-left: 5px;
  }
}
