@import "../../res.less";

.answerPanel {
  width: 750px;
  height: 1624px;
  left: 0px;
  top: 0px;
  position: absolute;
  padding-top: 590px;
  box-sizing: border-box;

  .bg {
    left: 100px;
    top: 349px;
    width: 539px;
    height: 785px;
    position: absolute;
    .sparkBg("answerPanel/answerPanelBg.png");
  }

  .question-title {
    top: 30px;
    left: 152px;
    position: relative;
    width: 426px;
    max-height: 70px;
    overflow-y: scroll;
    overflow-x: hidden;
    font-size: 26px;
    color: rgb(70, 26, 18);
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 20px;
  }

  .answer-con {
    // width: 586px;
    width: 445px;
    height: 340px;
    position: relative;
    top: 30px;
    // left: 80px;
    left: 146px;
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    overflow-y: scroll;
    overflow-x: hidden;
    .answer-item {
      width: 100%;
      height: auto;
      text-align: left;
      color: rgb(88, 88, 88);
      font-size: 21px;
      font-weight: bold;
      line-height: 1.5;
      vertical-align: middle;
      word-break: break-all;
      background-color: #fff;
      border-radius: 14px;
      padding: 12px 40px 12px 30px;
      // .sparkBg("answerPanel/normalBg.png");
      position: relative;
      margin: 0 auto;
      box-sizing: border-box;
    }

    // .toolong {
    //   line-height: 1.5;
    // }
    
    .error {
      color: #000;
      // background-color: rgb(220, 65, 69);
      border: 2px solid #f83600;
      box-sizing: border-box;
    
    }

    .correct {
      color: #fff;
      background: linear-gradient(to right, #f83600, #facc22);
      // background-color: rgb(107, 200, 129);
      // .sparkBg("answerPanel/correctBg.png");
    }

    .correct-icon {
      display: inline-block;
      position: absolute;
      width: 35px;
      height: 28px;
      right: 20px;
      top: 50%;
      transform: translateY(-50%);
      .sparkBg("answerPanel/correctIcon.png");
    }

    .error-icon {
      position: absolute;
      width: 34px;
      height: 34px;
      right: 24px;
      top: 50%;
      transform: translateY(-50%);
      display: inline-block;
      .sparkBg("answerPanel/errorIcon.png");
    }
  }

  .tips {
    width: 669px;
    font-size: 22px;
    color: #000;
    text-align: center;
    position: absolute;
    left: 41px;
    top: 1081px;
  }
  
  .close {
    left: 346px;
    top: 1166px;
    width: 58px;
    height: 58px;
    position: absolute;
    .sparkBg("common/close.png");
  }
}