@import url(https://fonts.googleapis.com/css?family=Roboto:400,700);

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  font-family: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #333;
  margin: 0;
  background-color: #fafafa;
}

#top-bar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 45px;
  background-color: #eaeaea;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

#header-content {
  max-width: 1200px;
  margin: 0 auto;
}

#header-content a {
  color: #333;
  text-decoration: none;
}

#header-content .block-content {
  line-height: 45px;
  height: 45px;
}

#header-content .branding,
#header-content .search-bar,
#header-content .progress-block,
#header-content .user-block {
  display: block;
  padding: 0 15px;
  color: #666;
}

#header-content .progress-block,
#header-content .user-block {
  cursor: pointer;
}

#header-content .branding {
  width: 192px;
  padding-left: 63px;
  border-left: 1px solid #ddd;
  background: url(images/logo.png) no-repeat 15px center;
  text-decoration: none;
  font-weight: 700;
  color: #666;
  white-space: nowrap;
}

#header-content .search-bar {
  position: relative;
  width: 250px;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  line-height: 42px;
}

#header-content .search-bar input {
  border: 1px solid #ddd;
  border-radius: 2px;
  font-size: 0.7em;
  font-style: normal;
  color: #999;
  height: 28px;
  padding: 1px 0px 0px 30px;
  width: 100%;
  background: #fff url(images/search.png) no-repeat 8px center;
}

#header-content .search-bar .search-menu {
  position: absolute;
  top: 45px;
  left: 0;
  width: 200%;
  background-color: #eee;
  cursor: default
}

#header-content .search-bar .search-results {
  line-height: 1.5;
  font-size: 0.9em;
  max-height: 300px;
  overflow: auto;
}

#header-content .search-bar .search-filter {
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  height: 50px;
  background-color: #fff;
}

#header-content .search-bar .search-filter ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#header-content .search-bar .search-filter ul li {
  margin: 0;
  padding: 0;
  width: 25%;
  float: left;
}

#header-content .search-bar .search-filter ul li a {
  display: block;
  padding: 7px;
  text-align: center;
  font-size: 0.75em;
  line-height: 1;
  background-color: #bbb;
  opacity: 0.5;
  cursor: pointer;
}

#header-content .search-bar .search-filter ul li a.active {
  opacity: 1;
}

#header-content .progress-block {
  position: relative;
  width: 280px;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  text-decoration: none;
  background-color: transparent;
}

#header-content .progress-block .progress-block-content {
  width: 230px;
  height: 28px;
  margin-top: 8px;
  font-size: 0.8em;
}

#header-content .progress-block .progressbar {
  height: 5px;
  margin: 2px 0 0;
}

#header-content .progress-block .progressbar-level {
  height: 5px;
}

#header-content .user-block {
  position: relative;
  border-right: 1px solid #ddd;
  text-decoration: none;
  min-width: 125px;
}

#header-content .user-block .identity {
  font-size: 0.85em;
}

#header-content .user-block .user-menu {
  background-color: #eaeaea;
  padding: 15px;
}

#header-content .dropdown-menu {
  display: none;
  position: absolute;
  top: 45px;
  left: 0;
  width: 100%;
  font-size: 0.8em;
}

#header-content .menu-open .dropdown-menu {
  display: block;
}

#header-content .card {
  border-radius: 0;
}

#header-content .card .item {
  padding: 8px 15px;
}

main {
  display: block;
  max-width: 1200px;
  margin: 45px auto;
  position: relative;
}

main.single-column {
  max-width: 820px;
}

main.single-column.wide {
  /*max-width: 920px;*/
}

section {
  width: 65%;
  float: left;
  margin-top: 40px;
  margin-left: 20px;
}

.single-column section {
  width: 820px;
}

#right-column {
  width: 30%;
  float: right;
  position: absolute;
  top: 0;
  right: 0;
  margin-top: 40px;
  margin-right: 20px;
}

#dashboard .progress-block {
  border-radius: 2px 2px 0 0;
}

#dashboard .progress-block,
#dashboard .progress-block .item {
  background-color: #80AF00;
  color: #fff;
}

#course-details {
  position: relative;
}

#course-details .back-button {
  position: absolute;
  top: 20px;
  right: 0;
}

#activity {
  position: relative;
  margin-top: 40px;
  font-size: 0.8em;
  width: 340px;
  float: left;
}

.single-column #activity {
  position: relative;
  margin-top: 40px;
  font-size: 0.8em;
  width: 440px;
  float: left;
}

#activity h2 {
  width: 240px;
  margin-top: 0;
  font-size: 1.3em;
}

#activity h3 {
  margin-top: 0;
}

#activity .progressbar {
  height: 5px;
  margin-bottom: 20px;
}

#activity .progressbar-level {
  height: 5px;
}

#activity .course-item {
  padding: 10px 40px 10px 55px;
  min-height: 50px;
}

#activity .course-item img {
  max-width: 30px;
  max-height: 30px;
}

#activity .course-item h3 {
  line-height: 30px;
}

#activity .course-item.active {
  background-color: #d6d6d6;
}

#activity .course-item.active h3 {
  font-weight: bold;
}

#activity .course-item .checkmark {
  top: 12px;
}

#activity .back-button {
  position: absolute;
  top: 5px;
  right: 0;
}

#player {
  width: 840px;
  height: 650px;
  background-color: #444;
  margin-left: 20px;
  margin-bottom: 20px;
  border-radius: 15px;
  padding: 20px;
  padding-top: 30px;
  position: relative;
}

.single-column #player {
  width: 340px;
  height: 540px;
  margin-left: 40px;
}

#player .page-number {
  position: absolute;
  top: 8px;
  left: 0;
  width: 100%;
  font-size: 0.8em;
  color: #aaa;
  text-align: center
}

#player .content {
  position: relative;
  width: 800px;
  height: 600px;
  background-color: #fff;
}

.single-column #player .content {
  width: 300px;
  height: 490px;
}

#player .content iframe {
  width: 100%;
  height: 100%;
  border: 0;;
}

.news-viewer {
  background-color: #eee;
}

.news-viewer img {
  max-width: 100%;
}

.news-viewer .news-details {
  padding: 15px;
}

.news-viewer .news-details h6 {
  color: #999;
  margin: 15px 0 30px 0;
}

.activity-overview {
  text-align: center;
  padding: 25px;
  color: rgba(0,0,0,0.5);
  height: 100%;
  background-color: #80AF00;
}

.activity-overview img {
  margin: 20px 0;
  width: 150px;
}

.activity-overview h2 {
  color: #fff;
}

.activity-overview .activity-info span {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.9em;
  white-space: nowrap;
}

.activity-overview .activity-info .activity-duration {
  margin-right: 20px;
}

.activity-overview .activity-info .activity-stars {
  margin-left: 20px;
}

.activity-overview .activity-info .icon {
  display: inline-block;
  font-size: 1.5em;
  vertical-align: baseline;
  color: #C20072;
  margin-right: 2px;
}

.activity-overview .start-button,
.activity-viewer .continue-button,
.activity-viewer .action-button,
.activity-result .finish-button {
  width: calc(100% - 20px);
  position: absolute;
  left: 10px;
  bottom: 10px;
  border: 1px solid #5f7e0b;
  background-color: #6e930a;
  color: #fff;
  margin: 0;
  padding: 8px 0;
  cursor: pointer;
}

.activity-viewer {
  width: 100%;
  height: 100%;
}

.activity-result {
  text-align: center;
  padding: 25px;
  color: rgba(0,0,0,0.5);
  height: 100%;
  background-color: #c2185b;
}

.activity-result h2.activity-feedback,
.activity-result h3.activity-feedback {
  margin: 0;
  padding-bottom: 40px;
  color: #fff;
}

.activity-result h2.activity-feedback {
  font-size: 26px;
}

.activity-result .activity-score {
  display: block;
  padding-top: 5px;
  font-size: 1.5em;
  font-weight: bold;
  color: #ffc107;
}

.activity-result .activity-bonus {
  margin-top: 10px;
  color: #ffc107;
  font-size: 1.3em;
  -webkit-animation-name: travel; 
  -webkit-animation-duration: .5s; 
  -webkit-animation-iteration-count: 1;
  -webkit-animation-timing-function: ease;
  animation-name: travel; 
  animation-duration: .5s; 
  animation-iteration-count: 1;
  animation-timing-function: ease;
}

.activity-result .activity-bonus .star-icon {
  display: inline-block;
  margin-bottom: 10px;
  //font-size: 3em;
  width: 50px;
  -webkit-animation-name: bounce; 
  -webkit-animation-duration: 2.5s; 
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-timing-function: linear;
  animation-name: bounce; 
  animation-duration: 2.5s; 
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

.activity-result .finish-button {
  border: 1px solid #880e4f;
  background-color: #ad1457;
}

@-webkit-keyframes travel {
  0%   {-webkit-transform: translate(0px,-500px)}
  50%   {-webkit-transform: translate(0px,-500px)}
  100% {-webkit-transform: translate(0px,0px)}
}

@keyframes travel {
  0%   {transform: translate(0px,-500px)}
  50%   {transform: translate(0px,-500px)}
  100% {transform: translate(0px,0px)}
}

@-webkit-keyframes bounce {
  0%   {-webkit-transform: translate(0px,0px)}
  8%  {-webkit-transform: translate(0px,-10px)}
  16%   {-webkit-transform: translate(0px,0px)}
  24%  {-webkit-transform: translate(0px,-7px)}
  32% {-webkit-transform: translate(0px,0px)}
  100% {-webkit-transform: translate(0px,0px)}
  /*0%   {-webkit-transform: translate(0px,0px)}
  50%  {-webkit-transform: translate(0px,-10px)}
  100% {-webkit-transform: translate(0px,0px)}*/
}

@keyframes bounce {
  0%   {transform: translate(0px,0px)}
  8%  {transform: translate(0px,-10px)}
  16%   {transform: translate(0px,0px)}
  24%  {transform: translate(0px,-7px)}
  32% {transform: translate(0px,0px)}
  100% {transform: translate(0px,0px)}
  /*0%   {transform: translate(0px,0px)}
  50%  {transform: translate(0px,-10px)}
  100% {transform: translate(0px,0px)}*/
}

.dashboard-item {
  position: relative;
  padding: 6px 0;
}

.dashboard-item span.badge {
  position: absolute;
  top: 4px;
  right: 0;
  background-color: #999;
  color: #fff; 
}

.news-item {
  position: relative;
  padding: 10px;
  font-size: 0.9em;
  border-top: 1px solid #ddd;
  background-color: #f4f4f4;
}

.news-item.has-image {
  padding-right: 105px;
}

.news-item:last-child {
  border-bottom: 1px solid #ddd;
}

.news-item a {
  color: #333;
  text-decoration: none;
}

.news-item img {
  position: absolute;
  top: 10px;
  right: 10px;
  max-width: 80px;
  max-height: 80px;
}

.news-item h3 {
  font-weight: normal;
  margin: 0 0 5px 0;
  font-size: 1.1em;
}

.news-item span {
  color: #999;
  margin: 5px 0;
}

.course {
  width: calc(50% - 10px);
  float: left;
  margin-bottom: 20px;
}

.course:nth-child(2n+1) {
  margin-left: 20px;
}

.course img {
  width: 100%;
}

.course .item-image {
  position: relative;
  width: 100%;
  border-radius: 3px 3px 0px 0px;
}

.course .item-image a {
    display: block;
    position: absolute;
    top: 0px;
    bottom: 0px;
    right: 0px;
    left: 0px;
    overflow: hidden;
}

.course .item-image::after {
    padding-top: 40%;
    display: block;
    content: " ";
}

.course .progressbar {
  position: absolute;
  bottom: 0;
  z-index: 1;
  width: 100%;
  height: 3px;
  margin: 0;
}

.course .progressbar-level {
  height: 3px;
}

.course-item {
  position: relative;
  padding: 10px 40px 10px 65px;
  font-size: 0.9em;
  border-top: 1px solid #ddd;
  background-color: #f4f4f4;
  min-height: 60px;
  cursor: pointer;
}

.course-item:last-child {
  border-bottom: 1px solid #ddd;
}

.course-item img {
  position: absolute;
  top: 10px;
  left: 10px;
  max-width: 40px;
  max-height: 40px;
}

.course-item h3 {
  font-weight: normal;
  margin: 0;
  font-size: 1.1em;
  line-height: 40px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.course-item .checkmark {
  position: absolute;
  top: 18px;
  right: 10px;
}



.card {
  overflow: hidden;
  border-radius: 2px;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.card .item {
  display: block;
  padding: 15px;
  /*overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;*/
  text-decoration: none;
  color: #333;
}

.card .item.item-image {
  padding: 0;
}

.badge {
  background-color: transparent;
  color: #aaa;
  z-index: 1;
  display: inline-block;
  padding: 3px 8px;
  min-width: 10px;
  border-radius: 10px;
  vertical-align: baseline;
  text-align: center;
  white-space: nowrap;
  font-weight: bold;
  font-size: 14px;
  line-height: 16px; 
}

/*.progress-block,
.progress-block .item {
  background-color: #80AF00;
  color: #fff;
}*/

.progressbar {
  background-color: #d6d6d6;
  height: 7px;
  border-radius: 2px;
  margin: 10px 0 0;
}

.progressbar-level {
  background-color: #6e930a;
  height: 7px;
}

.score .star {
  color: #ffd800;
  font-size: 1.3em;
  vertical-align: bottom;
}

.score .score-level {
  float: left;
}

.score .score-value {
  line-height: 18px;
  float: right;
}

.icon.arrow-down {
  display: block;
  margin-left: 5px;
}

.icon.arrow-left {
  display: inline-block;
  margin-right: 2px;
  margin-bottom: 2px;
  font-size: 0.6em;
  vertical-align: middle;
}

.icon.user {
  display: block;
  width: 14px;
  background: url(images/user.png) no-repeat left center;
  margin-right: 8px;
}

.icon.power {
  display: inline-block;
  width: 13px;
  height: 13px;
  background: url(images/power.png) no-repeat left center;
  margin-right: 2px;
  vertical-align: top;
}

.icon.checkmark {
  display: block;
  width: 24px;
  height: 24px;
  background: url(images/checkmark.svg) no-repeat left center/24px;
}

.icon.training {
  display: block;
  width: 24px;
  height: 24px;
  margin: 0 auto;
  background: url(images/training.png) no-repeat left center/contain;
}

.icon.video {
  display: block;
  width: 24px;
  height: 24px;
  margin: 0 auto;
  background: url(images/video.png) no-repeat left center/contain;
}

.icon.document {
  display: block;
  width: 24px;
  height: 24px;
  margin: 0 auto;
  background: url(images/document.png) no-repeat left center/contain;
}

.icon.quiz {
  display: block;
  width: 24px;
  height: 24px;
  margin: 0 auto;
  background: url(images/quiz.png) no-repeat left center/contain;
}

.button {
  display: inline-block;
  padding: 5px 15px;
  background-color: #ccc;
  color: #333;
  text-decoration: none;
  border-radius: 3px;
  font-size: 0.9em;
}


.welcome-video {
  
}

.welcome-video .overlay {
  position: fixed;
  z-index: 99;
  top: 0px;
  left: 0px;
  height: 100%;
  width: 100%;
  background-color: #000;
  opacity: 0.5;
}

.welcome-video .dialog {
  display: block;
  position: fixed;
  opacity: 1;
  z-index: 100;
  left: 50%;
  -webkit-transform: translate(-50%, 0);
  -ms-transform: translate(-50%, 0);
  transform: translate(-50%, 0);
  top: 100px;
  width: 610px;
  height: 520px;
  padding: 0;
  background-color: #FFF;
  border-radius: 3px;
}

.welcome-video .dialog-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 20px;
  line-height: 20px;
  font-family: sans-serif;
  font-size: 0.7em;
  font-weight: bold;
  border-radius: 50%;
  background-color: #555;
  display: block;
  color: #FFF;
  text-decoration: none;
  text-align: center;
  z-index: 2;
}

.welcome-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 3px;
}

/** Draft content display **/

.card .item.draft,
.course-item.draft,
.course-item.draft:last-child {
  color: #000;
  background-color: #f7edc6;
  border: 1px dashed #c79c3a; 
}




/** Helpers **/

.pull-left {
  float: left;
}

.pull-right {
  float: right;
}

.clear {
  clear: both;
}

.read {
  opacity: 0.5;
}


/** Transistions **/

.ui-view-container {
  position: relative;
  height: 65px;
}

[ui-view].ng-enter, [ui-view].ng-leave {
  position: absolute;
  left: 0;
  right: 0;
  -webkit-transition:all .35s ease-in-out;
    -moz-transition:all .35s ease-in-out;
    -o-transition:all .35s ease-in-out;
    transition:all .35s ease-in-out;
}

[ui-view].ng-enter {
  opacity: 0;
  -webkit-transform:scale3d(0.5, 0.5, 0.5);
  -moz-transform:scale3d(0.5, 0.5, 0.5);
  transform:scale3d(0.5, 0.5, 0.5);
}

[ui-view].ng-enter-active {
  opacity: 1;
  -webkit-transform:scale3d(1, 1, 1);
  -moz-transform:scale3d(1, 1, 1);
  transform:scale3d(1, 1, 1);
}

[ui-view].ng-leave {
  opacity: 1; 
  -webkit-transform:translate3d(0, 0, 0);
  -moz-transform:translate3d(0, 0, 0);
  transform:translate3d(0, 0, 0);
}

[ui-view].ng-leave-active {
  opacity: 0;
  -webkit-transform:translate3d(100px, 0, 0);
  -moz-transform:translate3d(100px, 0, 0);
  transform:translate3d(100px, 0, 0);
}

/** Media queries **/

@media only screen and (min-width: 1240px) {
  
  section {
    width: 820px;
    margin-left: 0;
  }
  
  #right-column {
    width: 340px;
    margin-right: 0;
  }
  
}