@import url('https://fonts.googleapis.com/css2?family=Source+Serif+Pro:wght@400;700&display=swap');

h1, h2, h3, a, div, p {
    font-family: 'Source Serif Pro', serif;
    color: #291612;
}

hr {
    border-width: 0px;
    height: 1px;
    background-color: #291612;
}

html {
    min-height: 100vh;
}

body {
    background-color: #FCFBF4;
    width: 100%;
    min-height: 100vh;
    background-attachment: fixed;
    background-size: cover;
    font-family: 'IBM Plex Serif';
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.centered {
    align-self: center;
}

.navbar {
    justify-content: space-between;
    display: flex;
    flex-direction: row;
    width: 13rem;
    /* width: 16rem; */
}

a:hover {
    color: #946359;
}

h1, h2 {
    margin-top: 30px;
}

h1 {
    margin-bottom: 10px;
}

h2 {
    margin-bottom: 0.8rem;
}

img {
    border-radius: 8px;
    border-width: 1px;
    border-style: solid;
    border-color: gray;
}

.clickable {
    text-decoration: none;
}

.clickable:hover {
    text-decoration: underline;
    cursor: pointer;
    color: #946359;
}

.list-container {
    max-width: 34rem;
    margin-top: 30px;
    align-items: left;
    text-align: left;
    line-height: 1.4;
}

@media screen and (max-width: 35rem) {
    .list-container {
        margin-left: 30px;
        margin-right: 30px;
    }
}

.post-container {
    max-width: 44rem;
    width: auto;
    margin-top: 30px;
    margin-left: 1rem;
    margin-right: 1rem;
    align-items: left;
    text-align: left;
    line-height: 1.4;
}

.footer {
    margin-top: auto;
    padding-top: 4rem;
    padding-bottom: 2rem;
    bottom: 0;
}

/* shelf stuff */

.shelf-segment {
    display: flex;
    flex-flow: row wrap;
    gap: 2rem 1rem;
    margin: 0rem 1.5rem;

    max-width: calc((4 * 8rem) + (3 * 1rem));
    flex-basis: content;
    justify-content: left;
}

/* when smol... */
@media screen and (max-width: 35rem) {
    .shelf-segment {
        width: fit-content;
        display: flex;
        margin: 0px 1rem;
        justify-content: space-evenly;
    }
}

.book-container {
    display: flex;
    flex-direction: column;
    align-items: left;
    width: 8rem;
}

.book-container {
    align-items: left;
    width: 8rem;
    max-width: 8rem;
}

.book-text {
    margin: 0.2rem 0px 0px 0px;
}

.book-description {
    color: #505050
}

.book-image-container {
    user-select: none;
    position: relative;
    display: flex;
    flex-direction: column;
}

.book-image {
    height: 11.5rem;
    width: 118px;
    margin: 0px auto;
    object-fit: fill;
}

.star-icon-container {
    width: 1.6rem;
    height: 1.6rem;
    background-color: #eecc00;
    border-radius: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    padding: 0;
    top: 0;
    right: 0;
    margin-top: -6px;
    margin-right: -4px;
    user-select: none;
}

.star-icon {
    border: 0px !important;
    height: 1.0rem;
    width: 1.0rem;
    margin-left: 0.5px;
    margin-bottom: 1.5px;
}

table {
    border-collapse: collapse;
    border: 1px solid;
}

th {
    border-bottom: 1px solid;
}

td, th {
    padding: 0.2rem 1rem;
}

/* Twemoji style */
img.emoji {
    height: 1em;
    width: 1em;
    margin: 0 .05em 0 .1em;
    vertical-align: -0.1em;
    border-width: 0px;
    border-radius: 0%;
}

.sourceCode, code {
    font-family: monospace;
}
