@import "projects/exam/src/style/variables";
.question-box {
        font-size: 14px;
        border: 1px solid $primary-color;
        padding: 50px 10px 10px;
        margin: 10px 15px 0;
        position: relative;
        min-height: 100px;
        background: #fff;
        &.active {
            border: 1px solid #f67920;
        }
        .question-body {
            a {
                display: block;
            }
        }
        .que-type {
            position: absolute;
            top: 10px;
            left: -10px;
            .type-cn-name {
                display: block;
                z-index: 2;
                position: relative;
                width: 80px;
                height: 30px;
                text-align: center;
                line-height: 30px;
                color: #fff;
                background: $primary-color;
            }
            i {
                position: absolute;
                width: 0;
                height: 0;
                border-width: 10px;
                border-style: solid;
                border-color: transparent $primary-color transparent transparent;
                left: -10px;
                top: 20px;
                z-index: 1;
            }
        }
    }
:host ::ng-deep {
    .box-one {
        .answer {
            margin-left: 20px;
            .ant-radio-wrapper,.checkbox-label{
                white-space: normal;
                word-break: break-all;
                word-wrap: break-word;
            }
        }
    }
    .htmlInline{
        word-wrap:break-word; 
        word-break:break-all; 
        &>p{
            display: inline-block;
        }
        img{
            max-width: 300px;
            max-height: 300px;
            cursor: pointer;
        }
    }
    .viewImgModal,
    .ant-modal,
    .ant-modal-content,
    .ant-modal-body,
    .ant-modal-body .back {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        padding: 0;
    }
}
::ng-deep{
    .viewImgModal{
        text-align: center;
        z-index: 990;
        .ant-modal{
            top:0;
            .ant-modal-content{
                background: none;
            }
            .ant-modal-body{
                overflow: auto;
                position: fixed;
                top: 0;
                right: 0;
                left: 0;
                bottom: 0;
                width: 100%;
                height: 100%;
                padding: 0;
                .modal-close{
                    position: fixed;
                    right: 20px;
                    top:20px;
                    color: #fff;
                    font-size: 30px;
                    cursor: pointer;
                }
                .back{
                    background: #000;
                    opacity: .5;
                }
                .showImgBox{
                    width: 100%;
                    height: 100%;
                    text-align: center;
                }
                .showImg{
                    position: absolute;
                    top: 0;
                    left: 0;
                    bottom: 0;
                    right: 0;
                    z-index: 2;
                    margin: auto;
                    max-width:90%;
                    max-height: 95%;
                    min-width:20px;
                    transition: transform .5s;
                }
                .rotateImg{
                    position: fixed;
                    left:0;
                    bottom: 0;
                    height: 40px;
                    width: 100%;
                    text-align: center;
                    font-size: 30px;
                    z-index: 3;
                    color:#fff;
                    // border-top: 1px dashed #d8d8d8;
                    i{
                        cursor: pointer;
                        margin-right: 5px;
                    }
                }
            }
        }
    }
}
