@import "./normalize.less";
@import "./variables.less";

.icon-2x {
  display: inline;
  width: 20px;
}

.mr-5 {
  margin-right: 5px !important;
}

.p-5 {
  padding: 5px !important;
}

.p-10 {
  padding: 10px !important;
}

.c3-button {
  background: transparent;
  border-radius: @button-radius;
  border: 1px solid @c3-white;
  color: @c3-white;
  padding: 10px 25px 10px 25px;
  outline: none;
  &:hover {
    background-color: @c3-white;
    color: @c3-black;
  }
}

.c3-button.c3-next-button {
  background-color: @c3-yellow-001;
  border-color: @c3-yellow-001;
  color: @c3-black;
}

.c3-dashboard-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;

  .c3-main {
    height: ~"calc(100% - 70px)";
    display: flex;
    justify-content: space-between;

    .gutter {
      &:hover {
        cursor: ew-resize;
      }
    }

    .c3-instructions {
      overflow: hidden;
      .c3-instruction-title {
        color: @c3-black-002;
        background-color: @c3-gray-001;
        display: flex;
        align-items: center;
        height: 50px;
        padding: 0 10px 0 10px;
        .c3-chapter-status {
          display: flex;
          justify-content: center;
          align-items: center;
          margin-left: auto;
        }
      }
      .c3-instruction-body {
        padding: 0 20px 0 20px;
        height: ~"calc(100% - 50px)";
        overflow: auto;

        .c3-body {
          margin-bottom: 20px;
          color: @c3-black-001;
          font-size: @editor-font-size;
          line-height: 1.4;
          font-weight: 500;

          code {
            background-color: #e8e7ea;
            border-radius: 2px;
            padding: 2px;
            font-size: .8em;
            font-family: Monaco,Menlo,Ubuntu Mono,Droid Sans Mono,Consolas,monospace;
          }
        }

        .c3-code-container {
          margin-bottom: 20px;
          .CodeMirror {
            font-size: 18px;
            height: auto;
            border-radius: 5px;
          }
        }
      }
    }

    .c3-code {
      width: 100%;
      overflow-x: auto;
      display: flex;
      flex-direction: column;
      justify-content: space-between;

      .gutter {
        background-color: @c3-black-003;
        &:hover {
          cursor: ns-resize;
        }
      }

      .c3-editor {
        height: 100%;
        overflow: auto;
        .CodeMirror {
          height: 100%;
          font-size: @editor-font-size;
        }
      }

      .c3-action-container {
        display: flex;
        flex-direction: column;

        .c3-editor-action {
          background-color: @c3-gray-003;
          display: flex;
          height: 50px;
          .c3-run-button {
            display: flex;
            align-items: center;
            background-color: @c3-blue-001;
            color: @c3-white;
            padding: 0 20px 0 20px;
            cursor: pointer;
            outline: none;
            border: none;
            cursor: pointer;
            &:hover {
              opacity: 0.8;
            }
            &:disabled {
              opacity: 0.6;
              cursor: not-allowed;
            }
          }
          .c3-reset {
            display: flex;
            align-items: center;
            margin-left: 20px;
            cursor: pointer;
            img {
              width: 20px;
            }
          }
          .c3-full-screen {
            display: flex;
            align-items: center;
            margin-left: 20px;
            cursor: pointer;
            img {
              width: 20px;
            }
          }
          .c3-command-window {
            display: flex;
            align-items: center;
            margin-left: 20px;
            cursor: pointer;
            img {
              width: 24px;
            }
          }
          .c3-decrease-font {
            display: flex;
            align-items: center;
            margin-left: 20px;
            cursor: pointer;
            img {
              width: 24px;
            }
          }
          .c3-increase-font {
            display: flex;
            align-items: center;
            margin-left: 20px;
            cursor: pointer;
            img {
              width: 24px;
            }
          }
          .c3-clear-console {
            display: flex;
            align-items: center;
            margin-left: 20px;
            cursor: pointer;
            img {
              width: 18px;
            }
          }
          .c3-play-button {
            display: flex;
            align-items: center;
            padding: 0 10px 0 10px;
            margin-left: auto;
            color: @c3-white;
            outline: none;
            border: none;
            cursor: pointer;
            background-color: @c3-green-001;
            &:hover {
              opacity: 0.8;
            }
            &:disabled {
              opacity: 0.6;
              cursor: not-allowed;
            }
          }
          .c3-stop-button {
            display: flex;
            align-items: center;
            padding: 0 10px 0 10px;
            margin-left: auto;
            color: @c3-white;
            outline: none;
            border: none;
            cursor: pointer;
            background-color: @c3-red;
            &:hover {
              opacity: 0.8;
            }
            &:disabled {
              opacity: 0.6;
              cursor: not-allowed;
            }
          }
        }

        .c3-console {
          height: ~"calc(100% - 50px)";
          background-color: @c3-black-001;
          color: @c3-gray-002;
          font-size: @editor-font-size;
          overflow: auto;
          position: relative;
          .c3-console-body {
            padding: 10px;
            position: absolute;
            top: 0;
            bottom: 0;
            overflow: auto;
            width: ~"calc(100% - 20px)";
          }
        }
      }
    }
  }

  .c3-bottom {
    height: 70px;
    background-color: @c3-black-002;
    color: @c3-white-001;
    display: flex;
    justify-content: space-between;

    .c3-bottom-left {
      width: 100%;
      display: flex;
      align-items: center;
      span {
        margin-left: 40px;
      }
    }

    .c3-bottom-action {
      width: 100%;
      display: flex;
      justify-content: space-between;
      align-items: center;

      .c3-back-button {
        margin-left: 10px;
      }

      .c3-next-button {
        margin-right: 10px;
        &:hover {
          opacity: 0.7;
        }
      }
    }

    .c3-bottom-right {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      span {
        margin-right: 40px;
      }
    }
   .feedback{
    display:inline-block;
    text-decoration:none;
    color:white;
    cursor:pointer;
    font-family:Helvetica,Arial,sans-serif;
    font-size:16px;
    line-height:30px;
    text-align:center;
    margin:0;
    height:30px;
    padding:5px 10px 5px 10px;
    border:1px solid #ffffff;
    border-radius:5px;
    max-width:100%;
    margin-right:15px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    font-weight:bold;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
   }
  }
}

.c3-tooltip-wrapper {
  -webkit-transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
  line-height: 0;
  .tooltip {
    line-height: 1.2;
    background: @c3-black-001;
    bottom: 100%;
    color: @c3-white;
    display: block;
    left: -20px;
    margin-bottom: 15px;
    opacity: 0;
    padding: 10px;
    pointer-events: none;
    position: absolute;
    -webkit-transform: translateY(10px);
    transform: translateY(10px);
    -webkit-transition: all .25s ease-out;
    transition: all .25s ease-out;
    -webkit-box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28);
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28);
    &:before {
      bottom: -20px;
      content: " ";
      display: block;
      height: 20px;
      left: 0;
      position: absolute;
      width: 100%;
    }
    &:after {
      border-left: solid transparent 10px;
      border-right: solid transparent 10px;
      border-top: solid @c3-black-001 10px;
      bottom: -10px;
      content: " ";
      height: 0;
      left: 50%;
      margin-left: -13px;
      position: absolute;
      width: 0;
    }
  }
  &:hover {
    .tooltip {
      opacity: 1;
      pointer-events: auto;
      -webkit-transform: translateY(0px);
      transform: translateY(0px);
    }
  }
}

.c3-modal {
  background: rgba(0, 0, 0, 0.5);
  border: none;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9999999999;

  .c3-container{
    max-width: 30rem;
    background: @c3-white;
    padding: 40px;
    border-radius: 0.25rem;

    .c3-action-box {
      margin-top: 20px;
      display: flex;
      justify-content: center;
      .c3-reset-button {
        border: 1px solid @c3-red;
        border-radius: 5px;
        background: transparent;
        color: @c3-red;
        height: 50px;
        width: 100px;
        margin-right: 5px;
        &:hover {
          background-color: @c3-red;
          color: @c3-white;
        }
      }
      .c3-cancel-button {
        border: 1px solid @c3-black-001;
        border-radius: 5px;
        background: transparent;
        color: @c3-black-001;
        height: 50px;
        width: 100px;
        margin-left: 5px;
        &:hover {
          background-color: @c3-black-001;
          color: @c3-white;
        }
      }
    }
  }
}
