/* global */
@import url('https://fonts.googleapis.com/css?family=Roboto');
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css");
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&display=swap');

body{
    margin: 0;
    padding: 0;
    transition:
            color 0.5s,
            background-color 0.5s;
    line-height: 1.6;
    font-family:
            Inter,
            -apple-system,
            BlinkMacSystemFont,
            'Segoe UI',
            Roboto,
            Oxygen,
            Ubuntu,
            Cantarell,
            'Fira Sans',
            'Droid Sans',
            'Helvetica Neue',
            sans-serif;
    font-size: 16px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

h1, h2, h3, h4, h5 {
    /* font-family: 'Merriweather', Times, serif; */
    font-family: "Quicksand", sans-serif;
    /*font-family: 'Poppins', 'Roboto', sans-serif;*/
    /* font-family: 'Ubuntu', sans-serif; */
    /* font-family: Helvetica, sans-serif; */
    /* font-weight: 500; */
}

a {
    color: inherit;
    height: fit-content;
}

a:hover {
    color: #999;
}

.wrapper {
    max-width: 960px;
}

/* index.html */

#main{
    display: flex;
    flex-wrap: wrap;
    position: relative;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    /* top: 53px; */
    justify-content: center;
}

.navbar {
    background-color: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: saturate(1.8) blur(20px);
    -webkit-backdrop-filter: saturate(1.8) blur(20px);
    width: 100vw;
    justify-content: center;
    font-size: 14px;
    position: fixed;
    color: gray;
    z-index: 100;
    transition: all 0.2s ease-in-out;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler:focus,
.navbar-toggler:active {
    outline: none !important;
    box-shadow: none !important;
}

.logo {
    height: 18px;
    position: relative;
    top: -4px;
}

.mobile-hide {
    transition: all 0.4s ease-in-out;
}

.nav-item-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hide {
    display: none;
}

#avatar {
    width: 100%;
    max-width: 240px;
    border-radius: 120px;
    overflow: hidden;
}

.info-banner{
    width: 100vw;
    height: fit-content;
    transition: all 0.4s ease-in-out;
}

#info-banner {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
    /* border-top: 0.5px solid lightgray; */
    border-bottom: 0.5px solid lightgray;
}

#info-banner a {
    text-decoration: none;
    color: rgba(0, 0, 0, 0.4);
    background-color: rgba(0, 0, 0, 0.1);
    /* border-color: rgba(0, 0, 0, 0.5);
    border-width: 1px; */
    border-radius: 30px;
    padding: 5px 5px 5px 5px;
    /* font-size: 16px; */
}

#info-banner .background-filter {
    background-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: saturate(1.8) blur(30px);
    -webkit-backdrop-filter: saturate(1.8) blur(30px);
    width: 100vw;
    height: 100vh;
    /* background-image: url('images/flow.svg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat; */
}

#info-banner .d-inline-flex {
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-info-icon{
    font-size: 20px;
    margin-left: 6px;
    margin-right: 6px;
}

.card img {
    width: 100%;
    /* height: 100%;
    object-fit: cover; */
}

.card {
    /* box-shadow: 0 0 10px rgba(0,0,0,0.1); */
    overflow: hidden;
    background-color: transparent;
}

.research-card{
    border: none;
    margin-top: 40px;
    margin-bottom: 40px;
}

.btn-research {
    font-size: 13px;
    padding-top: 2px;
    padding-bottom: 2px;
    padding-left: 9px;
    padding-right: 9px;
}

.btn-collapse {
    font-size: 15px;
    padding-top: 2px;
    padding-bottom: 2px;
    padding-left: 9px;
    padding-right: 9px;
    border-radius: 20px;
}

.bg-tag {
    border-radius: 20px;
    font-weight: 600;
    color: rgb(13, 110, 253);
    background-color: rgba(13, 110, 253, 0.25) !important;
}

.news-card
{
    overflow: hidden;
    text-align: left;
    border-left: 3px solid #ddd;
    padding-left: 15px;
    margin-bottom: 30px;
}

.footer{
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999999;
    border-top-style: solid;
    border-width: 1px;
    border-color: #dddddd;
}

.figure img{
    padding: 5px;
    /* max-height: 400px;  */
    width: 100%;
    /* width: auto; */
    border-radius: 25px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.lightbox-trigger {
    cursor: zoom-in;
}

#imageLightboxModal .modal-content {
    background: transparent;
    border: 0;
    box-shadow: none;
}

#imageLightboxModal .btn-close {
    position: absolute;
    font-size: 24px;
    top: -48px;
    right: 0px;
}

/* #modal-close-btn {
    position: fixed !important;
    right: 12px;
    top: 12px;
    z-index: 2;
    font-size: 24px;
} */

#imageLightboxModal img {
    max-height: calc(100vh - 2rem);
    height: auto;
    width: auto;
    max-width: 100%;
    border-radius: 25px;
}

.math {
    /* display: inline-block; */
    /* max-width: calc(100vw - 48px); */
    overflow-x: auto;
    overflow-y: scroll;
    white-space: normal;
}

/* ensure MathJax output doesn’t overflow container */
.mjx-container {
    max-width: 100% !important;
    overflow-x: auto;
    overflow-y: scroll;
}

/* keep display equations block-level with scroll if needed */
.mjx-container.MathJax_Display {
    display: block !important;
    padding-bottom: 0.25rem;
}



@media (max-width: 992px) {
    .navbar {
        justify-content: space-between;
    }

    .mobile-hide {
        height: 0;
        z-index: 2;
        overflow: hidden;
        width: 100vw;
        background-color: transparent;
        font-size: 17px;
    }

    .mobile-hide .navbar-nav {
        margin: 25px;
        margin-left: 10px;
        margin-right: 10px;
    }

    .mobile-show {
        height: calc(100vh - 54px);
    }

    .profile-button-active {
        font-size: 25px;
    }

    .nav-item-custom {
        margin-bottom: 10px;
    }

    .hide {
        display: block;
    }

    .info-banner .wrapper {
        flex-direction: column;
        text-align: center;
    }

    .info-banner .first {
        order: 2;
        /* margin-top: 24px; */
    }

    .info-banner .second {
        order: 1;
    }

    .news-date{
        flex-direction: row;
        justify-content: normal;
        margin-bottom: 10px;
    }

    .news-date-month{
        margin-left: 8px;
        margin-top: 2px;
        font-size: 14px;
    }

    .footer{
        flex-direction: column;
        align-items: center;
    }

    .btn-research{
        font-size: 0;
        margin-right: 10px;
        margin-bottom: 10px;
        height: 40px!important;
        border-radius: 20px;
    }

    .btn-research i{
        font-size: 20px;
    }

    .btn-arxiv{
        width: 40px;
        height: 36px;
    }

    .btn-arxiv img{
        width: 13px!important;
    }
}
