html {
  overflow: -moz-scrollbars-vertical; 
  overflow-y: scroll;
}

/*
 * Base structure
 */

/* Move down content because we have a fixed navbar that is 50px tall */
body {
  position: relative;
}


/*
 * Global add-ons
 */

.sub-header {
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

/*
 * Top navigation
 * Hide default border to remove 1px line.
 */
.navbar-fixed-top {
  border: 0;
}

/*
 * Sidebar
 */

/* Hide for mobile, show later */
.sidebar {
  display: none;
  padding: 0px; /* nav already have its own padding */
}
@media (min-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0px;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: block;
    /*padding: 5px;
    padding-left: 10px;*/
    overflow-x: hidden;
    overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
    background-color: #f5f5f5;
    border-right: 1px solid #eee;
  }
}

/* Sidebar navigation */
.nav-sidebar {
  margin-right: -21px; /* 20px padding + 1px border */
  margin-bottom: 20px;
  margin-left: -20px;
}
.nav-sidebar > li > a {
  padding-right: 20px;
  padding-left: 20px;
}
.nav-sidebar > .active > a,
.nav-sidebar > .active > a:hover,
.nav-sidebar > .active > a:focus {
  color: #fff;
  background-color: #428bca;
}


/*
 * Main content
 */

.main {
  padding: 20px;
}
@media (min-width: 768px) {
  .main {
    padding-right: 40px;
    padding-left: 40px;
  }
}
.main .page-header {
  margin-top: 0;
}


/*
 * Placeholder dashboard ideas
 */

.placeholders {
  margin-bottom: 30px;
  text-align: center;
}
.placeholders h4 {
  margin-bottom: 0;
}
.placeholder {
  margin-bottom: 20px;
}
.placeholder img {
  display: inline-block;
  border-radius: 50%;
}


/*img {
  transition: height 1s;
}

img:hover {
  height: 145px;
}
*/

/*a:hover, #lesson tr:hover, #ranktable tr:hover {
  background-color: lightblue;
  /*outline: lightblue solid medium;*/
/*}*/

a.sub_2d { color: red; font-weight: bold; }
a.sub_7d { color: #0a0; font-weight: bold; }
a.sub_1m { color: #00f; font-weight: bold; }
a.sub_ac { text-decoration: underline; }

tr.passed {
  background-color: khaki;
}

tr.current {
  background-color: lightgreen;
}

#ranktable td {
  text-align: center;
}

#ranktable td.left {
  text-align: left;
}

#ranktable tbody tr:first-child { /* the current number 1 */
  background-color: gold;
}

#ranktable tbody tr:nth-child(2) { /* the current number 2 */
  background-color: silver;
}

#ranktable tbody tr:nth-child(3) { /* the current number 3 */
  background-color: #cd7f32;
}

/*#ranktable td:hover {
  background-color: hotpink;
}*/

#ranktable td.highlight {
  background-color: gold;
}

dt { font-weight:bold; }

.dangerous { background-color: red; color: white; }
.caution { background-color: #FF9E00; color: white; }
.ontrack { background-color: yellow; color: blue; }
.good { background-color: lightgreen; color: blue; }

.cp3highlight {
  font-weight: bold;
  font-style: italic;
  color: blue;
}

.timehighlight {
  font-weight: bold;
  color: red;
}
