:root{
    --panel-bg: #fbf8f4;
    --panel-text: #2c2c2c;
    --a-unvisited: #0101ee;
    --a-visited: #541b8b;
}
::selection {
    background: #fff0a7;
    color: #2c2c2c;
}

body {
    background-color: var(--panel-bg);
}
a {
    color: var(--a-unvisited);
}
a:visited {
    color: var(--a-visited);
}

#toggleMode{
    visibility: hidden;
}
.toggleDark, .toggleLight{
    cursor: pointer;
    opacity: 0.9;
}
.toggleDark{
    display: block;
}
.toggleLight{
    display: none;
}
#toggleMode:checked ~ .toggleDark{
    display: none;
}
#toggleMode:checked ~ .toggleLight{
    display: block;
}

#container {
    display: flex;
    margin-top: 5rem;
}
.spacer {
    flex: 1;
}
#main {
    flex: 1.1;
    justify-content: center;
    min-width: 40rem;
    background-color: var(--panel-bg);
    min-height: 75vh;
}
#navbar-items {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2em 0 1em 0;
    color: var(--panel-text);
    font-family: 'Inter';
}
.section-nav-mobile {
    margin: 4rem 0;
    display: none;
}
#back-top-mobile {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background-color: white;
    padding: 0.4rem 0.8rem;
    text-decoration: none;
    border: 1px solid #1b1b1b;
    color: #1b1b1b;
    display: none;
}
#back-top-mobile:hover {
    background-color: #fff0a7;
}
#logo {
    display: block;
    margin: 0 auto;
    text-align: center;
    font-weight: 900;
    color: var(--panel-text);
    font-family: 'Inter';
}
#query-input {
    height: 2rem;
    border-radius: .2rem;
    padding-left: .8rem;
    font-size: .8rem;
    font-weight: normal;
    border: 1px solid rgb(137, 151, 155);
    transition: border-color 150ms ease-in-out 0s;
    outline: none;
    color: rgb(33, 49, 60);
    padding-right: .8rem;
    background-color: var(--panel-bg);
}
#query-input:hover{
    box-shadow: #f3f3f3 0px 0px 0px 3px;
}
.search-result, .search-result:visited {
    display: block;
    text-decoration: none;
    color:#1b1b1b;
    padding: 1rem .5rem;
}
.search-result:hover {
    background-color: #e2e2e2;
}
#auctores {
    margin: 4rem 0;
}
#auctores a {
    display: table;
    font-size: 1rem;
    margin: .8rem 0;
    text-decoration: none;
    font-family: 'Inter';
}
#auctore-box {
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
}
#auctore-name {
    display: block;
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--panel-text);
    font-family: 'Inter';
}
#auctore-date {
    display: block;
    font-weight: 200;
    font-size: 0.8rem;
    color: var(--panel-text);
    font-family: 'Inter';
}
#citationes {
    margin-top: 2.5rem;
}
.citation {
    margin-bottom: 2.5rem;
    color: var(--panel-text);
    scroll-margin-top: 2rem;
}
.book-block {
    scroll-margin-top: 2rem;
}
.book-block hr {
    margin: 0 auto;
    width: 33%;
}
.book-work-name {
    display: block;
    font-family: 'Inter';
    font-weight: 600;
    font-style: italic;
    margin: 6rem 0 2rem 0;
    text-align: center;
}
.book-name {
    display: block;
    font-family: 'Inter';
    font-weight: 500;
    font-size: 1.25rem;
    margin: 2rem 0;
    font-style: italic;
    text-align: center;
}
.citation p, .citation pre {
    display: block;
    width: 100%;
    font-size: 1rem;
    text-align: justify;
    font-family: 'Newsreader', sans-serif;
    line-height: 1.25;
    word-wrap: break-word;
    white-space: pre-wrap;
}
.citation-book {
    font-size: 0.8rem!important;
    font-weight: 300;
}

@media screen and (max-width: 950px) {
    #container {
        margin-top: 0;
    }
    #main {
        padding: 4rem 1rem 1rem 1rem;
        margin: 0 auto;
        width: 100%;
        min-width: 0;
    }
    .spacer, #content-toc {
        display: none;
    }
    .section-nav-mobile, #back-top-mobile {
        display: block;
    }
}
