body {
    /*font-family: Arial, Helvetica, sans-serif;*/
    font-family: Georgia, 'Times New Roman', Times, serif;
    background-color: var(--backgroundcolor);
    color: var(--linecolor);
}

text {
    fill: var(--linecolor);
}

.heading-text {
    flex-basis: 100%;
    text-align: center;
}

.container {
    padding-top: 10vh;
    padding-bottom: 10vh;
    max-width: 100%;
    margin: auto;
    display: flex;
    align-content: center;
    flex-flow: row wrap;
    justify-content: center;
}

a {
    text-align: center;
    text-decoration: none;
    color: inherit;
    flex-basis: 40vh;
}

.search-results {
    justify-content: center;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    text-align: center;
}

.search-result {
    max-width: 80%;
    margin: 1rem;
    flex-basis: 12rem;
    padding: 0.5rem;
}

.search-result img {
    max-width: 100%;
    max-height: 50vh;
}

img {
    max-width: inherit;
    max-height: inherit;
}

.break {
    flex-basis: 100%;
    min-height: 10px;
}

.charts {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: space-around;
    width: 100%;
}

#date_chart {
    max-width: 100%;
    text-align: center;
    margin: auto;
}

#gender_chart, #genre_chart {
    margin: auto;
    text-align: center;
    display: flex;
    flex-direction: column-reverse;
}

#book_map {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: auto;
}

#book_map svg {
    margin-top: 2rem;
}

@media (prefers-color-scheme: dark) {
    :root {
        background-color: var(--backgroundcolor);
        color: var(--linecolor);

        --linecolor: white;
        --backgroundcolor: #1e1e2e;
        --thirdcolor: #408ab4;
        --fourthcolor: #65c6c4;
    }
}

@media (prefers-color-scheme: light) {
    :root {
        background-color: var(--backgroundcolor);
        color: var(--linecolor);

        --linecolor: #2D2F3F;
        --backgroundcolor: #eff1f5;
        --thirdcolor: #408ab4;
        --fourthcolor: #65c6c4;
    }
}
