body {
    font-family: Charter, Georgia, serif;
    font-size: 20px;
    color: #262626;
    line-height: 1.7;
    margin-top: 0;
}

/* Dark mode */

@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: white;
    }
}
html {
    -webkit-text-size-adjust: 100%;
}
#body {
    max-width: 830px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0 10px;
}
.nowrap {
    white-space: nowrap;
}
[id] {
    scroll-margin-top: 70px;
}
a {
    text-decoration-line: none;
    color: firebrick;
}
.motto {
    margin: 40px auto 20px auto;
    font-size: 0.9em;
    display: table;
    max-width: 600px;
    min-width: 250px;
    border-left: 2px solid #ccc;
    padding: 10px 0 10px 20px;
}
.motto b,
.motto strong {
    font-size: 1.2em;
}
.grey {
    font-size: 0.8em;
    color: dimgray;
    font-family: Avenir, Arial, sans-serif;
}
.data {
    font-size: 0.7em;
    color: dimgray;
    font-family: Avenir, Arial, sans-serif;
    text-transform: uppercase;
    text-align: center;
    padding-top: 15px;
}
.subgrey {
    font-size: 1.5em;
    font-weight: 300;
    color: dimgray;
    margin-bottom: 30px;
    display: block;
    text-align: center;
}
h1 {
    font-weight: 400;
    text-align: center;
    margin: auto;
    max-width: 800px;
}
h1 sup {
    font-size: .5em;
}
h2 {
    font-size: 1.5em;
    font-weight: 400;
    text-align: center;
}
h3 {
    font-size: 1.4em;
    font-weight: 400;
    color: #6A6D6D;
}
h4 {
    font-size: 1.2em;
    font-weight: 400;
    color: #6A6D6D;
    font-style: italic;
}
h5 {
    font-size: 1em;
    font-weight: 400;
    color: dimgray;
}
h6 {
    color: dimgray;
    font-weight: 400;
    font-size: .9em;
}
h2 {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
#search form {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}
#search form input {
    font-size: 16px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-left: 4px;
}
sup,
sub {
    font-size: .8em;
}
.caixa {
    border: 1px solid #ccc;
    padding: 10px 20px 20px 20px;
    margin: 20px 0;
    font-size: 0.9em;
}
table {
    margin: 30px auto;
    border-collapse: collapse;
    font-size: .9em;
}
table td {
    border: 1px solid #444;
    padding: 20px;
    vertical-align: middle;
}
table th {
    padding: 20px;
    font-size: 1.1em;
}
.normtbl {
    margin: 2em;
}
.normtbl td {
    border: 0;
    padding: 0 20px;
}
.center,
.center p {
    text-align: center;
    margin: 20px auto;
}
b,
strong {
    font-weight: 600;
}
blockquote,
li {
    font-size: .95em;
}
blockquote {
    margin-left: 1em;
    margin-right: 1em;
}
blockquote blockquote,
li li,
li blockquote {
    font-size: 1em;
}
#mainIndex h1 {
    font-size: 1.8em;
    max-width: 700px;
}
#mainIndex .signature {
    font-size: 1em;
}
#mainIndex .data {
    margin-top: 0;
}
#mainIndex .data ~ .data {
    margin-left: auto;
    margin-right: auto;
    margin-top: 30px;
    max-width: 700px;
}
#mainIndex .signature ~ .signature {
    text-align: center;
}
#mainIndex .grey {
    text-align: center;
}
#mainIndex .subgrey {
    font-size: 1.2em;
}
#index h1 {
    font-size: 1.8em;
    max-width: 700px;
}
#index .signature {
    font-size: 1em;
}
#index .data {
    margin-top: 0;
}
#index .data ~ .data {
    margin-left: auto;
    margin-right: auto;
    margin-top: 30px;
    max-width: 700px;
}
#index .signature ~ .signature {
    text-align: center;
}
#index .grey {
    text-align: center;
}
#index .subgrey {
    font-size: 1.2em;
}

/* Dicionário Escolar de Filosofia */

h1.title {
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 30px;
    margin-left: 0;
    text-align: left;
}
.dic.subgrey a {
    font-size: .8em;
}
.dic.subgrey {
    background-color: white;
}
.post {
    margin-bottom: 1em;
}
cite {
    font-style: normal;
    border-bottom: 1px solid firebrick;
}
.biblio li {
    text-indent: -1em;
    list-style: none;
    margin-left: -1em;
}

/* Justify and hyphenate */

@media only screen and (min-width: 667px) {
    p,
    li {
        text-align: justify;
        -webkit-hyphens: auto;
        hyphens: auto;
        -ms-hyphens: auto;
    }
    p {
        margin: 0;
    }
    p + p {
        text-indent: 1em;
    }
    h1 {
        font-size: 3em;
    }
    h2 {
        font-size: 1.6em;
    }
    .subgrey {
        font-size: 1.9em;
    }
    #mainIndex .subgrey {
        font-size: 1.9em;
    }
    #index .subgrey {
        font-size: 1.9em;
    }
    #index h1 {
        font-size: 2em;
        max-width: 700px;
    }
    #mainIndex h1 {
        font-size: 2em;
        max-width: 700px;
    }
}
@media only screen and (max-width: 667px) {
    .sharebuttons {
        display: none;
    }
}
.signature {
    font-size: 1.2em;
}
.signature {
    margin: 10px 0 30px 0;
    text-align: center;
}
.signature ~ .signature {
    margin: 10px 0 30px 0;
    text-align: left;
    font-size: 1em;
}
.signature .grey {
    font-family: inherit;
}

/*Menu modal*/

#sticky-header {
    position: sticky;
    left: auto;
    top: 0;
    width: 100%;
    background-color: white;
    color: black;
    z-index: 2;
}
@media (prefers-color-scheme: dark) {
    #sticky-header {
        background-color: #121212;
        color: white;
    }
    .closeMenu {
        background-color: #121212!important;
    }
    .menu-content {
        background-color: #1e1e1e!important;
    }
    #search form input {
        background-color: #444444;
    }
    .dic.subgrey {
        background-color: #121212!important;
    }
    #search form input {
        color: white;
    }
}
#ModalMenu {
    z-index: 2;
    width: 100%;
    height: 100%;
}
.menu {
    display: none;
    position: fixed;
}
.menu-content {
    background-color: whitesmoke;
    max-width: 350px;
    padding: 0 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-top: 10px;
    margin-right: 35px;
    max-height: 80vh;
    overflow-x: hidden;
    overflow-y: auto;
}
.closeMenu {
    font-size: 35px;
    line-height: normal;
    position: fixed;
    top: 0;
    left: auto;
    margin-left: -17px;
    padding: 0 1px;
    z-index: 3;
    color: firebrick;
    background-color: white;
}
.closeMenu:hover,
.closeMenu:focus {
    cursor: pointer;
}
