@font-face {
    font-family: Garamond;
    src: url(EBGaramond-VariableFont_wght.ttf);
}

@font-face {
    font-family: RobotoSlab;
    src: url(RobotoSlab-VariableFont_wght.ttf);
}

:root {
    --accent: #adc0dd;
    --bodyserif-font: RobotoSlab;
    --bodysans-font: "Roboto";
    --titleserif-font: Garamond;
    --titlesans-font: "Roboto";
}

html,
body {
    font-family: var(--bodyserif-font);
}

.notices {
    font-family: var(--bodysans-font);
}

body {
    width: 100vw;
}

body {
    background-color: #14141c;
}

#base {
    max-width: 1760px;
    margin: auto;
}

.content {
    padding: 0 4em;
    padding-top: 30px;
}

.innercontents {
    max-width: 1170px !important;
    margin: auto;
}

.fullwidth {
    width: 100%;
    max-width: 1920px;
    margin-left: -3em;
}

.main-nav {
    display: block;
    right: 1;
    position: fixed;
    background-color: black;
    height: 100%;
    width: 320px;
}

.page-title {
    font-size: 50px;
    font-family: var(--titleserif-font);
}

h1,
h2 {
    font-family: var(--titleserif-font);
    margin-left: -10px;
}

h3,
h4 {
    font-family: var(--titlesans-font);
    margin-left: -3px;
}

.sidebar-nav {
    margin-top: -15px;
}

.sidebar-nav ul {
    background-color: black;
}

.sidebar-nav .metismenu a {
    padding-left: 25px;
}

.sidebar-nav .metismenu a {
    font-family: 'Roboto';
    font-size: 25px;
}

.rightbox {
    max-width: 40% !important;
    float: right;
    font-style: italic;
    text-align: center;
    font-size: 16px !important;
    margin: 0px 0px 0px 15px;
}

.leftbox {
    max-width: 40% !important;
    float: left;
    font-style: italic;
    text-align: center;
    font-size: 16px !important;
    margin: 0px 15px 0px 0px;
}

div.fullbox {
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: space-evenly;
}

.fullbox p {
    width: 100%;
    text-align: center;
    margin: auto;
}

.fullbox img {
    width: 100%;
    text-align: center;
}

.pixelbar {
    width: 320px;
    height: 20px;
    background-image: url(pixels.png);
    margin: 8px 0px 16px 0px;
}

.pixel {
    image-rendering: pixelated;
}

.hrside {
    border: 1px solid #585858;
}

.search-wrapper {
    text-align: center;
}

.search-wrapper .search-input {
    width: 90% !important;
    height: 30px;
    border: 0px;
}

p {
    margin-top: 5px;
}

hr {
    border: 0;
    height: 1px;
    background: #333;
    background-image: linear-gradient(to right, #ccc, #333, #ccc);
}

.pagination {
    font-size: 30px;
    width: 100%;
    text-align: center;
}

.simplesearch .rightbox {
    display: none;
}

.content .search-input {
    width: 100% !important;
    display: inline-block;
}

.main-nav {
    overflow-x: hidden;
}

.main-nav::-webkit-scrollbar {
    width: 2px;
}

.tags {
    line-height: 24px;
}

/* Post Utilities */

/* Midheader */

.midheader {
    width: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center, center;
    height: 300px;
}

.midtitle {
    padding-top: 100px;
    color: white;
    filter: drop-shadow(8px 8px 5px #000000aa);
}

/* Flex Box Image Sidebars! */
@media screen and (min-width: 1200px) {
    .flex {
        display: flex;
        margin: -25px 0px -5px 0px;
    }

    .page-title {
        margin-top: 0px !important;
    }

    .box30.boxleft {
        margin: 10px 50px 10px 0px;
    }

    .box30 {
        display: flex;
        flex-grow: 1;
        width: 30%;
        font-style: italic;
        text-align: center;
        flex-direction: column;
        justify-content: space-evenly;
        font-size: 16px !important;
        margin-top: 10px;
        margin-bottom: 10px;
        margin-right: 0px;
        margin-left: 50px;
    }

    .box70 {
        width: 65%;
    }

    .boxleft h2 {
        text-align: right;
        margin-right: 20px;
    }

    .box70.splitboxsmall {
        width: 80%;
    }

    .box30.splitboxsmall {
        width: 20%;
    }

    .box30.splitboxsmall p {
        font-size: 16px;
    }
}

@media screen and (max-width: 1200px) {
    .flex {
        display: flex;
        flex-direction: column;
        margin: -25px 0px -5px 0px;
    }

    .flex.flexleft {
        flex-direction: column-reverse;
    }

    .box30.boxleft {
        margin: 10px 0px 10px 0px;
    }

    .box30 {
        display: flex;
        width: 100%;
        max-height: 330px;
        font-style: italic;
        text-align: center;
        flex-direction: row;
        justify-content: space-evenly;
        font-size: 16px !important;
        margin-top: 10px !important;
        margin-bottom: 10px;
        margin-right: 0px;
        margin-left: 0px;
    }

    .box30 p {
        font-size: 16px !important;
    }

    .box30 img {
        max-width: 100%;
        max-height: 300px;
    }

    .box70 {
        width: 100%;
    }

    .boxleft h2 {
        text-align: left;
        margin-right: 20px;
    }

    .box30.splitboxsmall p {
        font-size: 16px;
    }
}

.featherlight-content {
    padding: 0px !important;
    border-bottom: 0px !important;
}

.featherlight .featherlight-close-icon {
    background: rgba(255, 255, 255, .0) !important;
}

blockquote {
    margin-top: 50px;
    margin-bottom: 50px;
}

blockquote p {
    text-align: center;
    font-style: italic;
    font-size: 30px;
}

.infobox {
    float: right;
    width: 400px;
    margin: 0px 0px 5px 30px;
    overflow: clip;
    border-radius: 0.8em;
    filter: drop-shadow(7px 6px 4px #dddddd);
    background-color: white;
}

.infoheader {
    width: 100%;
    margin-bottom: -4px;
}

.infobox img {
    width: 100%;
    margin-bottom: -4px;
}

.infotitle {
    background-color: var(--accent);
    text-align: center;
    font-size: 22px;
    font-weight: 400;
    padding: 4px;
}

.infosubtitle {
    background-color: var(--accent);
    text-align: center;
    font-size: 18px;
    font-weight: 320;
    padding: 4px;
}

.infofooter {
    background-color: var(--accent);
    padding: 2px;
    display: none;
}

.info {
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
    overflow: hidden;
    width: 100%;
    padding: 4px 0 0px 0;
}

.info p {
    /*! margin-top: 5px; */
    margin-block-start: 5px;
    margin-block-end: 5px;
}

.infolabel {
    background-color: var(--accent);
    width: 90px;
    min-width: 90px;
    padding-left: 5px;
    display: flex;
    border-radius: 2px;
    padding-right: 5px;
}

.infolabel p {
    font-size: 16px;
    font-weight: 500;
    margin: auto;
}

.infotext {
    margin-left: 20px;
    padding-bottom: 7px;
    margin-right: 5px;
}

.infotext p,
.infotext li {
    font-size: 16px;
    font-family: var(--bodysans-font)
}

.infotext ul {
    padding-inline-start: 0px;
    margin: 0px;
}

.page-toc {
    margin-left: 3em;
    padding-left: 15px;
    max-width: 400px !important;
    background-color: #f7f7f7;
    border-radius: 1em;
    padding-top: 5px;
    padding-bottom: 1px;
    filter: drop-shadow(7px 6px 4px #dddddd);
    display: flex;
    flex-direction: column;
}

.searchrbox {
    background-color: #ffffff;
    border-radius: 1em;
    padding: 1px 20px 20px 20px;
    margin-bottom: 20px;
    filter: drop-shadow(7px 6px 4px #dddddd);
}

.tntsearch-results .route {
    margin-top: -16px !important;
    margin-bottom: 10px;
}

.page-toc h4 {
    font-size: 20px;
    margin-bottom: -10px;
    border-bottom: 1px solid #d7d7d7;
    text-align: center;
    margin-right: 10px;
}

.page-toc ul {
    list-style-type: circle;
    border-left: 0px;
    margin-left: 10px;
    padding-left: 16px;
}

.page-toc li {
    margin-bottom: 5px;
}

.page-toc li a {
    font-size: 16px !important;
    margin-bottom: 10px;
    font-weight: 400;
}

.fullmap {
    height: 780px;
    width: 100%;
    border: 0;
    margin-left: -16px;
}

iframe {
    border: 0px;
}

.clickthrough iframe {
    pointer-events: none;
}

.clickedthrough {
    border: 4px;
    border-color: #e9e9e9;
    border-style: solid;
    margin: -4px;
}

.infomap {
    width: 400px;
    height: 400px;
    margin-bottom: -4px;
    border: 0;
}

.headertable table,
th,
td {
    border: 2px solid #e3e3e3;
    padding: 5px;
}

.headertable table {
    margin-bottom: 30px;
    margin-top: 20px;
}

.headertable thead tr,
th {
    background-color: #eaecf0;
}

code,
kbd,
pre,
samp {
    font-family: monospace, monospace;
    font-size: 20px !important;
}


.edit a {
    font-weight: 200;
    color: #e2e2e2;
    position: relative;
    display: block;
    padding: 15px 15px;
    color: #cad4df;
    outline-width: 0;
    transition: all 0.2s ease-out;
    font-size: 18px;
}

#treemargin {
    background-color: red;
}

.toph {
    margin-top: 0px;
}

.both {
    margin-bottom: 0px;
}

.tabs-wrapper.ui-theme-lite .tab {
    background-color: unset !important;
}

.tabs-wrapper .tabs-nav>li a {
    padding: 0.7rem 1rem !important;
}

.top {
    width: 50px;
}

.top-nav {
    display: none
}

.top-icon {
    height: 50px;
    margin-top: -15px;
    margin-left: 15px;
}

.tflex {
    display: flex;
    margin: auto;
}

.topicbox {
    width: min-content;
    min-width: 350px;
    flex-grow: 1;
}

.topicbox>hr {
    border: 0;
    height: 1px;
    background: #333;
    background-image: linear-gradient(to right, #ccc, #333, #333);
    margin-top: -18px;
    margin-left: -10px;
}

.topicbox>li {
    margin-left: 1.5em;
}

@media screen and (max-width: 1200px) {
    .top-nav {
        width: 100%;
        height: 50px;
        background-color: black;
        display: inline-flex;
        font-size: 16px;
    }

    .topicbox {
        width: max-content;
        flex-grow: 1;
    }

    .page-toc {
        margin-left: 0px;
    }

    @media screen and (max-width: 800px) {
        .topitem {
            font-size: .7rem;
        }
    }

}

@media screen and (max-width: 520px) {
    .top-nav {
        letter-spacing: -1px;
        font-size: 14px;
    }

    .infotitle {
        font-size: 16px;
    }

    .infosubtitle {
        font-size: 14px;
    }

    .infotext p,
    .infotext li {
        font-size: 10px;
    }

    .page-toc li a {
        font-size: 13px !important;
    }

    .page-toc ul {
        padding-left: 1px;
    }

    .content {
        padding: 0 1.5em;
    }

    .mob-hidden {
        display: none;
    }
}

@media screen and (max-width: 400px) {
    .top-nav {
        letter-spacing: -1px;
        font-size: 12px;
    }

    .topbar-nav {
        width: 100%;
        text-align: center;

    }

    .search-wrapper {
        padding-right: 22px;
    }

    .search-wrapper .search-input {
        width: 20vw !important;
        height: 30px;
        border: 0px;
    }

    .topitem {
        width: 100%;
        color: #e2e2e2;
        text-decoration: none;
        margin: auto;
    }

    .topitem a {
        position: relative;
        display: block;
        color: #cad4df;
        outline-width: 0;
        transition: all 0.0s ease-out;
    }

    .active-page {
        text-decoration: underline;
    }

    .infobox {
        width: 40vw;
    }

    .infolabel {
        width: 11vw;
        min-width: 11vw;
    }

    .infolabel p {
        font-size: 2.0vw;
    }

}

.cd-image-container img {
    width: 100%;
}

.heraldry {
    margin: -70px -30px -50px 0px;
}

.magnify {
    border-radius: 50%;
    border: 2px solid black;
    position: absolute;
    z-index: 20;
    background-repeat: no-repeat;
    background-color: white;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, .5);
    display: none;
    cursor: none;
}

.center {
    text-align: center;
}

.tntsearch-field {
    border-radius: 0.2em;
}

.srmini>.row {
    .searchrbox>p {
        display: none;
    }

    .searchrbox {
        background-color: #430000;
        width: 290px;
        border-radius: 1em;
        filter: unset;
        padding: 1px 5px 5px 10px;
        margin-bottom: 5px;
        margin-left: 7px;
    }

    h6 {
        margin-bottom: 0px;
        color: grey;
    }

    h3 {
        margin-top: -7px;
    }

    a {
        color: white;
    }

    em {
        font-style: normal;
        background-color: #FFFF0055
    }
}

.return-link {
    font-weight: 500;
    font-size: 1.4em;
    font-family: var(--bodysans-font);
}