/**
*
* Libraries redefinitions
*
*/

/* Remove padding from Bootstrap columns */
.no-gutter > [class*='col-'] {
    padding-right:0;
    padding-left:0;
}

dd,
blockquote {
    padding-left: 15px;
}

dd {
    padding-bottom: 15px;
}

td:not([class]),
th:not([class]) {
    border: solid 1px #ddd;
    padding: 10px 15px 10px 15px;
    min-width: 100px;
    box-sizing: content-box;
    width: fit-content;
}

.scroll-x {
    width: 100%;
    overflow-x: auto;
    height: fit-content;
    padding-top: 10px;
    padding-bottom: 10px;
}

/**
*
* APP LEVEL STYLES
*
*/

#app-root {
    position: relative;
    font: normal 16px/24px 'Raleway', Arial, Helvetica, sans-serif;
    overflow-x: hidden;
    overflow-y: hidden;
}

#app-root .no-scroll {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

#layout-header,
#layout-page-content,
#layout-footer {
    padding-left: 5vw;
    padding-right: 5vw;
}

.space-4 {
    display: inline-block;
    width: 15px;
}

.cgtn-pos-master {
    position: relative;
    width: 100vw;
    overflow-x: hidden;
    min-width: 540px;
}

.img-inline {
    width: 1em;
}

/**
*
* HEADER
*
*/

#layout-header {
    height: 64px;
    line-height: 64px;
    -webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
    -moz-box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
    z-index: 3;
}

#layout-header > .menu-icon {
    position: absolute;
    top: 29%;
    left: 5%;
    font-size: 2em;
    cursor: pointer;
}

#layout-header > .home-icon {
    position: absolute;
    top: 29%;
    left: 20%;
    font-size: 2em;
    text-decoration: none;
}

#layout-header > .logo {
    position: absolute;
    display: inline-block;
    top: 23%;
    left: 35%;
    width: 32px;
}

#layout-header > .page-name {
    position: absolute;
    display: inline-block;
    top: 23%;
    left: 38%;
    height: 32px;
    line-height: 32px;
    font-size: 32px;
}

#layout-header > .full-text-search-form > .search-input {
    position: absolute;
    display: inline-block;
    top: 23%;
    left: 65%;
    height: 32px;
    width: 28%;
    padding-left: 32px;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

#layout-header > .full-text-search-form > .search-icon {
    position: absolute;
    display: inline-block;
    top: 34%;
    left: 65.5%;
    height: 20px;
    line-height: 20px;
    font-size: 20px;
    z-index: 4;
    color: rgba(0, 0, 0, 0.4);
}

/**
*
* SIDE MENU
*
*/

#layout-side-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    z-index: 4;
}

#layout-side-menu.closed {
    width: 0;
    overflow: hidden;
}

#layout-side-menu .side-menu-nav {
    display: inline-block;
    width: 45%;
    height: 100vh;
    background-color: white;
    overflow-y: scroll;
    overflow-x: auto;
    padding-left: 30px;
    font-size: 1.3em;
}

#layout-side-menu .side-menu-overlay {
    display: inline-block;
    width: 55%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    margin-left: -5px;
}

#layout-side-menu.closed .side-menu-overlay {
    width: 0;
    overflow: hidden;
}

#side-menu-header {
    display: block;
    position: relative;
    min-height: 120px;
    height: 120px;
    margin-bottom: 20px;
    border-bottom: solid 1px #ccc;
}

#side-menu-header .side-menu-logo-section {
    padding-top: 20px;
    padding-bottom: 20px;
    font-size: 2em;
}

#side-menu-header .side-menu-langs {
    padding-left: 130px;
}

#side-menu-header .lang-flag {
    width: 25px;
}

#side-menu-header .lang-right {
    margin-left: 15px;
}

#side-menu-header .close-icon {
    display: block;
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2em;
    color: #757575;
    cursor: pointer;
}

#side-menu-header .close-icon:hover {
    color: #b1b1b1;
}

#layout-side-menu > nav ul {
    list-style: none;
    padding-left: 0.8em;
}

#layout-side-menu > nav > ul {
    margin-left: 0;
    padding-left: 0;
}

.side-menu-root-item-title,
.side-menu-leaf-item {
    padding-top: 5px;
    padding-bottom: 5px;
}

.side-menu-root-item-title {
    display: block;
    cursor: pointer;
}

.side-menu-nav > ul > li.side-menu-root-item > .side-menu-root-item-title {
    font-size: 1.5em;
}

.side-menu-nav > ul > li.side-menu-root-item:not(:first-child) > .side-menu-root-item-title {
    padding-top: 40px;
}

.side-menu-root-item-title .caret {
    margin-left: 20px;
}

.side-menu-root-item-title .fa-caret-down {
    color: rgba(0, 0, 0, 0.4);
}

.side-menu-root-item.collapsed > .side-menu-children-items {
    height: 0;
    overflow: hidden;
}

.side-menu-root-item.expanded {
    height: inherit;
    overflow: inherit;
}

.side-menu-leaf-item.current-page > a,
.side-menu-leaf-item.current-page > a:hover,
.side-menu-leaf-item.current-page > a:active,
.side-menu-leaf-item.current-page > a:visited {
    color: #b7b7b7;
    text-decoration: none;
}

/**
*
* PAGE CONTENT
*
*/

#layout-page-content {
    z-index: 1;
    width: 98vw;
    overflow-x: hidden;
    word-wrap: break-word;
    padding-top: 30px;
    padding-left: 15vw;
    padding-right: 15vw;
    text-align: justify;
    text-justify: inter-word;
    min-height: 65vh;
}

#layout-page-content h1 {
    margin-top: 20px;
    margin-bottom: 30px;
}

#layout-page-content p,
#layout-page-content figure {
    padding-left: 15px;
}

#layout-page-content figure {
    background-color: #eee;
    padding-top: 15px;
    margin-left: 15px;
    margin-right: 15px;
    overflow-x: auto;
}

#layout-page-content figure td.gutter {
    display: none;
}

#layout-page-content .katex-display {
    overflow-x: auto;
    max-width: 100%;
    /*min-height: 100px;*/
    height: fit-content;
    /*padding-top: 15px;*/
    /*padding-bottom: 15px;*/
}

#layout-page-content .katex {
    padding-top: 15px;
    padding-bottom: 15px;
}

#layout-page-content .katex .mspace {
    width: 15px;
}

#layout-page-content .katex .thinspace {
    width: 5px;
}

h1#page-title {
    text-align: center;
    margin-top: 50px;
    /*font-size: 4em;*/
    text-transform: capitalize;
}

#layout-page-content .article-dates {
    font-size: 0.9em;
    font-style: italic;
    color: #727171;
    margin-top: 50px;
}

#layout-page-content .table-of-contents-icon {
    position: fixed;

    top: 22vh;
    right: 12vw;
    width: 60px;
    height: 60px;
    border-radius: 60px;
    padding-top: 15px;
    padding-left: 15px;

    z-index: 3;

    -webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
    -moz-box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);

    cursor: pointer;
    background-color: white;
}

#layout-page-content .table-of-contents-icon.hidden {
    width: 0;
    height: 0;
    padding: 0;
    overflow: hidden;
    box-shadow: none;
}

#layout-page-content .table-of-contents-icon > img {
    width: 32px;
    cursor: pointer;
}

#layout-page-content .table-of-contents {
    background-color: white;
    position: fixed;
    right: 0;
    top: 15vh;

    width: 30vw;
    min-height: 250px;
    height: 75vh;
    padding-top: 25px;
    padding-right: 20px;

    z-index: 3;

    -webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
    -moz-box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
}

#layout-page-content .table-of-contents.closed {
    width: 0;
    height: 0;
    padding: 0;
    overflow: hidden;
}

#layout-page-content h2,
#layout-page-content h3,
#layout-page-content h4,
#layout-page-content h5,
#layout-page-content h6 {
    text-align: left;
}

#layout-page-content .table-of-contents > h2 {
    padding-left: 25px;
    position: relative;
    width: 100%;
}

#layout-page-content .table-of-contents > h2 .close-icon {
    position: absolute;
    top: 5px;
    right: 0;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.4);
}

#layout-page-content .table-of-contents .toc {
    width: 100%;
    height: 80%;
    overflow-y: auto;
}

#layout-page-content .table-of-contents .toc li,
#layout-page-content .table-of-contents .toc-child li {
    list-style-type: none;
}

/**
*
* FOOTER
*
*/

#layout-footer {
    min-height: 80px;
    padding-top: 15px;
    padding-left: 16vw;
    font-size: 0.8em;
    /*line-height: 100px;*/
    -webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
    -moz-box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
}

#layout-footer .lang-right {
    margin-left: 15px;
}

#layout-footer .lang-flag {
    width: 20px;
}
