
@import "projects/exam/src/style/variables";
::ng-deep .ant-spin-container {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background: #fff;
}

.exam-frame {
    width: 100%;
    height: 100%;
    padding-bottom: 50px;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    overflow-y: auto;
    background: #fff;
    .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: 990;
        padding: 0 2.3rem 0 2rem;
        .exam-name {
            font-size: 16px;
            color: #fff;
            position: absolute;
            left: 0;
            top: 0;
            display: inline-block;
            width: 2rem;
            height: 52px;
            line-height: 52px;
        }
        .exam-time {
            color: red;
            width: 100%;
            text-align: center;
            font-size: 14px;
            height: 100%;
            display: flex;
            flex-direction: column;
            .exma-time-item {
                flex-grow: 1; // line-height: 1.7em;
                text-align: center;
            }
        }
        .exam-their {
            position: absolute;
            right: 10px;
            top: 11px;
            display: inline-block;
            width: 2rem;
            height: 30px;
            line-height: 30px;
            text-align: center;
            border: 1px solid #e0e4e6;
            border-radius: 3px;
            background-color: #e0e4e6;
            color: $primary-color;
        }
    }
    .exam-footer-page {
        height: 40px;
        width: 100%;
        line-height: 52px;
        background-color: $primary-color;
        position: fixed;
        left: 0px;
        bottom: 0px;
        z-index: 990;
        display: flex;
        .page-change {
            flex-grow: 1;
            height: 100%;
            line-height: 40px;
            text-align: center;
            color: #fff;
            font-size: 16px;
            border-right: 1px solid #eee;
            &:last-child {
                border-right: none;
            }
        }
    }
    .aside-right {
        margin-top: 76px;
        min-height: 300px;
        .test-detail {
            min-height: 300px;
            .right-title {
                height: 42px;
                background-color: $primary-color;
                line-height: 42px;
                color: #fff;
                font-size: 16px;
                text-indent: 16px;
                span {
                    font-size: 12px;
                }
            }
        }
    }
}

@keyframes msgAni {
    from {
        right: -250px;
    }
    to {
        right: 100%;
    }
}

:host ::ng-deep .exam-frame {
    .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-radio-group {
        display: inline;
    }
    .box-one {
        padding-right: 10px !important;
        .sign {
            top: -40px !important;
            right: 0 !important;
        }
        .selectType {
            position: static !important;
            margin-bottom: 5px !important;
            display: inline-block !important;
        }
        .answer {
            margin-left: 0 !important;
        }
    }
    .special {
        .sign {
            position: static !important;
            height: 25px !important;
            width: 60px !important;
            line-height: 25px !important;
            display: inline-block !important;
            margin: 0 5px 5px 0 !important;
        }
    }
}

.submit-modal-content {
    padding: 20px 0;
    .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;
        font-size: 14px;
        .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{
    .ant-modal{
        margin-top: constant(safe-area-inset-top) !important; //ios10-
        margin-top:env(safe-area-inset-top) !important;
    }
  .exam-mob-modal{
    .ant-modal {
      top: 20%;
      .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 {
                display: flex;
                align-items: center;
                justify-content: center;
                  .img-url {
                      .float-prompt {
                          font-size: 46px;
                          color: $primary-color;
                      }
                  }
                  .detail {
                    flex: 1;
                    text-align: center;
                      padding: 0 10px;
                      .answer-num {
                          margin-top: 12px;
                          line-height: 26px;
                          text-align: center;
                          font-size: 16px;
                          color: red;
                      }
                      .if-submit {
                          line-height: 26px;
                          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;
                  }
              }
          }
      }
    }
  }
}
//答题卡
::ng-deep{
  .markindex-modal {
    .ant-modal {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        padding: 0;
        margin: 0;
    }
    .ant-modal-content {
        height: 100%;
        background: #f4f4f4;
        position: static;
        .ant-modal-body {
            padding: 0;
            width: 100%;
            height: calc(100% - 50px);
            overflow: auto;
            .news {
                padding: 6px 5px;
                word-break: break-all;
                word-wrap: break-word;
                min-height: 42px;
                color: #333;
                .message {
                    color: #333;
                    line-height: 20px;
                }
                .noMessage {
                    width: 100%;
                    height: 42px;
                    line-height: 42px;
                    text-align: center;
                }
            }
            .tip-box,
            .btnlist {
                height: 70px;
                display: flex;
                padding: 0;
                border: 1px solid #e2e2e2;
                background: #fff;
                margin-top: 5px;
                box-shadow: 1px 3px 4px 1px #e2e2e2;
                .tip-item {
                    display: flex;
                    flex-grow: 1;
                    flex-direction: column;
                    padding: 10px 0;
                    text-align: center;
                    font-size: 14px;
                    color: $primary-color;
                    font-weight: bold;
                    .num {
                        font-size: 20px;
                    }
                }
                .tip-item-two {
                    border-left: 1px solid #e2e2e2;
                    border-right: 1px solid #e2e2e2;
                }
            }
            .btnlist {
                height: 40px;
                .submitExam {
                    width: 50%;
                    height: 40px;
                    line-height: 40px;
                    font-size: 18px;
                    text-align: center;
                    background: #f57c7c;
                    color: #fff;
                }
                .saveExam {
                    width: 50%;
                    height: 40px;
                    line-height: 40px;
                    font-size: 18px;
                    text-align: center;
                    background: #82d084;
                    color: #fff;
                }
            }
            .index-list {
                // display: flex;
                padding: 10px 0;
                overflow: auto;
                height: calc(100% - 130px);
                .num-one,
                .num-one-child {
                    display: inline;
                }
                .test-list {
                    margin: 25px 0x 8px;
                    min-height: 50px;
                    overflow: auto;
                    .test-num {
                        float: left;
                        height: 1rem;
                        width: 1rem;
                        margin: 5px;
                        line-height: 1rem;
                        color: #666;
                        font-size: 16px;
                        text-align: center;
                        border: 1px solid #d0d0d0;
                        border-radius: 100%;
                        background: #eee;
                        position: relative;
                        cursor: pointer;
                        user-select: none;
                        &.no {
                            border: 1px solid #ddd;
                            color: #ddd;
                        }
                        &.respond {
                            color: #fff;
                            background-color: $primary-color;
                            border: 1px solid $primary-color;
                        }
                        &.marked {
                            border: 1px solid #f67920;
                        }
                    }
                }
            }
        }
    }
  }
}
