/* RESEARCH PART */
.research {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 40px;
}

@media (max-width: 768px) {
    .research {
        flex-direction: column;
        text-align: center;
    }
}

.publication {
    width: 65%;
    margin-left: 20%;
    border-radius: 25px;
}

.center-align {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

#research-art {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.article {
    margin-left: 2.5%;
    margin-right: 2.5%;
    width: 500px;
    background: #1d1d1d;
    border-radius: 25px;
    box-shadow: 0 10px 12px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.article img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content {
    padding: 20px;
    flex-grow: 1;
    position: relative;
}

.article-title {
    font-size: 1.5rem;
    margin: 10px 0;
    color: white;
}

.article-text {
    font-size: 1rem;
    color: #999999;
    max-width: calc(100% - 60px);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-date {
    font-size: 0.8rem;
    color: #767676;
    margin-top: 5px;
}

.expand-btn {
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: rgba(255, 255, 255, 0.7);
    font-size: 30px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    line-height: 1; 
    cursor: pointer;
    transition: color 0.3s, background 0.3s;
}

.expand-btn:hover {
    color: black;
    background: white;
}

@media (max-width: 768px) {
    .article {
        margin-left: 5%;
        margin-right: 5%;
    }
}

.overlay-a {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    overflow-y: auto;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    scrollbar-color: transparent;
}

.overlay-a::-webkit-scrollbar {
    display: none;
}

.full-article::-webkit-scrollbar {
    display: none; 
}

.overlay-a.active {
    opacity: 1;
    visibility: visible;
}

.full-article {
    margin-top: 100px;
    background: transparent;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    height: 100%;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.overlay-a.active .full-article {
    transform: scale(1);
}

.close-btn-a {
    position: fixed;
    top: 30px;
    right: 30px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    z-index: 1001;
}

/* LISA embedded code in research part */
.lisa {
    width: 100%;
    margin-left: 5%;
    margin-right: 5%;
    margin-bottom: 30px;
    justify-items: center;
    display: flex;
}

.lisa-embed {
    width: 90%;
    justify-self: center;
    background-color: black;
    background-image: url("/media/lisa.png");
    border-radius: 25px;
    box-shadow: 0 10px 12px rgba(0, 0, 0, 0.3);
}

.lisa-embed-head {
    padding-left: 39px;
    padding-top: 39px;
    font-size: 1.8rem;
    font-weight: bold;
}

.lisa-embed-title {
    padding-left: 160px;
    margin-top: 5px;
    margin-bottom: 15px;
}

.lisa-embed-btn {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: rgb(231, 231, 231);
    border-radius: 25px;
    padding: 1px;
    margin-bottom: 8px;
    margin-right: 8px;
    padding-left: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: black;
}

.lisa-embed-btn button {
    background-image: linear-gradient(to left, rgb(85, 21, 21), rgb(255, 100, 100));
    border-radius: 25px;
    padding: 10px;
    border: none;
    color:white;
    font-size: 1.1rem;
    font-weight: bold;
}

.lisa-paper-wrap { 
    width: 100%; 
    margin: 0 auto; 
}

.lisa-header { 
    height: 1.5vh; 
    background-color: white; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    align-content: center;
    color: black;
}

.lisa-paper-content { min-height: 94.5vh; }
.lisa-paper-iframe { 
    width: 100%; 
    height: 94.5vh; 
    border: none; 
}

.lisa-bottom-bar {
    position: fixed; 
    left: 0; 
    right: 0; 
    bottom: 0;
    background:rgb(255, 255, 255);
    border-top: 1px solid #e5e7eb; 
    backdrop-filter: blur(6px);
    height: 4vh;
    width: 100vw;
}

.lisa-bottom-inner { 
    margin: 7px 20px 0 20px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between;
}

.lisa-bottom-center { 
    display: flex; 
    align-items: center; 
} 

.lisa-nav-btn, .lisa-close-btn {
  display: flex; 
  align-items: center; 
  justify-content: center;
  padding: 10px 20px;
  border-radius: 2px; 
  text-decoration: none; 
  color:#111;
}

.lisa-nav-btn[aria-disabled="true"] { 
    opacity: .45; 
    pointer-events: none; 
}

@media (width: 768px) {
    .lisa-paper-wrap { min-height: 100dvh; }
    .lisa-header { height: 56px; }   
    .lisa-bottom-bar {
        position: fixed;
        left: 0; right: 0; bottom: 0;
        height: 64px;
        width: 100%;
    }

    .lisa-paper-iframe {
        display: block;
        width: 100%;
        height: calc(100dvh - 56px - 64px);
        min-height: 320px;
        border: none;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    @supports not (height: 100dvh) {
        .lisa-paper-wrap { min-height: 100vh; }
        .lisa-paper-iframe { height: calc(100vh - 56px - 64px); }
    }
}