@import url(http://fonts.googleapis.com/css?family=Droid+Sans);
@import url(http://fonts.googleapis.com/css?family=Droid+Sans+Mono);

/* Grrr. https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: 'Droid Sans', sans-serif;
  padding-left: 15px;
  padding-right: 15px;
}

hr.fancy {
  /* Thanks, http://css-tricks.com/examples/hrs/ ! */
  border: 0;
  height: 1px;
  background-image: -webkit-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
  background-image:    -moz-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
  background-image:     -ms-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
  background-image:      -o-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
}

ul {
  list-style: none;
}

ul.controls {
  margin-left: 0;
}

.controlItem {
  padding-left: 10px;
  width: 100%;
}
.controlItem label {
  cursor: pointer;
}

.modal-body {
  margin-bottom: 0;
}
.modal-body ul {
  margin-bottom: 0;
}
.modal-body .namePickerBox {
  margin-top: 0;
  margin-right: 6px;
}

/* Optional, remove if needed. */
#root .container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.container {
  max-width: 1000px
}

.flex-spacer {
  flex-grow: 1;
}

#valueList button i {
  margin-top: 5px;
}

input[type="submit"].btn {
  margin-bottom: 10px;
}

.clear {
  clear: both;
}

/* Mid-page table. */

.centralList {
}

.centralList h2 {
  padding-left: 30px;
  padding-right: 15px;
}

.centralList ul {
  margin: 0;
}

.listTitle {
  display: flex;
}

.trow {
  display: flex;
  flex-direction: row;
  line-height: 36px;
}

.trow:hover {
  background-color: #f2f2f2;
}

/* */

.modal-footer {
  display: flex;
  justify-content: flex-end;
}
.modal-footer .btn.btn-primary,
.modal-footer .btn.btn-flex {
  font-size: 16px;
  height: 30px;
  line-height: 24px;
  padding-right: 6px;
}

.listingActions {
  display: flex;
}

.listStar, .listStar:hover {
  color: black;
  cursor: pointer;
  text-decoration: none;
}
.listStar:hover .starHover, .listStar .starNormal {
  display: inline-block;
}
.listStar .starHover, .listStar:hover .starNormal {
  display: none;
}
.listStar .starNormal {
  color: lightgray;
}
.listStar:hover .starHover {
  color: darkgray;
}

.btn.btn-mini.oneuplink {
  display: inline-block;
  height: 29px;
  margin: -10px 6px 0 0; /* ew. */
}

.btn[disabled]:hover {
  cursor: not-allowed;
}

.totalEstimate {
  font-family: 'Droid Sans Mono', sans-serif;
  font-size: 36px;
  line-height: 1.4em;
  margin: 30px auto 0;
  max-width: 800px;
  padding: 15px;
}

.totalEstimate .estimateRow {
  padding: 0 8px;
}

.totalEstimate .estimateRow:hover {
  background-color: #ddd;
}

.totalEstimate .liveTicker {
  float: right;
}

.allInput .btn {
  float: none;
}

.allInput .valueInput {
  height: 32px;
  margin: 0;
  text-align: right;
  width: 100px;
}

.allInput .listingActions {
  align-items: center;
  display: flex;
}

.listingName {
  overflow: hidden;
  text-overflow: ellipsis;
}

.trow .listingActions a:not(:first-child) {
  margin-left: 6px;
}

.buttonSpacer {
  width: 36px;
}

.listTitle a {
  align-self: center;
  display: flex;
  height: 29px;
  line-height: 21px;
}

#editNamePopup input {
  width: 95%;
}

/* Graphs */

.graphHolder {
  display: flex;
  margin: 45px 10%;
}

.graph {
  height: 500px;
  width: 100%;
}

/* Loading indicator */
.loading {
  background-color: rgba(50, 50, 50, 0.2);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
}

/* https://github.com/tobiasahlin/SpinKit */
.spinner {
  margin: 100px auto;
  width: 50px;
  height: 30px;
  text-align: center;
  font-size: 24px;
}

.spinner > div {
  display: inline-block;
  background-color: green;
  height: 100%;
  margin: 0 4px;
  width: 2px;

  -webkit-animation: stretchdelay 1.2s infinite ease-in-out;
  animation: stretchdelay 1.2s infinite ease-in-out;
}

.spinner .rect2 {
  -webkit-animation-delay: -1.1s;
  animation-delay: -1.1s;
}

.spinner .rect3 {
  -webkit-animation-delay: -1.0s;
  animation-delay: -1.0s;
}

.spinner .rect4 {
  -webkit-animation-delay: -0.9s;
  animation-delay: -0.9s;
}

.spinner .rect5 {
  -webkit-animation-delay: -0.8s;
  animation-delay: -0.8s;
}

@-webkit-keyframes stretchdelay {
  0%, 40%, 100% { -webkit-transform: scaleY(0.4) }
  20% { -webkit-transform: scaleY(1.0) }
}

@keyframes stretchdelay {
  0%, 40%, 100% {
    transform: scaleY(0.4);
    -webkit-transform: scaleY(0.4);
  }  20% {
    transform: scaleY(1.0);
    -webkit-transform: scaleY(1.0);
  }
}

/* Bootstrap overrides. TODO: remove bootstrap when icons don't need it. */
input[type="text"],
input[type="password"],
input[type="date"],
input[type="week"],
input[type="number"] {
  height: 29px;
}

label {
  font-size: 16px;
  line-height: 24px;
}

.navbar {
  margin-bottom: 15px;
}

#oneup {
  align-self: center;
  display: flex;
  flex-direction: column;
}

#oneup input {
  font-size: 30px;
  height: 50px;
  line-height: 30px;
  max-width: 400px;
  text-align: center;
  width: 100%;
}

#oneup input[type=submit] {
  align-self: flex-end;
  width: 120px;
}

/* Material design icon font: http://google.github.io/material-design-icons */
.btn.btn-mini, .btn.btn-primary, button.btn-flex, .listStar {
  display: flex;
  margin: 3px 0;
  padding: 2px;
  align-self: center;
}
i.material-icons {
  align-self: center;
}
i.material-icons.graphIcon {
  margin-left: 3px;
  margin-top: 1px;
}
