@font-face {
    font-family: 'Playfair Display'; /* Name of the font */
    src: url('PlayfairItalicVF.woff2') format('woff2'); /* Path to the font file */
    font-feature-settings: "smcp" 1, "liga", "clig", "dlig", "ordn";
}

@font-face {
    font-family: 'Alegreya Regular';
    src: url('Alegreya-Regular.woff2') format('woff2');
    font-feature-settings: "liga", "clig", "dlig"; /* Use "ss01" for cute Roman numerals */
}

@font-face {
    font-family: 'Geist Mono';
    src: url('GeistMono-Thin.woff2') format('woff2');
    font-feature-settings: "liga", "clig", "dlig", "ss01";
}

@font-face {
    font-family: 'Miss Fajardose';
    src: url('MissFajardose-Regular.woff2') format('woff2');
}

:root {
    --font-primary: "Alegreya Regular";
    --font-secondary: "Miss Fajardose";
    --font-code: "Geist Mono";
    --color: goldenrod;
    --background-color: oldlace;    
}

@media (prefers-color-scheme: dark) {
    :root {
        --color: goldenrod;
        --background-color: black
    }
}

*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

body {
    color: var(--color);
    /* background-color: var(--background-color); */
    background-image: url("bg.jpg");
    background-position-x: right;
    background-position-y: top;
    font-family: var(--font-primary);

}

button {
    font-family: var(--font-primary);
    background-color: var(--background-color);
    color: var(--color);
    border: 1px solid goldenrod;
    font-size: 1em;
    padding: 0.2em 0.5em;
}

img {
    display: block;
}

input {
    border: 1px solid goldenrod;
    background-color: black;
    color: goldenrod;
    font-family: var(--font-primary);
}

input:focus {
    outline: thin dotted;
    outline-offset: 1px;
}

/* For WebKit browsers (Chrome, Safari) */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
 
/* For Firefox */
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

h1 {
    font-family: var(--font-secondary);
    margin-bottom: 10px;
    font-size: xxx-large;
}

a {
    color: goldenrod;
}

.is-200px-high {
    height: 200px;
    width: auto;
    vertical-align: bottom;
    overflow: hidden;
    margin: 5px;
}

.max-width-150 {
    max-width: 150px;
}

.is-family-primary {
    font-family: "Alegreya Regular" !important;
}

.is-family-secondary {
    font-family: var(--font-secondary) !important;
}

.feather {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    vertical-align: middle;
    opacity: 50%;
}


.container {
    background-color: rgba(10,10,10,.7);
    border: 3px dotted goldenrod;
}

.book_detail_container {
    padding: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1000px;
}

.book_detail_cover {
    margin-right: 25px;
}

.book_detail_details {
    margin-left: 0.5vw;
    align-content: center;
    width: 500px;
}

.search_results_form {
    display: inline;
}

.flexible {
    margin: 0 0.5vw;
}

@media (max-width: 600px) {
    .flexible {
        flex: 1 1 100%;
        margin: 0;
    }
}

.title {
    font-size: xxx-large;
}

.search-container {
    width: 500px;
    height: 500px;
    border: 3px dotted goldenrod;
    border-radius: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(10,10,10,.7);
}

.main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    align-items: center;

}

.field {
    display: flex;
}

.input-with-button {
    border-radius: 4px 0 0 4px;
    width: 200px;
}

.button-with-input {
    border: 1px solid goldenrod;
    border-left: none;
    border-radius: 0 4px 4px 0;
    margin: 0;
}

.italic {
    font-style: italic;
}

.search-middle-text {
    margin-top: 2vh;
    margin-bottom: .5vh;
    padding-right: 50px;
}

.double-input-field {
    grid-template-columns: 200px 50px;
    grid-template-rows: repeat(2, 1fr);
    display: grid;
}

.double-input-with-button {
    border: 1px solid #ccc;
    border-radius: 4px;
    
}

.input {
    border: 1px solid goldenrod;
    background-color: black;
    color: goldenrod;
    font: var(--font-primary);
    text-align: center;
}

.double-input-top {
    border-radius: 4px 0 0 0;
    margin-bottom: -1px;
}

.double-input-bottom {
    border-radius: 0 0 0 4px;
}

.button-with-double-input {
    grid-column: 2;
    grid-row: 1 / 3;
}

.search-result-cover {
    border: 1px solid goldenrod;
}

.back-link {
    padding: 5px 10px;
    margin-bottom: 2vh;
    width: fit-content;
    margin-right: 25px;
    cursor: pointer;
    text-decoration: underline;
}

.nav-buttons {
    display: flex;
}

.pages-read {
    width: 3em;
    text-align: center;
}

.pointer {
    cursor: pointer;
}

/******************/
/*** Book shelf ***/
/******************/

.add_button_box {
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.add_button {
    height: 5vw;
    width: 5vw;
    vertical-align: bottom;
    stroke: goldenrod;
    stroke-width: 1;
    border-radius: 10px;
    fill: black;
}

.booklist_container {
    display: flex;
    justify-content: right;
}

.booklist {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-start;
    flex-wrap: wrap;
    align-items: end;
    background-color: rgba(10,10,10,.7);
    border-bottom: 10px double goldenrod;
}

.booklist a {
    text-decoration: none;
}

.book_cover, .book_cover > img {
    height: 100%;
}


.book_on_list {
    margin: 1px;
    padding: 20px;
    flex: 0 0 auto;                /* Prevent items from growing/shrinking */
    writing-mode: vertical-rl;
    height: 30em;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}


.book_on_list > div {
    width: fit-content;
}

.book_author {
    margin-bottom: 5rem;
}

.book_title {
    height: 50%;
}

.book_on_list_front {
    margin: 1px;
}

.horizontal > .book_author {
    writing-mode: horizontal-tb;
}

.center {
    text-align: center;
}

.justify {
    text-align: justify;
}

.bold {
    font-weight: bold;
}

.italic {
    font-style: italic;
}

.underline {
    text-decoration: underline;
}

.overunderline {
    text-decoration: overline underline;
}

.right {
    text-align: right;
}

.book-style-1 {
    background-color: indigo;
    color: peachpuff;
}

.book-style-2 {
    background-color: #13084a;
    color: #fbee21;
}

.book-style-3 {
    background-color: olivedrab;
    color: powderblue;
}

.book-style-4 {
    background-color: bisque;
    color: darkgreen;
}

.book-style-5 {
    background: purple;
    color: deeppink;
}

.book-style-6 {
    background-color: #337591;
}

.book-style-6 > div.book_author {
    text-align: justify;
    text-decoration: overline underline;
    color: #67ab4c;
}

.book-style-6 > div.book_title {
    text-align: center;
    text-decoration: underline;
    color: #bd86ab;
}

.book-style-7 {
    background-color: azure;
    color: indigo;
}

.book-style-8 {
    background-color: peru;
    color: brown;
}

.book-style-9 {
    background-color: darkkhaki;
    color: palegoldenrod;    
}

.book-style-9 > div.book_author {
    text-align: right;
}

.book-style-10 {
    background-color: #1a012f;
}

.book-style-10 > div.book_author {
    color: #b56ab2;
}

.book-style-10 > div.book_title {
    text-align: right;
    font-style: italic;
    color: #d6f1b7;
}

.book-style-11 {
    background-color: #204f61;
    text-align: justify;
}

.book-style-11 > div.book_author {
    color: #59d033;
}

.book-style-10 > div.book_title {
    color: #9797c6;
}

.book-style-12 {
    background-color: #212a4e;
    color: #45ec3f;
}

.book-style-12 > div.book_author {
    text-decoration: overline underline;
}

.book-style-13 {
    background-color: #1c222a;
}

.book-style-13 > div.book_author {
    text-align: center;
    color: #9dbeae;
}

.book-style-13 > div.book_title {
    color: #ab1c8c;
}

.book-style-14 {
    background-color: #a14912;
    color: #77b9bb;
}

.book-style-14 > div.book_author {
    text-align: right;
}

.book-style-14 > div.book_title {
    text-decoration: underline;
}

/***********************************/
/*** Entirely generic properties ***/
/***********************************/

.height-400px { height: 400px; }
.height-410px { height: 410px; }
.height-420px { height: 420px; }
.height-430px { height: 430px; }
.height-440px { height: 440px; }
.height-450px { height: 450px; }
.height-460px { height: 460px; }
.height-470px { height: 470px; }
.height-480px { height: 480px; }
.height-490px { height: 490px; }
.height-500px { height: 500px; }