:root {
    --background-color: #ffffff;

    /* --surface-color: #222222;
	--surface-color-2: #353535;
	--on-surface: #cdcdcd; */

    --primary-color: #999999;
    /* --primary-color: #999999; */
    /* --primary-color-highlighted: #6b3696; */

    font-family: "roboto";
}

a:link {
    color: rgb(50, 105, 255);
    text-decoration: none;
}

a:visited {
    color: rgb(142, 20, 255);
    text-decoration: none;
}

a:hover {
    color: rgb(255, 58, 58);
    text-decoration: underline;
}

.hidden-link:link {
    color: black;
    text-decoration: none;
}

.hidden-link:visited {
    color: black;
    text-decoration: none;
}

.hidden-link:hover {
    color: black;
    text-decoration: none;
}

.border {
    border-color: var(--primary-color);
    border-style: solid;
    border-width: 2px;
    border-radius: 0.5rem;
    padding: 0.5rem;
    text-align: center;
}

table {
    border-collapse: collapse;
}

/* tr {
    padding: 0 1rem;
} */

td {
    border-right: 2px solid var(--primary-color);
    padding: 0.25rem 1rem;
}

td:last-of-type {
    border: none;
}

html {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
}

body {
    position: relative;
    width: min(100%, 50rem);
    margin: 1rem;
}

@media (max-width: 40rem) {
    body {
        width: min(100%, 25rem);
    }
}

#header {
    position: absolute;
    top: 1rem;
    left: 0;
    right: 0;
    height: 3rem;

    text-align: center;
    font-size: 22px;

    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 40rem) {
    #header {
        color: transparent;
        justify-content: left
    }
}

#header-link {
    z-index: 999;
}

#header-logo {
    height: 4rem;
    image-rendering: pixelated;
    transform: translateY(0.25rem);
}

#footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1rem;
    height: 2rem;
    display: flex;
    flex-direction: column;

    text-align: center;
}

#body {
    position: absolute;
    top: 5rem;
    left: 0;
    right: 0;
    bottom: 4rem;
}

@media (max-width: 40rem) {
    #body {
        top: 1rem;
    }
}

#search-bar-section {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2rem;

    display: flex;
    align-items: center;
}

@media (max-width: 40rem) {
    #search-bar-section {
        left: 4rem;
    }
}

#search-bar-field {
    width: 100%;
    border: none;
    outline: none;
    border-bottom: 2px dotted var(--primary-color);
    margin-right: 1rem;
}

#search-bar-button {
    float: right;
}

#home-section {
    position: absolute;
    top: 5rem;
    left: 10%;
    right: 10%;
    bottom: 0;

    font-size: 18px;
    overflow: auto;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#home-section-logo {
    height: 10rem;
    min-height: 10rem;
    image-rendering: pixelated;
}

#msg-section {
    position: absolute;
    top: 5rem;
    left: 0;
    right: 0;
    bottom: 0;

    text-align: center;

    display: none;
}

#search-result-section {
    position: absolute;
    top: 5rem;
    left: 0;
    right: 0;
    bottom: 0;
}

#search-result-footer {
    position: relative;
    height: 2rem;

    display: flex;
    align-items: center;
    justify-content: center;
}

#search-result-previous {
    position: absolute;
    right: 50%;
    bottom: 0;
    width: 3rem;
    margin-right: 3rem;
}

#search-result-next {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 3rem;
    margin-left: 3rem;
}

#article-section {
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    bottom: 0;

    display: none;
}

#article-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6rem;

    overflow-y: auto;

    display: flex;
    flex-direction: column;
}

@media (max-width: 40rem) {
    #article-header {
        height: 12rem;
    }
}

#article-header-title {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

#article-header-author {
    text-align: center;
    white-space: pre-wrap;
}

#article-header-separator {
    flex: 2;
}

#article-header-access {
    /* position:absolute; */
    font-size: 16px;
    text-align: right;
}

#article-info {
    position: absolute;
    top: 8rem;
    left: 0;
    right: 0;
    bottom: 0;
}

@media (max-width: 40rem) {
    #article-info {
        top: 14rem;
        overflow-x: scroll;
    }
}

.article-info-title {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2rem;

    display: flex;
    justify-content: center;
    align-items: center;
}

.article-info-expand {
    color: var(--primary-color);
    font-size: 12px;

    border: none;
    background-color: #ffffff00;

    cursor: pointer;
}

@media (max-width: 40rem) {
    .article-info-expand {
        display: none;
    }
}

#article-details {
    position: absolute;
    top: 0;
    left: 0;
    right: 50%;
    bottom: 50%;

    margin-bottom: 0.5rem;
    margin-right: 0.5rem;

    background-color: #ffffffff;
}

@media (max-width: 40rem) {
    #article-details {
        top: 0;
        left: 0%;
        height: 90%;
        width: calc(100% - 4px);
        margin: 0;
        padding: 0;
    }
}

#article-details-table-container {
    position: absolute;
    top: 2rem;
    left: 0;
    right: 0;
    bottom: 1rem;

    margin: 0 1rem 1rem 0.5rem;
    overflow: auto;
}

#article-details-table {
    line-break: anywhere;
    text-align: left;
    font-size: 14px;
}


#article-details-expand {
    position: absolute;
    right: 0;
    bottom: 0;
}

#article-cite {
    position: absolute;
    top: 0;
    left: 50%;
    right: 0;
    bottom: 50%;

    margin-bottom: 0.5rem;
    margin-left: 0.5rem;

    background-color: #ffffffff;
}

@media (max-width: 40rem) {
    #article-cite {
        top: 0;
        left: calc(100% + 1rem);
        height: 90%;
        width: calc(100% - 4px);
        margin: 0;
        padding: 0;
    }
}

#article-cite-types {
    position: absolute;
    top: 2rem;
    left: 0;
    right: 0;
    height: 1.5rem;
}

#article-cite-field {
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    bottom: 1rem;

    margin: 0 1rem 1rem 0.5rem;
    overflow: auto;

    text-align: left;
    font-size: 12px;
}

#article-cite-copy {
    position: absolute;
    bottom: 2.5rem;
    right: 1.5rem;
}

#article-cite-expand {
    position: absolute;
    left: 0;
    bottom: 0;
}

.article-preview-list {
    position: absolute;
    top: 2rem;
    left: 0;
    right: 0;
    bottom: 1rem;

    overflow-x: hidden;
    overflow-y: auto;
}

.article-preview {
    overflow: hidden;
    font-size: 14px;
    margin: 0.5rem;
}

.article-preview-info {
    margin-top: 0.5rem;
    white-space: pre;
}

#article-citations {
    position: absolute;
    top: 50%;
    left: 0;
    right: 50%;
    bottom: 0;

    margin-top: 0.5rem;
    margin-right: 0.5rem;

    background-color: #ffffffff;
}

@media (max-width: 40rem) {
    #article-citations {
        top: 0;
        left: calc(200% + 2rem);
        height: 90%;
        width: calc(100% - 4px);
        margin: 0;
        padding: 0;
    }
}

#article-citation-expand {
    position: absolute;
    right: 0;
    top: 0;
}

#article-references {
    position: absolute;
    top: 50%;
    left: 50%;
    right: 0;
    bottom: 0;

    margin-top: 0.5rem;
    margin-left: 0.5rem;

    background-color: #ffffffff;
}

@media (max-width: 40rem) {
    #article-references {
        top: 0;
        left: calc(300% + 3rem);
        height: 90%;
        width: calc(100% - 4px);
        margin: 0;
        padding: 0;
    }
}

#article-reference-expand {
    position: absolute;
    left: 0;
    top: 0;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    position: relative;
    top: 3px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid #ccc;
    border-top-color: #000;
    animation: spinner 1s linear infinite;
    display: inline-block;
}
