/* exam */

.exam {
    display: flex;
    background: #fbfbfb;
}

header {
    flex: 0 0 75px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 75px;
    color: #fff;
    padding: 0 50px;
    background: #003664;
    z-index: 100;
}
header > section.code {
    display: flex;
    align-items: baseline;
    gap: 10px;
}
header > section.code p {
    color: #FCDE42;
}
header > section.code h4 {
    line-height: 30px;
    font-weight: 400;
}
header > h3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 400;
}
header > section.time {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 40px;
    color: #003664;
    padding: 0 20px;
    border-radius: 10px;
    background: #fff;
}
header > section.time img {
    width: 16px;
}
header > section.time p {
    font-size: 15px;
    font-weight: 500;
}
header > section.time h5 {
    font-weight: 700;
    color: #C70505;
}
header > figure.ai {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    line-height: 20px;
    font-size: 14px;
    background: #003664 url("../images/ai.png") no-repeat center;
    background-blend-mode: lighten;
}
header.error {
    background: #C70505;
}
header.error > h3 {
    display: flex;
    align-items: center;
    gap: 15px;
}
header.error > h3 img {
    width: 40px;
}

footer {
    flex: 0 0 60px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    background: #A2C2C0;
}
footer .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 1200px;
}
footer button,
footer button.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 40px;
    font-size: 17px;
    font-weight: 700;
    padding: 0 30px;
    border: 1px solid #333;
    border-radius: 10px;
    background: #fff;
}
footer button:hover {
    box-shadow: none;
}
footer button > img {
    width: 8px;
}
footer .questions {
    display: flex;
    align-items: center;
    gap: 10px;
}
footer .questions > button {
    border: none;
    background: #ccc;
}
footer .nav {
    display: flex;
    align-items: center;
    gap: 10px;
}
footer .nav button.nav-link {
    color: #262626;
    border: none;
    border-radius: 10px;
    background: #ccc;
}
footer button.nav-link,
footer .nav button.nav-link.active,
footer button.blue {
    border: none;
    color: #fff;
    background: #003664;
}
footer button.red {
    border: none;
    color: #fff;
    background: #C70505;
}
footer button.gray {
    color: #fff;
    pointer-events: none;
    border: none;
    background: #ccc;
}
footer .info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 26px;
    font-size: 18px;
    font-weight: 700;
}
footer button:disabled {
    background: #555;
    opacity: 0.4;
}

/* 모달 */

.modal-content {
    padding: 50px;
    border: none;
    border-radius: 20px;
}
.modal-header {
    padding: 0;
    border: none;
}
.modal-title {
    font-weight: 700;
}
.modal-body {
    padding: 30px 0;
}

.modal-footer {
    justify-content: center;
    padding: 0;
    border: none;
}

.modal-footer > .btn {
    line-height: 40px;
    padding: 0 30px;
}

article#exam {
    overflow: hidden;
}
article .inner {
    width: 1200px;
    height: calc(100% - 50px);
    margin: 50px auto 0;
    padding: 50px 100px;
    border: 1px solid #ccc;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    background: #fff;
}
article#exam .inner {
    height: calc(100% - 100px);
    padding: 50px;
    margin: 50px auto;
    border: 1px solid #ccc;
    border-radius: 10px;
}
article .inner.timetable {
    padding: 50px;
}
article .inner.timetable .info {
    display: flex;
    gap: 50px;
    padding: 0;
}
article .inner.timetable .info > h2 {
    flex: 0 0 170px;
}
article .inner.timetable .info > ul {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}
article .inner.timetable .info > ul li {
    line-height: 24px;
    font-size: 16px;
    list-style-type: disc;
}
article .inner.timetable .info > ul li + li {
    margin-top: 5px;
}
article .inner.separate {
    height: 100%;
    padding: 0;
    border: none;
    background: transparent;
}
article .inner.separate .info {
    display: flex;
    gap: 80px;
    padding: 50px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background: #fff;
}
article .inner.separate .info > h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
}
article .inner.separate .info > h2 figure {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
}
article .inner.separate .info > ul {
    display: flex;
    justify-content: center;
    flex-direction: column;
}
article .inner.separate .info > ul li {
    line-height: 30px;
    font-size: 20px;
    list-style-type: disc;
}
article .inner.separate .info > ul li + li {
    margin-top: 10px;
}

/* 본인인증 */

#identity {
    background: #DFE4E4;
    overflow: hidden;
}
#identity .info_box {
    width: 100%;
    line-height: 32px;
    font-size: 24px;
    text-align: center;
    padding: 50px;
    background: #f5f5f5;
}
#identity .editor-wrapper {
    width: 1250px;
    margin-left: -50px;
    border-radius: 10px 10px 0 0;
}
#identity .editor-wrapper .div_wrap {
    height: calc(100% - 280px);
}

#identity form[name="agree_form"] {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 30px 0;
}
#identity form[name="agree_form"] p {
    line-height: 24px;
    font-size: 16px;
}
#identity .check_wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}
#identity .check_wrap label {
    line-height: 20px;
    font-size: 15px;
    padding-left: 10px;
}

#identity .list_box {
    padding: 20px 20px 20px 40px;
    border: 1px solid #ccc;
    border-radius: 10px;
}
#identity .list_box li {
    line-height: 24px;
    list-style-type: disc;
}
#identity .list_box li + li {
    margin-top: 5px;
}
#identity .list_box.num li {
    list-style-type: decimal;
    padding-left: 5px;
}

/* 시험 */

#exam .remaining_time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    width: 350px;
    margin: 0 auto;
    padding: 10px 0;
}
#exam .remaining_time .txt p {
    font-size: 18px;
}
#exam .remaining_time .txt h1 {
    font-size: 45px;
    font-weight: 700;
    color: #C70505;
    margin-top: 10px;
}
#exam .info_box {
    width: 100%;
    line-height: 24px;
    font-size: 16px;
    text-align: center;
    padding: 20px;
    background: #f5f5f5;
}

.step_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 280px);
}
#exam .step_overlay {
    height: 100%;
}
.tab-content,
.tab-pane {
    height: 100%;
}
.editor-wrapper {
    position: relative;
    width: 1000px;
    height: calc(100% - 40px);
    margin: 20px auto;
    padding-left: 50px;
    overflow: overlay;
}
.editor-wrapper .counter {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.exam .editor-wrapper .counter {
    margin-top: 80px;
}
.editor-wrapper .counter span {
    display: flex;
    align-items: center;
    width: max-content;
    height: 40px;
    font-size: 12px;
    color: #aaa;
}
.editor-wrapper .editorDIV {
    position: relative;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}
.editor-wrapper.exam_editer .editorDIV {
    border-bottom: 1px solid #ccc;
    border-radius: 10px;
    overflow: hidden;
}
.editor-wrapper .editor_head {
    table-layout: fixed;
}
.editor-wrapper .editor_head thead {
    color: #fff;
    background: #003664;
}
.editor-wrapper .editor_head tbody {
    color: #003664;
    background: #E3EFFF;
}
.editor-wrapper .editor_head tr > * {
    height: 40px;
    font-weight: 700;
    text-align: center;
}
.editor-wrapper .editor_head tr > * + * {
    box-shadow: inset 1px 0 0 #B4D4FF;
}
.editor-wrapper .div_wrap {
    width: 100%;
    height: 100%;
}
.editor-wrapper .div_wrap .page {
    padding: 0 10px 0 20px;
    background: #fff;
    border-radius: 10px;
}
.editor-wrapper .div_wrap .page:last-child {
    border-radius: 0 0 10px 10px;
}
.editor-wrapper .div_wrap .page:first-child {
    border-radius: 10px 10px 0 0;
}
.editor-wrapper .div_wrap .page:nth-child(even) {
    background: #f3f7ff;
}
.editor-wrapper .div_wrap .page > div {
    height: 40px;
    line-height: 30px;
    font-size: 20px;
    letter-spacing: 0;
    padding: 5px 10px;
    border-bottom: 1px solid #eee;
}
.editorDIVArea {
    line-height: 40px;
    font-size: 20px;
    letter-spacing: 0;
    padding: 0 18px 0 18px;
}
.editorDIVArea:focus {
    outline: none;
}

/* 툴박스 */

.tool_box {
    position: fixed;
    top: 95px;
    left: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 70px;
    height: calc(100% - 175px);
    padding: 30px 0;
    border: 1px solid #ccc;
    border-radius: 10px;
    background: #DFE4E4;
}
.tool_box .btn_group,
.tool_box .btn_group > .step_wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.tool_box .btn_group button {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px;
    transition: all 0.1s ease;
}
.tool_box .btn_group button:hover {
    background-size: 22px;
}
.tool_box .redo {
    background-image: url("../images/redo.svg");
}
.tool_box .undo {
    background-image: url("../images/undo.svg");
}
.tool_box .align {
    background-image: url("../images/align.svg");
}
.tool_box .copy {
    background-image: url("../images/copy.svg");
}
.tool_box .cut {
    background-image: url("../images/cut.svg");
}
.tool_box .clipboard {
    background-image: url("../images/clipboard.svg");
}
.tool_box .symbol {
    flex: 0 0 20px !important;
    height: 20px !important;
    font-weight: 700;
    color: #333;
    padding: 0;
}
.tool_box .plus {
    background-image: url("../images/search-plus.svg");
}
.tool_box .minus {
    background-image: url("../images/search-minus.svg");
}
.tool_box .lock {
    background-image: url("../images/lock.svg");
}
.tool_box .btn_group button.reset {
    flex: 0 0 46px;
    width: 46px;
    height: 26px;
    font-size: 12px;
    text-align: center;
    color: #555;
    padding: 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #fbfbfb;
}
.tool_box .battery {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 26px;
    font-size: 11px;
    font-weight: 700;
    color: #72A8EE;
    user-select: none;
    background: url("../images/battery.svg") no-repeat center;
    background-size: 46px;
    cursor: pointer;
}

.align-list-wrapper {
    top: 225px;
}
.symbol-list-wrapper {
    top: 425px;
}
.pop {
    position: fixed;
    left: 100px;
    max-width: 135px;
    padding: 35px 15px 15px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background: #fff;
    transition: all 0.2s ease;
    z-index: 100;
    overflow: hidden;
}
.pop .close {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0;
}
.pop .close > img {
    vertical-align: top;
}
.pop .list_group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    padding: 10px 0;
}
.pop .list_group {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 10px 0;
}
.align-list-wrapper .list_group {
    flex-direction: column;
    gap: 10px;
}
.align-list-wrapper .list_group button {
    width: 20px;
}
.pop .btn {
    line-height: 20px;
    font-size: 16px;
    color: #333;
    padding: 0;
    background: transparent;
}


.toast-container {
    position: fixed;
    left: 110px;
    bottom: 100px;
}
.toast-container .toast {
    width: 420px;
    padding: 30px;
    border-radius: 20px;
    background: #fff;
}
.toast-container .toast-header {
    padding: 0;
    border: none;
}
.toast-container .toast-header h3 {
    font-weight: 700;
    color: #333;
}
.toast-container .toast-body {
    padding: 0;
    margin-top: 20px;
}
.toast-container .toast-body h5 {
    font-weight: 700;
}
.toast-container .toast-body p {
    line-height: 24px;
    font-size: 16px;
    margin-top: 10px;
}

#exam .lock {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100%;
    gap: 50px;
}
#exam .lock > img {
    max-width: 130px;
}

#exam .error {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100%;
    gap: 50px;
}
#errorModal .modal-body {
    text-align: center;
}
#errorModal  .modal-body figure img {
    max-width: 100px;
}
#errorModal  .modal-body p {
    line-height: 24px;
    font-size: 16px;
    margin-top: 30px;
}

/* 답안 */

.answer_wrap {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 50px;
    width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding-top: 70px;
}
.answer_wrap .user_info {
    flex: 0 0 350px;
    padding: 30px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background: #fff;
}
.answer_wrap .user_info h2 {
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
}
.answer_wrap .date {
    line-height: 19px;
    font-size: 13px;
    color: #666;
    margin-top: 20px;
}

.sign_pad {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    height: 200px;
    padding-top: 40px;
    margin-top: 20px;
    background: #fff;
    border: 1px solid #ccc;
}
.sign_pad:before {
    position: absolute;
    top: 10px;
    left: 15px;
    display: block;
    line-height: 30px;
    color: #666;
    content: "서명(sign)";
}
form .sign_pad:after {
    position: absolute;
    top: 10px;
    right: 50px;
    display: block;
    line-height: 30px;
    color: #666;
    content: "정자로 본인 이름을 써 주세요";
}
.sign_pad .redo {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 7px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.sign_pad .redo:hover {
    border-color: #aaa;
}
.sign_pad figure {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.sign_pad figure > img {
    max-width: 200px;
}


.answer_wrap .editor-wrapper {
    height: calc(100% - 20px);
    margin: 0;
    padding-left: 0;
    overflow: unset;
}
.answer_wrap .editor-wrapper .pager {
    position: absolute;
    bottom: 5px;
    left: calc(100% + 20px);
    line-height: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    color: #666;
    padding: 5px 10px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 2px 2px 10px rgb(0 0 0 / 10%);
}
.answer_wrap .editor-wrapper .pager:before {
    position: absolute;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    content: "";
    border-style: solid;
    border-width: 7px 7px 7px 0;
    border-color: transparent;
    border-right-color: #fff;
}
.answer_wrap .editor-wrapper .editorDIV {
    height: 100%;
    overflow: overlay;
}
.answer_wrap .editor-wrapper .page_view {
    position: absolute;
    top: -50px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 5px 15px;
    border: 1px solid #ccc;
    border-radius: 10px;
}
.answer_wrap .editor-wrapper .page_view:before {
    line-height: 20px;
    font-weight: 700;
    color: #003664;
    content: "작성한 답안을 끝까지 확인하세요";
}
.answer_wrap .editor-wrapper .page_view > li {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    transition: all 0.2s ease;
    cursor: pointer;
}
.answer_wrap .editor-wrapper .page_view > li.on {
    background: #003664;
}
.answer_wrap .editor-wrapper .page_view > li:hover {
    filter: brightness(1.1);
}

#countdownModal .modal-header {
    justify-content: center;
}
#countdownModal .modal-body {
    text-align: center;
}
#countdownModal .modal-body > p {
    line-height: 24px;
    font-size: 16px;
}
#countdownModal .modal-body > h1 {
    width: 100px;
    height: 100px;
    line-height: 85px;
    font-size: 50px;
    font-weight: 700;
    text-align: center;
    color: #C70505;
    margin: 0 auto;
    border-radius: 50%;
    border: 5px solid #C70505;
}

#endModal {
    z-index: 2000;
}
#endModal .modal-header {
    justify-content: center;
}
#endModal .modal-body {
    text-align: center;
}
#endModal .modal-body figure {
    display: inline-block;
    width: 100px;
}