@font-face {
    font-family: 'Noto Serif Bold';
    src: url(NotoSerifBold.ttf) format('truetype');
}

@font-face {
    font-family: 'Noto Serif';
    src: url(NotoSerif.ttf) format('truetype');
}

@font-face {
    font-family: 'Source Sans Pro';
    src: url(SourceSansPro.ttf) format('truetype');
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Source Sans Pro', Arial, sans-serif;
    color: #163860;
}

.backbutton {
    display: flex;
    align-self: start;
    margin-bottom: 10px;
    font-weight: bold;
}

.backbutton a {
    color: #163860;
}

.backbutton a:visited {
    color: #163860;
}

header.figcomm_title {
    font-family: 'Noto Serif', Georgia, Verdana, Times, 'Times New Roman',
        Garamond, 'Palatino', serif;
    text-align: center;
    margin-bottom: 20px;
    text-transform: none;
}

div.figcomm_sub {
    font-family: 'Source Sans Pro', Arial, sans-serif;
    font-size: x-large;
}

div.figcomm_title {
    font-family: 'Noto Serif Bold', Georgia, Verdana, Times, 'Times New Roman',
        Garamond, 'Palatino', serif;
    font-size: 3em;
    font-weight: 900;
}

div.disclaimer {
    font-family: 'Noto Serif', Georgia, Verdana, Times, 'Times New Roman',
        Garamond, 'Palatino', serif;
    font-size: small;
    text-align: center;
    margin-bottom: 20px;
}

div.disclaimer a,
div.disclaimer a:visited {
    color: #163860;
}

div.wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50vw;
    margin-bottom: 48px;
}

.search-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 420px;
    margin-bottom: 20px;
}

.query-option {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

input,
select.section-refine {
    width: 420px;
    height: 32px;
    border: 1px solid #163860;
    border-radius: 4px;
    padding: 5px;
    box-sizing: border-box;
}

div.query-input-div {
    position: relative;
}

.delete-icon {
    position: absolute;
    top: 11px;
    right: 10px;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #e0e5eb;
    color: #163860;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    cursor: pointer;
}

.query-option input[type='date'],
.query-option select {
    width: 200px;
    height: 32px;
    border: 1px solid #163860;
    border-radius: 4px;
    padding: 5px;
    box-sizing: border-box;
}

input[type='number'] {
    width: 100px;
}

select {
    border: 1px solid #163860;
    border-radius: 4px;
    padding: 5px;
    background-color: white;
    color: #163860;
    height: 32px;
    box-sizing: border-box;
}

div.search-btn-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 420px;
}

button {
    width: 300px;
    height: 30px;
    background-color: #163860;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 5px 10px;
}

button.btn-1 {
    width: 200px;
}

button.btn-2 {
    width: 420px;
}

button.reset-button {
    background-color: white;
    color: #cc0000;
    border: 1px solid #cc0000;
}

button:hover {
    background-color: #1f66ba;
}

button.reset-button:hover {
    color: white;
    background-color: #cc0000;
    border: 1px solid white;
}

button:disabled {
    background-color: #e0e5eb;
    cursor: not-allowed;
}

select:disabled {
    color: #e0e5eb;
    border-color: #e0e5eb;
    cursor: not-allowed;
}

select:focus,
select:focus-visible {
    outline: 2px solid #1f66ba;
}

input,
button,
select {
    margin: 5px 0;
}

input:disabled {
    cursor: not-allowed;
    border-color: #e0e5eb;
}

input:invalid {
    border-color: #cc0000;
    outline: solid 2px #cc0000;
}

.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.dl-options-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 420px;
}

label {
    font-family: 'Source Sans Pro', 'Noto Serif', serif;
    font-size: large;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 5px 0px;
}

label[for='section-refine'] {
    display: none;
}

div.query-input,
div.section-select {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.info {
    margin-left: 5px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #007acc;
    color: white;
    width: 1rem;
    height: 1rem;
    text-align: center;
    cursor: pointer;
}

div.query-inst {
    margin: 10px 0;
    font-size: small;
    font-family: 'Noto Serif', serif;
    text-align: center;
}

div.dl-checkbox-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

div.dl-checkbox-container div.anon-container {
    display: flex;
    flex-direction: row;
    align-items: center;
}

div.dl-checkbox-container div span {
    margin-right: 5px;
}

input[type='checkbox'] {
    width: auto;
    height: auto;
    margin-right: 5px;
    padding: 0;
    box-sizing: border-box;
}

span.info-icon {
    border-radius: 50%;
    background-color: #163860;
    color: white;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 1rem;
    width: 1rem;
}

div.info-div {
    position: absolute;
    background-color: #eff2f5;
    border: 1px solid #163860;
    border-radius: 4px;
    padding: 10px;
    z-index: 100;
    max-width: 50vw;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

div.info-div.visible {
    display: block;
    opacity: 1;
}

p.close-icon {
    margin: 0px;
    font-size: xx-large;
    font-weight: 900;
    position: absolute;
    top: 0;
    right: 0.5rem;
    cursor: pointer;
}

.pagination-div {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 90%;
}

.pagination-arrow {
    cursor: pointer;
}

.pagination-arrow:hover {
    color: #4d4d4d;
    text-decoration: underline;
}

.pagination-arrow.disabled {
    color: #e0e5eb;
    cursor: not-allowed;
}

.pagination-arrow.disabled:hover {
    color: #e0e5eb;
    text-decoration: none;
}

.preview-container {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 20px;
}

.preview-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90%;
    margin: 20px 0px;
    border: 1px solid black;
    border-radius: 5px;
    padding: 20px;
}

.article-preview {
    display: none;
    flex-direction: column;
    align-items: left;
    justify-content: center;
    width: 100%;
    margin: 0 0 5px 0;
    border-bottom: solid 1px #80808080;
    padding: 10px 0;
}

div.back-button {
    display: none;
    font-weight: bold;
    color: black;
    cursor: pointer;
    margin-bottom: 20px;
    font-size: small;
}

div.back-button:hover {
    text-decoration: underline;
    color: #4d4d4d;
}

.article-title {
    font-family: 'Noto Serif', serif;
    font-weight: 900;
    font-size: larger;
    color: black;
    cursor: pointer;
}

.article-title:hover {
    text-decoration: underline;
    color: #4d4d4d;
}

.article-data {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: left;
    font-size: small;
    color: #696969;
    margin: 10px 5px 5px 10px;
}

.article-author {
    font-family: 'Noto Serif', serif;
    color: black;
    padding-right: 5px;
    border-right: solid 1px #696969;
}

.article-date,
.article-pub,
.link-copy {
    padding: 0 5px;
}

.article-pub,
.link-copy {
    text-transform: capitalize;
    border-left: solid 1px #696969;
    font-weight: bold;
}

.link-copy {
    color: black;
    cursor: pointer;
    text-decoration: underline;
}

.link-copy:hover {
    text-decoration: underline;
    color: #4d4d4d;
}

.article-excerpt {
    font-size: small;
    color: black;
    margin: 5px 10px;
}

.highlight {
    background-color: rgba(255, 255, 0, 0.5);
    font-weight: bold;
}

.citation {
    color: #163860;
    font-size: small;
    font-family: 'Noto Serif', serif;
}

.bibtex-dl {
    text-decoration: underline;
    cursor: pointer;
}

.footer {
    position: fixed;
    bottom: 5px;
    right: 5px;
    display: flex;
    flex-direction: column;
    text-align: right;
    font-size: x-small;
    color: #696969;
}

div.footer div a img {
    height: 30px;
}

.spinner {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 4px solid white;
    border-top: 4px solid black;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
