@font-face {
    font-family: Bariol;
    src: url(../font/bariol_regular-webfont.woff2) format('woff2');
}

@font-face {
    font-family: "Roboto Mono";
    src: url(../font/rmr.woff2) format('woff2');
}

@font-face {
    font-family: 'Roboto Condensed';
    src: url(../font/RobotoCondensed-VariableFont_wght.woff2) format('woff2');
}

@font-face {
    font-family: 'Roboto Slab';
    src: url(../font/RobotoSlab-VariableFont_wght.woff2) format('woff2');
}

@font-face {
    font-family: 'PT Serif';
    src: url(../font/PTSerif-Regular.woff2) format('woff2');
}

@font-face {
    font-family: 'PT Serif';
    src: url(../font/PTSerif-Italic.woff2) format('woff2');
    font-style: italic;
}

@font-face {
    font-family: 'PT Serif';
    src: url(../font/PTSerif-Bold.woff2) format('woff2');
    font-weight: bold;
}

@font-face {
    font-family: 'PT Serif';
    src: url(../font/PTSerif-BoldItalic.woff2) format('woff2');
    font-weight: bold;
    font-style: italic;

}

@font-face {
    font-family: 'PT Sans';
    src: url(../font/PTSans-Regular.woff2) format('woff2');
}

:root {
    --lighter_lighter_tone: #f1f4f8;
    --lighter_tone: #e4eaf2;
    --light_tone: #6096ba;
    --base_tone: #375e75;
    --dark_tone: #083c88;
}

body {
    font-family: Georgia, serif;
    margin: 0;
    padding: 0;
    background-color: var(--lighter_tone);
}

.nav_bar {
    height: 100%;
    width: 170px;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: var(--base_tone);
    overflow-x: hidden;
    color: #fff;
    font-size: 18px;
    display: flex;
    flex-direction: column;
}

/* mini title ODDM.DDMC */

#mini_title {
    text-align: center;
    font-size: 15px;
    margin-top: 16px;
    margin-bottom: 10px;
    font-family: "Roboto Slab", Bariol, Helvetica, sans-serif;
    color: #fff;
}

#mini_title a {
    text-decoration: none;
    color: #fff;
}

#mini_title a:visited {
    color: #fff;
}

/* oddm TF energy localization img */

#oddm_tfel {
    margin-bottom: 10px;
    margin-left: 14px;
    width: 142px;
    /*image width 142 */
    margin-right: 14px;
}

#menu-toggle {
    display: none;
}

.menu-button {
    display: none;
}

#menu {
    margin-top: 10px;
    margin-left: 13px;
    margin-right: 15px;
    padding: 0;
}

#menu a {
    padding: 8px;
    text-decoration: none;
    /*    font-size: 18px;*/
    color: #fff;
    display: block;
    border-radius: 7px;
}

#menu a:hover {
    background-color: #fff;
    color: var(--base_tone);
}


#lab_logo {
    position: absolute;
    width: 100%;
    height: 36px;
    bottom: 35px;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

#lab_logo a {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
    width: auto;
    height: auto;
}


#omu {
    display: block;
    position: absolute;
    font-family: "Gill Sans MT", "Gill Sans", Calibri, sans-serif;
    font-size: 13px;
    color: #fff;
    z-index: 1;
    top: auto;
    bottom: 0;
    left: 37px;
}

#sic {
    display: block;
    position: absolute;
    font-family: "Gill Sans MT", "Gill Sans", Calibri, sans-serif;
    font-size: 14px;
    color: #fff;
    z-index: 1;
    bottom: 14px;
    left: 99px;
}

#counter,
.nav_copyright {
    font-family: "Roboto Condensed", Bariol, Helvetica, sans-serif;
    font-size: 13px;
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    color: var(--lighter_tone);
}

/* for main part */

.main {
    font-family: "PT serif", Georgia, serif;
    margin-left: 170px;
    /* Same as the width of the sidenav */
    font-size: 16px;
    font-weight: 400;
    /* Increased text to enable scrolling */
    padding: 0px 20px 20px 20px;
    color: #222;
    line-height: 1.6;
    text-align: left;
    padding-bottom: 0;
    max-width: 850px;
}

.div_line_main {
    padding-left: 20px;
    padding-right: 20px;
    border-bottom: 1px dashed #333;
}

#title {
    text-align: center;
    padding-top: 20px;
}

#oddm_waveform {
    width: 600px;
}

.main a {
    color: var(--light_tone);
    text-decoration: none;
}

.main a:hover {
    text-decoration: underline;
    color: var(--base_tone);
}

#primer {
    padding-top: 10px;
    text-align: center;
    font-family: "PT serif";
    font-size: 24px;
    margin: 0;
}

.thin {
    font-weight: normal;
    font-size: 14px;
    line-height: 38px;
    display: inline-block;
    vertical-align: top;
}

#primer a {
    color: var(--base_tone);
    text-decoration: none;
}

#primer a:hover {
    color: var(--dark_tone);
    text-decoration: underline;
}

#primer_pdf_dl {
    text-align: center;
    margin: 0;
    padding: 0;
}

#primer_pdf_icon {
    display: inline-block;
    margin-bottom: -2px;
    margin-left: 3px;
    width: 18px;
}

.MathJax {
    font-size: 1em;
}

p {
    text-indent: 1em;
}

h1 {
    font-size: 24px;
    font-family: "Roboto Slab", Bariol, Calibri, sans-serif;
    font-weight: 599;
    color: #333;
}

h2 {
    font-family: Georgia;
}

.sub_title {
    font-family: Bariol, Calibri, sans-serif;
    font-size: 17px;
    font-weight: normal;
    color: #000;
    margin-top: 10px;
    margin-bottom: 10px;
}

.news,
.paper,
.reference {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2em;
    padding-left: 3em;
    margin-bottom: 1.5em;
}

.paper {
    padding-left: 2em;
    text-indent: 1em;
}

.reference {
    font-size: 14px;
}

.paper img {
    white-space: nowrap;
}

.figure {
    margin-top: 15px;
    margin-bottom: 15px;
    text-align: center;
}

.caption {
    margin-top: 5px;
}

.emph {
    font-style: italic;
    color: #6c9a80;
}

.footnote {
    font-size: 14px;
    list-style: none;
    margin-left: 1.5em;
    margin-right: 1.5em;
    padding-left: 1em;
    text-indent: -1em;
}

.journal {
    font-style: italic;
}

table,
td,
th {
    border: 1px solid #595959;
    border-collapse: collapse;
}

td,
th {
    padding: 5px;
}

th {
    background: var(--lighter_tone);
    text-align: center;
}

table td:nth-child(1) {
    text-align: center;
}

#main_footer {
    margin-left: 25px;
    margin-right: 25px;
    width: 100%;
    padding: 0;
    text-align: center;
    /*    font-family: Helvetica, sans-serif;*/
    font-size: 11px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

#copyright {
    font-size: 12px;
    text-align: center;
    margin-top: 12px;
    margin-bottom: 12px;
}

/*.copyleft {
    display: inline-block;
    transform: rotate(180deg);
}*/


/* for code segments */

pre {
    page-break-inside: avoid;
    font-family: "Roboto Mono", monospace;
    font-size: 13px;
    line-height: 1.5;
    margin: 1.2em;
    margin-left: 0em;
    margin-right: 0em;
    overflow: auto;
    padding: 0em;
    display: block;
    word-wrap: break-word;
}


#copyright_notice {
    text-indent: 0em;
}


#modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 400px;
    text-align: center;
}

.modal-buttons {
    margin-top: 20px;
}

.modal-buttons button {
    padding: 10px 18px;
    margin: 0 5px;
    border-radius: 5px;
    cursor: pointer;
}

#agreeBtn {
    background-color: #007bff;
    /*#28a745;*/
    color: white;
    border: none;
}

#disagreeBtn {
    background-color: #ccc;
    border: none;
}

.download-link {
    font-size: 16px;
    padding: 12px 24px;
    background-color: var(--base_tone);
    /*#007bff;*/
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}


#downloadForm {
    text-align: center;
    margin: 0 auto;
}

input[type="text"],
input[type="email"] {
    height: 36px;
    padding: 8px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;

    /* Improve visibility in Safari */
    border: 1px solid #999;
    background-color: #fff;
    color: #000;
    border-radius: 4px;
}

input[type="text"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 4px rgba(0, 123, 255, 0.5);
}


.form-field {
    display: flex;
    align-items: center;
    flex-direction: row;
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 10px;
}

.form-field label {
    width: 110px;
    margin-right: 10px;
    text-align: left;
}

.form-field input {
    flex: 1;
    padding: 5px;
}


#captchaImage {
    border: 1px solid #555;
    border-radius: 10px;
}

#captchaImageRow {
    margin-bottom: 15px;
}

/* --------------------- */

#faq {

    padding-left: 1.5em;
}

#faq .paper,
#faq .reference {
    margin-right: 1.5em;
}

.remark {
    font-style: italic;
    border: 1px solid #444;
    padding: 1em;
    border-radius: 8px;
    margin-bottom: 1em;
}

.bold {
    font-style: normal;
    font-weight: bold;
}

/* for Tablet */

@media screen and (max-width: 870px) {

    .nav_bar {
        width: 100%;
        height: 45px;
        flex-direction: row-reverse;
        align-items: center;
        padding-bottom: 5px;
        padding-top: 5px;
        justify-content: space-between;
        position: fixed;
        /*        box-sizing: border-box;*/
    }


    #oddm_tfel {
        display: none;
    }

    #mini_title {
        display: none;
    }

    #menu-toggle {
        display: none;
    }

    .menu-button {
        display: none;
    }

    #menu {
        margin-top: auto;
        margin-bottom: auto;
        margin-right: 10px;
        display: inline-block;
    }

    #menu a {
        display: inline;
        text-align: center;
        font-size: 18px;
    }

    #lab_logo {
        position: absolute;
        width: 90px;
        height: 27px;
        top: auto;
        bottom: auto;
        left: 20px;
        right: auto;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }

    #lab_logo a {
        position: relative;
        display: flex;
        justify-content: center;
        padding: 0;
        margin: 0;
        width: auto;
        height: auto;
    }

    #lab_logo img {
        margin-top: auto;
        margin-bottom: auto;
        width: 90px;
        content: url("../img/lab_logo_s_no_text_web.svg");
    }

    #omu {
        font-size: 10px;
        top: auto;
        bottom: 1px;
        left: 11px;
        right: auto;
    }

    #sic {
        font-size: 11px;
        top: auto;
        bottom: 11px;
        left: 54px;
        right: auto;
    }


    #counter,
    .nav_copyright {
        display: none;
    }


    /* for main part */

    .main {
        margin-top: 45px;
        margin-left: 0;
    }

    h1 {
        font-size: 23px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 15px;
    }

    #oddm_waveform {
        width: 600px;
    }

}


/* for Smartphone */

@media screen and (max-width: 640px) {

    .nav_bar {
        width: 100%;
        height: 45px;
        flex-direction: row;
        align-items: center;
        padding-bottom: 5px;
        padding-top: 5px;
        justify-content: space-between;
        position: fixed;
        font-size: 15px;
    }

    .nav_bar a {
        color: #fff;
        font-size: 18px;
    }

    #mini_title {
        display: block;
        margin-top: auto;
        margin-bottom: auto;
        margin-left: 60px;
    }

    .nav_bar a:visited {
        color: #fff;
    }

    .nav_bar a:hover {
        color: #eee;
    }

    #oddm_tfel {
        display: none;
    }

    .menu-button {
        display: block;
        cursor: pointer;
        padding: 0;
        margin-left: 10px;
        z-index: 2;
    }

    /* for toggle button */

    .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px 0;
        background-color: #fff;
        border-radius: 5px;
        transition: 0.4s;
    }

    #menu-toggle:checked~.menu-button .bar:nth-child(1) {
        transform: rotate(45deg) translate(4px, 5px);
    }

    #menu-toggle:checked~.menu-button .bar:nth-child(2) {
        opacity: 0;
    }

    #menu-toggle:checked~.menu-button .bar:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -7px);
    }

    /* for menu */

    #menu {
        position: fixed;
        top: 55px;
        left: -100%;
        margin: 0;
        padding: 5px;
        margin-top: 2px;
        margin-right: 2px;
        z-index: 1;
        /*        background-color: #375e75;*/
        background-color: var(--base_tone);
        opacity: 0.85;
        transition: 0.5s;
        display: block;
    }

    #menu-toggle:checked~#menu {
        left: 2px;
    }

    #menu a {
        display: block;
        text-align: center;
        font-size: 18px;
        padding: 10px 15px 10px 15px;
    }

    #lab_logo {
        position: static;
        margin-right: 10px;
    }

    #lab_logo a {
        position: relative;
        display: flex;
        justify-content: center;
        padding: 0;
        margin: 0;
        width: auto;
        height: auto;
    }

    #lab_logo img {
        margin-top: auto;
        margin-bottom: auto;
        width: 90px;
        content: url("../img/lab_logo_s_no_text_web.svg");
    }

    #omu {
        font-size: 10px;
        top: 28px;
        right: 66px;
        left: auto;
        bottom: auto;
    }

    #sic {
        font-size: 11px;
        top: 16px;
        bottom: auto;
        right: 12px;
        left: auto;
    }

    #counter,
    .nav_copyright {
        display: none;
    }



    /* for main part */

    .main {
        font-size: 14px;
        margin-top: 45px;
        margin-left: 0;
    }

    h1 {
        font-size: 22px;
    }

    h2 {
        font-size: 18px;
    }

    h3 {
        font-size: 14px;
    }

    #oddm_waveform,
    #ut_fig,
    #uf_fig,
    #fofdm_fig,
    #simu_model_fig {
        width: 93%;
    }

    .sub_title {
        font-size: 15px;
    }

    .paper {
        padding-left: 1.5em;
        padding-right: 1.5em;
    }

    pre {
        margin-left: 0;
        maegin-right: 0;
    }


    #faq {
        padding-left: 0em;
    }

    #faq .paper,
    #faq .reference {
        margin-right: 0em;
    }
}

@media screen and (max-width: 375px) {

    .sub_title {
        font-size: 13px;
    }

}