*, *::before, *::after {
    box-sizing: border-box;
}

/* from: https://stackoverflow.com/a/9286333/1510739 */
/* TODO: Compress fonts */ 
@font-face {
  font-family: "Computer Modern";
  src: url("./assets/fonts/cmunrm.otf");
}

@font-face {
  font-family: "Computer Modern";
  src: url("./asserts/fonts/cmunbx.otf");
  font-weight: bold;
}

@font-face {
  font-family: "Computer Modern";
  src: url("./asserts/fonts/cmunsi.otf");
  font-style: italic;
}

@font-face {
  font-family: "Computer Modern";
  src: url("./asserts/fonts/cmunbi.otf");
  font-weight: bold;
  font-style: italic;
}

body {
  font-family: "Computer Modern";
  font-size: 16px;
  width: 100%;
}

.paper {
    margin: auto;
    max-width: 60vw;
}

.arxiv-title {
    margin-top: 2em;
    display: flex;
    flex-direction: column;
    max-width: 50vw;
    text-align: center;
    margin-right: auto;
    margin-left: auto;
    line-height: 1;
}

.title-border-top {
    height: 8px;
    width: 100%;
    background-color: black;
}

.title-border-bottom {
    height: 3px;
    width: 100%;
    background-color: black;
}

.authors {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.author {
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 0.2em;
    margin: 1em;
    align-items: center;
}

.author > b, p, a {
    margin: 0;
    text-align: justify;
    display: inline-block;
}

.author > a {
    text-decoration: none;
    color: black;
    font-size: 14px;
    font-family: "Fira Mono", monospace;
}

.author > a:visited {
    text-decoration: none;
}

.abstract {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: 50vw;
}

.paper-body {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: 60vw;
}

.paper-body > h2 {
    text-align: left;
}

.abstract > h2:not(:first-child) {
    text-align: left;
}
img {
    padding: 0 20px;
    margin-top: 20px;
    max-width: 100%;
}

.buy-button {
    font-family: 'Lucida Grande', helvetica, arial, verdana, sans-serif;
    display: flex;
    justify-content: center;
    margin: 0.7em 0.25em;
    border-radius: 10px;
    background-color: #408bd0;
    padding: 0.25em 1em;
    font-weight: 800;
    color: white;
    text-decoration: none;
    font-size: 20px;
    text-align: center;
    max-width: fit-content;
    margin-right: auto;
    margin-left: auto;
}

.logos {
    display: flex;
    justify-content: center;
    margin-top: 1.5em;
    gap: 1em;
}

.scaled {
    object-fit: cover;
}

footer {
    padding: 20px;
}

@media screen and (max-width: 768px) {
    .paper {
        max-width: 90%;
    }
    .abstract,.paper-body {
        width: 90vw;
    }
    .arxiv-title, .arxiv-title {
        max-width: 90vw;
    }
}

.citation-wrapper {
    overflow: scroll;
    display: grid;
    margin-left: auto;
    margin-right: auto;
}