
@import "projects/exam/src/style/variables";

.ant-btn-lg:focus,
.ant-btn-lg:hover {
  color: $primary-color;
  border-color: $primary-color;
}
.ant-btn-primary,
.ant-btn-loading,
.ant-btn-primary:hover {
  color: #fff;
}

.ant-btn-primary {
  background: $primary-color !important;
  border-color: $primary-color !important;
  &:hover,
  {
      background-color: $primary-link !important;
      border-color: $primary-link !important;
      color: #fff !important;
  }
  &:focus,
  &:active,
  &:visited {
      background-color: $primary-color !important;
      border-color: $primary-color !important;
      color: #fff !important;
  }
}

.page ::ng-deep {
  .ant-pagination{
    .ant-pagination-prev,.ant-pagination-next{
        height: 46px;
        .ant-pagination-item-link{
            min-width: 46px;
            height: 46px;
            line-height: 46px;
            border-radius: 0;
            &:focus,
            &:hover {
                border-color: $primary-color;
                color: $primary-color;
            }
        }
        &.ant-pagination-disabled{
            .ant-pagination-item-link{
                &:focus,
                &:hover {
                    border-color: #d9d9d9;
                    color: #d9d9d9;
                }
            }
        }
    }
    .ant-pagination-item,.ant-pagination-item-link{
        min-width: 46px;
        height: 46px;
        line-height: 46px;
        border-radius: 0;
        &:focus,
        &:hover {
            border-color: $primary-color;
            a{
                color: $primary-color;
            }
        }
        &.ant-pagination-item-active{
            background: $primary-color;
            border-color: $primary-color;
            a {
                color: #fff;
            }
        }
    }
  }
}

.exam-frame {
  width: 100%;
  height: 100%;
  padding-bottom: 50px;
  .newMsgTip {
    position: fixed;
    top: 40px;
    width: 250px;
    height: 30px;
    font-size: 20px;
    right: -250px;
    // display: none;
    text-align: center;
    font-weight: bold;
    background: #333;
    color: #fff;
    z-index: 999;
    animation: msgAni 8s linear 1;
  }
  .exam-title {
    height: 52px;
    width: 100%;
    line-height: 52px;
    background-color: $primary-color;
    position: fixed;
    top: 0px;
    z-index: 99;
    .exam-name {
      font-size: 16px;
      color: #fff;
      float: left;
      margin-left: 12px;
    }
    .exam-time {
      position: absolute;
      left: 50%;
      top: 0;
      width: 180px;
      height: 52px;
      margin-left: -90px;
      color: #fff;
      // color: red;
      font-size: 14px;
      text-align: center;
      span {
        // color: #ffc605;
        color: #e86d6d;
        font-size: 16px;
      }
    }
    .exam-save {
      float: right;
      padding: 3px 16px;
      line-height: 24px;
      color: $primary-color;
      border-radius: 3px;
      background-color: #fff;
      margin: 11px 20px 0 0;
      cursor: pointer;
    }
    .exam-their {
      float: right;
      padding: 3px 16px;
      line-height: 24px;
      color: #fff;
      border-radius: 3px;
      background-color: #ffc605;
      margin: 11px 30px 0 0;
      cursor: pointer;
    }
  }
  .aside-left {
    width: 210px;
    position: fixed;
    top: 76px;
    left: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    z-index: 2;
    background-color: #fff;
    box-shadow: 0px 0px 12px #d1d1d1;
    padding: 5px;
    .aside-item {
      font-size: 14px;
      color: #999;
      min-height: 30px;
      line-height: 30px;
      text-indent: 34px;
      word-wrap: break-word;
      word-break: break-all;

      // span {
      //     float: right;
      //     width: 130px;
      //     color: #000;
      //     font-size: 14px;
      //     margin-right: 8px;
      //     text-indent: 0px;
      //     white-space: nowrap;
      //     overflow: hidden;
      //     text-overflow: ellipsis;
      // }
    }
    .user {
      margin-top: 12px;
      text-indent: 21px;
    }
    .user-name {
      text-indent: 34px;
    }
    .user-session {
      text-indent: 6px;
    }
    .cut-screen {
      text-indent: 6px;
    }
    .cut-num {
      text-indent: 19px;
    }
    .clues {
      margin: 0px 12px;
      font-size: 12px;
      span {
        color: red;
      }
    }
    .news {
      padding: 6px 5px;
      word-break: break-all;
      word-wrap: break-word;
      min-height: 42px;
      max-height: 200px;
      overflow: auto;
      color: #333;
      background-color: #e6e5e5;
      cursor: pointer;
      border-radius: 3px;
      .message {
        color: #333;
        line-height: 20px;
      }
      .noMessage {
        width: 100%;
        height: 42px;
        line-height: 42px;
        text-align: center;
      }
    }
    .answer-box {
      display: flex;
      padding: 5px 0;
      min-height: 30px;
      .answered {
        height: 20px;
        .answered-br {
          height: 20px;
          width: 20px;
          float: left;
          background-color: $primary-color;
          border: 1px solid $primary-color;
        }
        .answered-ch {
          float: left;
          line-height: 22px;
          font-size: 12px;
          margin: 0px 3px;
        }
      }
      .answer {
        height: 20px;
        .answer-br {
          height: 20px;
          width: 20px;
          float: left;
          background-color: #fff;
          border: 1px solid #d0d0d0;
        }
        .answer-ch {
          float: left;
          line-height: 20px;
          font-size: 12px;
          margin: 0px 3px;
        }
      }
      .answering {
        height: 20px;
        .answering-br {
          height: 20px;
          width: 20px;
          float: left;
          background-color: #fff;
          border: 1px solid #f67920;
          position: relative;
          &::after {
            content: "";
            position: absolute;
            bottom: 0px;
            right: 0px;
            border-top: 2px solid transparent;
            border-right: 2px solid #f67920;
            border-bottom: 2px solid #f67920;
            border-left: 2px solid transparent;
          }
        }
        .answering-ch {
          float: left;
          line-height: 22px;
          font-size: 12px;
          margin-left: 3px;
        }
      }
    }
    .test-list {
      margin: 25px 0x 8px;
      min-height: 50px;
      overflow: auto;
      .test-num {
        float: left;
        height: 20px;
        width: 20px;
        margin: 0px 3px 6px 0px;
        line-height: 18px;
        color: #666;
        text-align: center;
        border: 1px solid #d0d0d0;
        position: relative;
        cursor: pointer;
        user-select: none;
        &.no {
          border: 1px solid #fff;
          color: #666;
        }
        &.respond {
          color: #fff;
          background-color: $primary-color;
          border: 1px solid $primary-color;
        }
        &.marked {
          border: 1px solid #f67920;
          &::after {
            content: "";
            position: absolute;
            bottom: 0px;
            right: 0px;
            border-top: 2px solid transparent;
            border-right: 2px solid #f67920;
            border-bottom: 2px solid #f67920;
            border-left: 2px solid transparent;
          }
        }
      }
    }
  }
  .aside-right {
    margin-top: 76px;
    margin-left: 246px;
    min-height: 800px;
    .test-detail {
      min-height: 300px;

      .list-one:not(:first-child) {
        .right-title {
            margin-top: 16px;
        }
      }
      .right-title {
        height: 42px;
        background-color: $primary-color;
        line-height: 42px;
        color: #fff;
        font-size: 16px;
        text-indent: 16px;
        span {
          font-size: 12px;
        }
      }
    }
    .page {
      text-align: center;
      padding: 20px 0;
      span {
        display: inline-block;
        cursor: pointer;
        border: 1px solid #ddd;
        padding: 3px 0;
        position: relative;
        top: -8px;
        padding: 3px 8px;
        &.parim {
          background: $primary-color;
          color: #fff;
        }
      }
      ul {
        overflow: hidden;
        display: inline-block;
        li {
          padding: 3px 8px;
          display: inline-block;
          border: 1px solid #ddd;
          cursor: pointer;
          margin: 0 5px;
          &.active {
            background: $primary-color;
            border: 1px solid $primary-color;
            color: #fff;
          }
        }
      }
    }
  }
  .aside-right-fullscreen {
    position: fixed;
    top: 76px;
    bottom: 30px;
    z-index: 3;
    right: 0;
    left: 0;
    margin: 0;
    left: 246px;
    min-height: 200px;
    overflow-y: auto;
  }
}
@keyframes msgAni {
  from {
    right: -250px;
  }
  to {
    right: 100%;
  }
}
@-ms-viewport {
  width: device-width;
}
::ng-deep {
  .ant-pagination-item:focus,
  .ant-pagination-item:hover,
  .ant-pagination-next:focus,
  .ant-pagination-next:hover,
  .ant-pagination-prev:focus,
  .ant-pagination-prev:hover {
    border-color: $primary-color;
    a {
      color: $primary-color;
    }
  }
  .ant-pagination-item-active:hover {
    color: #fff;
  }
  user-select: none;
  ul li,
  ol li {
    list-style: inherit;
  }
  .ant-modal {
    top: 200px;
    .ant-modal-content {
      .ant-modal-header {
        .ant-modal-title {
          text-align: center;
          font-size: 20px;
        }
      }
      .prompt-content {
        height: 182px;
        .prompt-body {
          .img-url {
            float: left;
            width: 100px;
            height: 80px;
            .float-prompt {
              font-size: 42px;
              color: $primary-color;
              margin: 22px 28px;
            }
          }
          .detail {
            float: left;
            width: 388px;
            font-size: 14px;
            color: #ff5252;
          }
        }
        .promp-ok {
          width: 60px;
          margin: 32px auto 0px;
        }
      }
      .theirpaper-content {
        .theirpaper-body {
          .img-url {
            float: left;
            width: 100px;
            height: 100px;
            .float-prompt {
              font-size: 46px;
              color: $primary-color;
              margin-top: 12px;
              margin-left: 50px;
            }
          }
          .detail {
            float: left;
            height: 80px;
            .answer-num {
              margin-top: 12px;
              line-height: 26px;
              width: 300px;
              text-align: center;
              font-size: 16px;
              color: red;
            }
            .if-submit {
              line-height: 26px;
              width: 300px;
              text-align: center;
              font-size: 12px;
              color: $primary-color;
            }
          }
        }
        .their-ok {
          margin-top: 20px;
          text-align: center;
          margin-bottom: 20px;
          .ant-btn-primary {
            margin-right: 30px;
          }
        }
      }
      .cut-paper-screen {
        .screen-body {
          .detail {
            height: 80px;
            .answer-num {
              margin-top: 12px;
              line-height: 40px;
              font-size: 16px;
              color: $primary-color;
              text-align: center;
            }
            .if-submit {
              line-height: 32px;
              text-align: center;
            }
          }
        }
        .screen-footer {
          margin: 20px 0px;
          text-align: center;
          .ant-btn-primary {
            margin-right: 30px;
          }
        }
      }
    }
  }
}

.submit-modal-content {
  padding: 20px 50px;
  .submit-row {
    height: 40px;
    font-size: 16px;
    line-height: 40px;
    border-left: 1px solid #dedbdb;
    border-bottom: 1px solid #dedbdb;
    border-right: 1px solid #dedbdb;
    .row-label,
    .row-value {
      height: 100%;
    }
    .row-label {
      text-align: right;
      padding-right: 20px;
      border-right: 1px solid #dedbdb;
    }
    .row-value {
      padding-left: 20px;
    }
    &:first-child {
      border-top: 1px solid #dedbdb;
    }
  }
  .tipmessage {
    color: red;
    font-size: 13px;
    margin-top: 10px;
  }
  .messageInfo {
    color: #777;
    margin: 10px 0;
    font-size: 13px;
    .toDa {
      color: $primary-color;
      margin: 0 3px;
    }
  }
  .submitBtn {
    margin-top: 20px;
    text-align: center;
    button {
      padding: 0 25px;
    }
  }
  
}
 ::ng-deep{
   .cuttingScreen{
    background-color:#333 !important;
    .ant-modal-mask{
      background-color:#333 !important;
    }
   }
  
}
.userC{
  color: #3D3FEA !important;
}