:root {
    --wiki-grey: rgb(162, 169, 177);
    --link: #069;
    --sparkle-dark: #069;
    --sparkle-light: #fff;
}
@font-face {
    font-family: Google Sans Code;
    src: url(https://hogwild.uk/fonts/GoogleSansCode.ttf);
}
body {
    width: min(800px, 90%);
    margin: 0 auto 10rem auto;
    font-family: Google Sans Code;
}
#page-header {
    text-align: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--wiki-grey);
}
h1 {
    justify-content: center;
    margin: 0.5rem 0;
}
h1, h2, h3, h4, h5 {
    display: flex;
    align-items: center;
    gap: 1rem;
}
h3 {
    font-size: unset;
}
a, a:visited {
    color: var(--link);
    text-decoration: none;
}
ol {
    //padding: 0;
}
ol > li {
    border-top: 1px solid var(--wiki-grey);
    margin-bottom: 1rem;
}
ol li img, ul li img {
    margin: 1rem 0;
}
.garden {
    width: fit-content;
    color: var(--wiki-grey);
    font-size: 0.75rem;
    padding: 0.25rem;
    border: 1px solid #eee;
}
a:hover {
    text-decoration: underline;
}
.hide-numbers {
    list-style-type: none;
}
.did-flex {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.did-image {
    width: 50px;
    height: 50px;
}
.collapsible > h2, .collapsible > h3, .collapsible > h4, .collapsible > h5 {
    cursor: pointer;
}
.collapsible > h2:after {
    content: ' ⇓';
}
.collapsed *:not(h2, h2 *, h3, h3 *, h4, h4 *, h5, h5 *) {
    display: none;
}
.collapsed > h2:after {
    content: ' ⇒';
}
table {
    text-align: left;
    border-collapse: collapse;
    border-spacing: 1rem;
}
th, td {
    border-bottom: 1px solid var(--wiki-grey);
    padding: 1rem;
}
th:not(:first-child), td:not(:first-child) {
    border-left: 1px solid var(--wiki-grey);
}
#bookshelf {
    display: flex;
    flex-wrap: wrap;
    row-gap: 1rem;
    column-gap: 0.25rem;
}
.book-container {
    display: flex;
    writing-mode: sideways-rl;
    align-items: center;
    justify-content: end;
    font-size: 0.75rem;
}
.book-container > span {
    flex-basis: 22%;
}
.book {
    flex-basis: 75%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-height: 20rem;
    border: 1px solid black;
    box-sizing: border-box;
    padding: 0.25rem 0;
    transition: transform 0.5s, box-shadow 0.5s;
    z-index: 1;
}
.book-author {
    text-align: right;
}
.book-legend {
    width: 0.75rem;
    aspect-ratio: 1 / 1;
    display: inline-block;
    border: 1px solid black;
    box-sizing: border-box;
}
.reading {
    outline: 2px dotted black;
}
.book-legend.reading {
    outline: none;
    border: 2px dotted black;
}
.fiction {
    background-color: antiquewhite;
}
.non-fiction {
    background-color: aliceblue;
}
.essay {
    background-color: cornflowerblue;
    color: white;
}
@media screen and (min-width: 1001px){
    .book-container:hover .book {
	transform: rotate(-90deg) scale(1.25);
	box-shadow: 0 0 50px 50px white;
	z-index: 2;
    }
}
@media screen and (max-width: 1000px){
    #bookshelf {
	flex-direction: column;
	row-gap: 0.25rem;
    }
    .book-container {
	writing-mode: unset;
	justify-content: space-between;
    }
    .book {
	max-height: unset;
	height: 100%;
        padding: 0 0.25rem;
    }
    table {
	max-width: 100%;
	font-size: 0.5rem;
    }
    th, td {
	padding: 0.25rem;
    }
}
