#cd-tutorial {
  position: fixed;
  display: table;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  cursor: not-allowed;
  padding-left: $customizer-width;
  z-index: 20;

  animation-duration: 1s;
  @include mui-animation(fade);
}

.cd-tutorial-wrap {
  display: table-cell;
  vertical-align: middle;
  background-color: rgba(#000, 0.4);
}

.cd-tutorial-container {
  position: relative;
  height: 80%;
  width: 80%;
  max-height: 500px;
  max-width: 600px;
  background-color: #fff;
  box-shadow: 10px 10px 50px rgba(#000, 0.5);
  cursor: default;
  padding: 1em;
  margin: 0 auto;

  animation-duration: 1s;
  @include mui-animation(slide, fade);
}

.cd-tutorial-panel-title {
  margin-top: 0;
}

.cd-tutorial-panel-image {
  float: left;
  width: 30%;
  margin-right: 1em;
}

.cd-tutorial-panel-content {
  p {
    line-height: 1.5;
  }

  .footnote {
    font-style: italic;
    color: #888;
  }
}

.cd-tutorial-close {
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 10px;
  font-size: 25px;
  color: #d6d6d6;
  text-shadow: 7px 7px 6px rgba(0,0,0,0.4);
  cursor: pointer;
  transition: color 300ms;

  &:hover {
    color: lighten($color-error, 15%);
  }
}

.cd-tutorial-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 1em;
  width: 100%;
}

.cd-tutorial-nav-next,
.cd-tutorial-nav-finish {
  float: right;
}

.cd-tutorial-nav-prev {
  float: left;
  color: $primary-color;
  text-decoration: underline;
  padding: 1em 1em 1em 0;
  cursor: pointer;

  &:hover {
    color: lighten($primary-color, 10%);
  }
}

.cd-tutorial-nav-finish {
  animation-iteration-count: infinite;
  animation-duration: 1s;
  animation-name: highlight-primary;
}

.cd-tutorial-button {
  display: inline-block;
  background-color: $primary-color;
  color: #fff;
  padding: 1em;
  cursor: pointer;
  text-decoration: none;
  transition: background 300ms;

  &:hover {
    background-color: lighten($primary-color, 10%);
    transition: background 100ms;
  }

  &:active {
    background-color: darken($primary-color, 10%);
  }
}

.cd-tutorial-highlight {
  position: fixed;
  left: 10px;
  color: lighten($primary-color, 10%);
  text-shadow: 10px 10px 20px rgba(#000, 0.4);
  z-index: 30;

  animation-duration: 1s;
  animation-iteration-count: infinite;
  @include mui-animation(wiggle(10deg));

  &.small {
    font-size: 40px;
  }

  &.medium {
    font-size: 60px;
  }

  &.large {
    font-size: 80px;
  }

  &.bottom {
    margin-left: -27px;
  }

  &.top {
    margin-left: -27px;
    margin-top: -71px;
  }

  &.left {
    margin-top: -35px;
    margin-right: 5px;
  }

  &.right {
    margin-top: -35px;
    margin-left: 5px;
  }

  // Extra, specific use-case
  &.reset-role {
    left: 5px !important;
    margin-top: -30px;
    margin-left: 0;
  }
}