/* base */
* {
    padding: 0;
    margin: 0;
    border: 0;
}

*, *:before, *:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -o-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    font-size: 14px;
    font-family: sans-serif;
    color: #333;
    line-height: 1;
    background-size: cover;
    background-attachment: fixed;
}

a{
    color: #084790;
}
a:active{
    color: #2867a0;
}

.hide{
    visibility:hidden;
}


/* header */
header{
    max-width: 500px;
    margin: 40px auto;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
}
@media (max-width: 500px){
    header{
        margin: 0 auto 30px;
    }
}
header .manual-logo{
    margin-top: 30px;
    height: 80px;
    display: -webkit-box;
    -webkit-box-pack: center;
    -webkit-box-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}
header .manual-logo img{
    max-width: 240px;
    max-height: 100%;
}
header p.help-text{
    font-size: 18px;
    font-weight: bold;
    color: #2867a0;
    margin: 20px 0;
}
header form{
    margin-bottom: 30px;
}
header form div{
    margin: 20px auto;
}
header input[type="text"], header input[type="search"]{
    padding: 5px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 60%;
}
header button, header input[type="submit"]{
    cursor: pointer;
    background-color: #084790;
    color: #fff;
    font-size: 18px;
    padding: 5px 30px;
    border-radius: 5px;
    width: 120px;
}
header button:hover, header input[type="submit"]:hover{
    background-color: #2867a0;
}

main{
    margin-bottom: 40px;
}


/* table of contents */
section.table-of-contents{
    /* max-width: 700px; */
    max-width: 21cm;
    margin: 40px auto;
    word-break: break-all;
    background-color: #fff;
}
section.table-of-contents h2,
section.table-of-contents h3,
section.table-of-contents h4{
    position: relative;
    margin-top: 0;
    margin-bottom: 0;
    /* padding: .5em 1em; */
    padding: 10px 20px;
    font-size: 18.66px;
}
section.table-of-contents h2:hover,
section.table-of-contents h3:hover,
section.table-of-contents h4:hover:not(.search_count){
    background-color: #eee;
}

section.table-of-contents.ck-content h2,
section.table-of-contents.ck-content h3,
section.table-of-contents.ck-content h4{
    /*padding-left: 70px;*//* .num width + padding(10px) */
}

section.table-of-contents > div{
    /* padding: 20px 40px; */
    padding: 40px;
}
@media (max-width: 500px){
    section.table-of-contents > div{
        padding: 5px 10px;
    }
}

section.table-of-contents .num::before,.ck-content .num-serif::before{
    margin-left: -40px;
}

section.table-of-contents a{
    display: block;
    color: #333;
    text-decoration: none;
}

section.table-of-contents li{
    /* cursor: pointer; */
}
section.table-of-contents li .open, section.table-of-contents li .close{
    cursor: pointer;
}
section.table-of-contents ul{
    transition: max-height 0.3s;
    /* border-left: 1px solid black; */
    overflow: hidden;
}

section.table-of-contents li > div{
    position: relative;
}

section.table-of-contents ul ul,
section.table-of-contents .close .open + div > ul{
    opacity: 0;
    visibility: hidden;
}
section.table-of-contents .open + div > ul{
    opacity: 1;
    visibility: visible;
}
section.table-of-contents .close + div > ul{
    opacity: 0;
    border: none;
}

section.table-of-contents .open::after{
    content:"";
    display:block;
    width:8px;
    height:8px;
    position: absolute;
    top: 45%;
    /* right: 0.5em; */
    right: 15px;
    border-top: #000 2px solid;
    border-right: #000 2px solid;
    transform: rotate(135deg);
    transition: all 0.3s;
}
section.table-of-contents .close::after{
    content:"";
    display:block;
    width:8px;
    height:8px;
    position: absolute;
    top: 45%;
    /* right: 0.5em; */
    right: 15px;
    border-top: #000 2px solid;
    border-right: #000 2px solid;
    transform: rotate(-45deg);
    transition: all 0.3s;
}

section.table-of-contents ul{
    border-top: 1px solid #ccc;
    border-left: 1px solid #ccc;
    background-color: #ccc;
    padding-left: 0;
}
/* section.table-of-contents > div > ul:first-of-type{
    border-top: none;
} */
section.table-of-contents > div > ul:last-of-type{
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}
section.table-of-contents ul div{
    /* background-color: #33ccff; */
    border-left: 2em solid #33ccff;
}
section.table-of-contents ul ul div{
    /* background-color: #88aaff; */
    border-left: 2em solid #88aaff;
}
section.table-of-contents li{
    margin: 1px 0;
    background-color: #fff;
}

section.table-of-contents ul > li:first-of-type{
    margin-top: 0;
}
section.table-of-contents ul > li:last-of-type{
    margin-bottom: 0;
}

/* navigation */
main nav{
    display: flex;
    justify-content: space-between;
    width: 21cm;
    margin: 0 auto;
    border: 1px solid #ddd;
    border-bottom: none;
    padding: 20px;
    padding-bottom: 0;
    background-color: #fff;
}
main nav button{
    cursor: pointer;
    background-color: transparent;
}
@media (max-width: 500px){
    main nav{
        width: 100%;
    }
}

/* manual */
.ck-content.manual{
    border-top: none;
    box-shadow: none;
    /* min-height: auto; */
    min-height: 0; /* for webkit */
}
.ck-content.manual::after{
    content: '';
    clear: both;
    display: block;
}
.ck-content::after{
    content: '';
    clear: both;
    display: block;
}

@media (max-width: 500px){
    .ck-content.manual{
        width: 100%;
        
    }
}

.ck-content.manual > h1:nth-of-type(1){
    margin-top: 10px;
}
.ck-content.manual > h1.fsz-h2{
    font-size: 21px;
}
.ck-content.manual > h1.fsz-h3{
    font-size: 16px;
}
.ck-content.manual > h1.fsz-h4{
    font-size: 16px;
}

.ck-content .page-break{
    padding: 0;
}
.ck-content .page-break:after{
    display: none;
}

.ck-content .highlight .highlight_word{
    background-color: #E8F0FE;
    /* box-shadow: 0 0 5px #333; */
    margin: 0 5px;
    padding: 0 5px;
    /* color: #fff; */
}
/*.ck-content .highlight .highlight_word1{
    background-color: #ffff00;
    color: #333;
}
.ck-content .highlight .highlight_word2{
    background-color: #00ffff;
    color: #333;
}
.ck-content .highlight .highlight_word3{
    background-color: #00ff00;
    color: #333;
}
.ck-content .highlight .highlight_word4{
    background-color: #ff00ff;
    color: #fff;
}
.ck-content .highlight .highlight_word5{
    background-color: #0066ff;
    color: #fff;
} */

.cover-page h1,
.cover-page h2{
    font-size: 18.66px;
    margin: 10px 0;
}
.cover-page2{
    border: 1px solid black;
    width: 21cm;
    /* width: 20cm; */
    height: 29cm;
    /* height: 27cm; */
    display: -webkit-box;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-direction: column;
    justify-content: center;
    -webkit-box-pack: center;
    align-items: center;
    -webkit-box-align: center;
    margin: 0 auto;
}
.ck-content.manual.cover-page{
    height: 28.7cm;
    /* border: 1px solid black; */
    /* display: -webkit-box;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-direction: column;
    justify-content: center;
    -webkit-box-pack: center;
    align-items: center;
    -webkit-box-align: center; */
}
.cover-page .cover-logo{
    height: 40%;
    display: -webkit-box;
    display: flex;
    justify-content: center;
    -webkit-box-pack: center;
    align-items: flex-end;
    -webkit-box-align: end;
}
.cover-page .cover-logo > div{
    height: 200px;
    margin-bottom: 60px;
    display: -webkit-box;
    display: flex;
    justify-content: center;
    -webkit-box-pack: center;
    align-items: center;
    -webkit-box-align: center;
}
.cover-page .cover-logo > div .logo{
    max-width: 600px;
    max-height: 200px;
}

.cover-page .cover-title{
    height: 10%;
    display: -webkit-box;
    display: flex;
    align-items: center;
    -webkit-box-align: center;
    flex-direction: column;
    -webkit-box-orient: vertical;
    justify-content: center;
    -webkit-box-pack: center;
}

.cover-page .cover-revision{
    height: 50%;
    display: -webkit-box;
    display: flex;
    align-items: center;
    -webkit-box-align: center;
    flex-direction: column;
    -webkit-box-orient: vertical;
    justify-content: center;
    -webkit-box-pack: center;
}
.cover-page .table{
    margin: 60px auto 0;
}
.cover-page .table table{
    -webkit-transform: scale(0.8);
    transform: scale(0.8);
}

/* image zoom */
figure.image img{
    cursor: pointer;
}
body.openmodal{
    overflow: hidden;
}
.shadow{
    width: 100%;
    /* height: 100%; */
    height: 100vh;
    background-color: rgba(51, 51, 51, .9);
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity .5s;
    cursor: pointer;
}
.shadow.show{
    opacity: 1;
}

/* .shadow img{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    max-width: 90%;
    max-height: 90%;
} */

.shadow .wrap{
    width: 100%;
    height: 100%;
    text-align: center;
    overflow: auto;
    padding: 30px 0;
}
.shadow .wrap .inner{
    display: inline-block;
    vertical-align: middle;
    position: relative;
    max-width: 90%;
    margin-top: -20px;
}
.shadow .wrap .inner .close-icon{
    float: right;
    margin-bottom: 10px;
    font-size: 46px;
    color: #ccc;
    transition: color .3s;
}
.shadow .wrap .inner .close-icon:hover{
    color: #fff;
}
.shadow .wrap:after{
    content: '';
    display: inline-block;
    vertical-align: middle;
    width: 0;
    height: 100%;
}
.shadow img{
    width: 100%;
    cursor: default;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}