.logo {
    background-image: url("../images/icon.png");
}

.splash {
    background-image: url("../images/logo.png");
}

app-header {
    background-image: url("../images/background.jpg");
    height: 92px;
}

.menubar {
    background-color: rgba(0, 0, 0, .5);
    height: 92px;
}

body {
    font-size: 16px;
    --pb-logo-image-width: 120px;
    --pb-logo-image-height: 90px;
    background-color: rgba(221, 215, 203, 0.5);
}


.content-body {
    padding:1rem;
}

.logo {
    background-repeat: no-repeat;
    background-size: var(--pb-logo-image-height) auto;
    background-position: left center;
    width: var(--pb-logo-image-width);
    height: var(--pb-logo-image-height);
}

.round {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 50%;
    width: 8rem;
    height: 8rem;
    margin: 0 auto;
    box-shadow: 0 8px 10px 1px rgba(0, 0, 0, .14), 0 3px 14px 2px rgba(0, 0, 0, .12), 0 5px 5px -3px rgba(0, 0, 0, .4);
}

.round img {
    width: auto;
    height: 160px;
    background-color: #35424b;
}

.round.rqzh img {
    background-color: transparent;
}

.round.missiven img {
    height: 32px;
    background-color: transparent;
}

.tiles h3 {
    text-align: center;
}

.footer {
    display: block;
    position: absolute;
    bottom: 0;
    right: 0;
}

.version .footer {
    position: fixed;
}

.logos img {
    height: 30px;
    width: auto;
    background-size: 100% 100%;
    cursor: pointer;
    margin: 1em;
}

.footer img {
    height: 30px;
    width: auto;
    background-size: 100% 100%;
    cursor: pointer;
}

.menubar .start {
    font-family: 'Comfortaa', sans-serif;
    font-size: 48px;
}

#document-list {
    --pb-base-font-family: 'Montserrat', 'Noto', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Quicksand', 'Comfortaa', 'Helvetica', 'Noto', sans-serif;
    font-weight: 700 !important;
    line-height: 1.75;
}


h2 {
    font-size: 18px;
    margin: 2em auto 1em auto;
}

h3 {
    font-size: 16px;
}

h5 {
    margin: 0;
}

@media (max-width: 1023px) {
    .footer {
        display: none;
    }
}

#search main {
    position: relative;
    display: grid;
    grid-template-columns: minmax(256px, auto) 1fr minmax(256px, auto);
    grid-template-rows: auto 1fr;
    grid-template-areas: 
        "form options facets"
        "form results facets";
    column-gap: 10px;
    min-height: calc(100vh - 92px); 
}

@media (max-width: 1024px) {
    #search main {
        grid-template-columns: minmax(196px, auto) 1fr;
        grid-template-rows: auto auto 1fr;
        grid-template-areas:
            "form options"
            "form results"
            "facets results"
    }
    .footer {
        display: none;
    }
}

@media (max-width: 767px) {
    #search main {
        grid-template-columns: 1fr;
        grid-template-areas:
            "form"
            "options"
            "results"
            "facets";
    }
}

#search main > * {
    height: 100%;
}

#search .search {
    grid-area: form;
    position: relative;
    /* background-color: rgba(221, 215, 203, 0.5); */
    padding: 0 10px;
}

#facets {
    grid-area: facets;
    /* background-color: rgba(221, 215, 203, 0.5); */
    padding: 0 10px;
}

#options {
    grid-area: options;
    padding: 0 10px;
    background-color: #f0f0f0;
}

pb-paginate {
    margin: 0 auto;
    margin-top: 10px;
}

#document-list {
    grid-area: results;
}

#facets h3 {
    display: flex;
    flex-direction: row;
    align-items: center;
}

#facets h3 paper-checkbox {
    margin-left: 16px;
    font-size: 11px;
}

#facets table {
    font-size: 14px;
}

#facets table table {
    padding-left: 16px;
    width: 100%;
}

#facets table td {
    padding: 4px 0;
}

#facets table td:nth-child(2) {
    color: #808080;
    text-align: right;
    padding-left: 1em;
    vertical-align: middle;
}

#document-list {
    overflow: auto;
    padding: 0 10px;
    background-color: #f0f0f0;
    height: 100%;
}

#document-list > div {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    column-gap: 16px;
    row-gap: .5rem;
}

#document-list header {
    grid-column: 1 / 4;
    display: flex;
    justify-content: flex-start;
    margin: 40px 0 .5rem 0;
}
#document-list .count {
    margin-top: 0;
    width: 3rem;
    font-weight: bold;
}
.result {
    margin-top: 20px;
}
.breadcrumbs {
    margin: 0;
}

.breadcrumbs h2 {
    margin-top: 0;
    margin-bottom: 0;
}
.breadcrumb:link, .breadcrumb:visited {
    text-decoration: none;
    color: var(--paper-grey-600);
}
.breadcrumb:before {
    content: ">";
    padding: 0 8px;
    font-weight: bold;
}
.breadcrumb:first-child::before {
    content: "";
}
.matches {
    display: table;
    margin-left: 20px;
    margin-top: 10px;
    font: var(--pb-results-body-font);
  
}
.matches p {
    display: table-row;
}
.matches p * {
    display: table-cell;
    padding: 4px 8px;
}

@media (min-width: 1024px) {
    .previous, .hi, .following {
        display: block;
    }

    .previous {
        text-align: right;
    }
}