html {
    text-align: -webkit-center;
    width: 100%;
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
    box-sizing: border-box;  
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif;
    font-size: 1rem; line-height: 1.5rem; font-weight: 400;font-style:normal;letter-spacing:0;
    margin: 0;
    padding: 0;
}

main {
    flex: 1;
    height:auto;
    padding: 40px 12% 40px 12%;
}

h1, h2, h3, h4 {
    font-weight: 450;
    line-height: 2rem;
    padding: 0;
    margin: 0;
}

h5{
    padding: 0;
    margin: 0;
}

p {
    padding: 10px 0;
}

li, p {
    font-size: 0.9rem;
    line-height: 1.5rem;
    font-weight: 300;
    text-align: justify;
    hyphens: auto;
    color:rgb(68, 68, 68);
    margin: 0;
}

ul {
    padding-inline: 20px 0px;
    margin: 0;
}

li {
    list-style-type: none;
    position: relative;    /* It's needed for setting position to absolute in the next rule. */
}

li::before {
    content: '•';
    position: absolute;
    left: -1rem;          /* Adjust this value so that it appears where you want. */
    font-size: 1.5rem;      /* Adjust this value so that it appears what size you want. */
}

footer {
    position: static;
    align-items: center;
    height: 40px;
    color: rgb(0, 0, 0);
    border-top: 2px dotted #968a8a;
    padding: 10px 0;
    margin: 0;
}

footer p {
    text-align: center;
    font-size: 0.9rem;
}

header {
    margin: 0;
    padding: 2% 0;
}

.meta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.github-star {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.overview, .citation {
    align-items: center;
    justify-content: center;
    text-align: left;
    padding: 2% 0 5% 0;
}

#paper_link {
    font-weight: 330;
}

#p_bold {
    font-weight: 600;
}

.bibtex-box {
    position: relative;
    background-color: #f5f5f5;
    border-radius: 6px;
    padding: 12px;
    font-family: monospace;
    overflow: hidden; /* Prevent button from being affected by scroll */
}

#bibtex {
    font-size: 0.85rem;
    font-weight: 300;
    max-height: 220px;
    overflow: auto;
    margin: 0;
    padding-right: 30px;
}

.copy-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 12px;
    padding: 4px 8px;
    background-color: #e0e0e0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    z-index: 10;
}

.copy-btn:hover {
    background-color: #d0d0d0;
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #444;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    z-index: 1000;
}

.image-container {
    margin-left: auto;
    margin-right: auto
    
}

.image-caption {
    font-size: 0.85rem;
    line-height: 1.3rem;
    text-align: center;
    padding: 6px 0 12px 0;
}

.overview-image {
    width: 100%;
    display: block; 
    margin-left: auto;
    margin-right: auto
}


@media screen and (max-width: 500px) {
    main #a_text, 
    main li, 
    main p, #bibtex {
        font-size: 0.8rem;
        line-height: 1.4rem;
    }

    h1, h2, h3, h4, h5 {
        line-height: 1.7rem;
    }
}

@media screen and (min-width: 1100px) {
    main {
    padding: 40px 20%;
    }
}